commit | cdf100d55260044c1deeaacb2903788015e9395f | [log] [tgz] |
---|---|---|
author | Gughan Ravikumar <gughanrk@gmail.com> | Tue Aug 15 09:38:29 2023 +0530 |
committer | GitHub <noreply@github.com> | Tue Aug 15 09:38:29 2023 +0530 |
tree | 1752e28d6e8d13c6ec30db4d3b7e9a5b82a59cda | |
parent | 89d109e8d23a58187f4aaa04a7b015dcfdaaa5f5 [diff] |
fix: Naming Series preview when no previous transaction present
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 9102e0a..80e54cb 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py
@@ -1118,7 +1118,7 @@ else: date = getdate() company = None - return get_fiscal_year(date=date, company=doc.get("company"))[0] + return get_fiscal_year(date=date, company=company)[0] @frappe.whitelist()