BF [ 1760240 ] CashLine bank account is filled even if is not bank transfer
http://sourceforge.net/tracker/index.php?func=detail&aid=1760240&group_id=176962&atid=879332
This commit is contained in:
parent
c14d79f422
commit
888d3a0362
|
@ -26,6 +26,8 @@ import org.compiere.util.*;
|
|||
*
|
||||
* @author Jorg Janke
|
||||
* @version $Id: MCashLine.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
|
||||
*
|
||||
* @author Teo Sarca, SC ARHIPAC SERVICE SRL - BF [ 1760240 ]
|
||||
*/
|
||||
public class MCashLine extends X_C_CashLine
|
||||
{
|
||||
|
@ -327,6 +329,10 @@ public class MCashLine extends X_C_CashLine
|
|||
setAD_Org_ID(getParent().getAD_Org_ID());
|
||||
}
|
||||
|
||||
// If CashType is not Bank Account Transfer, set C_BankAccount_ID to null - teo_sarca BF [ 1760240 ]
|
||||
if (!CASHTYPE_BankAccountTransfer.equals(getCashType()))
|
||||
setC_BankAccount_ID(I_ZERO);
|
||||
|
||||
/** General fix of Currency
|
||||
UPDATE C_CashLine cl SET C_Currency_ID = (SELECT C_Currency_ID FROM C_Invoice i WHERE i.C_Invoice_ID=cl.C_Invoice_ID) WHERE C_Currency_ID IS NULL AND C_Invoice_ID IS NOT NULL;
|
||||
UPDATE C_CashLine cl SET C_Currency_ID = (SELECT C_Currency_ID FROM C_BankAccount b WHERE b.C_BankAccount_ID=cl.C_BankAccount_ID) WHERE C_Currency_ID IS NULL AND C_BankAccount_ID IS NOT NULL;
|
||||
|
|
Loading…
Reference in New Issue