mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Peppy fixes
This commit is contained in:
@ -190,7 +190,7 @@ class OrderParts(AjaxView):
|
||||
except SupplierPart.DoesNotExist:
|
||||
continue
|
||||
|
||||
if not supplier.name in suppliers:
|
||||
if supplier.name not in suppliers:
|
||||
supplier.order_items = []
|
||||
supplier.selected_purchase_order = None
|
||||
suppliers[supplier.name] = supplier
|
||||
@ -387,7 +387,7 @@ class OrderParts(AjaxView):
|
||||
|
||||
if form_step == 'select_parts':
|
||||
# No errors? Proceed to PO selection form
|
||||
if part_errors == False:
|
||||
if part_errors is False:
|
||||
self.ajax_template_name = 'order/order_wizard/select_pos.html'
|
||||
|
||||
else:
|
||||
@ -567,4 +567,4 @@ class POLineItemDelete(AjaxDeleteView):
|
||||
def get_data(self):
|
||||
return {
|
||||
'danger': 'Deleted line item',
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user