From a167f9e17f8bf82346278a7993453973b4ba510f Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Thu, 14 Apr 2022 13:26:47 +0530 Subject: [PATCH] test: Update customer in Sales Invoice (cherry picked from commit c38be53ce8790bead2f32c1b65a78c71458f0611) --- erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py | 2 +- erpnext/controllers/accounts_controller.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py index eb18f9d0d23..68a83f4be0c 100644 --- a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py @@ -3059,7 +3059,7 @@ class TestSalesInvoice(unittest.TestCase): jv.submit() si = create_sales_invoice( - customer="Overseas Customer", + customer="_Test Customer USD", debit_to="_Test Receivable USD - _TC", currency="USD", conversion_rate=75, diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 216c57de56d..49196dfe22e 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -2000,6 +2000,7 @@ def get_advance_journal_entries( reference_condition = " and (" + " or ".join(conditions) + ")" if conditions else "" + # nosemgrep journal_entries = frappe.db.sql( """ select