[ 
https://issues.apache.org/jira/browse/OFBIZ-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543121
 ] 

Bilgin Ibryam commented on OFBIZ-1315:
--------------------------------------

Hi guys,

Actually POS DOES inventory issuance.
isImmediatelyFulfilled = Y means that order items will not be reserved, but 
when order is completed, the items will be issued. In POS after payments are 
processed order is completed and this happens:

<eca entity="OrderHeader" operation="create-store" event="return">
        <condition field-name="statusId" operator="equals" 
value="ORDER_COMPLETED"/>
        <condition field-name="needsInventoryIssuance" operator="equals" 
value="Y"/>
<action service="issueImmediatelyFulfilledOrder" mode="sync"/>
</eca>

But item issuance happens only if in the POS facility we got inventory items: 
Here are the comments from "issueImmediatelyFulfilledOrder"
<!-- before issuing inventory, check to see if there is inventory information 
in this database -->
<!-- if inventory info is not available for all of the products, then don't do 
the issuance, ie there has to be at least SOME inventory info in the database 
to facilitate inventory-less POS terminals -->

By default there are no item in MyRetailStore,  thats why there is no issuance.

BTW while testing i found an error in issueImmediatelyFulfilledOrder, when 
issuing Serialized items. Here is the console log and my patch for it:

 Running Entity ECA Service: issueImmediatelyFulfilledOrder, triggered by rule 
on Entity: OrderHeader
     [java] 2007-11-16 18:00:29,932 (Thread-58) [      
GenericEntity.java:1330:WARN ] The field name (or key) [userLogin] is not valid 
for entity [InventoryItem], printing IllegalArgumentException instead of 
throwing it because Map interface specification does not allow throwing that 
exception.
     [java] 2007-11-16 18:00:29,938 (Thread-58) [       
SimpleMethod.java:936:ERROR]
     [java] ---- runtime exception report 
--------------------------------------------------
     [java] Error in simple-method operation [<call-service/>]: 
java.lang.IllegalArgumentException: [GenericEntity.set] "userLogin" is not a 
field of InventoryItem, must be one of: inventoryItemId, inventoryItemTypeId, 
productId, partyId, ownerPartyId, statusId, datetimeReceived, 
datetimeManufactured, expireDate, facilityId, containerId, lotId, uomId, 
binNumber, locationSeqId, comments, quantityOnHandTotal, 
availableToPromiseTotal, oldQuantityOnHand, oldAvailableToPromise, 
serialNumber, softIdentifier, activationNumber, activationValidThru, unitCost, 
currencyUomId, lastUpdatedStamp, lastUpdatedTxStamp, createdStamp, 
createdTxStamp
     [java] Exception: java.lang.IllegalArgumentException
     [java] Message: [GenericEntity.set] "userLogin" is not a field of 
InventoryItem, must be one of: inventoryItemId, inventoryItemTypeId, productId, 
partyId, ownerPartyId, statusId, datetimeReceived, datetimeManufactured, 
expireDate, facilityId, containerId, lotId, uomId, binNumber, locationSeqId, 
comments, quantityOnHandTotal, availableToPromiseTotal, oldQuantityOnHand, 
oldAvailableToPromise, serialNumber, softIdentifier, activationNumber, 
activationValidThru, unitCost, currencyUomId, lastUpdatedStamp, 
lastUpdatedTxStamp, createdStamp, createdTxStamp
     [java] ---- stack trace 


> POS does not do itemIssuance
> ----------------------------
>
>                 Key: OFBIZ-1315
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1315
>             Project: OFBiz
>          Issue Type: Bug
>          Components: pos
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Critical
>
> One of the problems is that the POS does not do itemIssuance so the general 
> ledger accounting will not handle it correctly. This is most critical. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to