{"ok":true,"success":true,"canonical":true,"marker":"CODEX733_REAL_ACCOUNTING_POSTING_ENGINE_READONLY","version":"codex733-real-accounting-posting-engine-readonly-v1","routeOwner":"backend/server.js","tradeCoreJs":"ABSENT_OK_NOT_PATCHED","route":"/api/trade-core/erp/accounting-posting-engine/journal-lines","key":"journal_lines","label":"Journal line posting readback","base":"/api/trade-core/erp/accounting-posting-engine","readOnly":true,"selectOnly":true,"guardedReadOnlyConnector":true,"noDbSchemaChange":true,"noDbMutation":true,"noAccountingPostingMutation":true,"noJournalMutation":true,"noTaxLedgerMutation":true,"noInventoryMutation":true,"noMoneyMovement":true,"noProviderCall":true,"noSchedulerEnablement":true,"noRouteFilesCreated":true,"noDuplicateRoutes":true,"noFrontendChange":true,"limit":5,"generatedAt":"2026-07-17T06:42:06.615Z","status":"ACCOUNTING_POSTING_ENGINE_READBACK_READY","sourceTables":["journal_lines","erp_journal_lines","journal_entries","erp_journal_headers","general_ledger","erp_general_ledger"],"linkColumns":["id","journal_id","entry_id","account_id","account_code","debit","credit","amount","source_id","source_type"],"readbackSummary":{"tableCount":1,"existingTableCount":1,"missingTableCount":0,"rowCountTotal":140,"warningCount":0,"status":"ACCOUNTING_POSTING_ENGINE_READBACK_READY","warnings":[],"aliasGroups":[{"key":"journal_lines","aliases":["journal_lines","erp_journal_lines","journal_entries","erp_journal_headers","general_ledger","erp_general_ledger"],"covered":true,"existingAliases":["erp_journal_lines","erp_journal_headers","erp_general_ledger"],"missingAliases":["journal_lines","journal_entries","general_ledger"]}],"markerOnlyFalseFailFixed":true},"postingEvidence":[{"table":"journal_lines","status":"MISSING","rowCount":0,"postingColumnsPresent":[],"sampleCount":0},{"table":"erp_journal_lines","status":"READY","rowCount":97,"postingColumnsPresent":["id","source_type","source_id","account_code","debit","credit"],"sampleCount":5},{"table":"journal_entries","status":"MISSING","rowCount":0,"postingColumnsPresent":[],"sampleCount":0},{"table":"erp_journal_headers","status":"READY","rowCount":43,"postingColumnsPresent":["id","source_type","source_id"],"sampleCount":5},{"table":"general_ledger","status":"MISSING","rowCount":0,"postingColumnsPresent":[],"sampleCount":0},{"table":"erp_general_ledger","status":"READY","rowCount":0,"postingColumnsPresent":["id"],"sampleCount":0}],"tableReadbacks":[{"table":"journal_lines","exists":false,"status":"MISSING","rowCount":0,"columns":[],"rows":[]},{"table":"erp_journal_lines","exists":true,"status":"READY","rowCount":97,"columns":["id","voucher_no","line_no","order_id","source_type","source_id","posting_date","account_code","account_head","debit","credit","currency","status","payload_json","created_at","module_key","sector","document_no","linkage_json","immutable_hash","company_id","branch_id","source_journal_line_id"],"rows":[{"id":97,"debit":1930,"credit":0,"sector":"textile","status":"POSTED","line_no":2,"currency":"INR","order_id":"BCF05-JW-BCF09C-1783709933870","branch_id":"main","source_id":"JV-BCF05-JW-BCF09C-1783709933870","company_id":"ach-admin","created_at":"2026-07-11T06:11:48.216429+00:00","module_key":"yarn","voucher_no":"REV-BCF12C-1783750307741","document_no":"BCF05-JW-BCF09C-1783709933870","source_type":"JOURNAL_REVERSAL","account_code":"WIP","account_head":"Work in process","linkage_json":{"sourceLineId":89,"sourceVoucherNo":"JV-BCF05-JW-BCF09C-1783709933870"},"payload_json":{"reversalReason":"BCF12C normal balanced reversal regression","noMoneyMovement":true,"originalPayload":{"sourceId":"BCF05-JW-BCF09C-1783709933870","challanId":"BCF05-JW-BCF09C-1783709933870","noMoneyMovement":true,"productionOrderId":null},"sourceJournalId":40,"sourceVoucherNo":"JV-BCF05-JW-BCF09C-1783709933870"},"posting_date":"2026-07-11T06:11:48.216429+00:00","immutable_hash":null,"source_journal_line_id":"89"},{"id":96,"debit":0,"credit":1930,"sector":"textile","status":"POSTED","line_no":1,"currency":"INR","order_id":"BCF05-JW-BCF09C-1783709933870","branch_id":"main","source_id":"JV-BCF05-JW-BCF09C-1783709933870","company_id":"ach-admin","created_at":"2026-07-11T06:11:48.213614+00:00","module_key":"yarn","voucher_no":"REV-BCF12C-1783750307741","document_no":"BCF05-JW-BCF09C-1783709933870","source_type":"JOURNAL_REVERSAL","account_code":"FINISHED_GOODS","account_head":"Finished goods inventory","linkage_json":{"sourceLineId":88,"sourceVoucherNo":"JV-BCF05-JW-BCF09C-1783709933870"},"payload_json":{"reversalReason":"BCF12C normal balanced reversal regression","noMoneyMovement":true,"originalPayload":{"sourceId":"BCF05-JW-BCF09C-1783709933870","challanId":"BCF05-JW-BCF09C-1783709933870","noMoneyMovement":true,"productionOrderId":null},"sourceJournalId":40,"sourceVoucherNo":"JV-BCF05-JW-BCF09C-1783709933870"},"posting_date":"2026-07-11T06:11:48.213614+00:00","immutable_hash":null,"source_journal_line_id":"88"},{"id":95,"debit":0,"credit":1.8,"sector":"textile","status":"POSTED","line_no":31,"currency":"INR","order_id":"TC-1781205818780-B96A56","branch_id":null,"source_id":"CODEX747-TC-1781205818780-B96A56-JRN-BCF12B-CORR-2","company_id":null,"created_at":"2026-07-11T05:45:45.494502+00:00","module_key":null,"voucher_no":"CODEX747-TC-1781205818780-B96A56-JRN","document_no":null,"source_type":"JOURNAL_CORRECTION","account_code":"GST_OUTPUT","account_head":"GST/VAT Output","linkage_json":{"sourceLineId":"29","sourceVoucher":"CODEX747-TC-1781205818780-B96A56-JRN","sourceJournalId":"15","correctionReason":"BCF12B evidence-based correction: CODEX747 ORDER_COMPLETION inserted AR debit only; append missing Sales/GST credit counterpart lines from linked order and invoice evidence."},"payload_json":{"marker":"CODEX_BCF12B_ORPHAN_JOURNAL_CANONICAL_CORRECTION","rootCause":"CODEX747 inserted only AR debit for ORDER_COMPLETION and omitted Sales/GST credit counterpart lines","correctedAt":"2026-07-11T05:45:45.494Z","correctedBy":"codex-bcf12b-controlled-correction","sourceLineId":"29","sourceVoucher":"CODEX747-TC-1781205818780-B96A56-JRN","sourceEvidence":{"orderId":"TC-1781205818780-B96A56","walletId":13,"invoiceNo":"CODEX747-TC-1781205818780-B96A56-INV","orderAmount":10,"orderStatus":"COMPLETED","walletAmount":10,"walletStatus":"POSTED","invoiceAmount":10,"invoiceStatus":"POSTED","inventoryMovementRef":"CODEX747-TC-1781205818780-B96A56-MOVE"},"noMoneyMovement":true,"sourceJournalId":"15","correctionReason":"BCF12B evidence-based correction: CODEX747 ORDER_COMPLETION inserted AR debit only; append missing Sales/GST credit counterpart lines from linked order and invoice evidence.","noExternalApiCall":true,"originalLinePreserved":true},"posting_date":"2026-07-01T14:35:38.585977+00:00","immutable_hash":null,"source_journal_line_id":"29"},{"id":94,"debit":0,"credit":10,"sector":"textile","status":"POSTED","line_no":30,"currency":"INR","order_id":"TC-1781205818780-B96A56","branch_id":null,"source_id":"CODEX747-TC-1781205818780-B96A56-JRN-BCF12B-CORR-1","company_id":null,"created_at":"2026-07-11T05:45:45.494502+00:00","module_key":null,"voucher_no":"CODEX747-TC-1781205818780-B96A56-JRN","document_no":null,"source_type":"JOURNAL_CORRECTION","account_code":"SALES","account_head":"Sales Revenue","linkage_json":{"sourceLineId":"29","sourceVoucher":"CODEX747-TC-1781205818780-B96A56-JRN","sourceJournalId":"15","correctionReason":"BCF12B evidence-based correction: CODEX747 ORDER_COMPLETION inserted AR debit only; append missing Sales/GST credit counterpart lines from linked order and invoice evidence."},"payload_json":{"marker":"CODEX_BCF12B_ORPHAN_JOURNAL_CANONICAL_CORRECTION","rootCause":"CODEX747 inserted only AR debit for ORDER_COMPLETION and omitted Sales/GST credit counterpart lines","correctedAt":"2026-07-11T05:45:45.494Z","correctedBy":"codex-bcf12b-controlled-correction","sourceLineId":"29","sourceVoucher":"CODEX747-TC-1781205818780-B96A56-JRN","sourceEvidence":{"orderId":"TC-1781205818780-B96A56","walletId":13,"invoiceNo":"CODEX747-TC-1781205818780-B96A56-INV","orderAmount":10,"orderStatus":"COMPLETED","walletAmount":10,"walletStatus":"POSTED","invoiceAmount":10,"invoiceStatus":"POSTED","inventoryMovementRef":"CODEX747-TC-1781205818780-B96A56-MOVE"},"noMoneyMovement":true,"sourceJournalId":"15","correctionReason":"BCF12B evidence-based correction: CODEX747 ORDER_COMPLETION inserted AR debit only; append missing Sales/GST credit counterpart lines from linked order and invoice evidence.","noExternalApiCall":true,"originalLinePreserved":true},"posting_date":"2026-07-01T14:35:38.585977+00:00","immutable_hash":null,"source_journal_line_id":"29"},{"id":93,"debit":890,"credit":0,"sector":"textile","status":"POSTED","line_no":2,"currency":"INR","order_id":"BCF05-PO-BCF09C-1783709933870","branch_id":"main","source_id":"JV-BCF05-BCF09C-1783709933870","company_id":"ach-admin","created_at":"2026-07-10T20:22:42.91702+00:00","module_key":"yarn","voucher_no":"REV-JV-BCF05-BCF09C-1783709933870","document_no":"BCF05-PO-BCF09C-1783709933870","source_type":"JOURNAL_REVERSAL","account_code":"WIP","account_head":"Work in process","linkage_json":{"sourceLineId":91,"sourceVoucherNo":"JV-BCF05-BCF09C-1783709933870"},"payload_json":{"reversalReason":"BCF12 UAT reversal","noMoneyMovement":true,"originalPayload":{"sourceId":"BCF05-PO-BCF09C-1783709933870","challanId":null,"noMoneyMovement":true,"productionOrderId":"BCF05-PO-BCF09C-1783709933870"},"sourceJournalId":41,"sourceVoucherNo":"JV-BCF05-BCF09C-1783709933870"},"posting_date":"2026-07-10T20:22:42.91702+00:00","immutable_hash":null,"source_journal_line_id":"91"}]},{"table":"journal_entries","exists":false,"status":"MISSING","rowCount":0,"columns":[],"rows":[]},{"table":"erp_journal_headers","exists":true,"status":"READY","rowCount":43,"columns":["id","voucher_no","order_id","source_type","source_id","posting_date","currency","status","debit_total","credit_total","payload_json","created_at","updated_at","module_key","sector","document_no","voucher_series","voucher_sequence","fiscal_year","posting_batch_id","linkage_json","immutable_hash","company_id","branch_id","accounting_period","source_journal_id","reversal_journal_id","reversed_by","reversed_at","reversal_reason"],"rows":[{"id":43,"sector":"textile","status":"POSTED","currency":"INR","order_id":"BCF05-JW-BCF09C-1783709933870","branch_id":"main","source_id":"JV-BCF05-JW-BCF09C-1783709933870","company_id":"ach-admin","created_at":"2026-07-11T06:11:48.201795+00:00","module_key":"yarn","updated_at":"2026-07-11T06:11:48.201795+00:00","voucher_no":"REV-BCF12C-1783750307741","debit_total":1930,"document_no":"BCF05-JW-BCF09C-1783709933870","fiscal_year":null,"reversed_at":"2026-07-11T06:11:48.201795+00:00","reversed_by":"admin-1","source_type":"JOURNAL_REVERSAL","credit_total":1930,"linkage_json":{"sourceJournalId":40,"sourceVoucherNo":"JV-BCF05-JW-BCF09C-1783709933870"},"payload_json":{"reversalReason":"BCF12C normal balanced reversal regression","noMoneyMovement":true,"originalPayload":{"sourceId":"BCF05-JW-BCF09C-1783709933870","challanId":"BCF05-JW-BCF09C-1783709933870","noMoneyMovement":true,"productionOrderId":null},"sourceJournalId":40,"sourceVoucherNo":"JV-BCF05-JW-BCF09C-1783709933870"},"posting_date":"2026-07-11T06:11:48.201795+00:00","immutable_hash":null,"voucher_series":"REVERSAL","reversal_reason":"BCF12C normal balanced reversal regression","posting_batch_id":"BCF12-REV-JV-BCF05-JW-BCF09C-1783709933870","voucher_sequence":null,"accounting_period":"2026-07","source_journal_id":"40","reversal_journal_id":null},{"id":42,"sector":"textile","status":"POSTED","currency":"INR","order_id":"BCF05-PO-BCF09C-1783709933870","branch_id":"main","source_id":"JV-BCF05-BCF09C-1783709933870","company_id":"ach-admin","created_at":"2026-07-10T20:22:42.913058+00:00","module_key":"yarn","updated_at":"2026-07-10T20:22:42.913058+00:00","voucher_no":"REV-JV-BCF05-BCF09C-1783709933870","debit_total":890,"document_no":"BCF05-PO-BCF09C-1783709933870","fiscal_year":null,"reversed_at":"2026-07-10T20:22:42.913058+00:00","reversed_by":"admin-1","source_type":"JOURNAL_REVERSAL","credit_total":890,"linkage_json":{"sourceJournalId":41,"sourceVoucherNo":"JV-BCF05-BCF09C-1783709933870"},"payload_json":{"reversalReason":"BCF12 UAT reversal","noMoneyMovement":true,"originalPayload":{"sourceId":"BCF05-PO-BCF09C-1783709933870","challanId":null,"noMoneyMovement":true,"productionOrderId":"BCF05-PO-BCF09C-1783709933870"},"sourceJournalId":41,"sourceVoucherNo":"JV-BCF05-BCF09C-1783709933870"},"posting_date":"2026-07-10T20:22:42.913058+00:00","immutable_hash":null,"voucher_series":"REVERSAL","reversal_reason":"BCF12 UAT reversal","posting_batch_id":"BCF12-REV-JV-BCF05-BCF09C-1783709933870","voucher_sequence":null,"accounting_period":"BCF12-UAT-PER-1783714962521","source_journal_id":"41","reversal_journal_id":null},{"id":41,"sector":"textile","status":"POSTED","currency":"INR","order_id":"BCF05-PO-BCF09C-1783709933870","branch_id":"main","source_id":"BCF05-PO-BCF09C-1783709933870","company_id":"ach-admin","created_at":"2026-07-10T18:58:54.641708+00:00","module_key":"yarn","updated_at":"2026-07-10T20:22:42.918228+00:00","voucher_no":"JV-BCF05-BCF09C-1783709933870","debit_total":890,"document_no":"BCF05-PO-BCF09C-1783709933870","fiscal_year":null,"reversed_at":"2026-07-10T20:22:42.918228+00:00","reversed_by":"admin-1","source_type":"MANUFACTURING_BCF05","credit_total":890,"linkage_json":{"sourceId":"BCF05-PO-BCF09C-1783709933870","challanId":null,"noMoneyMovement":true,"productionOrderId":"BCF05-PO-BCF09C-1783709933870"},"payload_json":{"sourceId":"BCF05-PO-BCF09C-1783709933870","challanId":null,"noMoneyMovement":true,"productionOrderId":"BCF05-PO-BCF09C-1783709933870"},"posting_date":"2026-07-10T18:58:54.641708+00:00","immutable_hash":null,"voucher_series":"MFG-JV","reversal_reason":"BCF12 UAT reversal","posting_batch_id":"BCF05-BCF05-PO-BCF09C-1783709933870","voucher_sequence":null,"accounting_period":"2026-07","source_journal_id":null,"reversal_journal_id":"REV-JV-BCF05-BCF09C-1783709933870"},{"id":40,"sector":"textile","status":"POSTED","currency":"INR","order_id":"BCF05-JW-BCF09C-1783709933870","branch_id":"main","source_id":"BCF05-JW-BCF09C-1783709933870","company_id":"ach-admin","created_at":"2026-07-10T18:58:54.631603+00:00","module_key":"yarn","updated_at":"2026-07-11T06:11:48.217948+00:00","voucher_no":"JV-BCF05-JW-BCF09C-1783709933870","debit_total":1930,"document_no":"BCF05-JW-BCF09C-1783709933870","fiscal_year":null,"reversed_at":"2026-07-11T06:11:48.217948+00:00","reversed_by":"admin-1","source_type":"MANUFACTURING_BCF05","credit_total":1930,"linkage_json":{"sourceId":"BCF05-JW-BCF09C-1783709933870","challanId":"BCF05-JW-BCF09C-1783709933870","noMoneyMovement":true,"productionOrderId":null},"payload_json":{"sourceId":"BCF05-JW-BCF09C-1783709933870","challanId":"BCF05-JW-BCF09C-1783709933870","noMoneyMovement":true,"productionOrderId":null},"posting_date":"2026-07-10T18:58:54.631603+00:00","immutable_hash":null,"voucher_series":"MFG-JV","reversal_reason":"BCF12C normal balanced reversal regression","posting_batch_id":"BCF05-BCF05-JW-BCF09C-1783709933870","voucher_sequence":null,"accounting_period":"2026-07","source_journal_id":null,"reversal_journal_id":"REV-BCF12C-1783750307741"},{"id":39,"sector":"textile","status":"POSTED","currency":"INR","order_id":"BCF09B-CORRECTED-1783708823162-ORDER","branch_id":null,"source_id":"RCPT-BCF09B-CORRECTED-1783708823162-INV","company_id":null,"created_at":"2026-07-10T18:40:23.679486+00:00","module_key":"yarn","updated_at":"2026-07-10T18:40:23.679486+00:00","voucher_no":"JV-RECEIPT-BCF09B-CORRECTED-1783708823162-INV","debit_total":5.9,"document_no":"RCPT-BCF09B-CORRECTED-1783708823162-INV","fiscal_year":null,"reversed_at":null,"reversed_by":null,"source_type":"CUSTOMER_RECEIPT","credit_total":5.9,"linkage_json":{"orderId":"BCF09B-CORRECTED-1783708823162-ORDER","invoiceNo":"BCF09B-CORRECTED-1783708823162-INV","receiptId":"RCPT-BCF09B-CORRECTED-1783708823162-INV"},"payload_json":{"marker":"EOX026_ENTERPRISE_BUSINESS_CHAIN_3_COMPLETE","invoiceNo":"BCF09B-CORRECTED-1783708823162-INV","receiptId":"RCPT-BCF09B-CORRECTED-1783708823162-INV","noExternalMoneyMovement":true},"posting_date":"2026-07-10T18:40:23.679486+00:00","immutable_hash":null,"voucher_series":null,"reversal_reason":null,"posting_batch_id":null,"voucher_sequence":null,"accounting_period":null,"source_journal_id":null,"reversal_journal_id":null}]},{"table":"general_ledger","exists":false,"status":"MISSING","rowCount":0,"columns":[],"rows":[]},{"table":"erp_general_ledger","exists":true,"status":"READY","rowCount":0,"columns":["id","created_at","updated_at","created_by","updated_by","status","source","external_ref","idempotency_key","metadata","gl_code","gl_name","account_type","currency_code"],"rows":[]}]}