IO-3515 additional cleanup, translations
This commit is contained in:
@@ -128,7 +128,7 @@ export function BillFormComponent({
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("*** Form Watch - jobid changed:", jobIdFormWatch);
|
||||
// When the jobid is set by AI scan, we need to reload the lines. This prevents having to hoist the apollo query.
|
||||
if (jobIdFormWatch !== null) {
|
||||
if (form.getFieldValue("jobid") !== null && form.getFieldValue("jobid") !== undefined) {
|
||||
loadLines({ variables: { id: form.getFieldValue("jobid") } });
|
||||
@@ -399,8 +399,8 @@ export function BillFormComponent({
|
||||
totals = CalculateBillTotal(values);
|
||||
} catch (error) {
|
||||
notification.error({
|
||||
title: "Error calculating totals",
|
||||
message: error.message || "An error occurred while calculating bill totals.",
|
||||
title: t("bills.errors.calculating_totals"),
|
||||
message: error.message || t("bills.errors.calculating_totals_generic"),
|
||||
key: "bill_totals_calculation_error"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user