Updates for quote item exports

This commit is contained in:
David Bomba 2023-07-16 20:51:21 +10:00
parent 6c3049f5cb
commit b3b3180667
2 changed files with 12 additions and 5 deletions

View File

@ -193,6 +193,10 @@ class BaseExport
];
protected array $quote_report_keys = [
'custom_value1' => 'quote.custom_value1',
'custom_value2' => 'quote.custom_value2',
'custom_value3' => 'quote.custom_value3',
'custom_value4' => 'quote.custom_value4',
"number" => "quote.number",
"amount" => "quote.amount",
"balance" => "quote.balance",
@ -817,6 +821,7 @@ class BaseExport
$header[] = "{$prefix}" . ctrans("texts.{$key}");
}
// nlog($header);
return $header;

View File

@ -77,11 +77,13 @@ class QuoteItemExport extends BaseExport
'tax_name2' => 'item.tax_name2',
'tax_name3' => 'item.tax_name3',
'line_total' => 'item.line_total',
// 'gross_line_total' => 'item.gross_line_total',
'custom_value1' => 'item.custom_value1',
'custom_value2' => 'item.custom_value2',
'custom_value3' => 'item.custom_value3',
'custom_value4' => 'item.custom_value4',
'gross_line_total' => 'item.gross_line_total',
'quote1' => 'item.custom_value1',
'quote2' => 'item.custom_value2',
'quote3' => 'item.custom_value3',
'quote4' => 'item.custom_value4',
'tax_category' => 'item.tax_id',
'type' => 'item.type_id',
];
private array $decorate_keys = [