@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\SupplierPayables;
|
||||
use Tempo\Finance\Payables\SettlementHttp;
|
||||
|
||||
final class SupplierPaymentsController extends SettlementHttp
|
||||
{
|
||||
protected const MODE = 'compras';
|
||||
|
||||
protected const SERVICE = SupplierPayables::class;
|
||||
}
|
||||
@@ -120,6 +120,7 @@ final class SupplierPayables
|
||||
$engine = $this->engine($u);
|
||||
$d = $engine->listing(Invoice::query()->where('tenant_id', $u->tenant_id)->pluck('id')->all());
|
||||
$d['permissions'] = ['prepare' => $this->can($u, 'prepare'), 'validate' => $this->can($u, 'validate')];
|
||||
$d['payments_available'] = app()->environment('payable-testing') && Schema::hasTable('ps_payments') && $this->can($u, 'payments_view');
|
||||
$d['history_import_available'] = self::historyEnabled();
|
||||
$d['history_decisions_available'] = self::historyDecisionsEnabled();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user