fix(billing): address code review feedback
- Use DECIMAL instead of FLOAT for monetary columns in ALTER TABLE - Simplify bind_param type string from concatenated to single literal - Validate payment_status against ENUM values before CSS class injection - Add provisioning failure logging when panel bootstrap fails - Add comment explaining total_due/amount legacy fallback Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
986a4e53b4
commit
4a1b5bc725
4 changed files with 15 additions and 6 deletions
|
|
@ -153,6 +153,11 @@ if (!empty($newOrderIds)) {
|
|||
$GLOBALS['settings'] = $panelCtx['settings'];
|
||||
require_once __DIR__ . '/../create_servers.php';
|
||||
$autoProvision = billing_invoke_provision(['order_ids' => $newOrderIds, 'user_id' => $userId, 'is_admin' => true]);
|
||||
if (($autoProvision['failed_count'] ?? 0) > 0) {
|
||||
cap_log('AUTO_PROVISION_PARTIAL_FAILURE', $autoProvision);
|
||||
}
|
||||
} else {
|
||||
cap_log('AUTO_PROVISION_SKIPPED', 'panel bootstrap failed — orders require manual provisioning: ' . implode(',', $newOrderIds));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue