IDEMPIERE-883 Info Invoice/Order window doesn't set business partner parameter.

This commit is contained in:
Heng Sin Low 2013-04-29 12:04:27 +08:00
parent 58effe2266
commit f1231c0e63
1 changed files with 12 additions and 1 deletions

View File

@ -59,6 +59,17 @@ public class InfoOrderWindow extends InfoWindow {
isSOTrx = "Y";
}
//Set Defaults
String bp = Env.getContext(Env.getCtx(), p_WindowNo, "C_BPartner_ID");
if (!Util.isEmpty(bp)) {
for (WEditor editor : editors) {
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("C_BPartner_ID")) {
editor.setValue(new Integer(bp));
break;
}
}
}
if (!Util.isEmpty(isSOTrx)) {
for (WEditor editor : editors) {
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("IsSOTrx")) {