mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove some debug messages and fix PIP
This commit is contained in:
parent
77471cb89c
commit
ba1d2063af
@ -458,13 +458,11 @@ class SalesOrderLineItem(OrderLineItem):
|
|||||||
return query['allocated']
|
return query['allocated']
|
||||||
|
|
||||||
def is_fully_allocated(self):
|
def is_fully_allocated(self):
|
||||||
print("Line:", self.pk)
|
""" Return True if this line item is fully allocated """
|
||||||
print("Allocated:", self.allocated_quantity())
|
|
||||||
print("Quantity:", self.quantity)
|
|
||||||
|
|
||||||
return self.allocated_quantity() >= self.quantity
|
return self.allocated_quantity() >= self.quantity
|
||||||
|
|
||||||
def is_over_allocated(self):
|
def is_over_allocated(self):
|
||||||
|
""" Return True if this line item is over allocated """
|
||||||
return self.allocated_quantity() > self.quantity
|
return self.allocated_quantity() > self.quantity
|
||||||
|
|
||||||
|
|
||||||
|
@ -416,7 +416,6 @@ class SalesOrderCancel(AjaxUpdateView):
|
|||||||
else:
|
else:
|
||||||
valid = True
|
valid = True
|
||||||
|
|
||||||
|
|
||||||
if valid:
|
if valid:
|
||||||
if not order.cancel_order():
|
if not order.cancel_order():
|
||||||
form.non_field_errors = [_('Could not cancel order')]
|
form.non_field_errors = [_('Could not cancel order')]
|
||||||
@ -498,7 +497,6 @@ class PurchaseOrderComplete(AjaxUpdateView):
|
|||||||
return self.renderJsonResponse(request, form, data)
|
return self.renderJsonResponse(request, form, data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class SalesOrderShip(AjaxUpdateView):
|
class SalesOrderShip(AjaxUpdateView):
|
||||||
""" View for 'shipping' a SalesOrder """
|
""" View for 'shipping' a SalesOrder """
|
||||||
form_class = order_forms.ShipSalesOrderForm
|
form_class = order_forms.ShipSalesOrderForm
|
||||||
|
Loading…
Reference in New Issue
Block a user