commit | c38be53ce8790bead2f32c1b65a78c71458f0611 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Thu Apr 14 13:26:47 2022 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Thu Apr 14 13:26:47 2022 +0530 |
tree | 120d51cef763829d4f16d37e71be29af6f7fe97d | |
parent | 972d9ec5b4b6fee242eea2c11d2323d0bb79f4da [diff] |
test: Update customer in Sales Invoice
diff --git a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py index c05c062..77c686b 100644 --- a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py
@@ -3138,7 +3138,7 @@ 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 440c082..fff7e18 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py
@@ -1975,6 +1975,7 @@ reference_condition = " and (" + " or ".join(conditions) + ")" if conditions else "" + # nosemgrep journal_entries = frappe.db.sql( """ select