{% comment %} ════════════════════════════════════════════════════════════════════════ Reusable Ledger Action Modal ------------------------------------------------------------------------ EK DAFA base.html ke andar, se theek pehle include karein: {% include "customers/_action_modal.html" %} Phir kisi bhi ledger (customer_ledger, ticket_customer_ledger, aging…) mein action buttons isay aise call karenge: View : LedgerAction.open(url, {mode:'view'}) Edit : LedgerAction.open(url, {mode:'edit', onDone: refreshLedger}) Delete: LedgerAction.del (url, {onDone: refreshLedger}) - View/Edit -> iframe modal mein khulta hai (page navigate nahi hoti). - Edit save hote hi (andar ki page forward karte hi) modal khud band + onDone() call -> ledger in-place refresh. - Delete -> AJAX, phir onDone(). - Manual band karne ke liye X hamesha mojood hai. ════════════════════════════════════════════════════════════════════════ {% endcomment %}