IDEMPIERE-4943 Create a Material Receipt from Invoice with UOM conversion is leaving corrupt data (#861)

This commit is contained in:
Carlos Ruiz 2021-09-03 16:05:01 +02:00 committed by GitHub
parent 02d4b54714
commit 88e0f55b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ public abstract class CreateFromShipment extends CreateFrom
{ {
if (il.getQtyEntered().compareTo(il.getQtyInvoiced()) != 0) if (il.getQtyEntered().compareTo(il.getQtyInvoiced()) != 0)
{ {
iol.setQtyEntered(QtyEntered iol.setMovementQty(QtyEntered
.multiply(il.getQtyInvoiced()) .multiply(il.getQtyInvoiced())
.divide(il.getQtyEntered(), 12, RoundingMode.HALF_UP)); .divide(il.getQtyEntered(), 12, RoundingMode.HALF_UP));
iol.setC_UOM_ID(il.getC_UOM_ID()); iol.setC_UOM_ID(il.getC_UOM_ID());