- add back the corrected setQty in MInvoiceLine.setRMALine
This commit is contained in:
Heng Sin Low 2009-06-10 16:26:23 +00:00
parent 65d5f0e120
commit 5956d91f98
2 changed files with 7 additions and 2 deletions

View File

@ -1232,6 +1232,10 @@ public class MInvoiceLine extends X_C_InvoiceLine
setC_UOM_ID(rmaLine.getC_UOM_ID());
setC_Tax_ID(rmaLine.getC_Tax_ID());
setPrice(rmaLine.getAmt());
BigDecimal qty = rmaLine.getQty();
if (rmaLine.getQtyInvoiced() != null)
qty = qty.subtract(rmaLine.getQtyInvoiced());
setQty(qty);
setLineNetAmt();
setTaxAmt();
setLineTotalAmt(rmaLine.getLineNetAmt());

View File

@ -526,6 +526,7 @@ public class CreateFromInvoice extends CreateFrom
if (rmaLine != null)
{
invoiceLine.setRMALine(rmaLine); // overwrites
invoiceLine.setQty(QtyEntered);
}
else
log.fine("No RMA Line");