Skip to main content

Generate Accounting Transaction (MO)

POST 

/api/manufacturing/manufacturing-orders/1/generate-accounting-transaction

Generate (or rebuild) the WIP-routed GL journals for this MO — ONE journal per production iteration, each dated to that iteration's production date (so multi-day / multi-period production is period-accurate). Conversion costs (labor + overhead + outsourced service) are capitalized into finished goods through Work In Process:

  • Dr Work In Process (total)
  • Cr Raw Materials Inventory (materials), Cr Direct Labor Applied (labor), Cr Manufacturing Overhead Applied (overhead), Cr Accrued Purchases (outsourced service fee)
  • Dr Finished Goods Inventory (total), Cr Work In Process (total)

WIP nets to zero. Each journal links polymorphically to the MO and is tagged with its mo_production_iteration_id. Requires the Work In Process / Direct Labor Applied / Manufacturing Overhead Applied nominal codes to be mapped (Settings -> Nominal Code Mappings). No request body. Returns an ARRAY of AccountingTransactionResource (one per iteration) with their journal lines. Each iteration's journal is also posted automatically as production is recorded (when accounting is enabled), and removed if the iteration is reversed.

Request

Responses

OK

Response Headers
    Content-Type