Codacy correction
This commit is contained in:
parent
9d31452c25
commit
899b9b1ea7
@ -4,7 +4,6 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import unittest
|
import unittest
|
||||||
import frappe
|
import frappe
|
||||||
import erpnext
|
|
||||||
from erpnext.accounts.report.sales_payment_summary.sales_payment_summary import get_mode_of_payments, get_mode_of_payment_details
|
from erpnext.accounts.report.sales_payment_summary.sales_payment_summary import get_mode_of_payments, get_mode_of_payment_details
|
||||||
from frappe.utils import nowdate
|
from frappe.utils import nowdate
|
||||||
from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry
|
from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry
|
||||||
@ -29,8 +28,8 @@ class TestSalesPaymentSummary(unittest.TestCase):
|
|||||||
new_doc.submit()
|
new_doc.submit()
|
||||||
try:
|
try:
|
||||||
new_doc.submit()
|
new_doc.submit()
|
||||||
except Exception:
|
except Exception as e:
|
||||||
pass
|
print(e)
|
||||||
|
|
||||||
if int(new_doc.name[-3:])%2 == 0:
|
if int(new_doc.name[-3:])%2 == 0:
|
||||||
bank_account = "_Test Cash - _TC"
|
bank_account = "_Test Cash - _TC"
|
||||||
@ -71,8 +70,8 @@ class TestSalesPaymentSummary(unittest.TestCase):
|
|||||||
new_doc.submit()
|
new_doc.submit()
|
||||||
try:
|
try:
|
||||||
new_doc.submit()
|
new_doc.submit()
|
||||||
except Exception:
|
except Exception as e:
|
||||||
pass
|
print(e)
|
||||||
|
|
||||||
if int(new_doc.name[-3:])%2 == 0:
|
if int(new_doc.name[-3:])%2 == 0:
|
||||||
bank_account = "_Test Cash - _TC"
|
bank_account = "_Test Cash - _TC"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user