Esempio n. 1
0
  /**
   * Before Save
   *
   * @param newRecord new
   * @return true
   */
  protected boolean beforeSave(boolean newRecord) {
    if (getAD_User_ID() == -1) // 	Summary Project in Dimensions
    setAD_User_ID(0);

    //	Set Currency
    if (is_ValueChanged("M_PriceList_Version_ID") && getM_PriceList_Version_ID() != 0) {
      MPriceList pl = MPriceList.get(getCtx(), getM_PriceList_ID(), null);
      if (pl != null && pl.get_ID() != 0) setC_Currency_ID(pl.getC_Currency_ID());
    }

    return true;
  } //	beforeSave