This commit is contained in:
parent
2e119843f5
commit
2f5f0e3aa2
|
@ -501,12 +501,12 @@ public final class Find extends CDialog
|
||||||
{
|
{
|
||||||
log.info(e.getActionCommand());
|
log.info(e.getActionCommand());
|
||||||
//
|
//
|
||||||
if (e.getActionCommand() == ConfirmPanel.A_CANCEL)
|
if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL))
|
||||||
cmd_cancel();
|
cmd_cancel();
|
||||||
else if (e.getActionCommand() == ConfirmPanel.A_REFRESH)
|
else if (e.getActionCommand().equals(ConfirmPanel.A_REFRESH))
|
||||||
cmd_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_query = MQuery.getNoRecordQuery(m_tableName, true);
|
||||||
m_total = 0;
|
m_total = 0;
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class VCreateFromInvoice extends VCreateFrom implements VetoableChangeLis
|
||||||
log.config(e.getPropertyName() + "=" + e.getNewValue());
|
log.config(e.getPropertyName() + "=" + e.getNewValue());
|
||||||
|
|
||||||
// BPartner - load Order/Invoice/Shipment
|
// 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();
|
int C_BPartner_ID = ((Integer)e.getNewValue()).intValue();
|
||||||
initBPartnerOIS (C_BPartner_ID, true);
|
initBPartnerOIS (C_BPartner_ID, true);
|
||||||
|
|
|
@ -179,7 +179,7 @@ public class VCreateFromShipment extends VCreateFrom implements VetoableChangeLi
|
||||||
log.config(e.getPropertyName() + "=" + e.getNewValue());
|
log.config(e.getPropertyName() + "=" + e.getNewValue());
|
||||||
|
|
||||||
// BPartner - load Order/Invoice/Shipment
|
// 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();
|
int C_BPartner_ID = ((Integer)e.getNewValue()).intValue();
|
||||||
initBPartnerOIS (C_BPartner_ID, false);
|
initBPartnerOIS (C_BPartner_ID, false);
|
||||||
|
|
|
@ -92,7 +92,7 @@ public class VCreateFromStatement extends VCreateFrom implements VetoableChangeL
|
||||||
log.config(e.getPropertyName() + "=" + e.getNewValue());
|
log.config(e.getPropertyName() + "=" + e.getNewValue());
|
||||||
|
|
||||||
// BankAccount
|
// BankAccount
|
||||||
if (e.getPropertyName() == "C_BankAccount_ID")
|
if (e.getPropertyName().equals("C_BankAccount_ID"))
|
||||||
{
|
{
|
||||||
int C_BankAccount_ID = ((Integer)e.getNewValue()).intValue();
|
int C_BankAccount_ID = ((Integer)e.getNewValue()).intValue();
|
||||||
loadBankAccount(C_BankAccount_ID);
|
loadBankAccount(C_BankAccount_ID);
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class AmtInWords_ES implements AmtInWords
|
||||||
String s = Integer.toString (number);
|
String s = Integer.toString (number);
|
||||||
if (s.endsWith ("2") && soFar != "")
|
if (s.endsWith ("2") && soFar != "")
|
||||||
soFar = " VEINTI" + soFar.trim ();
|
soFar = " VEINTI" + soFar.trim ();
|
||||||
else if (soFar == "")
|
else if (soFar.equals(""))
|
||||||
soFar = tensNames[number % 10] + soFar;
|
soFar = tensNames[number % 10] + soFar;
|
||||||
else
|
else
|
||||||
soFar = tensNames[number % 10] + " Y" + soFar;
|
soFar = tensNames[number % 10] + " Y" + soFar;
|
||||||
|
@ -153,7 +153,7 @@ public class AmtInWords_ES implements AmtInWords
|
||||||
{
|
{
|
||||||
s = s.replaceFirst ("NUEVE CIENTOS", "NOVECIENTOS");
|
s = s.replaceFirst ("NUEVE CIENTOS", "NOVECIENTOS");
|
||||||
}
|
}
|
||||||
if (s == " UNO")
|
if (s.equals(" UNO"))
|
||||||
{
|
{
|
||||||
soFar = majorNames[place] + soFar;
|
soFar = majorNames[place] + soFar;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue