mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add migration file
This commit is contained in:
parent
43c4e936a7
commit
5d703af932
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
@ -767,7 +767,13 @@ class PurchaseOrderLineItem(OrderLineItem):
|
|||||||
help_text=_("Supplier part"),
|
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(
|
purchase_price = InvenTreeModelMoneyField(
|
||||||
max_digits=19,
|
max_digits=19,
|
||||||
|
Loading…
Reference in New Issue
Block a user