Callout Order
This commit is contained in:
parent
08ffc52d55
commit
736414bba8
|
|
@ -38,6 +38,7 @@ public class MID_CalloutOrder extends CalloutEngine implements IColumnCallout {
|
|||
|
||||
if(priceList>0)
|
||||
mTab.setValue(MOrder.COLUMNNAME_M_PriceList_ID, priceList);
|
||||
|
||||
else
|
||||
{
|
||||
priceList = new Query(ctx, MPriceList.Table_Name, "AD_Client_ID =? AND AD_Org_ID =? AND IsSOPriceList =?", null)
|
||||
|
|
@ -46,8 +47,7 @@ public class MID_CalloutOrder extends CalloutEngine implements IColumnCallout {
|
|||
.firstId();
|
||||
mTab.setValue(MOrder.COLUMNNAME_M_PriceList_ID, priceList);
|
||||
}
|
||||
Env.setContext(ctx, "#M_PriceList_ID", priceList);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@ import java.util.List;
|
|||
|
||||
import org.adempiere.base.IColumnCallout;
|
||||
import org.adempiere.base.IColumnCalloutFactory;
|
||||
import org.compiere.model.MOrder;
|
||||
|
||||
import andromedia.midsuit.callout.MID_CalloutOrder;
|
||||
import andromedia.midsuit.callout.MID_CalloutRequisitionTrxLine;
|
||||
import andromedia.midsuit.model.X_MID_RequisitionLine;
|
||||
|
||||
|
|
@ -16,6 +18,8 @@ public class MID_CalloutFactory implements IColumnCalloutFactory{
|
|||
List<IColumnCallout> list = new ArrayList<IColumnCallout>();
|
||||
if (tableName.equals(X_MID_RequisitionLine.Table_Name))
|
||||
list.add(new MID_CalloutRequisitionTrxLine());
|
||||
if(tableName.equals(MOrder.Table_Name))
|
||||
list.add(new MID_CalloutOrder());
|
||||
return list != null ? list.toArray(new IColumnCallout[0]) : new IColumnCallout[0];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue