diff --git a/InvenTree/order/forms.py b/InvenTree/order/forms.py index 08e9a6f740..c7942e3549 100644 --- a/InvenTree/order/forms.py +++ b/InvenTree/order/forms.py @@ -47,5 +47,5 @@ class EditPurchaseOrderLineItemForm(HelperForm): 'part', 'quantity', 'reference', - 'received' + 'notes', ] diff --git a/InvenTree/order/migrations/0010_purchaseorderlineitem_notes.py b/InvenTree/order/migrations/0010_purchaseorderlineitem_notes.py new file mode 100644 index 0000000000..a38a564041 --- /dev/null +++ b/InvenTree/order/migrations/0010_purchaseorderlineitem_notes.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.2 on 2019-06-13 11:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('order', '0009_auto_20190606_2133'), + ] + + operations = [ + migrations.AddField( + model_name='purchaseorderlineitem', + name='notes', + field=models.CharField(blank=True, help_text='Line item notes', max_length=500), + ), + ] diff --git a/InvenTree/order/models.py b/InvenTree/order/models.py index 27f57faa87..e4417f939a 100644 --- a/InvenTree/order/models.py +++ b/InvenTree/order/models.py @@ -162,6 +162,8 @@ class OrderLineItem(models.Model): quantity = models.PositiveIntegerField(validators=[MinValueValidator(0)], default=1, help_text=_('Item quantity')) reference = models.CharField(max_length=100, blank=True, help_text=_('Line item reference')) + + notes = models.CharField(max_length=500, blank=True, help_text=_('Line item notes')) class PurchaseOrderLineItem(OrderLineItem): diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 9f5c7a588e..16bf09f7e1 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -82,6 +82,7 @@ InvenTree | {{ order }} {% if not order.status == OrderStatus.PENDING %}