From bf711ec9c23f791831d1eb0e6798c20e97115dd7 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 4 Jan 2022 16:50:37 +0800 Subject: [PATCH] update_cutting_list_with_operation bug --- hb_server/apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/services.py b/hb_server/apps/wpm/services.py index 76ab0fd..72fbd10 100644 --- a/hb_server/apps/wpm/services.py +++ b/hb_server/apps/wpm/services.py @@ -161,7 +161,7 @@ class WpmServies(object): subproduction__subplan_subprod=i.subproduction_plan).first().material else: input_q = inputs.filter(subproduction_plan=i.subproduction_plan) # 同计划的消耗 - i.from_material = input_q.first().matrial + i.from_material = input_q.first().material count_cut = 0 from_batch = '' for m in input_q: