Merge branch 'release/2023-04-14' of https://bitbucket.org/snaptsoft/bodyshop into release/2023-04-14
This commit is contained in:
@@ -169,11 +169,14 @@ export function TechClockOffButton({
|
|||||||
? "mod_lbr_ty"
|
? "mod_lbr_ty"
|
||||||
: "cost_center";
|
: "cost_center";
|
||||||
|
|
||||||
const costCenterDiff = totals.find(
|
const costCenterDiff =
|
||||||
(total) =>
|
Math.round(
|
||||||
total[fieldTypeToCheck] ===
|
totals.find(
|
||||||
getFieldValue("cost_center")
|
(total) =>
|
||||||
)?.difference;
|
total[fieldTypeToCheck] ===
|
||||||
|
getFieldValue("cost_center")
|
||||||
|
)?.difference * 10
|
||||||
|
) / 10;
|
||||||
|
|
||||||
if (value > costCenterDiff)
|
if (value > costCenterDiff)
|
||||||
return Promise.reject(
|
return Promise.reject(
|
||||||
|
|||||||
@@ -206,10 +206,14 @@ export function TimeTicketModalComponent({
|
|||||||
? "mod_lbr_ty"
|
? "mod_lbr_ty"
|
||||||
: "cost_center";
|
: "cost_center";
|
||||||
|
|
||||||
const costCenterDiff = totals.find(
|
const costCenterDiff =
|
||||||
(total) =>
|
Math.round(
|
||||||
total[fieldTypeToCheck] === getFieldValue("cost_center")
|
totals.find(
|
||||||
)?.difference;
|
(total) =>
|
||||||
|
total[fieldTypeToCheck] ===
|
||||||
|
getFieldValue("cost_center")
|
||||||
|
)?.difference * 10
|
||||||
|
) / 10;
|
||||||
|
|
||||||
if (value > costCenterDiff)
|
if (value > costCenterDiff)
|
||||||
return Promise.reject(
|
return Promise.reject(
|
||||||
|
|||||||
Reference in New Issue
Block a user