Working on gateway fees

This commit is contained in:
Hillel Coren 2017-03-16 22:56:13 +02:00
parent 0379bb61fa
commit be6c9035aa
4 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class AccountGatewayDatatable extends EntityDatatable
{ {
return [ return [
[ [
'name', 'gateway',
function ($model) { function ($model) {
if ($model->deleted_at) { if ($model->deleted_at) {
return $model->name; return $model->name;

View File

@ -23,6 +23,7 @@ class AccountGatewayRepository extends BaseRepository
'account_gateways.id', 'account_gateways.id',
'account_gateways.public_id', 'account_gateways.public_id',
'gateways.name', 'gateways.name',
'gateways.name as gateway',
'account_gateways.deleted_at', 'account_gateways.deleted_at',
'account_gateways.gateway_id', 'account_gateways.gateway_id',
'accounts.gateway_fee_location'); 'accounts.gateway_fee_location');

View File

@ -2416,6 +2416,7 @@ $LANG = array(
'gateway_fees' => 'Gateway Fees', 'gateway_fees' => 'Gateway Fees',
'fees_disabled' => 'Fees are disabled', 'fees_disabled' => 'Fees are disabled',
'gateway_fees_help' => 'Automatically add an online payment surcharge [partial payments are not supported].', 'gateway_fees_help' => 'Automatically add an online payment surcharge [partial payments are not supported].',
'gateway' => 'Gateway',
); );

View File

@ -49,7 +49,7 @@
{!! Datatable::table() {!! Datatable::table()
->addColumn( ->addColumn(
trans('texts.name'), trans('texts.gateway'),
trans('texts.limits'), trans('texts.limits'),
trans('texts.fees'), trans('texts.fees'),
trans('texts.action')) trans('texts.action'))