(root)/ – Rev 36144
Rev 36143 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 36144 2026-04-01 20:44:51
- Author: amit
- Log message:
- Wire Credit Note on debit note refund — proper CN numbering and persistence
refundOrder(debitNoteId):
- Generate CN number via SellerWarehouse.creditNoteSequence (CN-{prefix}{seq})
- Persist CreditNote record (type=RETURNS) in transaction.credit_note
- Persist CreditNoteLine per returned item with tax rates from original order
- Generate CRN e-invoice IRN on NIC referencing original invoice
- Non-fatal: CN/IRN failure doesn't block the refund