From 591ae5dc5c2937049fa15102af6a40b5dd06e279 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 29 Mar 2017 22:47:17 +1100 Subject: [PATCH] Single price field for supplier part --- InvenTree/supplier/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/supplier/models.py b/InvenTree/supplier/models.py index 968f2d011c..cb5859f432 100644 --- a/InvenTree/supplier/models.py +++ b/InvenTree/supplier/models.py @@ -44,7 +44,9 @@ class SupplierPart(models.Model): URL = models.URLField(blank=True) description = models.CharField(max_length=250, blank=True) - single_price = models.DecimalField(max_digits=10, decimal_places=3) + single_price = models.DecimalField(max_digits=10, + decimal_places=3, + default=0) # packaging that the part is supplied in, e.g. "Reel" packaging = models.CharField(max_length=50, blank=True)