add payment button disabled control

This commit is contained in:
Cihan Şentürk
2022-12-21 16:29:30 +03:00
committed by GitHub
parent 53292a463e
commit a60ee18b43
3 changed files with 3 additions and 3 deletions

View File

@ -528,7 +528,7 @@ class Document extends Model
];
} catch (\Exception $e) {}
if ((empty($this->transactions->count()) || (! empty($this->transactions->count()) && $this->paid != $this->amount))) {
if ($this->status != 'paid' && (empty($this->transactions->count()) || (! empty($this->transactions->count()) && $this->paid != $this->amount))) {
try {
$actions[] = [
'type' => 'button',