Конкретно пересмотрел логику работы. Легаси вынесена в архив
All checks were successful
Deploy MES Core / deploy (push) Successful in 13s
All checks were successful
Deploy MES Core / deploy (push) Successful in 13s
This commit is contained in:
@@ -5,14 +5,14 @@ from shiftflow.services.bom_explosion import explode_deal
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "BOM Explosion для сделки: генерирует ProductionTask и MaterialRequirement."
|
||||
help = "BOM Explosion для сделки: генерирует ProductionTask и пересчитывает снабжение."
|
||||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument("deal_id", type=int)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
deal_id = int(options["deal_id"])
|
||||
stats = explode_deal(deal_id)
|
||||
stats = explode_deal(deal_id, create_tasks=True, create_procurement=True)
|
||||
|
||||
self.stdout.write(
|
||||
self.style.SUCCESS(
|
||||
|
||||
Reference in New Issue
Block a user