Fix for sorting payment list by source

This commit is contained in:
Hillel Coren 2016-10-07 10:13:19 +03:00
parent 8545e9cff4
commit d8835a09c0

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);