IDEMPIERE-883 Info Invoice/Order window doesn't set business partner parameter.
This commit is contained in:
parent
58effe2266
commit
f1231c0e63
|
@ -53,12 +53,23 @@ public class InfoOrderWindow extends InfoWindow {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void createParameterPanel() {
|
protected void createParameterPanel() {
|
||||||
super.createParameterPanel();
|
super.createParameterPanel();
|
||||||
String isSOTrx = Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx");
|
String isSOTrx = Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx");
|
||||||
if (!isLookup() && Util.isEmpty(isSOTrx)) {
|
if (!isLookup() && Util.isEmpty(isSOTrx)) {
|
||||||
isSOTrx = "Y";
|
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)) {
|
if (!Util.isEmpty(isSOTrx)) {
|
||||||
for (WEditor editor : editors) {
|
for (WEditor editor : editors) {
|
||||||
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("IsSOTrx")) {
|
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("IsSOTrx")) {
|
||||||
|
|
Loading…
Reference in New Issue