converted production tests to INR from USD (#10472)
This commit is contained in:
parent
575ab3ab70
commit
c87c1dbbbf
@ -111,12 +111,12 @@ QUnit.test("test: production order", function (assert) {
|
|||||||
() => frappe.timeout(0.5),
|
() => frappe.timeout(0.5),
|
||||||
() => click_make(),
|
() => click_make(),
|
||||||
() => {
|
() => {
|
||||||
assert.equal(cur_frm.doc.total_incoming_value, "99104.45",
|
assert.equal(cur_frm.doc.total_incoming_value, "105700",
|
||||||
"Incoming cost is correct "+cur_frm.doc.total_incoming_value); // Price of each item x5, values are in USD
|
"Incoming cost is correct "+cur_frm.doc.total_incoming_value); // Price of each item x5, values are in INR
|
||||||
assert.equal(cur_frm.doc.total_outgoing_value, "99000",
|
assert.equal(cur_frm.doc.total_outgoing_value, "99000",
|
||||||
"Outgoing cost is correct"); // Price of each item x5, values are in USD
|
"Outgoing cost is correct"); // Price of each item x5, values are in INR
|
||||||
assert.equal(cur_frm.doc.total_incoming_value - cur_frm.doc.total_outgoing_value, cur_frm.doc.value_difference,
|
assert.equal(cur_frm.doc.total_incoming_value - cur_frm.doc.total_outgoing_value, cur_frm.doc.value_difference,
|
||||||
"Value difference is correct"); // Price of each item x5, values are in USD
|
"Value difference is correct"); // Price of each item x5, values are in INR
|
||||||
},
|
},
|
||||||
() => frappe.click_button("Save"),
|
() => frappe.click_button("Save"),
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
|
@ -10,7 +10,7 @@ QUnit.test("Test: Company", function (assert) {
|
|||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
() => cur_frm.set_value("company_name", "Razer Blade"),
|
() => cur_frm.set_value("company_name", "Razer Blade"),
|
||||||
() => cur_frm.set_value("abbr", "RB"),
|
() => cur_frm.set_value("abbr", "RB"),
|
||||||
() => cur_frm.set_value("default_currency", "USD"),
|
() => cur_frm.set_value("default_currency", "INR"),
|
||||||
() => cur_frm.save(),
|
() => cur_frm.save(),
|
||||||
() => frappe.timeout(1),
|
() => frappe.timeout(1),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user