debug PaymentBalanceActivity
This commit is contained in:
parent
abe1a66310
commit
ebdf6f7919
|
|
@ -72,7 +72,7 @@ class UpdateInvoiceRequest extends Request
|
|||
'sometimes',
|
||||
'not_in:5',
|
||||
function ($attribute, $value, $fail) {
|
||||
if ($this->invoice->status_id == 5) {
|
||||
if (in_array($this->invoice->status_id, [5, 6])) {
|
||||
$fail(ctrans('texts.locked_invoice'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,13 @@ class PaymentBalanceActivity implements ShouldQueue
|
|||
{
|
||||
MultiDB::setDb($event->company->db);
|
||||
|
||||
$event->payment->client->service()->updatePaymentBalance();
|
||||
try{
|
||||
$event->payment->client->service()->updatePaymentBalance();
|
||||
}
|
||||
catch(\Throwable $e){
|
||||
|
||||
nlog("PaymentBalanceActivity ".$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function middleware($event): array
|
||||
|
|
|
|||
Loading…
Reference in New Issue