@@ -23,6 +23,7 @@ class ProposalOpeningWorkflow
|
||||
...$quote->only(['id', 'reference', 'currency', 'subtotal_minor', 'tax_minor', 'total_minor', 'delivery_days', 'valid_until', 'payment_terms']),
|
||||
'supplier' => $quote->supplier?->only(['id', 'name', 'nuit']),
|
||||
...($quote->commercial_terms === null ? [] : ['commercial_terms' => $quote->commercial_terms]),
|
||||
...($quote->exchange_basis === null ? [] : ['exchange_basis' => $quote->exchange_basis]),
|
||||
'items' => $quote->items->map(fn ($item) => $item->only(['requisition_item_id', 'description', 'quantity', 'unit_price_minor', 'tax_rate', 'subtotal_minor', 'tax_minor', 'total_minor']))->all(),
|
||||
])->all());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user