IO-2089 Incorporate Lbr Adjustments into scoreboard.
This commit is contained in:
@@ -166,6 +166,16 @@ export default function ScoreboardAddButton({
|
|||||||
painthrs: 0,
|
painthrs: 0,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//Add Labor Adjustments
|
||||||
|
v.painthrs = v.painthrs + (job.lbr_adjustments.LAR || 0);
|
||||||
|
v.bodyhrs =
|
||||||
|
v.bodyhrs +
|
||||||
|
Object.keys(job.lbr_adjustments)
|
||||||
|
.filter((key) => key !== "LAR")
|
||||||
|
.reduce((acc, val) => {
|
||||||
|
return acc + job.lbr_adjustments[val];
|
||||||
|
}, 0);
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
date: new moment(),
|
date: new moment(),
|
||||||
bodyhrs: Math.round(v.bodyhrs * 10) / 10,
|
bodyhrs: Math.round(v.bodyhrs * 10) / 10,
|
||||||
|
|||||||
@@ -855,6 +855,7 @@ export const QUERY_JOB_CARD_DETAILS = gql`
|
|||||||
owner_owing
|
owner_owing
|
||||||
special_coverage_policy
|
special_coverage_policy
|
||||||
suspended
|
suspended
|
||||||
|
lbr_adjustments
|
||||||
available_jobs {
|
available_jobs {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
@@ -1910,6 +1911,7 @@ export const QUERY_JOB_CLOSE_DETAILS = gql`
|
|||||||
kmin
|
kmin
|
||||||
kmout
|
kmout
|
||||||
qb_multiple_payers
|
qb_multiple_payers
|
||||||
|
lbr_adjustments
|
||||||
joblines(where: { removed: { _eq: false } }, order_by: { line_no: asc }) {
|
joblines(where: { removed: { _eq: false } }, order_by: { line_no: asc }) {
|
||||||
id
|
id
|
||||||
removed
|
removed
|
||||||
|
|||||||
Reference in New Issue
Block a user