protected void initBPOrderDetails(int C_BPartner_ID,boolean forInvoice){
  log.config("C_BPartner_ID=" + C_BPartner_ID);
  KeyNamePair pp=new KeyNamePair(0,"");
  orderField.removeActionListener(this);
  orderField.removeAllItems();
  orderField.addItem(pp);
  ArrayList<KeyNamePair> list=loadOrderData(C_BPartner_ID,forInvoice,sameWarehouseCb.isSelected());
  for (  KeyNamePair knp : list)   orderField.addItem(knp);
  orderField.setSelectedIndex(0);
  orderField.addActionListener(this);
  initBPDetails(C_BPartner_ID);
}

protected void initBPOrderDetails ( int C_BPartner_ID , boolean forInvoice ) { log . config ( "C_BPartner_ID=" + C_BPartner_ID ) ; KeyNamePair pp = new KeyNamePair ( 0 , "" ) ; orderField . removeActionListener ( this ) ; orderField . removeAllItems ( ) ; orderField . addItem ( pp ) ; ArrayList < KeyNamePair > list = loadOrderData ( C_BPartner_ID , forInvoice , sameWarehouseCb . isSelected ( ) ) ; for ( KeyNamePair knp : list ) orderField . addItem ( knp ) ; orderField . setSelectedIndex ( 0 ) ; orderField . addActionListener ( this ) ; initBPDetails ( C_BPartner_ID ) ; }
load pbartner dependent order / invoice / shipment field .
