mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:54:30 -04:00
Fixes for PDF Previews
This commit is contained in:
parent
4b48fccbef
commit
6b78cd7a63
@ -122,7 +122,9 @@ class WebhookSingle implements ShouldQueue
|
||||
$client = new Client(['headers' => array_merge($base_headers, $headers)]);
|
||||
|
||||
try {
|
||||
$response = $client->{$subscription->rest_method}($subscription->target_url, [
|
||||
$verb = $subscription->rest_method ?? 'post';
|
||||
|
||||
$response = $client->{$verb}($subscription->target_url, [
|
||||
RequestOptions::JSON => $data, // or 'json' => [...]
|
||||
]);
|
||||
|
||||
|
@ -653,7 +653,7 @@ class PdfBuilder
|
||||
$data[$key][$table_type.".{$_table_type}4"] = strlen($item->custom_value4) >= 1 ? $helpers->formatCustomFieldValue($this->service->company->custom_fields, "{$_table_type}4", $item->custom_value4, $this->service->config->currency_entity) : '';
|
||||
|
||||
if ($item->quantity > 0 || $item->cost > 0) {
|
||||
$data[$key][$table_type.'.quantity'] = $this->service->config->formatMoney($item->quantity);
|
||||
$data[$key][$table_type.'.quantity'] = $item->quantity;
|
||||
|
||||
$data[$key][$table_type.'.unit_cost'] = $this->service->config->formatMoney($item->cost);
|
||||
|
||||
|
@ -232,6 +232,9 @@ class PdfMock
|
||||
'$secondary_font_url' => 'https://fonts.googleapis.com/css2?family=Roboto&display=swap',
|
||||
'$contact.signature' => '',
|
||||
'$company_logo_size' => $this->settings->company_logo_size ?: '65%',
|
||||
'$product.tax_rate1' => ctrans('texts.tax'),
|
||||
'$product.tax_rate2' => ctrans('texts.tax'),
|
||||
'$product.tax_rate3' => ctrans('texts.tax'),
|
||||
'$product.tax_name1' => '',
|
||||
'$product.tax_name2' => '',
|
||||
'$product.tax_name3' => '',
|
||||
@ -688,8 +691,11 @@ class PdfMock
|
||||
'$net_subtotal_label' => ctrans('texts.net_subtotal'),
|
||||
'$credit.total_label' => ctrans('texts.total'),
|
||||
'$quote.amount_label' => ctrans('texts.amount'),
|
||||
'$description_label' => ctrans('texts.description'),
|
||||
'$product.tax_rate1_label' => ctrans('texts.tax'),
|
||||
'$product.tax_rate2_label' => ctrans('texts.tax'),
|
||||
'$product.tax_rate3_label' => ctrans('texts.tax'),
|
||||
'$product.tax_label' => ctrans('texts.tax'),
|
||||
'$description_label' => ctrans('texts.description'),
|
||||
'$your_entity_label' => ctrans("texts.your_{$this->entity_string}"),
|
||||
'$view_button_label' => ctrans('texts.view'),
|
||||
'$status_logo_label' => ctrans('texts.logo'),
|
||||
@ -782,9 +788,9 @@ class PdfMock
|
||||
'$amount_label' => ctrans('texts.amount'),
|
||||
'$notes_label' => ctrans('texts.notes'),
|
||||
'$terms_label' => ctrans('texts.terms'),
|
||||
'tax_rate1_label' => ctrans('texts.tax_rate1'),
|
||||
'tax_rate2_label' => ctrans('texts.tax_rate2'),
|
||||
'tax_rate3_label' => ctrans('texts.tax_rate3'),
|
||||
'$tax_rate1_label' => ctrans('texts.tax_rate1'),
|
||||
'$tax_rate2_label' => ctrans('texts.tax_rate2'),
|
||||
'$tax_rate3_label' => ctrans('texts.tax_rate3'),
|
||||
'$phone_label' => ctrans('texts.phone'),
|
||||
'$email_label' => ctrans('texts.email'),
|
||||
'$taxes_label' => ctrans('texts.taxes'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user