diff --git a/src/services/finance/invoices.js b/src/services/finance/invoices.js index 8d3b460..921cba6 100644 --- a/src/services/finance/invoices.js +++ b/src/services/finance/invoices.js @@ -87,8 +87,8 @@ export const listInvoicesByPropertiesRouteHandler = async ( export const getInvoiceRouteHandler = async (req, res) => { const id = req.params.id; const populateFields = [ - { path: 'to', strictPopulate: false }, - { path: 'from', strictPopulate: false }, + { path: 'to', strictPopulate: false, ref: 'toType' }, + { path: 'from', strictPopulate: false, ref: 'fromType' }, { path: 'order' }, { path: 'invoiceOrderItems.taxRate' }, { path: 'invoiceShipments.taxRate' },