mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: Mandatory bank account error fix
This commit is contained in:
@@ -13,9 +13,11 @@ form_grid_templates = {
|
|||||||
|
|
||||||
class BankReconciliation(Document):
|
class BankReconciliation(Document):
|
||||||
def get_payment_entries(self):
|
def get_payment_entries(self):
|
||||||
if not (self.bank_account and self.from_date and self.to_date):
|
if not (self.from_date and self.to_date):
|
||||||
msgprint(_("Bank Account, From Date and To Date are Mandatory"))
|
frappe.throw(_("From Date and To Date are Mandatory"))
|
||||||
return
|
|
||||||
|
if not self.account:
|
||||||
|
frappe.throw(_("Account is mandatory to get payment entries"))
|
||||||
|
|
||||||
condition = ""
|
condition = ""
|
||||||
if not self.include_reconciled_entries:
|
if not self.include_reconciled_entries:
|
||||||
|
|||||||
Reference in New Issue
Block a user