From 9ce32fc1daff6dd8c8194d3771e9ad9a8bb0e2d3 Mon Sep 17 00:00:00 2001 From: Diptanil Saha Date: Tue, 4 Aug 2026 15:22:28 +0530 Subject: [PATCH] fix(sales_invoice): enable repost on account change of account in payments (#57775) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 1 + .../sales_invoice_payment/sales_invoice_payment.json | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index e2969ec23ce..9865388872b 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -1165,6 +1165,7 @@ class SalesInvoice(SellingController): child_tables = { "items": ("income_account", "expense_account", "discount_account"), "taxes": ("account_head",), + "payments": ("account",), } self.needs_repost = self.check_if_fields_updated(fields_to_check, child_tables) if self.needs_repost: diff --git a/erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json b/erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json index dc50e65d258..44232af93d7 100644 --- a/erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json +++ b/erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json @@ -1,5 +1,6 @@ { "actions": [], + "allow_bulk_edit": 1, "creation": "2016-05-08 23:49:38.842621", "doctype": "DocType", "editable_grid": 1, @@ -17,6 +18,7 @@ ], "fields": [ { + "allow_on_submit": 1, "fieldname": "mode_of_payment", "fieldtype": "Link", "in_list_view": 1, @@ -39,6 +41,7 @@ "fieldtype": "Column Break" }, { + "allow_on_submit": 1, "fieldname": "account", "fieldtype": "Link", "label": "Account", @@ -47,6 +50,7 @@ "read_only": 1 }, { + "allow_on_submit": 1, "fetch_from": "mode_of_payment.type", "fieldname": "type", "fieldtype": "Read Only", @@ -85,7 +89,7 @@ ], "istable": 1, "links": [], - "modified": "2026-02-16 20:46:34.592604", + "modified": "2026-07-29 16:44:54.482826", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice Payment",