mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 01:50:38 +00:00
Allow user pay only more than their debt
This commit is contained in:
@@ -73,7 +73,10 @@ class UserResource extends JsonResource
|
||||
'usages' => $this->getUsageEstimates(),
|
||||
]),
|
||||
$this->mergeWhen($isMeteredSubscription, fn () => [
|
||||
'totalDebt' => format_currency($this->failedPayments->sum('amount'), $this->subscription->plan->currency),
|
||||
'totalDebt' => [
|
||||
'formatted' => format_currency($this->failedPayments->sum('amount'), $this->subscription->plan->currency),
|
||||
'amount' => $this->failedPayments->sum('amount'),
|
||||
],
|
||||
]),
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user