Archive clients, ticket replies, accounts and SLAs and restore anything without an Are you sure prompt, with Undo added for ticket replies and accounts, real plurals and bold counts in bulk messages, and flashAlert for asset and contact note messages

This commit is contained in:
johnnyq
2026-11-20 23:46:36 -05:00
parent 74d571c029
commit df64d82f3a
173 changed files with 405 additions and 369 deletions

View File

@@ -60,12 +60,12 @@ if ($paper_type === 'invoice' && $paper_status === 'Paid') {
$paper_dates = [];
if ($paper_type === 'invoice') {
$paper_dates = ['Invoice date' => $paper_row['invoice_date'], 'Due' => $paper_row['invoice_due']];
$paper_dates = ['Invoice date' => formatDate($paper_row['invoice_date']), 'Due' => formatDate($paper_row['invoice_due'])];
} elseif ($paper_type === 'quote') {
$paper_dates = ['Quote date' => $paper_row['quote_date'], 'Valid until' => $paper_row['quote_expire']];
$paper_dates = ['Quote date' => formatDate($paper_row['quote_date']), 'Valid until' => formatDate($paper_row['quote_expire'])];
} else {
$paper_dates = ['Billed' => recurringInvoiceFrequencies()[$paper_row['recurring_invoice_frequency']] ?? ucfirst((string) $paper_row['recurring_invoice_frequency']),
'Next invoice' => $paper_row['recurring_invoice_next_date']];
'Next invoice' => formatDate($paper_row['recurring_invoice_next_date'])];
}
// A recurring invoice's seat lines - what each counts now, and whether the line is off
@@ -150,7 +150,7 @@ $paper_bill_lines = array_filter([
<div class="itflow-paper-label"><?= in_array($paper_status, ['Paid', 'Cancelled', 'Non-Billable'], true) ? 'Balance' : 'Amount due' ?></div>
<div class="itflow-paper-amount"><?= $paper_money($paper['balance'] ?? $paper_totals['total']) ?></div>
<?php if (!in_array($paper_status, ['Paid', 'Cancelled', 'Non-Billable', 'Draft'], true) && ($paper['balance'] ?? 0) > 0) { ?>
<div class="small text-body-secondary">by <?= escapeHtml($paper_row['invoice_due']) ?></div>
<div class="small text-body-secondary">by <?= formatDate($paper_row['invoice_due']) ?></div>
<?php } ?>
<?php } elseif ($paper_type === 'quote' && $paper_groups) {
$paper_first = true;

View File

@@ -176,7 +176,7 @@ $config_share_require_protection = intval($row['config_share_require_protection'
// Locale
$config_currency_format = "US_en";
$config_timezone = $row['config_timezone'];
$config_date_format = "M d, Y";
$config_date_format = "M j, Y";
$config_time_format = "g:i A";
// Theme