/****************************************************************************** * Copyright (C) 2016 Logilite Technologies LLP * * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * *****************************************************************************/ package org.compiere.model; import java.util.Properties; public class CalloutDepositBatch extends CalloutEngine { /** * Bank Account Changed. * Update Currency * @param ctx context * @param WindowNo window no * @param mTab tab * @param mField field * @param value value * @return null or error message */ public String bankAccount (Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) { if (value == null) return ""; int C_BankAccount_ID = ((Integer)value).intValue(); MBankAccount ba = MBankAccount.get(ctx, C_BankAccount_ID); mTab.setValue(MCurrency.COLUMNNAME_C_Currency_ID, ba.getC_Currency_ID()); return ""; } }