[UI Test] Stock Entry for material issue with serialize item (#10592)
This commit is contained in:
parent
a896e52489
commit
1458d7fea6
@ -0,0 +1,35 @@
|
|||||||
|
QUnit.module('Stock');
|
||||||
|
|
||||||
|
QUnit.test("test material issue", function(assert) {
|
||||||
|
assert.expect(2);
|
||||||
|
let done = assert.async();
|
||||||
|
frappe.run_serially([
|
||||||
|
() => {
|
||||||
|
return frappe.tests.make('Stock Entry', [
|
||||||
|
{from_warehouse:'Stores - '+frappe.get_abbr(frappe.defaults.get_default('Company'))},
|
||||||
|
{items: [
|
||||||
|
[
|
||||||
|
{'item_code': 'Test Product 4'},
|
||||||
|
{'qty': 1},
|
||||||
|
{'batch_no':'TEST-BATCH-001'},
|
||||||
|
{'serial_no':'Test-Product-003'},
|
||||||
|
{'basic_rate':100},
|
||||||
|
]
|
||||||
|
]},
|
||||||
|
]);
|
||||||
|
},
|
||||||
|
() => cur_frm.save(),
|
||||||
|
() => frappe.click_button('Close'),
|
||||||
|
() => frappe.click_button('Update Rate and Availability'),
|
||||||
|
() => {
|
||||||
|
// get_item_details
|
||||||
|
assert.ok(cur_frm.doc.items[0].item_name=='Test Product 4', "Item name correct");
|
||||||
|
assert.ok(cur_frm.doc.total_outgoing_value==100, " Outgoing Value correct");
|
||||||
|
},
|
||||||
|
() => frappe.tests.click_button('Submit'),
|
||||||
|
() => frappe.tests.click_button('Yes'),
|
||||||
|
() => frappe.timeout(0.3),
|
||||||
|
() => done()
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
@ -122,3 +122,4 @@ erpnext/accounts/doctype/bank_reconciliation/test_bank_reconciliation.js
|
|||||||
erpnext/stock/doctype/stock_entry/tests/test_stock_entry_for_material_receipt_for_serialize_item.js
|
erpnext/stock/doctype/stock_entry/tests/test_stock_entry_for_material_receipt_for_serialize_item.js
|
||||||
erpnext/stock/doctype/stock_entry/tests/test_stock_entry_for_material_transfer_for_manufacture.js
|
erpnext/stock/doctype/stock_entry/tests/test_stock_entry_for_material_transfer_for_manufacture.js
|
||||||
erpnext/stock/doctype/stock_entry/tests/test_stock_entry_for_subcontract.js
|
erpnext/stock/doctype/stock_entry/tests/test_stock_entry_for_subcontract.js
|
||||||
|
erpnext/stock/doctype/stock_entry/tests/test_stock_entry_for_material_issue_with_serialize_item.js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user