test: added warehouse for TCS Item as it is a Stock Item (#24942)
This commit is contained in:
parent
8ee1146f72
commit
6ac11a04b0
@ -177,7 +177,7 @@ def cancel_invoices():
|
|||||||
|
|
||||||
for d in purchase_invoices:
|
for d in purchase_invoices:
|
||||||
frappe.get_doc('Purchase Invoice', d).cancel()
|
frappe.get_doc('Purchase Invoice', d).cancel()
|
||||||
|
|
||||||
for d in sales_invoices:
|
for d in sales_invoices:
|
||||||
frappe.get_doc('Sales Invoice', d).cancel()
|
frappe.get_doc('Sales Invoice', d).cancel()
|
||||||
|
|
||||||
@ -229,7 +229,8 @@ def create_sales_invoice(**args):
|
|||||||
'qty': args.qty or 1,
|
'qty': args.qty or 1,
|
||||||
'rate': args.rate or 10000,
|
'rate': args.rate or 10000,
|
||||||
'cost_center': 'Main - _TC',
|
'cost_center': 'Main - _TC',
|
||||||
'expense_account': 'Cost of Goods Sold - _TC'
|
'expense_account': 'Cost of Goods Sold - _TC',
|
||||||
|
'warehouse': args.warehouse or '_Test Warehouse - _TC'
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -353,4 +354,4 @@ def create_tax_with_holding_category():
|
|||||||
'company': '_Test Company',
|
'company': '_Test Company',
|
||||||
'account': 'TDS - _TC'
|
'account': 'TDS - _TC'
|
||||||
}]
|
}]
|
||||||
}).insert()
|
}).insert()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user