Merge remote-tracking branch 'origin/release/2025-08-15' into feature/IO-3255-simplified-part-management
This commit is contained in:
@@ -16,10 +16,10 @@ import { useNotification } from "../../contexts/Notifications/notificationContex
|
||||
|
||||
const { confirm } = Modal;
|
||||
|
||||
const openNotificationWithIcon = (type, t, notification) => {
|
||||
const openNotificationWithIcon = (type, t, notification, message) => {
|
||||
notification[type]({
|
||||
message: t("job_payments.notifications.error.title"),
|
||||
description: t("job_payments.notifications.error.description")
|
||||
description: t("job_payments.notifications.error.description", { message: message || "Unknown error." })
|
||||
});
|
||||
};
|
||||
|
||||
@@ -99,7 +99,7 @@ const PaymentExpandedRowComponent = ({ record, bodyshop }) => {
|
||||
});
|
||||
|
||||
if (refundResponse.data.status < 0) {
|
||||
openNotificationWithIcon("error", t, notification);
|
||||
openNotificationWithIcon("error", t, notification, refundResponse.data.message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1458,9 +1458,9 @@
|
||||
},
|
||||
"notifications": {
|
||||
"error": {
|
||||
"description": "Please try again. Make sure the refund amount does not exceeds the payment amount.",
|
||||
"description": "An error has occurred processing the refund: {{message}}",
|
||||
"openingip": "Error connecting to IntelliPay service.",
|
||||
"title": "Error placing refund"
|
||||
"title": "Error issuing refund"
|
||||
}
|
||||
},
|
||||
"titles": {
|
||||
|
||||
Reference in New Issue
Block a user