mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 15:38:39 +00:00
fix(banking): allow negative balance in bank statement import (#56959)
(cherry picked from commit d449ad3b3f)
Co-authored-by: Nikhil Kothari <nik.kothari22@live.com>
This commit is contained in:
@@ -54,7 +54,6 @@
|
|||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Closing Balance",
|
"label": "Closing Balance",
|
||||||
"non_negative": 1,
|
|
||||||
"options": "currency"
|
"options": "currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -191,7 +190,7 @@
|
|||||||
"grid_page_length": 50,
|
"grid_page_length": 50,
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2026-05-08 17:55:25.615942",
|
"modified": "2026-07-09 17:55:25.615942",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Bank Statement Import Log",
|
"name": "Bank Statement Import Log",
|
||||||
|
|||||||
@@ -557,7 +557,7 @@ class BankStatementImportLog(Document):
|
|||||||
docname=self.name,
|
docname=self.name,
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.closing_balance and self.closing_balance > 0 and self.end_date:
|
if self.closing_balance is not None and self.end_date:
|
||||||
set_closing_balance_as_per_statement(
|
set_closing_balance_as_per_statement(
|
||||||
self.bank_account, frappe.utils.getdate(self.end_date), self.closing_balance
|
self.bank_account, frappe.utils.getdate(self.end_date), self.closing_balance
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user