1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix for payment datatable list

This commit is contained in:
Hillel Coren 2016-05-23 21:10:40 +03:00
parent b2beb8fb73
commit 406df6f3d8
2 changed files with 6 additions and 6 deletions

View File

@ -10,6 +10,12 @@ class PaymentDatatable extends EntityDatatable
{
public $entityType = ENTITY_PAYMENT;
protected static $refundableGateways = array(
GATEWAY_STRIPE,
GATEWAY_BRAINTREE,
GATEWAY_WEPAY,
);
public function columns()
{
return [

View File

@ -30,12 +30,6 @@ class PaymentService extends BaseService
public $lastError;
protected $datatableService;
protected static $refundableGateways = array(
GATEWAY_STRIPE,
GATEWAY_BRAINTREE,
GATEWAY_WEPAY,
);
public function __construct(PaymentRepository $paymentRepo, AccountRepository $accountRepo, DatatableService $datatableService)
{
$this->datatableService = $datatableService;