Add client currency as default props

This commit is contained in:
David Bomba 2024-03-28 07:47:56 +11:00
parent 53d1c55acf
commit 1b66a42578

View File

@ -134,6 +134,7 @@ class BaseExport
protected array $invoice_report_keys = [ protected array $invoice_report_keys = [
'name' => 'client.name', 'name' => 'client.name',
"currency" => "client.currency_id",
"invoice_number" => "invoice.number", "invoice_number" => "invoice.number",
"amount" => "invoice.amount", "amount" => "invoice.amount",
"balance" => "invoice.balance", "balance" => "invoice.balance",
@ -174,6 +175,8 @@ class BaseExport
]; ];
protected array $recurring_invoice_report_keys = [ protected array $recurring_invoice_report_keys = [
'name' => 'client.name',
"currency" => "client.currency_id",
"invoice_number" => "recurring_invoice.number", "invoice_number" => "recurring_invoice.number",
"amount" => "recurring_invoice.amount", "amount" => "recurring_invoice.amount",
"balance" => "recurring_invoice.balance", "balance" => "recurring_invoice.balance",
@ -298,6 +301,8 @@ class BaseExport
]; ];
protected array $quote_report_keys = [ protected array $quote_report_keys = [
'name' => 'client.name',
"currency" => "client.currency_id",
'custom_value1' => 'quote.custom_value1', 'custom_value1' => 'quote.custom_value1',
'custom_value2' => 'quote.custom_value2', 'custom_value2' => 'quote.custom_value2',
'custom_value3' => 'quote.custom_value3', 'custom_value3' => 'quote.custom_value3',
@ -336,6 +341,8 @@ class BaseExport
]; ];
protected array $credit_report_keys = [ protected array $credit_report_keys = [
'name' => 'client.name',
"currency" => "client.currency_id",
"credit_number" => "credit.number", "credit_number" => "credit.number",
"amount" => "credit.amount", "amount" => "credit.amount",
"balance" => "credit.balance", "balance" => "credit.balance",
@ -368,6 +375,7 @@ class BaseExport
]; ];
protected array $payment_report_keys = [ protected array $payment_report_keys = [
'name' => 'client.name',
"date" => "payment.date", "date" => "payment.date",
"amount" => "payment.amount", "amount" => "payment.amount",
"refunded" => "payment.refunded", "refunded" => "payment.refunded",
@ -385,7 +393,6 @@ class BaseExport
"custom_value4" => "payment.custom_value4", "custom_value4" => "payment.custom_value4",
"user" => "payment.user_id", "user" => "payment.user_id",
"assigned_user" => "payment.assigned_user_id", "assigned_user" => "payment.assigned_user_id",
]; ];
protected array $expense_report_keys = [ protected array $expense_report_keys = [