I had a look but, could you open a jira issue a submit a patch please ? It will be much clear and is the normal way of exchanging
about code
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
Thanks
Jacques
From: "Kathy jones" <[email protected]>
I think I got Murphy's problem. The problem is in
getProductInventoryAvailable(InventoryServices.xml). If I clean this
part of code :
<entity-and entity-name="InventoryItem" list="inventoryItems"
use-cache="${parameters.useCache}">
<field-map field-name="inventoryItemId"
from-field="parameters.inventoryItemId"/>
<field-map field-name="productId"
from-field="parameters.productId"/>
<field-map field-name="facilityId"
from-field="parameters.facilityId"/>
<field-map field-name="locationSeqId"
from-field="parameters.locationSeqId"/>
<field-map field-name="containerId"
from-field="parameters.containerId"/>
<use-iterator/>
</entity-and>
and add :
<if-compare field="parameters.useCache" operator="equals" value="true"
type="Boolean">
<find-by-and entity-name="InventoryItem"
map="lookupFieldMap" list="inventoryItems" use-iterator="true"
use-cache="true"/>
<else>
<find-by-and entity-name="InventoryItem"
map="lookupFieldMap" list="inventoryItems" use-iterator="true"
use-cache="false"/>
</else>
</if-compare>
then its working perfectly. ATP and QOH are not showing 0/0.Please let
me know If I can help further.
Thanks
-Kathy
jacques.le.roux wrote:
I had a quick look. But to understand your problem we will need much more
details, ie all the steps you used...
Try to describe them will all the relevant details and we should be able
to help you. Don't neglict any aspects from the start to
the end, in other words: help us to help you
Jacques
From: "murp3433" <[email protected]> <[email protected]>
Thanks!
jacques.le.roux wrote:
From: "murp3433" <[email protected]> <[email protected]>
The only reason i mentioned that revision is that it was the only
recent
commit that directly influenced inventory. I'm not a Java developer so
i'm
not saying anything is wrong wit it, it was just something i noticed so
please dont think i am critiquing anyone elses code.
I'm sorry if i'm not being clear, ill try again.
Good reaction (I'm also a great "digressor", often off of topic, can't
manage it : nature :o)
If i go to the 4.0 demo and receive inventory from the product ->
inventory
tab under inventory summary next to the facility it reflects the sum of
all
inventory items. If i do the same in the trunk demo it does not. It
shows
that there is "0" on hand. If you then try to purchase the product in
the
ecommerce store it will say that there is not enough inventory (If
require
inventory is set to yes). If i am doing something wrong please let me
know.
Thanks, I will have a look at it tomorrow morning.
I saw you created a Jira issue we will use it to communicate on this
subject if needed...
Jacques
jacques.le.roux wrote:
Why do you say that? How did you deduce that ? Have you any clues ?
Please help us to help you
Thanks
Jacques
From: "murp3433" <[email protected]> <[email protected]>
Seems related to commit 741423
murp3433 wrote:
I am having a problem receiving inventory. When i receive inventory
from
the "product - inventory page the Facility - inventory page and the
product - inventory pages do not reflect the available inventory,
but
the
inventory items detail does. I created a Jira 2198 but i'm guessing
that
i
am doing something wrong. I tested on the demo site as well and got
the
same result.
--
View this message in context:
http://www.nabble.com/Inventory-problems-tp22182635p22203452.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
--
View this message in context:
http://www.nabble.com/Inventory-problems-tp22182635p22209954.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
--
View this message in context:
http://www.nabble.com/Inventory-problems-tp22182635p22213110.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
--
View this message in context:
http://www.nabble.com/Inventory-problems-tp22182635p22230403.html
Sent from the OFBiz - User mailing list archive at Nabble.com.