Skip to content

Commit

Permalink
V2.1.38
Browse files Browse the repository at this point in the history
  • Loading branch information
Singosgu committed Jun 30, 2023
1 parent 7f1b9d7 commit 2a0c85b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions asn/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ def create(self, request, pk):
mode_code=qs.asn_code,
bin_name=str(data['bin_name']),
goods_code=str(data['goods_code']),
goods_desc=goods_qty_change.goods_desc,
goods_qty=int(data['qty']),
creater=str(staff_name)
)
Expand All @@ -893,7 +894,7 @@ def create(self, request, pk):
goods_qty=int(data['qty']),
creater=str(staff_name)
)
if bin_detail.empty_label == True:
if bin_detail.empty_label is True:
bin_detail.empty_label = False
bin_detail.save()
elif move_qty == 0:
Expand All @@ -914,6 +915,7 @@ def create(self, request, pk):
mode_code=qs.asn_code,
bin_name=str(data['bin_name']),
goods_code=str(data['goods_code']),
goods_desc=goods_qty_change.goods_desc,
goods_qty=int(data['qty']),
creater=str(staff_name)
)
Expand Down Expand Up @@ -960,7 +962,7 @@ def create(self, request, pk):
bin_property=bin_detail.bin_property,
t_code=Md5.md5(str(data['goods_code'])),
create_time=qs.create_time)
if bin_detail.empty_label == True:
if bin_detail.empty_label is True:
bin_detail.empty_label = False
bin_detail.save()
elif move_qty < 0:
Expand Down Expand Up @@ -1021,6 +1023,7 @@ def update(self, request, *args, **kwargs):
mode_code=qs.asn_code,
bin_name=str(data['bin_name']),
goods_code=str(data['res_data'][i]['goods_code']),
goods_desc=goods_qty_change.goods_desc,
goods_qty=int(data['res_data'][i]['qty']),
creater=str(staff_name)
)
Expand Down Expand Up @@ -1068,6 +1071,7 @@ def update(self, request, *args, **kwargs):
mode_code=qs.asn_code,
bin_name=str(data['bin_name']),
goods_code=str(data['res_data'][i]['goods_code']),
goods_desc=goods_qty_change.goods_desc,
goods_qty=int(data['res_data'][i]['qty']),
creater=str(staff_name)
)
Expand Down
4 changes: 2 additions & 2 deletions dn/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def create(self, request, *args, **kwargs):
goods_qty_change.picked_stock
if can_pick_qty > 0:
if dn_detail_list[i].goods_qty > can_pick_qty:
if qs[v].back_order_label == False:
if qs[v].back_order_label is False:
dn_pick_qty = dn_detail_list[i].pick_qty
for j in range(len(goods_bin_stock_list)):
bin_can_pick_qty = goods_bin_stock_list[j].goods_qty - \
Expand Down Expand Up @@ -937,7 +937,7 @@ def create(self, request, *args, **kwargs):
else:
continue
elif can_pick_qty == 0:
if qs[v].back_order_label == False:
if qs[v].back_order_label is False:
goods_qty_change.back_order_stock = goods_qty_change.back_order_stock + dn_detail_list[
i].goods_qty
back_order_goods_volume = round(goods_detail.unit_volume * dn_detail_list[i].goods_qty, 4)
Expand Down
8 changes: 4 additions & 4 deletions stock/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def create(self, request, pk):
t_code=Md5.md5(str(data['goods_code'])),
create_time=qs.create_time
)
if move_to_bin_detail.empty_label == True:
if move_to_bin_detail.empty_label is True:
move_to_bin_detail.empty_label = False
move_to_bin_detail.save()
goods_qty_change.save()
Expand Down Expand Up @@ -227,7 +227,7 @@ def create(self, request, pk):
t_code=Md5.md5(str(data['goods_code'])),
create_time=qs.create_time
)
if move_to_bin_detail.empty_label == True:
if move_to_bin_detail.empty_label is True:
move_to_bin_detail.empty_label = False
move_to_bin_detail.save()
goods_qty_change.save()
Expand Down Expand Up @@ -339,7 +339,7 @@ def update(self, request, *args, **kwargs):
t_code=Md5.md5(str(data[j]['goods_code'])),
create_time=qs_project.create_time
)
if move_to_bin_detail.empty_label == True:
if move_to_bin_detail.empty_label is True:
move_to_bin_detail.empty_label = False
move_to_bin_detail.save()
goods_qty_change.save()
Expand Down Expand Up @@ -416,7 +416,7 @@ def update(self, request, *args, **kwargs):
t_code=Md5.md5(str(data[j]['goods_code'])),
create_time=qs_project.create_time
)
if move_to_bin_detail.empty_label == True:
if move_to_bin_detail.empty_label is True:
move_to_bin_detail.empty_label = False
move_to_bin_detail.save()
goods_qty_change.save()
Expand Down

0 comments on commit 2a0c85b

Please sign in to comment.