quickfix inventory view
This commit is contained in:
1 parent
c7fb6102b0
commit
292235858e
1 file changed
+4
-1
+4
-1
@@ -39,7 +39,10 @@ class Product(models.Model):
|
|||||||
if self.inventory_amount <= sum_units:
|
if self.inventory_amount <= sum_units:
|
||||||
return up['unit_price']
|
return up['unit_price']
|
||||||
|
|
||||||
return unit_prices[0]['unit_price']
|
if len(unit_prices) > 0:
|
||||||
|
return unit_prices[0]['unit_price']
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def wholesale_value(self):
|
def wholesale_value(self):
|
||||||
|
|||||||
Reference in new issue
Block a user