feature/IO-3499-React-19: Bug Fixes / Checkpoint

This commit is contained in:
Dave
2026-01-13 22:28:43 -05:00
parent 7bdfbfabe9
commit 53d556a621
171 changed files with 1128 additions and 954 deletions

View File

@@ -77,8 +77,8 @@ export function JobsCloseExportButton({ bodyshop, currentUser, jobId, disabled,
console.log("handle -> XML", QbXmlResponse);
} catch (error) {
console.log("Error getting QBXML from Server.", error);
notification["error"]({
message: t("jobs.errors.exporting", {
notification.error({
title: t("jobs.errors.exporting", {
error: "Unable to retrieve QBXML. " + JSON.stringify(error.message)
})
});
@@ -99,8 +99,8 @@ export function JobsCloseExportButton({ bodyshop, currentUser, jobId, disabled,
);
} catch (error) {
console.log("Error connecting to quickbooks or partner.", error);
notification["error"]({
message: t("jobs.errors.exporting-partner")
notification.error({
title: t("jobs.errors.exporting-partner")
});
setLoading(false);
return;
@@ -116,10 +116,9 @@ export function JobsCloseExportButton({ bodyshop, currentUser, jobId, disabled,
//Uh oh. At least one was no good.
failedTransactions.forEach((ft) => {
//insert failed export log
notification.open({
notification.error({
// key: "failedexports",
type: "error",
message: t("jobs.errors.exporting", {
title: t("jobs.errors.exporting", {
error: ft.errorMessage || ""
})
});
@@ -169,10 +168,9 @@ export function JobsCloseExportButton({ bodyshop, currentUser, jobId, disabled,
});
if (!jobUpdateResponse.errors) {
notification.open({
type: "success",
notification.success({
key: "jobsuccessexport",
message: t("jobs.successes.exported")
title: t("jobs.successes.exported")
});
insertAuditTrail({
jobid: jobId,
@@ -181,18 +179,17 @@ export function JobsCloseExportButton({ bodyshop, currentUser, jobId, disabled,
});
updateJobCache(jobUpdateResponse.data.update_jobs.returning.map((job) => job.id));
} else {
notification["error"]({
message: t("jobs.errors.exporting", {
notification.error({
title: t("jobs.errors.exporting", {
error: JSON.stringify(jobUpdateResponse.error)
})
});
}
}
if (bodyshop.accountingconfig?.qbo && successfulTransactions.length > 0) {
notification.open({
type: "success",
notification.success({
key: "jobsuccessexport",
message: t("jobs.successes.exported")
title: t("jobs.successes.exported")
});
insertAuditTrail({
jobid: jobId,