1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for sorting payment list by source

This commit is contained in:
Hillel Coren 2016-10-07 10:13:08 +03:00
parent b024f99fbd
commit 6fad8c6bbb

View File

@ -52,7 +52,7 @@ class PaymentDatatable extends EntityDatatable
} }
], ],
[ [
'source', 'payment_type_id',
function ($model) { function ($model) {
$code = str_replace(' ', '', strtolower($model->payment_type)); $code = str_replace(' ', '', strtolower($model->payment_type));
$card_type = trans('texts.card_' . $code); $card_type = trans('texts.card_' . $code);