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

@@ -60,8 +60,8 @@ export function PaymentsExportAllButton({
});
} catch (error) {
console.log("Error getting QBXML from Server.", error);
notification["error"]({
message: t("payments.errors.exporting", {
notification.error({
title: t("payments.errors.exporting", {
error: "Unable to retrieve QBXML. " + JSON.stringify(error.message)
})
});
@@ -74,8 +74,8 @@ export function PaymentsExportAllButton({
PartnerResponse = await axios.post("http://localhost:1337/qb/", QbXmlResponse.data);
} catch (error) {
console.log("Error connecting to quickbooks or partner.", error);
notification["error"]({
message: t("payments.errors.exporting-partner")
notification.error({
title: t("payments.errors.exporting-partner")
});
if (loadingCallback) loadingCallback(false);
setLoading(false);
@@ -93,8 +93,8 @@ export function PaymentsExportAllButton({
if (failedTransactions.length > 0) {
//Uh oh. At least one was no good.
failedTransactions.map((ft) =>
notification["error"]({
message: t("payments.errors.exporting", {
notification.error({
title: t("payments.errors.exporting", {
error: ft.errorMessage || ""
})
})
@@ -142,25 +142,23 @@ export function PaymentsExportAllButton({
}
});
if (!paymentUpdateResponse.errors) {
notification.open({
type: "success",
notification.success({
key: "paymentsuccessexport",
message: t("payments.successes.exported")
title: t("payments.successes.exported")
});
updatePaymentCache(paymentUpdateResponse.data.update_payments.returning.map((payment) => payment.id));
} else {
notification["error"]({
message: t("payments.errors.exporting", {
notification.error({
title: t("payments.errors.exporting", {
error: JSON.stringify(paymentUpdateResponse.error)
})
});
}
}
if (bodyshop.accountingconfig && bodyshop.accountingconfig.qbo && successfulTransactions.length > 0) {
notification.open({
type: "success",
notification.success({
key: "paymentsuccessexport",
message: t("payments.successes.exported")
title: t("payments.successes.exported")
});
updatePaymentCache([
...new Set(successfulTransactions.map((st) => st[bodyshop.accountingconfig?.qbo ? "paymentid" : "id"]))