commit6
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-30 08:07:27 +02:00
parent 413c201d97
commit 465426847e
8 changed files with 72 additions and 0 deletions
@@ -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;
}
+1
View File
@@ -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();