fix: address code review comments (grace_days in Step B, simplified rate_map, spelling, comments)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5dbd58e1-7aa0-41e2-8dd3-c56b69ede05e Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
b03d9b2171
commit
79d78f074b
3 changed files with 10 additions and 9 deletions
|
|
@ -210,7 +210,10 @@ if ($coupon_id > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
// Mark all due invoices for this user as paid
|
||||
// Mark all due invoices for this user as paid.
|
||||
// Note: billing_invoices is the pre-purchase cart table and uses its own
|
||||
// status vocabulary (due -> paid). This is separate from gsp_invoices
|
||||
// (renewal invoices) and server_homes.billing_status (Active/Invoiced/Expired).
|
||||
$updateInvoicesSql = "UPDATE {$table_prefix}billing_invoices
|
||||
SET status='paid', paid_date='$now', payment_txid='$esc_txid', payment_method='paypal'
|
||||
WHERE user_id=$user_id AND status='due'";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue