From 4fe968961afbff5825f6e8e78e91559d92f91a2f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 16 Feb 2026 16:01:23 +0000 Subject: [PATCH] fix(pos_invoice): add correct depends on condition (backport #52689) (#52693) * fix(pos_invoice): add correct depends on condition (#52689) * fix(pos_invoice): add correct depends on condition * fix: show field in sales order * refactor: eval condition (cherry picked from commit 219cf6bc5728cda02f333ad8076530ae7b29fed2) # Conflicts: # erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json * chore: resolve conflict --------- Co-authored-by: Soham Kulkarni <77533095+sokumon@users.noreply.github.com> Co-authored-by: Diptanil Saha --- .../sales_invoice_payment/sales_invoice_payment.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 bd59f65dd4c..1ab1680d108 100644 --- a/erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json +++ b/erpnext/accounts/doctype/sales_invoice_payment/sales_invoice_payment.json @@ -26,7 +26,7 @@ }, { "default": "0", - "depends_on": "eval:parent.doctype == 'Sales Invoice'", + "depends_on": "eval: [\"POS Invoice\", \"Sales Invoice\"].includes(parent.doctype)", "fieldname": "amount", "fieldtype": "Currency", "in_list_view": 1, @@ -85,7 +85,7 @@ ], "istable": 1, "links": [], - "modified": "2024-01-23 16:20:06.436979", + "modified": "2026-02-16 20:46:34.592604", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice Payment", @@ -95,4 +95,4 @@ "sort_field": "modified", "sort_order": "DESC", "states": [] -} \ No newline at end of file +}