Skip to content

WHMCS Hetzner Datacenter 2.1

Latest

Choose a tag to compare

@puqcloud puqcloud released this 07 Oct 12:06
eac3f7f
  1. Automatic Pricing UI
    • Added bulk selection of currencies and billing periods with instant preview table.
    • Added Base price (Net/Gross) selector and percentage margin input.
    • Preview recalculates immediately when Base price or Percentage changes.
    • Added “Automatically apply price daily” toggle.
  2. Data storage & compatibility
    • Improved merge logic to prevent overwriting other saved fields.
  3. Bulk pricing logic (AJAX)
    • Automatically updates or creates missing tblpricing rows based on selected currencies and billing periods.
    • Applies Hetzner base price, margin, WHMCS currency rates, and period multipliers with rounding up to currency precision.
  4. Daily Cron automation
    • Extended DailyCronJob to respect saved bulk pricing configuration.
    • Fetches fresh Hetzner base price once per run and applies to all selected currencies and periods.
    • Creates missing tblpricing rows and logs detailed status for each action.
  5. Currency and rounding policy
    • Using Hetzner Cloud API currency (/pricing.currency) instead of hard-coded EUR.
    • Introduced rule: always round UP according to ISO-4217 minor units (0/2/3 decimals).
    • Unified logic: monthly price is rounded first, then multiplied by period factor and rounded again.
    • Both JS preview and server-side calculation now follow identical rounding logic.
  6. Improved server selection UI
    • Expanded dropdown descriptions: name – architecture – cores – memory – disk.
  7. Admin tools for stock management
    • Added “Clear and Reset” button in product configuration to restore stockcontrol and qty values.
  8. Fixes and resilience
    • Fixed issues with potentially lost or overwritten settings.
    • Handled HTML-encoded inputs safely.