Prototype implementation
This commit is contained in:
parent
315143a6fc
commit
14b0bc6d01
160 changed files with 5731 additions and 42 deletions
48
vergabe_teilnahme/apps/preise/migrations/0001_initial.py
Normal file
48
vergabe_teilnahme/apps/preise/migrations/0001_initial.py
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Generated by Django 6.0.5 on 2026-05-08 10:33
|
||||
|
||||
import django.db.models.deletion
|
||||
from decimal import Decimal
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('ausschreibungen', '0001_initial'),
|
||||
('lose', '0001_initial'),
|
||||
('partner', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Preispunkt',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('leistungstyp', models.CharField(max_length=200)),
|
||||
('konkrete_leistung', models.CharField(max_length=400)),
|
||||
('mengeneinheit', models.CharField(default='Stück', max_length=50)),
|
||||
('waehrung', models.CharField(default='EUR', max_length=10)),
|
||||
('menge', models.DecimalField(blank=True, decimal_places=4, max_digits=14, null=True)),
|
||||
('einzelpreis', models.DecimalField(blank=True, decimal_places=2, max_digits=14, null=True)),
|
||||
('gesamtpreis', models.DecimalField(blank=True, decimal_places=2, max_digits=14, null=True)),
|
||||
('preisstand', models.DateField(blank=True, null=True)),
|
||||
('wiederkehrend', models.BooleanField(default=False)),
|
||||
('laufzeitbezug', models.CharField(blank=True, max_length=100)),
|
||||
('subunternehmeranteil', models.BooleanField(default=False)),
|
||||
('vergleichsgewicht', models.DecimalField(decimal_places=1, default=Decimal('1.0'), max_digits=3)),
|
||||
('gewichtungsbegruendung', models.TextField(blank=True)),
|
||||
('kommentar', models.TextField(blank=True)),
|
||||
('ausschreibung_gewonnen', models.BooleanField(null=True)),
|
||||
('ausschreibung', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='preispunkte', to='ausschreibungen.ausschreibung')),
|
||||
('los', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='preispunkte', to='lose.los')),
|
||||
('subunternehmer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='preispunkte', to='partner.subunternehmer')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Preispunkt',
|
||||
'verbose_name_plural': 'Preispunkte',
|
||||
'ordering': ['leistungstyp', 'konkrete_leistung'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue