From fed8cf41967b1e813ad88426cb4c97c694810151 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Thu, 12 Oct 2023 17:40:57 +0530 Subject: [PATCH] fix: test for reposting pi --- erpnext/controllers/accounts_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 3babd67c3f..5fcdf2ddef 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -3256,7 +3256,7 @@ def check_if_child_table_updated( # Check if any field affecting accounting entry is altered for index, item in enumerate(child_table_before_update): for field in fields_to_check: - if child_table_before_update[index].get(field) != item.get(field): + if child_table_after_update[index].get(field) != item.get(field): return True return False