More Checkbox enhancements, remove js from dashboard if finanacial isnt selected

This commit is contained in:
johnnyq
2024-11-17 14:54:16 -05:00
parent b2fff24bd9
commit 9c24a780be
10 changed files with 22 additions and 26 deletions

View File

@@ -7,7 +7,7 @@ if (isset($_POST['edit_invoice_settings'])) {
$config_invoice_prefix = sanitizeInput($_POST['config_invoice_prefix']);
$config_invoice_next_number = intval($_POST['config_invoice_next_number']);
$config_invoice_footer = sanitizeInput($_POST['config_invoice_footer']);
$config_invoice_late_fee_enable = intval($_POST['config_invoice_late_fee_enable']);
$config_invoice_late_fee_enable = intval($_POST['config_invoice_late_fee_enable'] ?? 0);
$config_invoice_late_fee_percent = floatval($_POST['config_invoice_late_fee_percent']);
$config_recurring_prefix = sanitizeInput($_POST['config_recurring_prefix']);
$config_recurring_next_number = intval($_POST['config_recurring_next_number']);