ДО формируются под сделку
All checks were successful
Deploy MES Core / deploy (push) Successful in 12s
All checks were successful
Deploy MES Core / deploy (push) Successful in 12s
This commit is contained in:
@@ -5350,6 +5350,8 @@ class ClosingView(LoginRequiredMixin, TemplateView):
|
||||
messages.error(request, 'Заполни списание: укажи, какие единицы на складе использованы и в каком количестве.')
|
||||
return redirect(f"{reverse_lazy('closing')}?machine_id={machine_id}&material_id={material_id}")
|
||||
|
||||
inherit_deal_for_remnants = bool(request.POST.get('inherit_deal_for_remnants'))
|
||||
|
||||
try:
|
||||
apply_closing_workitems(
|
||||
user_id=request.user.id,
|
||||
@@ -5358,6 +5360,7 @@ class ClosingView(LoginRequiredMixin, TemplateView):
|
||||
item_actions=item_actions,
|
||||
consumptions=consumptions,
|
||||
remnants=remnants,
|
||||
inherit_deal_for_remnants=inherit_deal_for_remnants,
|
||||
)
|
||||
messages.success(request, 'Закрытие выполнено.')
|
||||
except Exception as e:
|
||||
@@ -5969,6 +5972,8 @@ class LegacyClosingView(LoginRequiredMixin, TemplateView):
|
||||
if idx > 60:
|
||||
break
|
||||
|
||||
inherit_deal_for_remnants = bool(request.POST.get('inherit_deal_for_remnants'))
|
||||
|
||||
try:
|
||||
apply_closing(
|
||||
user_id=request.user.id,
|
||||
@@ -5977,6 +5982,7 @@ class LegacyClosingView(LoginRequiredMixin, TemplateView):
|
||||
item_actions=item_actions,
|
||||
consumptions=consumptions,
|
||||
remnants=remnants,
|
||||
inherit_deal_for_remnants=inherit_deal_for_remnants,
|
||||
)
|
||||
messages.success(request, 'Сохранено.')
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user