fix(transfers): corrected to be a int vs float
This commit is contained in:
@@ -236,7 +236,8 @@ export const lotMaterialTransfer = async (data: NewLotData) => {
|
|||||||
const newQty =
|
const newQty =
|
||||||
data.amount > 0
|
data.amount > 0
|
||||||
? data.amount
|
? data.amount
|
||||||
: (data.originalAmount * data.level).toFixed(0);
|
: // : (data.originalAmount * data.level).toFixed(0);
|
||||||
|
Math.floor(data.originalAmount * data.level);
|
||||||
|
|
||||||
//console.log(data.amount);
|
//console.log(data.amount);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user