mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 09:53:09 +00:00
Companywise default tax template (#12290)
* Companywise default tax template * Fix test cases
This commit is contained in:
committed by
Nabin Hait
parent
3f784a7a49
commit
bc2c83ee3c
@@ -15,7 +15,7 @@ QUnit.test("test delivery note", function(assert) {
|
||||
]},
|
||||
{shipping_address_name: 'Test1-Shipping'},
|
||||
{contact_person: 'Contact 1-Test Customer 1'},
|
||||
{taxes_and_charges: 'TEST In State GST'},
|
||||
{taxes_and_charges: 'TEST In State GST - FT'},
|
||||
{tc_name: 'Test Term 1'},
|
||||
{transporter_name:'TEST TRANSPORT'},
|
||||
{lr_no:'MH-04-FG 1111'}
|
||||
|
||||
@@ -17,7 +17,7 @@ QUnit.test("test Purchase Receipt", function(assert) {
|
||||
{'rejected_warehouse':'Work In Progress - '+frappe.get_abbr(frappe.defaults.get_default('Company'))},
|
||||
]
|
||||
]},
|
||||
{taxes_and_charges: 'TEST In State GST'},
|
||||
{taxes_and_charges: 'TEST In State GST - FT'},
|
||||
{tc_name: 'Test Term 1'},
|
||||
{terms: 'This is Test'}
|
||||
]);
|
||||
@@ -27,7 +27,7 @@ QUnit.test("test Purchase Receipt", function(assert) {
|
||||
// get_item_details
|
||||
assert.ok(cur_frm.doc.items[0].item_name=='Test Product 1', "Item name correct");
|
||||
// get tax details
|
||||
assert.ok(cur_frm.doc.taxes_and_charges=='TEST In State GST', "Tax details correct");
|
||||
assert.ok(cur_frm.doc.taxes_and_charges=='TEST In State GST - FT', "Tax details correct");
|
||||
// get tax account head details
|
||||
assert.ok(cur_frm.doc.taxes[0].account_head=='CGST - '+frappe.get_abbr(frappe.defaults.get_default('Company')), " Account Head abbr correct");
|
||||
// grand_total Calculated
|
||||
|
||||
Reference in New Issue
Block a user