} // setS_ResourceAssignment_ID /// <summary> /// Set Product - Callout /// </summary> /// <param name="oldM_Product_ID">old value</param> /// <param name="newM_Product_ID">new value</param> /// <param name="windowNo">window</param> public void SetM_Product_ID(String oldM_Product_ID, String newM_Product_ID, int windowNo) { if (newM_Product_ID == null || newM_Product_ID.Length == 0) { return; } //int M_Product_ID = Integer.parseInt(newM_Product_ID); int M_Product_ID = Util.GetValueOfInt(newM_Product_ID); base.SetM_Product_ID(M_Product_ID); if (M_Product_ID == 0) { return; } // Employee MTimeExpense hdr = new MTimeExpense(GetCtx(), GetS_TimeExpense_ID(), null); int C_BPartner_ID = hdr.GetC_BPartner_ID(); Decimal Qty = GetQty(); Boolean IsSOTrx = true; MProductPricing pp = new MProductPricing(GetAD_Client_ID(), GetAD_Org_ID(), M_Product_ID, C_BPartner_ID, Qty, IsSOTrx); // int M_PriceList_ID = hdr.GetM_PriceList_ID(); pp.SetM_PriceList_ID(M_PriceList_ID); DateTime?orderDate = GetDateExpense(); pp.SetPriceDate(orderDate); // SetExpenseAmt(pp.GetPriceStd()); SetC_Currency_ID(pp.GetC_Currency_ID()); SetAmt(windowNo, "M_Product_ID"); } // setM_Product_ID
} // getApprovalAmt /// <summary> /// Get C_Currency_ID of Report (Price List) /// </summary> /// <returns>currency</returns> public int GetC_Currency_Report_ID() { if (_C_Currency_Report_ID != 0) { return(_C_Currency_Report_ID); } // Get it from header MTimeExpense te = new MTimeExpense(GetCtx(), GetS_TimeExpense_ID(), Get_TrxName()); _C_Currency_Report_ID = te.GetC_Currency_ID(); return(_C_Currency_Report_ID); } // getC_Currency_Report_ID