@@ -882,37 +882,6 @@ def test_op_cost_calculation(self):
882882 s = frappe .get_doc (make_stock_entry_for_wo (wo_doc .name , "Manufacture" , 6 ))
883883 self .assertEqual (s .additional_costs [0 ].amount , 8 )
884884
885- for row in frappe .get_doc ("BOM" , self .work_order .bom_no ).items :
886- make_stock_entry (
887- item_code = row .item_code ,
888- target = "_Test Warehouse - _TC" ,
889- qty = 10 ,
890- basic_rate = 100 ,
891- )
892-
893- job_card = frappe .get_last_doc ("Job Card" , {"work_order" : self .work_order .name })
894- job_card .append ("secondary_items" , {"item_code" : "_Test Item" , "stock_qty" : 2 , "type" : "Scrap" })
895- job_card .append (
896- "time_logs" ,
897- {
898- "from_time" : "2009-01-01 12:06:25" ,
899- "to_time" : "2009-01-01 12:37:25" ,
900- "completed_qty" : job_card .for_quantity ,
901- },
902- )
903- job_card .save ()
904- job_card .submit ()
905-
906- from erpnext .manufacturing .doctype .work_order .work_order import (
907- make_stock_entry as make_stock_entry_for_wo ,
908- )
909-
910- s = frappe .get_doc (make_stock_entry_for_wo (self .work_order .name , "Manufacture" ))
911- s .submit ()
912-
913- self .assertEqual (s .items [3 ].item_code , "_Test Item" )
914- self .assertEqual (s .items [3 ].transfer_qty , 2 )
915-
916885
917886def create_bom_with_multiple_operations ():
918887 "Create a BOM with multiple operations and Material Transfer against Job Card"
0 commit comments