mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 22:51:49 +00:00
Relocates all 11 Sales Invoice-specific GL entry builders from the document onto SalesInvoiceGLComposer, operating on self.doc. The perpetual-inventory super().get_gl_entries() call becomes super(SalesInvoice, doc).get_gl_entries(). Shared bucket-A helpers (get_gl_dict, make_discount_gl_entries, etc.) remain on AccountsController for now, invoked via self.doc, until all doctypes use a composer. No behavior change: Phase 0 snapshots and the SI tests covering perpetual inventory, POS, write-off, returns, fixed assets, internal transfer and loyalty all stay green.