hg merge release-1.0c (forward-porting)

This commit is contained in:
Carlos Ruiz 2013-10-25 14:22:00 -05:00
commit bb789cebb4
5 changed files with 92 additions and 114 deletions

View File

@ -654,6 +654,19 @@ public class MJournal extends X_GL_Journal implements DocAction
if (DOCSTATUS_Drafted.equals(getDocStatus())
|| DOCSTATUS_Invalid.equals(getDocStatus()))
{
// set lines to 0
MJournalLine[] lines = getLines(false);
for (int i = 0; i < lines.length; i++) {
MJournalLine line = lines[i];
if (line.getAmtAcctDr().signum() != 0 || line.getAmtAcctCr().signum() != 0) {
line.setAmtAcctDr(Env.ZERO);
line.setAmtAcctCr(Env.ZERO);
line.setAmtSourceDr(Env.ZERO);
line.setAmtSourceCr(Env.ZERO);
line.setQty(Env.ZERO);
line.saveEx(get_TrxName());
}
}
setProcessed(true);
setDocAction(DOCACTION_None);
ok_to_void = true;

View File

@ -196,9 +196,8 @@ public class Scheduler extends AdempiereServer
}
}
}
else
{
// notify recipients on success
// always notify recipients
Integer[] userIDs = m_model.getRecipientAD_User_IDs();
if (userIDs.length > 0)
{
@ -274,7 +273,7 @@ public class Scheduler extends AdempiereServer
}
}
}
return pi.getSummary();
} // runProcess

View File

@ -154,7 +154,7 @@ public final class ALogin extends CDialog
private GridBagLayout connectionLayout = new GridBagLayout();
private GridBagLayout defaultPanelLayout = new GridBagLayout();
private CLabel languageLabel = new CLabel();
private VComboBox languageCombo = new VComboBox(Language.getNames());
private VComboBox languageCombo = null;
private CLabel compileDate = new CLabel();
private CPanel southPanel = new CPanel();
private BorderLayout southLayout = new BorderLayout();
@ -209,6 +209,10 @@ public final class ALogin extends CDialog
clientCombo.setName("clientCombo");
userTextField.setName("userTextField");
passwordField.setName("passwordField");
Env.getLoginLanguages(); // to fill the s_language array on Language
languageCombo = new VComboBox(Language.getNames());
//red1 - end -
titleLabel.setFont(new java.awt.Font("Serif", 2, 10));
titleLabel.setForeground(Color.blue);

View File

@ -459,13 +459,13 @@ public class WAcctViewerData
// Groups
if (group1 && sortBy1.length() > 0)
if ((group1 || group2 || group3 || group4) && sortBy1.length() > 0)
rm.setGroup(sortBy1);
if (group2 && sortBy2.length() > 0)
if ((group2 || group3 || group4) && sortBy2.length() > 0)
rm.setGroup(sortBy2);
if (group3 && sortBy3.length() > 0)
if ((group3 || group4) && sortBy3.length() > 0)
rm.setGroup(sortBy3);
if (group4 && sortBy4.length() > 0)

View File

@ -16,10 +16,6 @@
*****************************************************************************/
package org.apache.ecs;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
/**
This class is used to create a String element in ECS. A StringElement
has no tags wrapped around it, it is an Element without tags.
@ -33,7 +29,8 @@ public class StringElement extends ConcreteElement implements Printable
/**
*
*/
private static final long serialVersionUID = -1589031493456017832L;
private static final long serialVersionUID = -4270491831650738524L;
/**
Basic constructor
*/
@ -75,41 +72,6 @@ public class StringElement extends ConcreteElement implements Printable
return this;
}
/**
* Set Tag Text
* @param text text
* @return Element
*/
public Element setTagText (String text)
{
if (text != null && text.length() > 0)
{
StringCharacterIterator sci = new StringCharacterIterator(text);
for (char c = sci.first(); c != CharacterIterator.DONE; c = sci.next())
{
int ii = c;
if (ii > 255)
{
setFilterState(true);
break;
}
}
}
return super.setTagText (text);
} // setTagText
/**
* Set Filter State - don't allow reset
* @param filter_state state
* @return this
*/
public Element setFilterState (boolean filter_state)
{
if (!getFilterState())
return super.setFilterState (filter_state);
return this;
} // setFilterState
/**
Adds an Element to the element.
@param hashcode name of element for hash table