Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Trunk
-
None
-
None
Description
Name of the service: "createAcctgTransForWorkEffortInventoryProduced" or similar
Service definition:
<service name="createAcctgTransForWorkEffortInventoryProduced" engine="simple" auth="true"
location="org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransForWorkEffortInventoryProduced">
<description>Create an accounting transaction for inventory that is produced by a work effort (Type: INVENTORY D: RAWMAT_INVENTORY, C: WIP_INVENTORY)</description>
<attribute name="workEffortId" type="String" mode="IN" optional="false"/>
<attribute name="inventoryItemId" type="String" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
Use as a template the notes in task OFBIZ-1473, with the following differences:
1) the Credit glAccountTypeId is WIP_INVENTORY
2) the Debit glAccountTypeId is INVENTORY_ACCOUNT
3) the acctgTransTypeId is INVENTORY
4) the origAmount is: inventoryItem.quantityOnHandTotal * inventoryItem.unitCost
The seca will be:
<eca service="createWorkEffortInventoryProduced" event="commit">
<action service="createAcctgTransForWorkEffortInventoryProduced" mode="sync"/>
</eca>
Attachments
Attachments
Issue Links
- depends upon
-
OFBIZ-1478 Implement CRUD services to manage the WorkEffortInventoryProduced entity
- Closed