test: use Sales Expenses instead of VAT to test disabled account
This commit is contained in:
parent
12b7e14fde
commit
ff10f557c0
@ -3060,7 +3060,8 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
|
|
||||||
def test_sales_invoice_with_disabled_account(self):
|
def test_sales_invoice_with_disabled_account(self):
|
||||||
try:
|
try:
|
||||||
account = frappe.get_doc("Account", "VAT 5% - _TC")
|
account_name = "Sales Expenses - _TC"
|
||||||
|
account = frappe.get_doc("Account", account_name)
|
||||||
account.disabled = 1
|
account.disabled = 1
|
||||||
account.save()
|
account.save()
|
||||||
|
|
||||||
@ -3072,10 +3073,10 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
"taxes",
|
"taxes",
|
||||||
{
|
{
|
||||||
"charge_type": "On Net Total",
|
"charge_type": "On Net Total",
|
||||||
"account_head": "VAT 5% - _TC",
|
"account_head": account_name,
|
||||||
"cost_center": "Main - _TC",
|
"cost_center": "Main - _TC",
|
||||||
"description": "VAT @ 5.0",
|
"description": "Commission",
|
||||||
"rate": 9,
|
"rate": 5,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
si.save()
|
si.save()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user