Merged in release/2025-03-14 (pull request #2188)

Release/2025 03 14
This commit is contained in:
Dave Richer
2025-03-11 19:16:00 +00:00
5 changed files with 29 additions and 8 deletions

View File

@@ -261,12 +261,13 @@ const newMediaAddedReassignedBuilder = (data) => {
// Determine the action
let action;
if (data?.data?._documentMoved) {
action = "moved to another Job"; // Special case for document moved from this job
action = "moved to another job"; // Special case for document moved from this job
} else if (data.isNew) {
action = "added"; // New media
} else if (data.changedFields?.jobid && data.changedFields.jobid.old !== data.changedFields.jobid.new) {
action = "moved to this Job";
action = "moved to this job";
} else {
action = "updated";
}
@@ -416,7 +417,6 @@ const partMarkedBackOrderedBuilder = (data) => {
*/
const paymentCollectedCompletedBuilder = (data) => {
const momentFormat = "MM/DD/YYYY";
const timezone = data.bodyShopTimezone;
// Format amount using Dinero.js
const amountDinero = Dinero({
@@ -427,7 +427,7 @@ const paymentCollectedCompletedBuilder = (data) => {
const payer = data.data.payer;
const paymentType = data.data.type;
const paymentDate = moment(data.data.date).tz(timezone).format(momentFormat);
const paymentDate = moment(data.data.date).format(momentFormat);
const body = `Payment of ${amountFormatted} has been collected from ${payer} via ${paymentType} on ${paymentDate}`;