BF [ 1619150 ] Usability/Consistency: reversed gl journal description
This commit is contained in:
parent
13508e6916
commit
19ee138849
|
@ -26,6 +26,10 @@ import org.compiere.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GL Journal Model
|
* GL Journal Model
|
||||||
|
* <p>Change log:
|
||||||
|
* <ul>
|
||||||
|
* <li>2007-02-26 - teo_sarca - [ 1619150 ] Usability/Consistency: reversed gl journal description
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: MJournal.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
|
* @version $Id: MJournal.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
|
||||||
|
@ -171,6 +175,19 @@ public class MJournal extends X_GL_Journal implements DocAction
|
||||||
setCurrencyRate(CurrencyRate);
|
setCurrencyRate(CurrencyRate);
|
||||||
} // setCurrency
|
} // setCurrency
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add to Description
|
||||||
|
* @param description text
|
||||||
|
* @since 3.1.4
|
||||||
|
*/
|
||||||
|
public void addDescription (String description)
|
||||||
|
{
|
||||||
|
String desc = getDescription();
|
||||||
|
if (desc == null)
|
||||||
|
setDescription(description);
|
||||||
|
else
|
||||||
|
setDescription(desc + " | " + description);
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Get Journal Lines
|
* Get Journal Lines
|
||||||
|
@ -578,14 +595,10 @@ public class MJournal extends X_GL_Journal implements DocAction
|
||||||
reverse.setC_Period_ID(getC_Period_ID());
|
reverse.setC_Period_ID(getC_Period_ID());
|
||||||
reverse.setDateAcct(getDateAcct());
|
reverse.setDateAcct(getDateAcct());
|
||||||
// Reverse indicator
|
// Reverse indicator
|
||||||
String description = reverse.getDescription();
|
reverse.addDescription("(->" + getDocumentNo() + ")");
|
||||||
if (description == null)
|
|
||||||
description = "** " + getDocumentNo() + " **";
|
|
||||||
else
|
|
||||||
description += " ** " + getDocumentNo() + " **";
|
|
||||||
reverse.setDescription(description);
|
|
||||||
if (!reverse.save())
|
if (!reverse.save())
|
||||||
return null;
|
return null;
|
||||||
|
addDescription("(" + reverse.getDocumentNo() + "<-)");
|
||||||
|
|
||||||
// Lines
|
// Lines
|
||||||
reverse.copyLinesFrom(this, null, 'C');
|
reverse.copyLinesFrom(this, null, 'C');
|
||||||
|
|
Loading…
Reference in New Issue