- add back the corrected setQty in MInvoiceLine.setRMALine
This commit is contained in:
parent
65d5f0e120
commit
5956d91f98
|
@ -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());
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue