fix(sales_invoice): enable repost on account change of account in payments (#57775)

This commit is contained in:
Diptanil Saha
2026-08-04 15:22:28 +05:30
committed by GitHub
parent c1717d8689
commit 9ce32fc1da
2 changed files with 6 additions and 1 deletions

View File

@@ -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:

View File

@@ -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",