diff --git a/src/bb-themes/admin_default/assets/js/fossbilling.js b/src/bb-themes/admin_default/assets/js/fossbilling.js index eefd20b5a..b75347910 100644 --- a/src/bb-themes/admin_default/assets/js/fossbilling.js +++ b/src/bb-themes/admin_default/assets/js/fossbilling.js @@ -387,4 +387,12 @@ const FOSSBilling = { toast.show(); } -}; \ No newline at end of file +}; + +// Fallback for modules that still use the old "boxbilling" object. It will display deprecation warnings in the console and will be removed entirely in the future. +const boxbilling = { + message: (message, type = 'info') => { + console.warn('The "boxbilling" object is deprecated and will be removed in a future release. Use FOSSBilling.message() instead.'); + FOSSBilling.message(message, type); + } +} \ No newline at end of file