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

Implement an automatic GL posting service triggered when inventory is issued for fixed asset maintenance

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • accounting
    • None

    Description

      Name of the service: "createAcctgTransForFixedAssetMaintIssuance" or similar
      Service definition:
      <service name="createAcctgTransForFixedAssetMaintIssuance" engine="simple" auth="true"
      location="org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransForFixedAssetMaintIssuance">
      <description>Create an accounting transaction for inventory that is issued for fixed asset maintenance (Type: INVENTORY D: INVENTORY_ACCOUNT, C: FIXED_ASSET_MAINT)</description>
      <attribute name="itemIssuanceId" 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 FIXED_ASSET_MAINT (and not COGS_ACCOUNT)
      4) the acctgTransTypeId is INVENTORY (and not SALES_SHIPMENT)

      The seca will be:

      <eca service="createItemIssuance" event="commit">
      <condition field-name="fixedAssetId" operator="is-not-empty"/>
      <action service="createAcctgTransForFixedAssetMaintIssuance" mode="sync"/>
      </eca>

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: