Coverage for src/backend/InvenTree/order/migrations/0045_auto_20210504_1946.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 17:47 +0000

1# Generated by Django 3.2 on 2021-05-04 19:46 

2 

3from django.db import migrations 

4import common.currency 

5import djmoney.models.fields 

6 

7 

8class Migration(migrations.Migration): 

9 

10 dependencies = [ 

11 ('order', '0044_auto_20210404_2016'), 

12 ] 

13 

14 operations = [ 

15 migrations.AddField( 

16 model_name='salesorderlineitem', 

17 name='sale_price', 

18 field=djmoney.models.fields.MoneyField(blank=True, decimal_places=4, default_currency='', help_text='Unit sale price', max_digits=19, null=True, verbose_name='Sale Price'), 

19 ), 

20 migrations.AddField( 

21 model_name='salesorderlineitem', 

22 name='sale_price_currency', 

23 field=djmoney.models.fields.CurrencyField(choices=common.currency.currency_code_mappings(), default='', editable=False, max_length=3), 

24 ), 

25 ]