diff --git a/InvenTree/order/migrations/0050_alter_purchaseorderlineitem_destination.py b/InvenTree/order/migrations/0050_alter_purchaseorderlineitem_destination.py new file mode 100644 index 0000000000..7c0620d053 --- /dev/null +++ b/InvenTree/order/migrations/0050_alter_purchaseorderlineitem_destination.py @@ -0,0 +1,21 @@ +# Generated by Django 3.2.4 on 2021-09-02 00:42 + +from django.db import migrations +import django.db.models.deletion +import mptt.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('stock', '0065_auto_20210701_0509'), + ('order', '0049_alter_purchaseorderlineitem_unique_together'), + ] + + operations = [ + migrations.AlterField( + model_name='purchaseorderlineitem', + name='destination', + field=mptt.fields.TreeForeignKey(blank=True, help_text='Where does the Purchaser want this item to be stored?', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='po_lines', to='stock.stocklocation', verbose_name='Destination'), + ), + ] diff --git a/InvenTree/order/models.py b/InvenTree/order/models.py index ad2105bb44..2c2fd7c232 100644 --- a/InvenTree/order/models.py +++ b/InvenTree/order/models.py @@ -767,7 +767,13 @@ class PurchaseOrderLineItem(OrderLineItem): help_text=_("Supplier part"), ) - received = models.DecimalField(decimal_places=5, max_digits=15, default=0, verbose_name=_('Received'), help_text=_('Number of items received')) + received = models.DecimalField( + decimal_places=5, + max_digits=15, + default=0, + verbose_name=_('Received'), + help_text=_('Number of items received') + ) purchase_price = InvenTreeModelMoneyField( max_digits=19,