diff --git a/client/src/components/bill-enter-modal/bill-enter-modal.container.jsx b/client/src/components/bill-enter-modal/bill-enter-modal.container.jsx index e21cb8efd..2200809ee 100644 --- a/client/src/components/bill-enter-modal/bill-enter-modal.container.jsx +++ b/client/src/components/bill-enter-modal/bill-enter-modal.container.jsx @@ -149,7 +149,7 @@ function BillEnterModalContainer({ jobid: values.jobid, operation: AuditTrailMapping.jobmodifylbradj({ mod_lbr_ty: key, - hours: adjustmentsToInsert[key], + hours: adjustmentsToInsert[key].toFixed(1), }), }); }); diff --git a/client/src/components/job-detail-lines/job-lines.component.jsx b/client/src/components/job-detail-lines/job-lines.component.jsx index 8d0c3488a..de3aec81d 100644 --- a/client/src/components/job-detail-lines/job-lines.component.jsx +++ b/client/src/components/job-detail-lines/job-lines.component.jsx @@ -176,7 +176,7 @@ export function JobLinesComponent({ state.sortedInfo.columnKey === "act_price" && state.sortedInfo.order, ellipsis: true, render: (text, record) => ( - <> + {record.db_ref === "900510" || record.db_ref === "900511" ? record.prt_dsmk_m @@ -189,7 +189,7 @@ export function JobLinesComponent({ ) : ( <> )} - + ), }, { @@ -337,7 +337,6 @@ export function JobLinesComponent({ )} - ), }, diff --git a/client/src/components/job-line-convert-to-labor/job-line-convert-to-labor.component.jsx b/client/src/components/job-line-convert-to-labor/job-line-convert-to-labor.component.jsx index e4335cd04..972d5cfd9 100644 --- a/client/src/components/job-line-convert-to-labor/job-line-convert-to-labor.component.jsx +++ b/client/src/components/job-line-convert-to-labor/job-line-convert-to-labor.component.jsx @@ -37,6 +37,7 @@ export default connect( )(JobLineConvertToLabor); export function JobLineConvertToLabor({ + children, jobline, job, insertAuditTrail, @@ -105,7 +106,7 @@ export function JobLineConvertToLabor({ insertAuditTrail({ jobid: job.id, operation: AuditTrailMapping.jobmodifylbradj({ - hours: calculateAdjustment({ mod_lbr_ty, job, jobline }), + hours: calculateAdjustment({ mod_lbr_ty, job, jobline }).toFixed(1), mod_lbr_ty, }), }); @@ -214,23 +215,29 @@ export function JobLineConvertToLabor({ }; return ( - - - - - + + + + + )} + ); } diff --git a/client/src/components/labor-allocations-adjustment-edit/labor-allocations-adjustment-edit.component.jsx b/client/src/components/labor-allocations-adjustment-edit/labor-allocations-adjustment-edit.component.jsx index 982728142..5d5a56d2c 100644 --- a/client/src/components/labor-allocations-adjustment-edit/labor-allocations-adjustment-edit.component.jsx +++ b/client/src/components/labor-allocations-adjustment-edit/labor-allocations-adjustment-edit.component.jsx @@ -72,7 +72,9 @@ export function LaborAllocationsAdjustmentEdit({ jobid: jobId, operation: AuditTrailMapping.jobmodifylbradj({ mod_lbr_ty: values.mod_lbr_ty, - hours: values.hours - ((adjustments && adjustments[mod_lbr_ty]) || 0), + hours: + values.hours - + ((adjustments && adjustments[mod_lbr_ty]) || 0).toFixed(1), }), }); }