mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
[ui test]sales and taxes charges template (#10116)
This commit is contained in:
committed by
Rushabh Mehta
parent
b8b01928d3
commit
b528411ed1
@@ -0,0 +1,26 @@
|
|||||||
|
QUnit.module('Sales Taxes and Charges Template');
|
||||||
|
|
||||||
|
QUnit.test("test sales taxes and charges template", function(assert) {
|
||||||
|
assert.expect(1);
|
||||||
|
let done = assert.async();
|
||||||
|
frappe.run_serially([
|
||||||
|
() => {
|
||||||
|
return frappe.tests.make('Sales Taxes and Charges Template', [
|
||||||
|
{title: "TEST In State GST"},
|
||||||
|
{taxes:[
|
||||||
|
[
|
||||||
|
{charge_type:"On Net Total"},
|
||||||
|
{account_head:"CGST - "+frappe.get_abbr(frappe.defaults.get_default("Company")) }
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{charge_type:"On Net Total"},
|
||||||
|
{account_head:"SGST - "+frappe.get_abbr(frappe.defaults.get_default("Company")) }
|
||||||
|
]
|
||||||
|
]}
|
||||||
|
]);
|
||||||
|
},
|
||||||
|
() => {assert.ok(cur_frm.doc.title=='TEST In State GST');},
|
||||||
|
() => done()
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
@@ -2,6 +2,7 @@ erpnext/tests/ui/make_fixtures.js #long
|
|||||||
erpnext/setup/doctype/company/test_company.js
|
erpnext/setup/doctype/company/test_company.js
|
||||||
erpnext/accounts/doctype/account/test_account.js
|
erpnext/accounts/doctype/account/test_account.js
|
||||||
erpnext/accounts/doctype/account/test_make_tax_account.js
|
erpnext/accounts/doctype/account/test_make_tax_account.js
|
||||||
|
erpnext/accounts/doctype/sales_taxes_and_charges_template/test_sales_taxes_and_charges_template.js
|
||||||
erpnext/crm/doctype/lead/test_lead.js
|
erpnext/crm/doctype/lead/test_lead.js
|
||||||
erpnext/crm/doctype/opportunity/test_opportunity.js
|
erpnext/crm/doctype/opportunity/test_opportunity.js
|
||||||
erpnext/selling/doctype/quotation/test_quotation.js
|
erpnext/selling/doctype/quotation/test_quotation.js
|
||||||
|
|||||||
Reference in New Issue
Block a user