Adde email confirmation template.
This commit is contained in:
@@ -6,7 +6,6 @@ import LoadingSkeleton from "../loading-skeleton/loading-skeleton.component";
|
|||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
export default function ScheduleDayViewContainer({ day }) {
|
export default function ScheduleDayViewContainer({ day }) {
|
||||||
console.log("day", day);
|
|
||||||
const { loading, error, data } = useQuery(QUERY_APPOINTMENT_BY_DATE, {
|
const { loading, error, data } = useQuery(QUERY_APPOINTMENT_BY_DATE, {
|
||||||
variables: {
|
variables: {
|
||||||
start: moment(day).startOf("day"),
|
start: moment(day).startOf("day"),
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { logImEXEvent } from "../../firebase/firebase.utils";
|
|||||||
import {
|
import {
|
||||||
CANCEL_APPOINTMENT_BY_ID,
|
CANCEL_APPOINTMENT_BY_ID,
|
||||||
INSERT_APPOINTMENT,
|
INSERT_APPOINTMENT,
|
||||||
QUERY_APPOINTMENTS_BY_JOBID
|
QUERY_APPOINTMENTS_BY_JOBID,
|
||||||
} from "../../graphql/appointments.queries";
|
} from "../../graphql/appointments.queries";
|
||||||
import { QUERY_LBR_HRS_BY_PK, UPDATE_JOBS } from "../../graphql/jobs.queries";
|
import { QUERY_LBR_HRS_BY_PK, UPDATE_JOBS } from "../../graphql/jobs.queries";
|
||||||
import { setEmailOptions } from "../../redux/email/email.actions";
|
import { setEmailOptions } from "../../redux/email/email.actions";
|
||||||
@@ -139,6 +139,7 @@ export function ScheduleJobModalContainer({
|
|||||||
messageOptions: {
|
messageOptions: {
|
||||||
to: [values.email],
|
to: [values.email],
|
||||||
replyTo: bodyshop.email,
|
replyTo: bodyshop.email,
|
||||||
|
subject: TemplateList().appointment_confirmation.subject,
|
||||||
},
|
},
|
||||||
template: {
|
template: {
|
||||||
name: TemplateList().appointment_confirmation.key,
|
name: TemplateList().appointment_confirmation.key,
|
||||||
|
|||||||
@@ -7,6 +7,13 @@ export const EmailSettings = {
|
|||||||
|
|
||||||
export const TemplateList = (type, object) => {
|
export const TemplateList = (type, object) => {
|
||||||
return {
|
return {
|
||||||
|
appointment_confirmation: {
|
||||||
|
title: i18n.t("printcenter.appointments.appointment_confirmation"),
|
||||||
|
description: "Appointment Confirmation",
|
||||||
|
drivingId: "appointment",
|
||||||
|
key: "appointment_confirmation",
|
||||||
|
subject: "Appointment Confirmation",
|
||||||
|
},
|
||||||
//Verified Completed items
|
//Verified Completed items
|
||||||
estimate_detail: {
|
estimate_detail: {
|
||||||
title: i18n.t("printcenter.jobs.estimate_detail"),
|
title: i18n.t("printcenter.jobs.estimate_detail"),
|
||||||
|
|||||||
@@ -112,10 +112,10 @@ exports.job = async (req, res) => {
|
|||||||
? compDate.format("yyyy-MM-DD")
|
? compDate.format("yyyy-MM-DD")
|
||||||
: todayIsoString
|
: todayIsoString
|
||||||
: todayIsoString;
|
: todayIsoString;
|
||||||
|
console.log("bucketMatrix", bucketMatrix);
|
||||||
bucketMatrix[dateToUse] = {
|
bucketMatrix[dateToUse] = {
|
||||||
...bucketMatrix[dateToUse],
|
...bucketMatrix[dateToUse],
|
||||||
out: bucketMatrix[dateToUse].out + 1,
|
out: (bucketMatrix[dateToUse].out || 0) + 1,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user