Coverage for src/backend/InvenTree/order/migrations/0078_auto_20230304_0721.py: 100%
7 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
1# Generated by Django 3.2.18 on 2023-03-04 07:21
3import InvenTree.fields
4from django.db import migrations
5import djmoney.models.fields
6import djmoney.models.validators
9class Migration(migrations.Migration):
11 dependencies = [
12 ('order', '0077_auto_20230129_0154'),
13 ]
15 operations = [
16 migrations.AddField(
17 model_name='purchaseorder',
18 name='total_price',
19 field=InvenTree.fields.InvenTreeModelMoneyField(blank=True, currency_choices=[], decimal_places=6, default_currency='', help_text='Total price for this order', max_digits=19, null=True, validators=[djmoney.models.validators.MinMoneyValidator(0)], verbose_name='Total Price'),
20 ),
21 migrations.AddField(
22 model_name='purchaseorder',
23 name='total_price_currency',
24 field=djmoney.models.fields.CurrencyField(choices=[], default='', editable=False, max_length=3),
25 ),
26 migrations.AddField(
27 model_name='salesorder',
28 name='total_price',
29 field=InvenTree.fields.InvenTreeModelMoneyField(blank=True, currency_choices=[], decimal_places=6, default_currency='', help_text='Total price for this order', max_digits=19, null=True, validators=[djmoney.models.validators.MinMoneyValidator(0)], verbose_name='Total Price'),
30 ),
31 migrations.AddField(
32 model_name='salesorder',
33 name='total_price_currency',
34 field=djmoney.models.fields.CurrencyField(choices=[], default='', editable=False, max_length=3),
35 ),
36 ]