mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Add additionallLineItems for POs
This commit is contained in:
parent
84a95aaadb
commit
0a1961bc31
@ -1011,6 +1011,21 @@ class PurchaseOrderLineItem(OrderLineItem):
|
||||
return max(r, 0)
|
||||
|
||||
|
||||
class PurchaseOrderAdditionalLineItem(OrderAdditionalLineItem):
|
||||
"""
|
||||
Model for a single AdditionalLineItem in a PurchaseOrder
|
||||
Attributes:
|
||||
order: Link to the PurchaseOrder that this line item belongs to
|
||||
title: title of line item
|
||||
sale_price: The unit sale price for this OrderLineItem
|
||||
"""
|
||||
@staticmethod
|
||||
def get_api_url():
|
||||
return reverse('api-po-additional-line-list')
|
||||
|
||||
order = models.ForeignKey(PurchaseOrder, on_delete=models.CASCADE, related_name='additional_lines', verbose_name=_('Order'), help_text=_('Purchase Order'))
|
||||
|
||||
|
||||
class SalesOrderLineItem(OrderLineItem):
|
||||
"""
|
||||
Model for a single LineItem in a SalesOrder
|
||||
|
Loading…
x
Reference in New Issue
Block a user