for (int i = 0; i < miniTable.getRowCount(); i++)
{
if (((Boolean)miniTable.getValueAt(i, 0)).booleanValue()) {
// variable values
BigDecimal QtyEntered = (BigDecimal) miniTable.getValueAt(i, 1); // Qty
KeyNamePair pp = (KeyNamePair) miniTable.getValueAt(i, 2); // UOM
int C_UOM_ID = pp.getKey();
pp = (KeyNamePair) miniTable.getValueAt(i, 3); // Locator
// If a locator is specified on the product, choose that otherwise default locator
M_Locator_ID = pp!=null && pp.getKey()!=0 ? pp.getKey() : defaultLocator_ID;
pp = (KeyNamePair) miniTable.getValueAt(i, 4); // Product
int M_Product_ID = pp.getKey();
int C_OrderLine_ID = 0;
pp = (KeyNamePair) miniTable.getValueAt(i, 6); // OrderLine
if (pp != null)
C_OrderLine_ID = pp.getKey();
int M_RMALine_ID = 0;
pp = (KeyNamePair) miniTable.getValueAt(i, 7); // RMA
// If we have RMA
if (pp != null)
M_RMALine_ID = pp.getKey();
int C_InvoiceLine_ID = 0;
MInvoiceLine il = null;
pp = (KeyNamePair) miniTable.getValueAt(i, 8); // InvoiceLine
if (pp != null)
C_InvoiceLine_ID = pp.getKey();
if (C_InvoiceLine_ID != 0)
il = new MInvoiceLine (Env.getCtx(), C_InvoiceLine_ID, trxName);
//boolean isInvoiced = (C_InvoiceLine_ID != 0);
// Precision of Qty UOM
int precision = 2;