mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
Merge pull request #30528 from s-aga-r/is-subcontracted-fieldtype
refactor!: change "is_subcontracted" field type from "Select" to "Check"
This commit is contained in:
@@ -251,7 +251,7 @@ class TestBOM(FrappeTestCase):
|
||||
self.assertEqual(bom.items[2].rate, 0)
|
||||
# test in Purchase Order sourced_by_supplier is not added to Supplied Item
|
||||
po = create_purchase_order(
|
||||
item_code=item_code, qty=1, is_subcontracted="Yes", supplier_warehouse="_Test Warehouse 1 - _TC"
|
||||
item_code=item_code, qty=1, is_subcontracted=1, supplier_warehouse="_Test Warehouse 1 - _TC"
|
||||
)
|
||||
bom_items = sorted([d.item_code for d in bom.items if d.sourced_by_supplier != 1])
|
||||
supplied_items = sorted([d.rm_item_code for d in po.supplied_items])
|
||||
|
||||
@@ -501,7 +501,7 @@ class ProductionPlan(Document):
|
||||
po = frappe.new_doc("Purchase Order")
|
||||
po.supplier = supplier
|
||||
po.schedule_date = getdate(po_list[0].schedule_date) if po_list[0].schedule_date else nowdate()
|
||||
po.is_subcontracted = "Yes"
|
||||
po.is_subcontracted = 1
|
||||
for row in po_list:
|
||||
po_data = {
|
||||
"item_code": row.production_item,
|
||||
|
||||
Reference in New Issue
Block a user