converted production tests to INR from USD (#10472)

This commit is contained in:
Ameya Shenoy 2017-08-21 14:10:04 +05:30 committed by Rushabh Mehta
parent 575ab3ab70
commit c87c1dbbbf
2 changed files with 5 additions and 5 deletions

View File

@ -111,12 +111,12 @@ QUnit.test("test: production order", function (assert) {
() => frappe.timeout(0.5),
() => click_make(),
() => {
assert.equal(cur_frm.doc.total_incoming_value, "99104.45",
"Incoming cost is correct "+cur_frm.doc.total_incoming_value); // Price of each item x5, values are in USD
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 INR
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,
"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.timeout(1),

View File

@ -10,7 +10,7 @@ QUnit.test("Test: Company", function (assert) {
() => frappe.timeout(1),
() => cur_frm.set_value("company_name", "Razer Blade"),
() => cur_frm.set_value("abbr", "RB"),
() => cur_frm.set_value("default_currency", "USD"),
() => cur_frm.set_value("default_currency", "INR"),
() => cur_frm.save(),
() => frappe.timeout(1),