mjudd 2007-03-06 23:59:40 +00:00
parent 2e119843f5
commit 2f5f0e3aa2
5 changed files with 8 additions and 8 deletions

View File

@ -501,12 +501,12 @@ public final class Find extends CDialog
{
log.info(e.getActionCommand());
//
if (e.getActionCommand() == ConfirmPanel.A_CANCEL)
if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL))
cmd_cancel();
else if (e.getActionCommand() == ConfirmPanel.A_REFRESH)
else if (e.getActionCommand().equals(ConfirmPanel.A_REFRESH))
cmd_refresh();
//
else if (e.getActionCommand() == ConfirmPanel.A_NEW)
else if (e.getActionCommand().equals(ConfirmPanel.A_NEW))
{
m_query = MQuery.getNoRecordQuery(m_tableName, true);
m_total = 0;

View File

@ -164,7 +164,7 @@ public class VCreateFromInvoice extends VCreateFrom implements VetoableChangeLis
log.config(e.getPropertyName() + "=" + e.getNewValue());
// BPartner - load Order/Invoice/Shipment
if (e.getPropertyName() == "C_BPartner_ID")
if (e.getPropertyName().equals("C_BPartner_ID"))
{
int C_BPartner_ID = ((Integer)e.getNewValue()).intValue();
initBPartnerOIS (C_BPartner_ID, true);

View File

@ -179,7 +179,7 @@ public class VCreateFromShipment extends VCreateFrom implements VetoableChangeLi
log.config(e.getPropertyName() + "=" + e.getNewValue());
// BPartner - load Order/Invoice/Shipment
if (e.getPropertyName() == "C_BPartner_ID")
if (e.getPropertyName().equals("C_BPartner_ID"))
{
int C_BPartner_ID = ((Integer)e.getNewValue()).intValue();
initBPartnerOIS (C_BPartner_ID, false);

View File

@ -92,7 +92,7 @@ public class VCreateFromStatement extends VCreateFrom implements VetoableChangeL
log.config(e.getPropertyName() + "=" + e.getNewValue());
// BankAccount
if (e.getPropertyName() == "C_BankAccount_ID")
if (e.getPropertyName().equals("C_BankAccount_ID"))
{
int C_BankAccount_ID = ((Integer)e.getNewValue()).intValue();
loadBankAccount(C_BankAccount_ID);

View File

@ -99,7 +99,7 @@ public class AmtInWords_ES implements AmtInWords
String s = Integer.toString (number);
if (s.endsWith ("2") && soFar != "")
soFar = " VEINTI" + soFar.trim ();
else if (soFar == "")
else if (soFar.equals(""))
soFar = tensNames[number % 10] + soFar;
else
soFar = tensNames[number % 10] + " Y" + soFar;
@ -153,7 +153,7 @@ public class AmtInWords_ES implements AmtInWords
{
s = s.replaceFirst ("NUEVE CIENTOS", "NOVECIENTOS");
}
if (s == " UNO")
if (s.equals(" UNO"))
{
soFar = majorNames[place] + soFar;
}