fix: remove comments

This commit is contained in:
sonali
2023-01-09 20:07:24 +05:30
parent 12822f7c36
commit 917b2190aa
3 changed files with 12 additions and 14 deletions

View File

@@ -298,8 +298,6 @@ def auto_reconcile_vouchers(
"amount": r[4], "amount": r[4],
} }
) )
# vouchers = frappe.as_json(voucherss)
# vouchers = json.loads(voucherss)
transaction = frappe.get_doc("Bank Transaction", transaction.name) transaction = frappe.get_doc("Bank Transaction", transaction.name)
account = frappe.db.get_value("Bank Account", transaction.bank_account, "account") account = frappe.db.get_value("Bank Account", transaction.bank_account, "account")
matched_trans = 0 matched_trans = 0
@@ -331,7 +329,7 @@ def auto_reconcile_vouchers(
transaction.update_allocations() transaction.update_allocations()
matched_transaction_len = len(set(matched_transaction)) matched_transaction_len = len(set(matched_transaction))
if matched_transaction_len == 0: if matched_transaction_len == 0:
frappe.msgprint(_("There is no any matched reference number for reconciliation")) frappe.msgprint(_("No matching references found for auto reconciliation"))
elif matched_transaction_len == 1: elif matched_transaction_len == 1:
frappe.msgprint(_("{0} transaction is reconcilied").format(matched_transaction_len)) frappe.msgprint(_("{0} transaction is reconcilied").format(matched_transaction_len))
else: else: