From 08a022641c4e2c54929f9a73450395520a8612a1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 4 Feb 2014 15:16:22 +0200 Subject: [PATCH] bug fixes --- app/controllers/InvoiceController.php | 4 ++-- app/controllers/PaymentController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/InvoiceController.php b/app/controllers/InvoiceController.php index c94b3cf577fe..704769d7ebdb 100755 --- a/app/controllers/InvoiceController.php +++ b/app/controllers/InvoiceController.php @@ -51,11 +51,11 @@ class InvoiceController extends \BaseController { $table->addColumn('invoice_number', function($model) { return link_to('invoices/' . $model->public_id . '/edit', $model->invoice_number); }); if (!$clientPublicId) { - $table->addColumn('client', function($model) { return link_to('clients/' . $model->client_public_id, Utils::getClientDisplayName($model)); }); + $table->addColumn('client_name', function($model) { return link_to('clients/' . $model->client_public_id, Utils::getClientDisplayName($model)); }); } return $table->addColumn('invoice_date', function($model) { return Utils::fromSqlDate($model->invoice_date); }) - ->addColumn('total', function($model) { return Utils::formatMoney($model->amount, $model->currency_id); }) + ->addColumn('amount', function($model) { return Utils::formatMoney($model->amount, $model->currency_id); }) ->addColumn('balance', function($model) { return Utils::formatMoney($model->balance, $model->currency_id); }) ->addColumn('due_date', function($model) { return Utils::fromSqlDate($model->due_date); }) ->addColumn('invoice_status_name', function($model) { return $model->invoice_status_name; }) diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index 86426eb43d8f..58b8aee8efa7 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -38,7 +38,7 @@ class PaymentController extends \BaseController } $table->addColumn('transaction_reference', function($model) { return $model->transaction_reference ? $model->transaction_reference : 'Manual entry'; }) - ->addColumn('method', function($model) { return $model->payment_type ? $model->payment_type : ($model->transaction_reference ? 'Online payment' : ''); }); + ->addColumn('payment_type', function($model) { return $model->payment_type ? $model->payment_type : ($model->transaction_reference ? 'Online payment' : ''); }); return $table->addColumn('amount', function($model) { return Utils::formatMoney($model->amount, $model->currency_id); }) ->addColumn('payment_date', function($model) { return Utils::dateToString($model->payment_date); })