From c87c1dbbbfffa45f2bd0b594c2e1511230d8f75e Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Mon, 21 Aug 2017 14:10:04 +0530 Subject: [PATCH] converted production tests to INR from USD (#10472) --- .../doctype/production_order/test_production_order.js | 8 ++++---- .../doctype/company/tests/test_company_production.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/manufacturing/doctype/production_order/test_production_order.js b/erpnext/manufacturing/doctype/production_order/test_production_order.js index 47fd150a81..a1e910a5de 100644 --- a/erpnext/manufacturing/doctype/production_order/test_production_order.js +++ b/erpnext/manufacturing/doctype/production_order/test_production_order.js @@ -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), diff --git a/erpnext/setup/doctype/company/tests/test_company_production.js b/erpnext/setup/doctype/company/tests/test_company_production.js index 73bd710e23..b73af1dd98 100644 --- a/erpnext/setup/doctype/company/tests/test_company_production.js +++ b/erpnext/setup/doctype/company/tests/test_company_production.js @@ -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),