mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
Fixed codacy issues
This commit is contained in:
committed by
Nabin Hait
parent
bea7d9f919
commit
13218f7d76
@@ -14,15 +14,15 @@ QUnit.test("Test: Request for Quotation", function (assert) {
|
|||||||
() => cur_frm.set_value("transaction_date", "04-04-2017"),
|
() => cur_frm.set_value("transaction_date", "04-04-2017"),
|
||||||
() => cur_frm.set_value("company", "_Test Company"),
|
() => cur_frm.set_value("company", "_Test Company"),
|
||||||
// Add Suppliers
|
// Add Suppliers
|
||||||
() => {
|
() => {
|
||||||
cur_frm.fields_dict.suppliers.grid.grid_rows[0].toggle_view();
|
cur_frm.fields_dict.suppliers.grid.grid_rows[0].toggle_view();
|
||||||
},
|
},
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
() => {
|
() => {
|
||||||
cur_frm.fields_dict.suppliers.grid.grid_rows[0].doc.supplier = "_Test Supplier";
|
cur_frm.fields_dict.suppliers.grid.grid_rows[0].doc.supplier = "_Test Supplier";
|
||||||
frappe.click_check('Send Email');
|
frappe.click_check('Send Email');
|
||||||
cur_frm.cur_grid.frm.script_manager.trigger('supplier');
|
cur_frm.cur_grid.frm.script_manager.trigger('supplier');
|
||||||
},
|
},
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
() => {
|
() => {
|
||||||
cur_frm.cur_grid.toggle_view();
|
cur_frm.cur_grid.toggle_view();
|
||||||
@@ -35,7 +35,7 @@ QUnit.test("Test: Request for Quotation", function (assert) {
|
|||||||
},
|
},
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
() => {
|
() => {
|
||||||
cur_frm.fields_dict.suppliers.grid.grid_rows[1].doc.supplier = "_Test Supplier 1";
|
cur_frm.fields_dict.suppliers.grid.grid_rows[1].doc.supplier = "_Test Supplier 1";
|
||||||
frappe.click_check('Send Email');
|
frappe.click_check('Send Email');
|
||||||
cur_frm.cur_grid.frm.script_manager.trigger('supplier');
|
cur_frm.cur_grid.frm.script_manager.trigger('supplier');
|
||||||
},
|
},
|
||||||
@@ -44,18 +44,18 @@ QUnit.test("Test: Request for Quotation", function (assert) {
|
|||||||
cur_frm.cur_grid.toggle_view();
|
cur_frm.cur_grid.toggle_view();
|
||||||
},
|
},
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
//Add Item
|
// Add Item
|
||||||
() => {
|
() => {
|
||||||
cur_frm.fields_dict.items.grid.grid_rows[0].toggle_view();
|
cur_frm.fields_dict.items.grid.grid_rows[0].toggle_view();
|
||||||
},
|
},
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
() => {
|
() => {
|
||||||
cur_frm.fields_dict.items.grid.grid_rows[0].doc.item_code = "_Test Item";
|
cur_frm.fields_dict.items.grid.grid_rows[0].doc.item_code = "_Test Item";
|
||||||
frappe.set_control('item_code',"_Test Item");
|
frappe.set_control('item_code',"_Test Item");
|
||||||
frappe.set_control('qty',5);
|
frappe.set_control('qty',5);
|
||||||
frappe.set_control('schedule_date', "05-05-2017");
|
frappe.set_control('schedule_date', "05-05-2017");
|
||||||
cur_frm.cur_grid.frm.script_manager.trigger('supplier');
|
cur_frm.cur_grid.frm.script_manager.trigger('supplier');
|
||||||
},
|
},
|
||||||
() => frappe.timeout(2),
|
() => frappe.timeout(2),
|
||||||
() => {
|
() => {
|
||||||
cur_frm.cur_grid.toggle_view();
|
cur_frm.cur_grid.toggle_view();
|
||||||
@@ -85,7 +85,7 @@ QUnit.test("Test: Request for Quotation", function (assert) {
|
|||||||
},
|
},
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
() => {
|
() => {
|
||||||
frappe.click_check('No Quote');
|
frappe.click_check('No Quote');
|
||||||
},
|
},
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
() => {
|
() => {
|
||||||
@@ -126,7 +126,6 @@ QUnit.test("Test: Request for Quotation", function (assert) {
|
|||||||
() => {
|
() => {
|
||||||
assert.ok(cur_frm.fields_dict.suppliers.grid.grid_rows[1].doc.quote_status == "Received");
|
assert.ok(cur_frm.fields_dict.suppliers.grid.grid_rows[1].doc.quote_status == "Received");
|
||||||
assert.ok(cur_frm.fields_dict.suppliers.grid.grid_rows[0].doc.no_quote == 1);
|
assert.ok(cur_frm.fields_dict.suppliers.grid.grid_rows[0].doc.no_quote == 1);
|
||||||
console.log(cur_frm.fields_dict.suppliers.grid.grid_rows[1].doc);
|
|
||||||
},
|
},
|
||||||
() => done()
|
() => done()
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user