Accept conditional service calculation with versioned fiscal profile
This commit is contained in:
@@ -105,6 +105,7 @@ final class DocumentPreview
|
||||
'issuer' => ['name' => $issuer['name'], 'data' => $issuer['data']], 'client' => ['name' => $client['name'], 'data' => $client['data']],
|
||||
'data' => $billing['data'], 'prepared' => $prepared['data'], 'base_amount' => $billing['base_amount'], 'pending' => $pending,
|
||||
'calculation' => app(ServiceCalculation::class)->read($draft, $actor),
|
||||
'fiscal_history' => $this->permissions->has($actor,$scope['tenant_id'],$scope['company_id'],'service_fiscal.view') ? app(ServiceFiscal::class)->history($draft,$actor) : [],
|
||||
'payments' => $payments, 'logo' => $logo, 'contacts' => $model['data']['show_contacts'] ? $model['data']['contact_text'] : null,
|
||||
'observations' => $model['data']['show_observations'] ? $model['data']['observations'] : null,
|
||||
'versions' => ['issuer' => $issuer['version'], 'client' => $client['version'], 'company_name' => $issuer['name'], 'client_name' => $client['name'], 'instructions' => $paymentVersions, 'model' => $model['version']]];
|
||||
|
||||
Reference in New Issue
Block a user