mirror of
https://github.com/itflow-org/itflow
synced 2026-11-22 04:17:24 +00:00
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:
@@ -27,7 +27,7 @@ if ($contract) {
|
||||
contractHoursSync($contract_id);
|
||||
$return_arr['recurring'] = contractRecurringFollow($contract_id, 'The API');
|
||||
$update_count = 1;
|
||||
logAudit("Contract", "Edit", "Renewed contract $contract_label to " . escapeSql($end) . " via API ($api_key_name)", $client_id, $contract_id);
|
||||
logAudit("Contract", "Edit", "Renewed contract $contract_label to " . formatDate($end) . " via API ($api_key_name)", $client_id, $contract_id);
|
||||
logAudit("API", "Success", "Renewed contract $contract_label via API ($api_key_name)", $client_id);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ if ($re_row) {
|
||||
$return_arr['next_date'] = $next;
|
||||
|
||||
$label = escapeSql(recurringExpenseLabel($re_row));
|
||||
logAudit("Recurring Expense", "Move On", "Moved the recurring expense $label on from $from to $next without recording the missed runs via API ($api_key_name)", intval($re_row['recurring_expense_client_id']), $recurring_expense_id);
|
||||
logAudit("Recurring Expense", "Move On", "Moved the recurring expense $label on from " . formatDate($from) . " to " . formatDate($next) . " without recording the missed runs via API ($api_key_name)", intval($re_row['recurring_expense_client_id']), $recurring_expense_id);
|
||||
logAudit("API", "Success", "Moved the recurring expense $label on via API ($api_key_name)", intval($re_row['recurring_expense_client_id']));
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ if ($software) {
|
||||
$return_arr['software_expire'] = $until;
|
||||
|
||||
$was = $software['software_expire'] ?: 'no date';
|
||||
$label = escapeSql($software['software_name']) . " until $until (was " . escapeSql($was) . ")" . ($reference !== '' ? ', reference ' . escapeSql($reference) : '');
|
||||
$label = escapeSql($software['software_name']) . " until " . formatDate($until) . " (was " . escapeSql(formatDate($was) ?: $was) . ")" . ($reference !== '' ? ', reference ' . escapeSql($reference) : '');
|
||||
logAudit("Software", "Renew", "Renewed license $label via API ($api_key_name)", $client_id, $software_id);
|
||||
logAudit("API", "Success", "Renewed license " . escapeSql($software['software_name']) . " via API ($api_key_name)", $client_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user