IDEMPIERE-170 Complete Cash as Payment functionality

http://jira.idempiere.com/browse/IDEMPIERE-170
This commit is contained in:
Carlos Ruiz 2012-03-03 22:55:43 -05:00
parent 75d7c4f277
commit 28b414d6be
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import org.compiere.model.MAcctSchema;
import org.compiere.model.MBankAccount; import org.compiere.model.MBankAccount;
import org.compiere.model.MCharge; import org.compiere.model.MCharge;
import org.compiere.model.MPayment; import org.compiere.model.MPayment;
import org.compiere.model.MSysConfig;
import org.compiere.util.Env; import org.compiere.util.Env;
/** /**
@ -108,7 +109,7 @@ public class Doc_Payment extends Doc
// create Fact Header // create Fact Header
Fact fact = new Fact(this, as, Fact.POST_Actual); Fact fact = new Fact(this, as, Fact.POST_Actual);
// Cash Transfer // Cash Transfer
if ("X".equals(m_TenderType)) if ("X".equals(m_TenderType) && !MSysConfig.getBooleanValue("CASH_AS_PAYMENT", true , getAD_Client_ID()))
{ {
ArrayList<Fact> facts = new ArrayList<Fact>(); ArrayList<Fact> facts = new ArrayList<Fact>();
facts.add(fact); facts.add(fact);