hg merge release-1.0c (forward-porting)
This commit is contained in:
commit
bb789cebb4
|
|
@ -654,6 +654,19 @@ public class MJournal extends X_GL_Journal implements DocAction
|
||||||
if (DOCSTATUS_Drafted.equals(getDocStatus())
|
if (DOCSTATUS_Drafted.equals(getDocStatus())
|
||||||
|| DOCSTATUS_Invalid.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);
|
setProcessed(true);
|
||||||
setDocAction(DOCACTION_None);
|
setDocAction(DOCACTION_None);
|
||||||
ok_to_void = true;
|
ok_to_void = true;
|
||||||
|
|
|
||||||
|
|
@ -196,9 +196,8 @@ public class Scheduler extends AdempiereServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
// always notify recipients
|
||||||
// notify recipients on success
|
|
||||||
Integer[] userIDs = m_model.getRecipientAD_User_IDs();
|
Integer[] userIDs = m_model.getRecipientAD_User_IDs();
|
||||||
if (userIDs.length > 0)
|
if (userIDs.length > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -274,7 +273,7 @@ public class Scheduler extends AdempiereServer
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return pi.getSummary();
|
return pi.getSummary();
|
||||||
} // runProcess
|
} // runProcess
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ public final class ALogin extends CDialog
|
||||||
private GridBagLayout connectionLayout = new GridBagLayout();
|
private GridBagLayout connectionLayout = new GridBagLayout();
|
||||||
private GridBagLayout defaultPanelLayout = new GridBagLayout();
|
private GridBagLayout defaultPanelLayout = new GridBagLayout();
|
||||||
private CLabel languageLabel = new CLabel();
|
private CLabel languageLabel = new CLabel();
|
||||||
private VComboBox languageCombo = new VComboBox(Language.getNames());
|
private VComboBox languageCombo = null;
|
||||||
private CLabel compileDate = new CLabel();
|
private CLabel compileDate = new CLabel();
|
||||||
private CPanel southPanel = new CPanel();
|
private CPanel southPanel = new CPanel();
|
||||||
private BorderLayout southLayout = new BorderLayout();
|
private BorderLayout southLayout = new BorderLayout();
|
||||||
|
|
@ -209,6 +209,10 @@ public final class ALogin extends CDialog
|
||||||
clientCombo.setName("clientCombo");
|
clientCombo.setName("clientCombo");
|
||||||
userTextField.setName("userTextField");
|
userTextField.setName("userTextField");
|
||||||
passwordField.setName("passwordField");
|
passwordField.setName("passwordField");
|
||||||
|
|
||||||
|
Env.getLoginLanguages(); // to fill the s_language array on Language
|
||||||
|
languageCombo = new VComboBox(Language.getNames());
|
||||||
|
|
||||||
//red1 - end -
|
//red1 - end -
|
||||||
titleLabel.setFont(new java.awt.Font("Serif", 2, 10));
|
titleLabel.setFont(new java.awt.Font("Serif", 2, 10));
|
||||||
titleLabel.setForeground(Color.blue);
|
titleLabel.setForeground(Color.blue);
|
||||||
|
|
|
||||||
|
|
@ -459,13 +459,13 @@ public class WAcctViewerData
|
||||||
|
|
||||||
// Groups
|
// Groups
|
||||||
|
|
||||||
if (group1 && sortBy1.length() > 0)
|
if ((group1 || group2 || group3 || group4) && sortBy1.length() > 0)
|
||||||
rm.setGroup(sortBy1);
|
rm.setGroup(sortBy1);
|
||||||
|
|
||||||
if (group2 && sortBy2.length() > 0)
|
if ((group2 || group3 || group4) && sortBy2.length() > 0)
|
||||||
rm.setGroup(sortBy2);
|
rm.setGroup(sortBy2);
|
||||||
|
|
||||||
if (group3 && sortBy3.length() > 0)
|
if ((group3 || group4) && sortBy3.length() > 0)
|
||||||
rm.setGroup(sortBy3);
|
rm.setGroup(sortBy3);
|
||||||
|
|
||||||
if (group4 && sortBy4.length() > 0)
|
if (group4 && sortBy4.length() > 0)
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,6 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.apache.ecs;
|
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
|
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.
|
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
|
Basic constructor
|
||||||
*/
|
*/
|
||||||
|
|
@ -75,41 +72,6 @@ public class StringElement extends ConcreteElement implements Printable
|
||||||
return this;
|
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.
|
Adds an Element to the element.
|
||||||
@param hashcode name of element for hash table
|
@param hashcode name of element for hash table
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue