Implement an automatic GL posting service triggered when inventory is issued to
a work effort
---------------------------------------------------------------------------------------------
Key: OFBIZ-1473
URL: https://issues.apache.org/jira/browse/OFBIZ-1473
Project: OFBiz
Issue Type: Sub-task
Components: accounting
Affects Versions: SVN trunk
Reporter: Jacopo Cappellato
Name of the service: "createAcctgTransForWorkEffortIssuance" or similar
Service definition:
<service name="createAcctgTransForWorkEffortIssuance" engine="simple"
auth="true"
location="org/ofbiz/accounting/ledger/GeneralLedgerServices.xml"
invoke="createAcctgTransForWorkEffortIssuance">
<description>Create an accounting transaction for inventory that is
issued to 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 service "createAcctgTransForSalesShipmentIssuance". The
new service will be very similar, with the following differences:
1) replace shipmentId with fixedAssetId
2) do not set partyId and roleTypeId
3) the Credit glAccountTypeId is WIP_INVENTORY (and not COGS_ACCOUNT)
4) the Debit glAccountTypeId is RAWMAT_INVENTORY
5) the acctgTransTypeId is INVENTORY (and not SALES_SHIPMENT)
The seca will be:
<eca service="assignInventoryToWorkEffort" event="commit">
<action service="createAcctgTransForWorkEffortIssuance" mode="sync"/>
</eca>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.