Конкретно пересмотрел логику работы. Легаси вынесена в архив
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:
30
shiftflow/migrations/0031_procurementrequirement.py
Normal file
30
shiftflow/migrations/0031_procurementrequirement.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 6.0.3 on 2026-04-11 20:08
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('manufacturing', '0007_remove_productentity_route_delete_routestub'),
|
||||
('shiftflow', '0030_workitem_comment_alter_item_status_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ProcurementRequirement',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('required_qty', models.FloatField(verbose_name='Потребность (к закупке)')),
|
||||
('status', models.CharField(choices=[('to_order', 'К заказу'), ('ordered', 'Заказано'), ('closed', 'Закрыто')], default='to_order', max_length=20, verbose_name='Статус')),
|
||||
('component', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='manufacturing.productentity', verbose_name='Компонент (покупное/литье)')),
|
||||
('deal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shiftflow.deal', verbose_name='Сделка')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Потребность снабжения',
|
||||
'verbose_name_plural': 'Потребности снабжения',
|
||||
'unique_together': {('deal', 'component')},
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user