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