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

Fin aging fields for statements

This commit is contained in:
Maikel Reyes 2020-03-07 00:14:31 -05:00
parent 9070dfe55b
commit 89a243f88c
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ class GenerateStatementData
$item->product_key = $ageGroups['age_group_0']; $item->product_key = $ageGroups['age_group_0'];
$item->notes = $ageGroups['age_group_30']; $item->notes = $ageGroups['age_group_30'];
$item->custom_value1 = $ageGroups['age_group_60']; $item->custom_value1 = $ageGroups['age_group_60'];
$item->custom_value1 = $ageGroups['age_group_90']; $item->custom_value2 = $ageGroups['age_group_90'];
$item->cost = $ageGroups['age_group_120']; $item->cost = $ageGroups['age_group_120'];
$item->invoice_item_type_id = 4; $item->invoice_item_type_id = 4;
$data->push($item); $data->push($item);

View File

@ -596,7 +596,7 @@ NINJA.statementAging = function(invoice) {
{text: formatMoneyInvoice(item.product_key, invoice), style:['subtotals', 'odd', 'firstColumn']}, {text: formatMoneyInvoice(item.product_key, invoice), style:['subtotals', 'odd', 'firstColumn']},
{text: formatMoneyInvoice(item.notes, invoice), style:['subtotals', 'odd']}, {text: formatMoneyInvoice(item.notes, invoice), style:['subtotals', 'odd']},
{text: formatMoneyInvoice(item.custom_value1, invoice), style:['subtotals', 'odd']}, {text: formatMoneyInvoice(item.custom_value1, invoice), style:['subtotals', 'odd']},
{text: formatMoneyInvoice(item.custom_value1, invoice), style:['subtotals', 'odd']}, {text: formatMoneyInvoice(item.custom_value2, invoice), style:['subtotals', 'odd']},
{text: formatMoneyInvoice(item.cost, invoice), style:['subtotals', 'odd', 'lastColumn']}, {text: formatMoneyInvoice(item.cost, invoice), style:['subtotals', 'odd', 'lastColumn']},
]); ]);
} }