BF [ 1739096 ] Dunning Run Create is using inactive BP locations
http://sourceforge.net/tracker/index.php?func=detail&aid=1739096&group_id=176962&atid=879332 * fixed javadoc
This commit is contained in:
parent
806388c22d
commit
48f0e431a1
|
@ -27,7 +27,7 @@ import org.compiere.util.*;
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: MDunningRunEntry.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
|
* @version $Id: MDunningRunEntry.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
|
||||||
*
|
*
|
||||||
* @author Teo Sarca, BF [ 1739022 ]
|
* @author Teo Sarca - BF [ 1739022 ], BF [ 1739096 ]
|
||||||
*/
|
*/
|
||||||
public class MDunningRunEntry extends X_C_DunningRunEntry
|
public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
{
|
{
|
||||||
|
@ -35,10 +35,10 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
private static CLogger s_log = CLogger.getCLogger (MPayment.class);
|
private static CLogger s_log = CLogger.getCLogger (MPayment.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard Constructor
|
* Standard Constructor
|
||||||
* @param ctx context
|
* @param ctx context
|
||||||
* @param C_DunningRunEntry_ID id
|
* @param C_DunningRunEntry_ID id
|
||||||
* @param trxName transaction
|
* @param trxName transaction
|
||||||
*/
|
*/
|
||||||
public MDunningRunEntry (Properties ctx, int C_DunningRunEntry_ID, String trxName)
|
public MDunningRunEntry (Properties ctx, int C_DunningRunEntry_ID, String trxName)
|
||||||
{
|
{
|
||||||
|
@ -58,10 +58,10 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
} // MDunningRunEntry
|
} // MDunningRunEntry
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
* @param ctx context
|
* @param ctx context
|
||||||
* @param rs result set
|
* @param rs result set
|
||||||
* @param trxName transaction
|
* @param trxName transaction
|
||||||
*/
|
*/
|
||||||
public MDunningRunEntry (Properties ctx, ResultSet rs, String trxName)
|
public MDunningRunEntry (Properties ctx, ResultSet rs, String trxName)
|
||||||
{
|
{
|
||||||
|
@ -69,8 +69,8 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
} // MDunningRunEntry
|
} // MDunningRunEntry
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parent Constructor
|
* Parent Constructor
|
||||||
* @param parent parent
|
* @param parent parent
|
||||||
*/
|
*/
|
||||||
public MDunningRunEntry (MDunningRun parent)
|
public MDunningRunEntry (MDunningRun parent)
|
||||||
{
|
{
|
||||||
|
@ -84,9 +84,9 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
private MDunningRun m_parent = null;
|
private MDunningRun m_parent = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set BPartner
|
* Set BPartner
|
||||||
* @param bp partner
|
* @param bp partner
|
||||||
* @param isSOTrx SO
|
* @param isSOTrx SO
|
||||||
*/
|
*/
|
||||||
public void setBPartner (MBPartner bp, boolean isSOTrx)
|
public void setBPartner (MBPartner bp, boolean isSOTrx)
|
||||||
{
|
{
|
||||||
|
@ -100,6 +100,8 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
for (int i = 0; i < locations.length; i++)
|
for (int i = 0; i < locations.length; i++)
|
||||||
{
|
{
|
||||||
MBPartnerLocation location = locations[i];
|
MBPartnerLocation location = locations[i];
|
||||||
|
if (!location.isActive())
|
||||||
|
continue;
|
||||||
if ((location.isPayFrom() && isSOTrx)
|
if ((location.isPayFrom() && isSOTrx)
|
||||||
|| (location.isRemitTo() && !isSOTrx))
|
|| (location.isRemitTo() && !isSOTrx))
|
||||||
{
|
{
|
||||||
|
@ -140,8 +142,8 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
} // setBPartner
|
} // setBPartner
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get Lines
|
* Get Lines
|
||||||
* @return Array of all lines for this Run
|
* @return Array of all lines for this Run
|
||||||
*/
|
*/
|
||||||
public MDunningRunLine[] getLines()
|
public MDunningRunLine[] getLines()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue