Some additional progress / start on updating future deprecations
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import i18n from "i18next";
|
||||
|
||||
const AuditTrailMapping = {
|
||||
appointmentcancel: (lost_sale_reason) =>
|
||||
i18n.t("audit_trail.messages.appointmentcancel", { lost_sale_reason }),
|
||||
appointmentinsert: (start) =>
|
||||
i18n.t("audit_trail.messages.appointmentinsert", { start }),
|
||||
jobstatuschange: (status) =>
|
||||
i18n.t("audit_trail.messages.jobstatuschange", { status }),
|
||||
admin_jobstatuschange: (status) =>
|
||||
|
||||
@@ -31,3 +31,7 @@ export function TimeAgoFormatter(props) {
|
||||
</Tooltip>
|
||||
) : null;
|
||||
}
|
||||
|
||||
export function DateTimeFormat(value) {
|
||||
return moment(value).format("MM/DD/YYYY hh:mm A");
|
||||
}
|
||||
|
||||
@@ -2167,6 +2167,18 @@ export const TemplateList = (type, context) => {
|
||||
group: "payroll",
|
||||
enhanced_payroll: true,
|
||||
},
|
||||
lost_sales: {
|
||||
title: i18n.t("reportcenter.templates.lost_sales"),
|
||||
subject: i18n.t("reportcenter.templates.lost_sales"),
|
||||
key: "lost_sales",
|
||||
//idtype: "vendor",
|
||||
disabled: false,
|
||||
rangeFilter: {
|
||||
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||
field: i18n.t("jobs.fields.date_lost_sale"),
|
||||
},
|
||||
group: "customers",
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(!type || type === "courtesycarcontract"
|
||||
|
||||
4
client/src/utils/config.js
Normal file
4
client/src/utils/config.js
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
// Sometimes referred to as PageSize, this variable controls the amount of records
|
||||
// to show on one page during pagination.
|
||||
export const pageLimit = 50;
|
||||
Reference in New Issue
Block a user