File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
client/packages/invoices/src/Prescriptions/LineEditView Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -222,9 +222,7 @@ export const PrescriptionLineEditForm: React.FC<
222
222
setPrescribedQuantity ( newPrescribedQuantity ) ;
223
223
}
224
224
225
- const newIssueQuantity = Math . round (
226
- allocatedUnits / Math . abs ( Number ( packSizeController . selected ?. value || 1 ) )
227
- ) ;
225
+ const newIssueQuantity = NumUtils . round ( allocatedUnits / Math . abs ( Number ( packSizeController . selected ?. value || 1 ) ) , 2 ) ;
228
226
if ( newIssueQuantity !== issueUnitQuantity )
229
227
setIssueUnitQuantity ( newIssueQuantity ) ;
230
228
setAllocationAlerts ( [ ] ) ;
@@ -559,7 +557,7 @@ const summarise = (
559
557
} else {
560
558
counts [ packSize ] = {
561
559
unitName : ( stockLine ?. item as ItemNode ) ?. unitName ?? 'unit' ,
562
- count : NumUtils . round ( packSize * numberOfPacks ) ,
560
+ count : NumUtils . round ( packSize * numberOfPacks , 2 ) ,
563
561
} ;
564
562
}
565
563
} ) ;
You can’t perform that action at this time.
0 commit comments