Show 'mark paid' for negative invoices in datatable
This commit is contained in:
parent
6c1befea0c
commit
ff40292220
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ class InvoiceDatatable extends EntityDatatable
|
|||
return "javascript:submitForm_{$entityType}('markPaid', {$model->public_id})";
|
||||
},
|
||||
function ($model) use ($entityType) {
|
||||
return $entityType == ENTITY_INVOICE && $model->balance > 0 && Auth::user()->can('editByOwner', [ENTITY_INVOICE, $model->user_id]);
|
||||
return $entityType == ENTITY_INVOICE && $model->balance != 0 && Auth::user()->can('editByOwner', [ENTITY_INVOICE, $model->user_id]);
|
||||
},
|
||||
],
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue