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:
teo_sarca 2007-06-18 14:26:07 +00:00
parent 806388c22d
commit 48f0e431a1
1 changed files with 18 additions and 16 deletions

View File

@ -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
{ {
@ -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,7 +142,7 @@ 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()