From 89a243f88cb4383e4cce60b50c7981d6d03214d1 Mon Sep 17 00:00:00 2001 From: Maikel Reyes Date: Sat, 7 Mar 2020 00:14:31 -0500 Subject: [PATCH] Fin aging fields for statements --- app/Jobs/Client/GenerateStatementData.php | 2 +- resources/assets/js/pdf.pdfmake.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Client/GenerateStatementData.php b/app/Jobs/Client/GenerateStatementData.php index da73f28e44b5..9eb6c635adb5 100644 --- a/app/Jobs/Client/GenerateStatementData.php +++ b/app/Jobs/Client/GenerateStatementData.php @@ -151,7 +151,7 @@ class GenerateStatementData $item->product_key = $ageGroups['age_group_0']; $item->notes = $ageGroups['age_group_30']; $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->invoice_item_type_id = 4; $data->push($item); diff --git a/resources/assets/js/pdf.pdfmake.js b/resources/assets/js/pdf.pdfmake.js index 08c8f3d62052..16f18f958478 100644 --- a/resources/assets/js/pdf.pdfmake.js +++ b/resources/assets/js/pdf.pdfmake.js @@ -596,7 +596,7 @@ NINJA.statementAging = function(invoice) { {text: formatMoneyInvoice(item.product_key, invoice), style:['subtotals', 'odd', 'firstColumn']}, {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_value2, invoice), style:['subtotals', 'odd']}, {text: formatMoneyInvoice(item.cost, invoice), style:['subtotals', 'odd', 'lastColumn']}, ]); }