Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-1434 General Ledger
  3. OFBIZ-1480

Implement an automatic GL posting service triggered when inventory is produced by a work effort

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • None
    • accounting
    • 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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            anilpatel Anil K Patel
            jacopoc Jacopo Cappellato
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment