mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-21 23:45:16 +00:00
moved the special stuff into the inherited view
This commit is contained in:
1 parent
b09f49aaa5
commit
c2a5e1fd23
2 files changed
+10
-14
No files matched your search
@@ -1586,3 +1586,11 @@ class LineItemPricing(PartPricing):
|
||||
return None
|
||||
else:
|
||||
return None
|
||||
|
||||
def get_quantity(self):
|
||||
""" Return set quantity in decimal format """
|
||||
qty = Decimal(self.request.GET.get('quantity', 1))
|
||||
if qty == 1:
|
||||
return Decimal(self.request.POST.get('quantity', 1))
|
||||
return qty
|
||||
|
||||
Reference in new issue
Block a user