1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Fixes for migration resources

This commit is contained in:
= 2021-05-16 20:04:01 +10:00
parent 60e21cc1be
commit f721cdbe64

View File

@ -547,8 +547,12 @@ info("get company");
'tax_name2' => $invoice->tax_name2,
'tax_rate1' => $invoice->tax_rate1,
'tax_rate2' => $invoice->tax_rate2,
'custom_value1' => $invoice->custom_value1 ?: '',
'custom_value2' => $invoice->custom_value2 ?: '',
'custom_surcharge1' => $invoice->custom_value1 ?: '',
'custom_surcharge2' => $invoice->custom_value2 ?: '',
'custom_value1' => $invoice->custom_text_value1 ?: '',
'custom_value2' => $invoice->custom_text_value2 ?: '',
'custom_surcharge_tax1' => $invoice->custom_taxes1 ?: '',
'custom_surcharge_tax2' => $invoice->custom_taxes2 ?: '',
'next_send_date' => null,
'amount' => $invoice->amount ?: 0,
'balance' => $invoice->balance ?: 0,
@ -1052,8 +1056,12 @@ info("get company");
'tax_name2' => $quote->tax_name2,
'tax_rate1' => $quote->tax_rate1,
'tax_rate2' => $quote->tax_rate2,
'custom_value1' => $quote->custom_value1 ?: '',
'custom_value2' => $quote->custom_value2 ?: '',
'custom_surcharge1' => $quote->custom_value1 ?: '',
'custom_surcharge2' => $quote->custom_value2 ?: '',
'custom_value1' => $quote->custom_text_value1 ?: '',
'custom_value2' => $quote->custom_text_value2 ?: '',
'custom_surcharge_tax1' => $quote->custom_taxes1 ?: '',
'custom_surcharge_tax2' => $quote->custom_taxes2 ?: '',
'next_send_date' => null,
'amount' => $quote->amount ?: 0,
'balance' => $quote->balance ?: 0,