Include PO number for receiving batch details via API
This commit is contained in:
parent
cc7b9ccb86
commit
e894d1d1f4
|
@ -59,7 +59,7 @@ class ReceivingBatchViews(APIBatchView):
|
|||
return query
|
||||
|
||||
def normalize(self, batch):
|
||||
data = super(ReceivingBatchViews, self).normalize(batch)
|
||||
data = super().normalize(batch)
|
||||
|
||||
data['vendor_uuid'] = batch.vendor.uuid
|
||||
data['vendor_display'] = str(batch.vendor)
|
||||
|
@ -67,6 +67,7 @@ class ReceivingBatchViews(APIBatchView):
|
|||
data['department_uuid'] = batch.department_uuid
|
||||
data['department_display'] = str(batch.department) if batch.department else None
|
||||
|
||||
data['po_number'] = batch.po_number
|
||||
data['po_total'] = batch.po_total
|
||||
data['invoice_total'] = batch.invoice_total
|
||||
data['invoice_total_calculated'] = batch.invoice_total_calculated
|
||||
|
|
Loading…
Reference in a new issue