IDEMPIERE-883 Info Invoice window doesn't set business partner parameter.
This commit is contained in:
parent
d6086f7df5
commit
960c6e8fdd
|
@ -59,6 +59,17 @@ public class InfoInvoiceWindow 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")) {
|
||||
|
|
Loading…
Reference in New Issue