FR 3110127 - Null error when use Generate Invoice from Receipt

http://sourceforge.net/support/tracker.php?aid=3110127
Fix provided by Kitti U
This commit is contained in:
Carlos Ruiz 2011-03-08 11:40:58 -05:00
parent 36ac1b1102
commit 3df5962ed5
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
setDescription(sLine.getDescription());
//
setM_Product_ID(sLine.getM_Product_ID());
if (sLine.sameOrderLineUOM())
if (sLine.sameOrderLineUOM() || getProduct() == null)
setC_UOM_ID(sLine.getC_UOM_ID());
else
// use product UOM if the shipment hasn't the same uom than the order