From 219cf6bc5728cda02f333ad8076530ae7b29fed2 Mon Sep 17 00:00:00 2001 From: Soham Kulkarni <77533095+sokumon@users.noreply.github.com> Date: Mon, 16 Feb 2026 21:06:30 +0530 Subject: [PATCH] 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 --- .../sales_invoice_payment/sales_invoice_payment.json | 7 ++++--- 1 file changed, 4 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 1389e0992d3..dc50e65d258 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,14 +85,15 @@ ], "istable": 1, "links": [], - "modified": "2024-03-27 13:10:36.427565", + "modified": "2026-02-16 20:46:34.592604", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice Payment", "owner": "Administrator", "permissions": [], "quick_entry": 1, + "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] -} \ No newline at end of file +}