fix: Travis
This commit is contained in:
parent
f9c4b20985
commit
359e934cd2
@ -200,6 +200,7 @@ class TestPurchaseOrder(unittest.TestCase):
|
|||||||
# add new item
|
# add new item
|
||||||
trans_item = json.dumps([{'item_code' : '_Test Item', 'rate' : 100, 'qty' : 2}])
|
trans_item = json.dumps([{'item_code' : '_Test Item', 'rate' : 100, 'qty' : 2}])
|
||||||
self.assertRaises(frappe.ValidationError, update_child_qty_rate,'Purchase Order', trans_item, po.name)
|
self.assertRaises(frappe.ValidationError, update_child_qty_rate,'Purchase Order', trans_item, po.name)
|
||||||
|
frappe.set_user("Administrator")
|
||||||
|
|
||||||
def test_update_qty(self):
|
def test_update_qty(self):
|
||||||
po = create_purchase_order()
|
po = create_purchase_order()
|
||||||
|
@ -1234,7 +1234,7 @@ def update_child_qty_rate(parent_doctype, trans_items, parent_doctype_name, chil
|
|||||||
if parent_doctype == 'Sales Order':
|
if parent_doctype == 'Sales Order':
|
||||||
prev_date, new_date = child_item.get("delivery_date"), d.get("delivery_date")
|
prev_date, new_date = child_item.get("delivery_date"), d.get("delivery_date")
|
||||||
elif parent_doctype == 'Purchase Order':
|
elif parent_doctype == 'Purchase Order':
|
||||||
prev_date, new_date = child_item.get("schedule_date") == d.get("schedule_date")
|
prev_date, new_date = child_item.get("schedule_date"), d.get("schedule_date")
|
||||||
|
|
||||||
rate_unchanged = prev_rate == new_rate
|
rate_unchanged = prev_rate == new_rate
|
||||||
qty_unchanged = prev_qty == new_qty
|
qty_unchanged = prev_qty == new_qty
|
||||||
|
Loading…
Reference in New Issue
Block a user