mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
style fixes
This commit is contained in:
parent
681e007092
commit
9a2d47cd53
@ -826,7 +826,6 @@ class PurchaseOrderLineItem(OrderLineItem):
|
||||
unique_together = (
|
||||
('order', 'part', 'quantity', 'purchase_price')
|
||||
)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def get_api_url():
|
||||
@ -834,6 +833,8 @@ class PurchaseOrderLineItem(OrderLineItem):
|
||||
|
||||
def clean(self):
|
||||
|
||||
super().clean()
|
||||
|
||||
if self.order.supplier and self.part:
|
||||
# Supplier part *must* point to the same supplier!
|
||||
if self.part.supplier != self.order.supplier:
|
||||
|
Loading…
Reference in New Issue
Block a user