mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add "supplier_reference" field to PurchaseOrder
- This is the code that the Supplier uses for the particuarl sales order
This commit is contained in:
parent
44addc9d7f
commit
c12a482e4d
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2.10 on 2020-04-15 03:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('order', '0018_auto_20200406_0151'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='purchaseorder',
|
||||
name='supplier_reference',
|
||||
field=models.CharField(blank=True, help_text='Supplier order reference', max_length=64),
|
||||
),
|
||||
]
|
@ -119,7 +119,7 @@ class PurchaseOrder(Order):
|
||||
supplier: Reference to the company supplying the goods in the order
|
||||
received_by: User that received the goods
|
||||
"""
|
||||
|
||||
|
||||
ORDER_PREFIX = "PO"
|
||||
|
||||
supplier = models.ForeignKey(
|
||||
@ -131,6 +131,8 @@ class PurchaseOrder(Order):
|
||||
help_text=_('Company')
|
||||
)
|
||||
|
||||
supplier_reference = models.CharField(max_length=64, blank=True, help_text=_("Supplier order reference"))
|
||||
|
||||
received_by = models.ForeignKey(
|
||||
User,
|
||||
on_delete=models.SET_NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user