Include WorkOrder.estimated_total for API

This commit is contained in:
Lance Edgar 2022-08-30 21:14:01 -05:00
parent 9ea103c0eb
commit 960d6279a9

View file

@ -55,6 +55,7 @@ class WorkOrderView(APIMasterView):
'id': workorder.id, 'id': workorder.id,
'customer_uuid': workorder.customer.uuid, 'customer_uuid': workorder.customer.uuid,
'customer_name': workorder.customer.name, 'customer_name': workorder.customer.name,
'estimated_total': workorder.estimated_total,
'notes': workorder.notes, 'notes': workorder.notes,
'status_code': workorder.status_code, 'status_code': workorder.status_code,
'status_label': self.enum.WORKORDER_STATUS[workorder.status_code], 'status_label': self.enum.WORKORDER_STATUS[workorder.status_code],