{"success":true,"ok":true,"marker":"CODEX627_606_610_ERP_EXECUTION_ENGINE_LIVE_OWNER_REBASE","version":"codex627-606-610-erp-execution-engine-live-owner-rebase-v1","owner":"backend/server.js","serverJsOwner":true,"route":"/api/trade-core/erp/manufacturing-mrp/production-costing","title":"Production MRP Costing Readback","surface":"cost_rollup","mode":"safe_readback_only","readOnly":true,"noDbMutationByRoute":true,"noOrderMutation":true,"noInventoryMutation":true,"noLedgerMutation":true,"noPaymentAutomation":true,"noPayoutAutomation":true,"noInvoiceAutomation":true,"noLogisticsMutation":true,"noDestructiveSchemaChange":true,"sourceTruth":"latest CODEX775 truth only","fixedTradeChain":["listing","comparison","landed_cost","order","escrow","logistics","delivery","wallet","payout","receipt_audit"],"registryProof":{"registry":"TEXTILE_MODULES_22","registrySource":"backend/config/moduleRegistry.js","fallbackOwner":"backend/server.js","expectedCount":22,"moduleCount":22,"uniqueModuleCount":22,"exact22ModuleRegistry":true,"moduleKeys":["fiber_raw_material","spinning_texturising_job","yarn","thread","weave_knit_warping_job","grey_fabric","mill_finish_process_job","finish_fabric","stitching_embroidery_value_addition_job","wholesale_ready_product","mini_wholesale_textile_market","textile_retailers","textile_c2c_trader","machinery_spares_tools_accessories","scrap_reusables","chemical_dye","packing_accessories","garment_accessories","testing_lab_instruments","recycle_waste_materials","suggestions_new_arrival_trending","consumables_utilities"],"modules":[{"key":"fiber_raw_material","displayName":"Fiber Raw Material"},{"key":"spinning_texturising_job","displayName":"Spinning/Texturising Job"},{"key":"yarn","displayName":"Yarn"},{"key":"thread","displayName":"Thread"},{"key":"weave_knit_warping_job","displayName":"Weave/Knit/Warping Job"},{"key":"grey_fabric","displayName":"Grey Fabric"},{"key":"mill_finish_process_job","displayName":"Mill Finish Process Job"},{"key":"finish_fabric","displayName":"Finish Fabric"},{"key":"stitching_embroidery_value_addition_job","displayName":"Stitching/Embroidery Value Addition Job"},{"key":"wholesale_ready_product","displayName":"Wholesale Ready Product"},{"key":"mini_wholesale_textile_market","displayName":"Mini Wholesale Textile Market"},{"key":"textile_retailers","displayName":"Textile Retailers"},{"key":"textile_c2c_trader","displayName":"Textile C2C Trader"},{"key":"machinery_spares_tools_accessories","displayName":"Machinery/Spares/Tools Accessories"},{"key":"scrap_reusables","displayName":"Scrap Reusables"},{"key":"chemical_dye","displayName":"Chemical Dye"},{"key":"packing_accessories","displayName":"Packing Accessories"},{"key":"garment_accessories","displayName":"Garment Accessories"},{"key":"testing_lab_instruments","displayName":"Testing Lab Instruments"},{"key":"recycle_waste_materials","displayName":"Recycle Waste Materials"},{"key":"suggestions_new_arrival_trending","displayName":"Suggestions New Arrival Trending"},{"key":"consumables_utilities","displayName":"Consumables Utilities"}]},"sourceTables":["erp_cost_rollups","erp_inventory_valuation","erp_production_batches","erp_job_work_invoices","erp_inventory_movement_ledger","erp_journal_headers","erp_journal_lines"],"tableCounts":[{"table":"erp_cost_rollups","tableExists":false,"count":0,"status":"TABLE_MISSING"},{"table":"erp_inventory_valuation","tableExists":false,"count":0,"status":"TABLE_MISSING"},{"table":"erp_production_batches","tableExists":true,"count":4,"status":"COUNTED"},{"table":"erp_job_work_invoices","tableExists":false,"count":0,"status":"TABLE_MISSING"},{"table":"erp_inventory_movement_ledger","tableExists":true,"count":91,"status":"COUNTED"},{"table":"erp_journal_headers","tableExists":true,"count":43,"status":"COUNTED"},{"table":"erp_journal_lines","tableExists":true,"count":97,"status":"COUNTED"}],"countSummary":{"tableTotal":7,"tableExistsCount":4,"countedTableCount":4,"missingTableCount":3,"totalRowsCounted":235},"readSource":"db-select-count-if-available-with-table-missing-safe-zero","generatedAt":"2026-07-17T07:53:44.351Z"}