mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-26 02:20:39 +00:00
- Create/Update metered billing plan
This commit is contained in:
@@ -14,13 +14,13 @@ class FormatUsageEstimatesAction
|
||||
$usage = match ($estimate['feature']) {
|
||||
'bandwidth' => Metric::megabytes($estimate['usage'])->format(),
|
||||
'storage' => Metric::megabytes($estimate['usage'])->format(),
|
||||
'flat-fee' => intval($estimate['usage']) . ' ' . __('Pcs.'),
|
||||
'flatFee' => intval($estimate['usage']) . ' ' . __('Pcs.'),
|
||||
};
|
||||
|
||||
// Normalize units
|
||||
$amount = match ($estimate['feature']) {
|
||||
'bandwidth', 'storage' => $estimate['amount'] / 1000,
|
||||
'flat-fee' => $estimate['amount'],
|
||||
'flatFee' => $estimate['amount'],
|
||||
};
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user