IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse Warning : Is never used
This commit is contained in:
parent
b8dc2f16dc
commit
1e30b56290
|
@ -368,7 +368,6 @@ public class CalloutInvoiceBatch extends CalloutEngine
|
||||||
LineNetAmt = LineNetAmt.setScale(StdPrecision, BigDecimal.ROUND_HALF_UP);
|
LineNetAmt = LineNetAmt.setScale(StdPrecision, BigDecimal.ROUND_HALF_UP);
|
||||||
|
|
||||||
// Calculate Tax Amount
|
// Calculate Tax Amount
|
||||||
boolean IsSOTrx = "Y".equals(Env.getContext(Env.getCtx(), WindowNo, "IsSOTrx"));
|
|
||||||
boolean IsTaxIncluded = "Y".equals(Env.getContext(Env.getCtx(), WindowNo, "IsTaxIncluded"));
|
boolean IsTaxIncluded = "Y".equals(Env.getContext(Env.getCtx(), WindowNo, "IsTaxIncluded"));
|
||||||
|
|
||||||
BigDecimal TaxAmt = null;
|
BigDecimal TaxAmt = null;
|
||||||
|
|
|
@ -20,7 +20,6 @@ package org.compiere.model;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import org.compiere.util.DB;
|
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,7 +28,6 @@ import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.DisplayType;
|
import org.compiere.util.DisplayType;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Ini;
|
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -247,6 +247,7 @@ public class ImmediateBankTransfer extends SvrProcess
|
||||||
|
|
||||||
// Create Cash & CashLines
|
// Create Cash & CashLines
|
||||||
MCash cash = createCash();
|
MCash cash = createCash();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MCashLine cashLines[]= createCashLines(cash);
|
MCashLine cashLines[]= createCashLines(cash);
|
||||||
|
|
||||||
StringBuilder processMsg = new StringBuilder().append(cash.getDocumentNo());
|
StringBuilder processMsg = new StringBuilder().append(cash.getDocumentNo());
|
||||||
|
|
|
@ -193,15 +193,15 @@ public class Aging extends SvrProcess
|
||||||
int C_Currency_ID = rs.getInt(5);
|
int C_Currency_ID = rs.getInt(5);
|
||||||
boolean IsSOTrx = "Y".equals(rs.getString(6));
|
boolean IsSOTrx = "Y".equals(rs.getString(6));
|
||||||
//
|
//
|
||||||
Timestamp DateInvoiced = rs.getTimestamp(7);
|
//Timestamp DateInvoiced = rs.getTimestamp(7);
|
||||||
int NetDays = rs.getInt(8);
|
//int NetDays = rs.getInt(8);
|
||||||
Timestamp DueDate = rs.getTimestamp(9);
|
Timestamp DueDate = rs.getTimestamp(9);
|
||||||
// Days Due
|
// Days Due
|
||||||
int DaysDue = rs.getInt(10) // based on today
|
int DaysDue = rs.getInt(10) // based on today
|
||||||
+ m_statementOffset;
|
+ m_statementOffset;
|
||||||
//
|
//
|
||||||
BigDecimal GrandTotal = rs.getBigDecimal(11);
|
BigDecimal GrandTotal = rs.getBigDecimal(11);
|
||||||
BigDecimal PaidAmt = rs.getBigDecimal(12);
|
//BigDecimal PaidAmt = rs.getBigDecimal(12);
|
||||||
BigDecimal OpenAmt = rs.getBigDecimal(13);
|
BigDecimal OpenAmt = rs.getBigDecimal(13);
|
||||||
//
|
//
|
||||||
int C_Activity_ID = p_IsListInvoices ? rs.getInt(14) : 0;
|
int C_Activity_ID = p_IsListInvoices ? rs.getInt(14) : 0;
|
||||||
|
|
|
@ -197,9 +197,9 @@ public class AllocationReset extends SvrProcess
|
||||||
/**
|
/**
|
||||||
* Set BPartner (may not be required
|
* Set BPartner (may not be required
|
||||||
*/
|
*/
|
||||||
private void setBPartner()
|
/*private void setBPartner()
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
UPDATE C_AllocationLine al
|
UPDATE C_AllocationLine al
|
||||||
SET C_BPartner_ID=(SELECT C_BPartner_ID FROM C_Payment p WHERE al.C_Payment_ID=p.C_Payment_ID)
|
SET C_BPartner_ID=(SELECT C_BPartner_ID FROM C_Payment p WHERE al.C_Payment_ID=p.C_Payment_ID)
|
||||||
WHERE C_BPartner_ID IS NULL AND C_Payment_ID IS NOT NULL;
|
WHERE C_BPartner_ID IS NULL AND C_Payment_ID IS NOT NULL;
|
||||||
|
@ -210,7 +210,6 @@ public class AllocationReset extends SvrProcess
|
||||||
SET C_BPartner_ID=(SELECT C_BPartner_ID FROM C_Order o WHERE al.C_Order_ID=o.C_Order_ID)
|
SET C_BPartner_ID=(SELECT C_BPartner_ID FROM C_Order o WHERE al.C_Order_ID=o.C_Order_ID)
|
||||||
WHERE C_BPartner_ID IS NULL AND C_Order_ID IS NOT NULL;
|
WHERE C_BPartner_ID IS NULL AND C_Order_ID IS NOT NULL;
|
||||||
COMMIT
|
COMMIT
|
||||||
**/
|
} // setBPartner*/
|
||||||
} // setBPartner
|
|
||||||
|
|
||||||
} // AllocationReset
|
} // AllocationReset
|
||||||
|
|
|
@ -19,7 +19,6 @@ import java.util.logging.Level;
|
||||||
|
|
||||||
import org.adempiere.exceptions.AdempiereException;
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.compiere.model.MProcess;
|
import org.compiere.model.MProcess;
|
||||||
import org.compiere.model.MProcessPara;
|
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -152,7 +152,6 @@ public class CostUpdate extends SvrProcess
|
||||||
if (p_SetFutureCostTo.length() == 0)
|
if (p_SetFutureCostTo.length() == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
String toTarget = to;
|
|
||||||
if (to.equals(TO_AverageInvoiceHistory))
|
if (to.equals(TO_AverageInvoiceHistory))
|
||||||
to = TO_AverageInvoice;
|
to = TO_AverageInvoice;
|
||||||
if (to.equals(TO_AveragePOHistory))
|
if (to.equals(TO_AveragePOHistory))
|
||||||
|
|
|
@ -71,6 +71,7 @@ public class DistributionRun extends SvrProcess
|
||||||
/** Consolidate Document **/
|
/** Consolidate Document **/
|
||||||
private boolean p_ConsolidateDocument = false;
|
private boolean p_ConsolidateDocument = false;
|
||||||
/** Distribution List **/
|
/** Distribution List **/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int p_M_DistributionList_ID = 0;
|
private int p_M_DistributionList_ID = 0;
|
||||||
/** Distribute Based in DRP Demand **/
|
/** Distribute Based in DRP Demand **/
|
||||||
private boolean p_BasedInDamnd = false;
|
private boolean p_BasedInDamnd = false;
|
||||||
|
|
|
@ -260,6 +260,7 @@ public class InvoiceGenerate extends SvrProcess
|
||||||
BigDecimal toInvoice = oLine.getQtyOrdered().subtract(oLine.getQtyInvoiced());
|
BigDecimal toInvoice = oLine.getQtyOrdered().subtract(oLine.getQtyInvoiced());
|
||||||
if (toInvoice.compareTo(Env.ZERO) == 0 && oLine.getM_Product_ID() != 0)
|
if (toInvoice.compareTo(Env.ZERO) == 0 && oLine.getM_Product_ID() != 0)
|
||||||
continue;
|
continue;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
BigDecimal notInvoicedShipment = oLine.getQtyDelivered().subtract(oLine.getQtyInvoiced());
|
BigDecimal notInvoicedShipment = oLine.getQtyDelivered().subtract(oLine.getQtyInvoiced());
|
||||||
//
|
//
|
||||||
boolean fullyDelivered = oLine.getQtyOrdered().compareTo(oLine.getQtyDelivered()) == 0;
|
boolean fullyDelivered = oLine.getQtyOrdered().compareTo(oLine.getQtyDelivered()) == 0;
|
||||||
|
|
|
@ -350,6 +350,7 @@ public class InvoicePrint extends SvrProcess
|
||||||
StringBuilder sb = new StringBuilder ("UPDATE C_Invoice ")
|
StringBuilder sb = new StringBuilder ("UPDATE C_Invoice ")
|
||||||
.append("SET DatePrinted=SysDate, IsPrinted='Y' WHERE C_Invoice_ID=")
|
.append("SET DatePrinted=SysDate, IsPrinted='Y' WHERE C_Invoice_ID=")
|
||||||
.append (C_Invoice_ID);
|
.append (C_Invoice_ID);
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int no = DB.executeUpdate(sb.toString(), get_TrxName());
|
int no = DB.executeUpdate(sb.toString(), get_TrxName());
|
||||||
}
|
}
|
||||||
} // for all entries
|
} // for all entries
|
||||||
|
|
|
@ -86,8 +86,11 @@ public class M_PriceList_Create extends SvrProcess {
|
||||||
int cntu = 0;
|
int cntu = 0;
|
||||||
int cntd = 0;
|
int cntd = 0;
|
||||||
int cnti = 0;
|
int cnti = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int totu = 0;
|
int totu = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int toti = 0;
|
int toti = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int totd = 0;
|
int totd = 0;
|
||||||
int V_temp;
|
int V_temp;
|
||||||
int v_NextNo = 0;
|
int v_NextNo = 0;
|
||||||
|
|
|
@ -34,7 +34,6 @@ import org.compiere.model.X_M_ProductionPlan;
|
||||||
import org.compiere.util.AdempiereUserError;
|
import org.compiere.util.AdempiereUserError;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
|
||||||
import org.compiere.util.ValueNamePair;
|
import org.compiere.util.ValueNamePair;
|
||||||
import org.eevolution.model.MPPProductBOM;
|
import org.eevolution.model.MPPProductBOM;
|
||||||
import org.eevolution.model.MPPProductBOMLine;
|
import org.eevolution.model.MPPProductBOMLine;
|
||||||
|
@ -194,6 +193,7 @@ public class M_Production_Run extends SvrProcess {
|
||||||
|
|
||||||
/* Immediate accounting */
|
/* Immediate accounting */
|
||||||
if (MClient.isClientAccountingImmediate()) {
|
if (MClient.isClientAccountingImmediate()) {
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String ignoreError = DocumentEngine.postImmediate(getCtx(), getAD_Client_ID(), production.get_Table_ID(), production.get_ID(), true, get_TrxName());
|
String ignoreError = DocumentEngine.postImmediate(getCtx(), getAD_Client_ID(), production.get_Table_ID(), production.get_ID(), true, get_TrxName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -506,6 +506,7 @@ public class ReplicationLocal extends SvrProcess
|
||||||
private void exit()
|
private void exit()
|
||||||
{
|
{
|
||||||
log.info ("exit");
|
log.info ("exit");
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Object result = doIt(START, "exit", null);
|
Object result = doIt(START, "exit", null);
|
||||||
ProcessInfo pi = new ProcessInfo("Exit", 0);
|
ProcessInfo pi = new ProcessInfo("Exit", 0);
|
||||||
pi.setClassName (REMOTE);
|
pi.setClassName (REMOTE);
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class ReplicationRemote extends SvrProcess
|
||||||
// Update Tables ****
|
// Update Tables ****
|
||||||
while (rs.next ())
|
while (rs.next ())
|
||||||
{
|
{
|
||||||
int AD_Table_ID = rs.getInt(1);
|
//int AD_Table_ID = rs.getInt(1);
|
||||||
String ReplicationType = rs.getString(2);
|
String ReplicationType = rs.getString(2);
|
||||||
String TableName = rs.getString(3);
|
String TableName = rs.getString(3);
|
||||||
log.fine("setupRemote - " + TableName + " - " + ReplicationType);
|
log.fine("setupRemote - " + TableName + " - " + ReplicationType);
|
||||||
|
@ -306,7 +306,9 @@ public class ReplicationRemote extends SvrProcess
|
||||||
private String exit() throws Exception
|
private String exit() throws Exception
|
||||||
{
|
{
|
||||||
log.info ("exit");
|
log.info ("exit");
|
||||||
|
@SuppressWarnings("unused")
|
||||||
ProcessInfo pi = getProcessInfo();
|
ProcessInfo pi = getProcessInfo();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Object result = doIt(ReplicationLocal.START, "exit", null);
|
Object result = doIt(ReplicationLocal.START, "exit", null);
|
||||||
return "exit";
|
return "exit";
|
||||||
} // exit
|
} // exit
|
||||||
|
|
|
@ -280,6 +280,7 @@ public class RequestEMailProcessor extends SvrProcess
|
||||||
log.info("message info: Sent -> " + msg.getSentDate() + " From -> " + msg.getFrom()[0].toString());
|
log.info("message info: Sent -> " + msg.getSentDate() + " From -> " + msg.getFrom()[0].toString());
|
||||||
// Delete in InBox
|
// Delete in InBox
|
||||||
msg.setFlag(Flags.Flag.DELETED, true);
|
msg.setFlag(Flags.Flag.DELETED, true);
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Message[] deleted = inbox.expunge();
|
Message[] deleted = inbox.expunge();
|
||||||
|
|
||||||
noRequest++;
|
noRequest++;
|
||||||
|
|
|
@ -22,7 +22,6 @@ import java.sql.ResultSet;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.model.MLocator;
|
|
||||||
import org.compiere.model.MMovement;
|
import org.compiere.model.MMovement;
|
||||||
import org.compiere.model.MMovementLine;
|
import org.compiere.model.MMovementLine;
|
||||||
import org.compiere.model.MRefList;
|
import org.compiere.model.MRefList;
|
||||||
|
|
|
@ -120,6 +120,7 @@ public class GraphColumn
|
||||||
/** Column Data Value */
|
/** Column Data Value */
|
||||||
private double m_value = 0;
|
private double m_value = 0;
|
||||||
/** Column Label Value */
|
/** Column Label Value */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_labelValue = "";
|
private String m_labelValue = "";
|
||||||
/** Column Data Target Value */
|
/** Column Data Target Value */
|
||||||
private double m_targetValue = 0;
|
private double m_targetValue = 0;
|
||||||
|
@ -129,6 +130,7 @@ public class GraphColumn
|
||||||
private double m_height = 0;
|
private double m_height = 0;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger log = CLogger.getCLogger (GraphColumn.class);
|
private static CLogger log = CLogger.getCLogger (GraphColumn.class);
|
||||||
/** Integer Number Format */
|
/** Integer Number Format */
|
||||||
private static DecimalFormat s_format = DisplayType.getNumberFormat(DisplayType.Integer);
|
private static DecimalFormat s_format = DisplayType.getNumberFormat(DisplayType.Integer);
|
||||||
|
|
|
@ -902,7 +902,6 @@ public class ModelClassGenerator
|
||||||
sql.append(" ORDER BY TableName");
|
sql.append(" ORDER BY TableName");
|
||||||
|
|
||||||
//
|
//
|
||||||
int count = 0;
|
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
@ -912,7 +911,6 @@ public class ModelClassGenerator
|
||||||
while (rs.next())
|
while (rs.next())
|
||||||
{
|
{
|
||||||
new ModelClassGenerator(rs.getInt(1), directory.toString(), packageName);
|
new ModelClassGenerator(rs.getInt(1), directory.toString(), packageName);
|
||||||
count++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
|
|
@ -825,7 +825,6 @@ public class ModelInterfaceGenerator
|
||||||
sql.append(" ORDER BY TableName");
|
sql.append(" ORDER BY TableName");
|
||||||
|
|
||||||
//
|
//
|
||||||
int count = 0;
|
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
@ -835,7 +834,6 @@ public class ModelInterfaceGenerator
|
||||||
while (rs.next())
|
while (rs.next())
|
||||||
{
|
{
|
||||||
new ModelInterfaceGenerator(rs.getInt(1), directory.toString(), packageName);
|
new ModelInterfaceGenerator(rs.getInt(1), directory.toString(), packageName);
|
||||||
count++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
|
|
@ -24,7 +24,6 @@ import java.io.InputStream;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.jnlp.BasicService;
|
import javax.jnlp.BasicService;
|
||||||
|
|
|
@ -28,7 +28,6 @@ import org.compiere.model.MAcctSchemaElement;
|
||||||
import org.compiere.model.MAllocationHdr;
|
import org.compiere.model.MAllocationHdr;
|
||||||
import org.compiere.model.MAllocationLine;
|
import org.compiere.model.MAllocationLine;
|
||||||
import org.compiere.model.MCashLine;
|
import org.compiere.model.MCashLine;
|
||||||
import org.compiere.model.MCharge; // adaxa-pb
|
|
||||||
import org.compiere.model.MConversionRate;
|
import org.compiere.model.MConversionRate;
|
||||||
import org.compiere.model.MFactAcct;
|
import org.compiere.model.MFactAcct;
|
||||||
import org.compiere.model.MInvoice;
|
import org.compiere.model.MInvoice;
|
||||||
|
@ -200,6 +199,7 @@ public class Doc_AllocationHdr extends Doc
|
||||||
.add(line.getWriteOffAmt());
|
.add(line.getWriteOffAmt());
|
||||||
BigDecimal allocationSourceForRGL = allocationSource; // for realized gain & loss purposes
|
BigDecimal allocationSourceForRGL = allocationSource; // for realized gain & loss purposes
|
||||||
BigDecimal allocationAccounted = Env.ZERO; // AR/AP balance corrected
|
BigDecimal allocationAccounted = Env.ZERO; // AR/AP balance corrected
|
||||||
|
@SuppressWarnings("unused")
|
||||||
BigDecimal allocationAccountedForRGL = Env.ZERO; // for realized gain & loss purposes
|
BigDecimal allocationAccountedForRGL = Env.ZERO; // for realized gain & loss purposes
|
||||||
|
|
||||||
FactLine fl = null;
|
FactLine fl = null;
|
||||||
|
@ -817,6 +817,7 @@ public class Doc_AllocationHdr extends Doc
|
||||||
{
|
{
|
||||||
fact.createLine (line, acct,
|
fact.createLine (line, acct,
|
||||||
as.getC_Currency_ID(), acctDifference);
|
as.getC_Currency_ID(), acctDifference);
|
||||||
|
@SuppressWarnings("unused")
|
||||||
FactLine fl = fact.createLine (line, loss, gain,
|
FactLine fl = fact.createLine (line, loss, gain,
|
||||||
as.getC_Currency_ID(), acctDifference.negate());
|
as.getC_Currency_ID(), acctDifference.negate());
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,6 +149,7 @@ public class Doc_GLJournal extends Doc
|
||||||
{
|
{
|
||||||
if (p_lines[i].getC_AcctSchema_ID () == as.getC_AcctSchema_ID ())
|
if (p_lines[i].getC_AcctSchema_ID () == as.getC_AcctSchema_ID ())
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
FactLine line = fact.createLine (p_lines[i],
|
FactLine line = fact.createLine (p_lines[i],
|
||||||
p_lines[i].getAccount (),
|
p_lines[i].getAccount (),
|
||||||
getC_Currency_ID(),
|
getC_Currency_ID(),
|
||||||
|
|
|
@ -60,6 +60,7 @@ public class Doc_InOut extends Doc
|
||||||
} // DocInOut
|
} // DocInOut
|
||||||
|
|
||||||
private int m_Reversal_ID = 0;
|
private int m_Reversal_ID = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_DocStatus = "";
|
private String m_DocStatus = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -44,6 +44,7 @@ import org.compiere.util.Env;
|
||||||
public class Doc_Inventory extends Doc
|
public class Doc_Inventory extends Doc
|
||||||
{
|
{
|
||||||
private int m_Reversal_ID = 0;
|
private int m_Reversal_ID = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_DocStatus = "";
|
private String m_DocStatus = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -41,6 +41,7 @@ import org.compiere.util.Env;
|
||||||
public class Doc_Movement extends Doc
|
public class Doc_Movement extends Doc
|
||||||
{
|
{
|
||||||
private int m_Reversal_ID = 0;
|
private int m_Reversal_ID = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_DocStatus = "";
|
private String m_DocStatus = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -103,7 +103,6 @@ public class Doc_Order extends Doc
|
||||||
BigDecimal Qty = line.getQtyOrdered();
|
BigDecimal Qty = line.getQtyOrdered();
|
||||||
docLine.setQty(Qty, order.isSOTrx());
|
docLine.setQty(Qty, order.isSOTrx());
|
||||||
//
|
//
|
||||||
BigDecimal PriceActual = line.getPriceActual();
|
|
||||||
BigDecimal PriceCost = null;
|
BigDecimal PriceCost = null;
|
||||||
if (getDocumentType().equals(DOCTYPE_POrder)) // PO
|
if (getDocumentType().equals(DOCTYPE_POrder)) // PO
|
||||||
PriceCost = line.getPriceCost();
|
PriceCost = line.getPriceCost();
|
||||||
|
@ -344,9 +343,10 @@ public class Doc_Order extends Doc
|
||||||
{
|
{
|
||||||
updateProductPO(as);
|
updateProductPO(as);
|
||||||
|
|
||||||
BigDecimal grossAmt = getAmount(Doc.AMTTYPE_Gross);
|
//BigDecimal grossAmt = getAmount(Doc.AMTTYPE_Gross);
|
||||||
|
|
||||||
// Commitment
|
// Commitment
|
||||||
|
@SuppressWarnings("unused")
|
||||||
FactLine fl = null;
|
FactLine fl = null;
|
||||||
if (as.isCreatePOCommitment())
|
if (as.isCreatePOCommitment())
|
||||||
{
|
{
|
||||||
|
@ -416,6 +416,7 @@ public class Doc_Order extends Doc
|
||||||
else if (getDocumentType().equals(DOCTYPE_SOrder))
|
else if (getDocumentType().equals(DOCTYPE_SOrder))
|
||||||
{
|
{
|
||||||
// Commitment
|
// Commitment
|
||||||
|
@SuppressWarnings("unused")
|
||||||
FactLine fl = null;
|
FactLine fl = null;
|
||||||
if (as.isCreateSOCommitment())
|
if (as.isCreateSOCommitment())
|
||||||
{
|
{
|
||||||
|
@ -600,6 +601,7 @@ public class Doc_Order extends Doc
|
||||||
C_InvoiceLine_ID);
|
C_InvoiceLine_ID);
|
||||||
|
|
||||||
BigDecimal total = Env.ZERO;
|
BigDecimal total = Env.ZERO;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
FactLine fl = null;
|
FactLine fl = null;
|
||||||
int C_Currency_ID = -1;
|
int C_Currency_ID = -1;
|
||||||
for (int i = 0; i < commitments.length; i++)
|
for (int i = 0; i < commitments.length; i++)
|
||||||
|
@ -740,6 +742,7 @@ public class Doc_Order extends Doc
|
||||||
M_InOutLine_ID);
|
M_InOutLine_ID);
|
||||||
|
|
||||||
BigDecimal total = Env.ZERO;
|
BigDecimal total = Env.ZERO;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
FactLine fl = null;
|
FactLine fl = null;
|
||||||
int C_Currency_ID = -1;
|
int C_Currency_ID = -1;
|
||||||
for (int i = 0; i < commitments.length; i++)
|
for (int i = 0; i < commitments.length; i++)
|
||||||
|
|
|
@ -19,7 +19,6 @@ package org.compiere.acct;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
@ -30,7 +29,6 @@ import org.compiere.model.MCostDetail;
|
||||||
import org.compiere.model.ProductCost;
|
import org.compiere.model.ProductCost;
|
||||||
import org.compiere.model.X_M_Production;
|
import org.compiere.model.X_M_Production;
|
||||||
import org.compiere.model.X_M_ProductionLine;
|
import org.compiere.model.X_M_ProductionLine;
|
||||||
import org.compiere.model.X_M_ProductionPlan;
|
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class Doc_Requisition extends Doc
|
||||||
DocLine docLine = new DocLine (line, this);
|
DocLine docLine = new DocLine (line, this);
|
||||||
BigDecimal Qty = line.getQty();
|
BigDecimal Qty = line.getQty();
|
||||||
docLine.setQty (Qty, false);
|
docLine.setQty (Qty, false);
|
||||||
BigDecimal PriceActual = line.getPriceActual();
|
//BigDecimal PriceActual = line.getPriceActual();
|
||||||
BigDecimal LineNetAmt = line.getLineNetAmt();
|
BigDecimal LineNetAmt = line.getLineNetAmt();
|
||||||
docLine.setAmount (LineNetAmt); // DR
|
docLine.setAmount (LineNetAmt); // DR
|
||||||
list.add (docLine);
|
list.add (docLine);
|
||||||
|
@ -125,6 +125,7 @@ public class Doc_Requisition extends Doc
|
||||||
Fact fact = new Fact (this, as, Fact.POST_Reservation);
|
Fact fact = new Fact (this, as, Fact.POST_Reservation);
|
||||||
setC_Currency_ID(as.getC_Currency_ID());
|
setC_Currency_ID(as.getC_Currency_ID());
|
||||||
//
|
//
|
||||||
|
@SuppressWarnings("unused")
|
||||||
BigDecimal grossAmt = getAmount (Doc.AMTTYPE_Gross);
|
BigDecimal grossAmt = getAmount (Doc.AMTTYPE_Gross);
|
||||||
// Commitment
|
// Commitment
|
||||||
if (as.isCreateReservation ())
|
if (as.isCreateReservation ())
|
||||||
|
|
|
@ -22,8 +22,6 @@ import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.model.MAcctSchema;
|
|
||||||
import org.compiere.model.MConversionRate;
|
|
||||||
import org.compiere.model.MProduct;
|
import org.compiere.model.MProduct;
|
||||||
import org.compiere.model.MUOMConversion;
|
import org.compiere.model.MUOMConversion;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
|
@ -52,10 +50,13 @@ public class ProductInfo
|
||||||
/** The Product Key */
|
/** The Product Key */
|
||||||
private int m_M_Product_ID = 0;
|
private int m_M_Product_ID = 0;
|
||||||
/** Transaction */
|
/** Transaction */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_trxName = null;
|
private String m_trxName = null;
|
||||||
|
|
||||||
// Product Info
|
// Product Info
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_AD_Client_ID = 0;
|
private int m_AD_Client_ID = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_AD_Org_ID = 0;
|
private int m_AD_Org_ID = 0;
|
||||||
|
|
||||||
private String m_productType = null;
|
private String m_productType = null;
|
||||||
|
@ -234,7 +235,7 @@ public class ProductInfo
|
||||||
* @param onlyPOPriceList use only PO price list
|
* @param onlyPOPriceList use only PO price list
|
||||||
* @return po price
|
* @return po price
|
||||||
*/
|
*/
|
||||||
private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList)
|
/*private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList)
|
||||||
{
|
{
|
||||||
StringBuilder sql = new StringBuilder (
|
StringBuilder sql = new StringBuilder (
|
||||||
"SELECT pl.C_Currency_ID, pp.PriceList, pp.PriceStd, pp.PriceLimit ")
|
"SELECT pl.C_Currency_ID, pp.PriceList, pp.PriceStd, pp.PriceLimit ")
|
||||||
|
@ -287,14 +288,14 @@ public class ProductInfo
|
||||||
price, C_Currency_ID, as.getC_Currency_ID(),
|
price, C_Currency_ID, as.getC_Currency_ID(),
|
||||||
as.getAD_Client_ID(), 0);
|
as.getAD_Client_ID(), 0);
|
||||||
return price;
|
return price;
|
||||||
} // getPOPrice
|
} // getPOPrice*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get PO Cost from Purchase Info - and convert it to AcctSchema Currency
|
* Get PO Cost from Purchase Info - and convert it to AcctSchema Currency
|
||||||
* @param as accounting schema
|
* @param as accounting schema
|
||||||
* @return po cost
|
* @return po cost
|
||||||
*/
|
*/
|
||||||
private BigDecimal getPOCost (MAcctSchema as)
|
/*private BigDecimal getPOCost (MAcctSchema as)
|
||||||
{
|
{
|
||||||
String sql = "SELECT C_Currency_ID, PriceList,PricePO,PriceLastPO "
|
String sql = "SELECT C_Currency_ID, PriceList,PricePO,PriceLastPO "
|
||||||
+ "FROM M_Product_PO WHERE M_Product_ID=? "
|
+ "FROM M_Product_PO WHERE M_Product_ID=? "
|
||||||
|
@ -341,6 +342,6 @@ public class ProductInfo
|
||||||
cost = MConversionRate.convert (as.getCtx(),
|
cost = MConversionRate.convert (as.getCtx(),
|
||||||
cost, C_Currency_ID, as.getC_Currency_ID(), m_AD_Client_ID, m_AD_Org_ID);
|
cost, C_Currency_ID, as.getC_Currency_ID(), m_AD_Client_ID, m_AD_Org_ID);
|
||||||
return cost;
|
return cost;
|
||||||
} // getPOCost
|
} // getPOCost*/
|
||||||
|
|
||||||
} // ProductInfo
|
} // ProductInfo
|
||||||
|
|
|
@ -1295,14 +1295,14 @@ public class CConnection implements Serializable, Cloneable
|
||||||
// if (!Ini.isClient() // Server
|
// if (!Ini.isClient() // Server
|
||||||
// && trxLevel != Connection.TRANSACTION_READ_COMMITTED) // PO_LOB.save()
|
// && trxLevel != Connection.TRANSACTION_READ_COMMITTED) // PO_LOB.save()
|
||||||
// {
|
// {
|
||||||
Exception ee = null;
|
//Exception ee = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
conn = m_db.getCachedConnection(this, autoCommit, transactionIsolation);
|
conn = m_db.getCachedConnection(this, autoCommit, transactionIsolation);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
ee = e;
|
//ee = e;
|
||||||
}
|
}
|
||||||
// Verify Connection
|
// Verify Connection
|
||||||
if (conn != null)
|
if (conn != null)
|
||||||
|
|
|
@ -377,9 +377,10 @@ public class CreateAdempiere
|
||||||
}
|
}
|
||||||
sb.append(columnName).append(" ");
|
sb.append(columnName).append(" ");
|
||||||
// Data Type & Precision
|
// Data Type & Precision
|
||||||
int sqlType = sourceColumns.getInt ("DATA_TYPE"); // sql.Types
|
//int sqlType = sourceColumns.getInt ("DATA_TYPE"); // sql.Types
|
||||||
String typeName = sourceColumns.getString ("TYPE_NAME"); // DB Dependent
|
String typeName = sourceColumns.getString ("TYPE_NAME"); // DB Dependent
|
||||||
int size = sourceColumns.getInt ("COLUMN_SIZE");
|
int size = sourceColumns.getInt ("COLUMN_SIZE");
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int decDigits = sourceColumns.getInt("DECIMAL_DIGITS");
|
int decDigits = sourceColumns.getInt("DECIMAL_DIGITS");
|
||||||
if (sourceColumns.wasNull())
|
if (sourceColumns.wasNull())
|
||||||
decDigits = -1;
|
decDigits = -1;
|
||||||
|
@ -494,6 +495,7 @@ public class CreateAdempiere
|
||||||
String table = tableName.toUpperCase();
|
String table = tableName.toUpperCase();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
ResultSet sourceIndex = md.getIndexInfo(catalog, schema, table, false, false);
|
ResultSet sourceIndex = md.getIndexInfo(catalog, schema, table, false, false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,7 +323,6 @@ public abstract class Convert
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected String recoverQuotedStrings(String retValue, Vector<String>retVars) {
|
protected String recoverQuotedStrings(String retValue, Vector<String>retVars) {
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
for (int i = 0; i < retVars.size(); i++) {
|
for (int i = 0; i < retVars.size(); i++) {
|
||||||
//hengsin, special character in replacement can cause exception
|
//hengsin, special character in replacement can cause exception
|
||||||
String replacement = (String) retVars.get(i);
|
String replacement = (String) retVars.get(i);
|
||||||
|
|
|
@ -1411,7 +1411,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
* Get Tree ID of this tab
|
* Get Tree ID of this tab
|
||||||
* @return ID
|
* @return ID
|
||||||
*/
|
*/
|
||||||
private int getTreeID()
|
/*private int getTreeID()
|
||||||
{
|
{
|
||||||
log.fine(m_vo.TableName);
|
log.fine(m_vo.TableName);
|
||||||
String SQL = "SELECT * FROM AD_ClientInfo WHERE AD_Client="
|
String SQL = "SELECT * FROM AD_ClientInfo WHERE AD_Client="
|
||||||
|
@ -1431,7 +1431,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
else if (m_vo.TableName.equals("C_Project"))
|
else if (m_vo.TableName.equals("C_Project"))
|
||||||
return 60; // PJ
|
return 60; // PJ
|
||||||
return 0;
|
return 0;
|
||||||
} // getTreeID
|
} // getTreeID*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if this is a detail record
|
* Returns true if this is a detail record
|
||||||
|
|
|
@ -393,7 +393,7 @@ public class GridTable extends AbstractTableModel
|
||||||
m_SQL_Count += where.toString();
|
m_SQL_Count += where.toString();
|
||||||
if (m_withAccessControl)
|
if (m_withAccessControl)
|
||||||
{
|
{
|
||||||
boolean ro = MRole.SQL_RO;
|
// boolean ro = MRole.SQL_RO;
|
||||||
// if (!m_readOnly)
|
// if (!m_readOnly)
|
||||||
// ro = MRole.SQL_RW;
|
// ro = MRole.SQL_RW;
|
||||||
m_SQL = MRole.getDefault(m_ctx, false).addAccessSQL(m_SQL,
|
m_SQL = MRole.getDefault(m_ctx, false).addAccessSQL(m_SQL,
|
||||||
|
|
|
@ -450,7 +450,7 @@ public class GridWorkbench implements Serializable
|
||||||
{
|
{
|
||||||
if (index < 0 || index > m_windows.size())
|
if (index < 0 || index > m_windows.size())
|
||||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||||
WBWindow win = (WBWindow)m_windows.get(index);
|
//WBWindow win = (WBWindow)m_windows.get(index);
|
||||||
int retValue = -1;
|
int retValue = -1;
|
||||||
// if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
// if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
||||||
// return win.mWindow.getAD_Color_ID();
|
// return win.mWindow.getAD_Color_ID();
|
||||||
|
|
|
@ -68,6 +68,7 @@ public class MAchievement extends X_PA_Achievement
|
||||||
|
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MAchievement.class);
|
private static CLogger s_log = CLogger.getCLogger (MAchievement.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class MAlertProcessor extends X_AD_AlertProcessor
|
||||||
} // getActive
|
} // getActive
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MAlertProcessor.class);
|
private static CLogger s_log = CLogger.getCLogger (MAlertProcessor.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@ public class MAllocationLine extends X_C_AllocationLine
|
||||||
} // MAllocationLine
|
} // MAllocationLine
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MAllocationLine.class);
|
private static CLogger s_log = CLogger.getCLogger (MAllocationLine.class);
|
||||||
/** Invoice info */
|
/** Invoice info */
|
||||||
private MInvoice m_invoice = null;
|
private MInvoice m_invoice = null;
|
||||||
|
|
|
@ -207,6 +207,7 @@ implements DocAction
|
||||||
assetAcct.setValidFrom(getDateAcct());
|
assetAcct.setValidFrom(getDateAcct());
|
||||||
assetAcct.saveEx();
|
assetAcct.saveEx();
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MDepreciationWorkfile wk = MDepreciationWorkfile.get(getCtx(), getA_Asset_ID(), getPostingType(), get_TrxName());
|
MDepreciationWorkfile wk = MDepreciationWorkfile.get(getCtx(), getA_Asset_ID(), getPostingType(), get_TrxName());
|
||||||
/* commented out by @win, deprecating existing design
|
/* commented out by @win, deprecating existing design
|
||||||
wk.buildDepreciation();
|
wk.buildDepreciation();
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class MAttachment extends X_AD_Attachment
|
||||||
} // get
|
} // get
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MAttachment.class);
|
private static CLogger s_log = CLogger.getCLogger (MAttachment.class);
|
||||||
|
|
||||||
private MStorageProvider provider;
|
private MStorageProvider provider;
|
||||||
|
|
|
@ -83,6 +83,7 @@ public class MBOM extends X_M_BOM
|
||||||
private static CCache<Integer,MBOM> s_cache
|
private static CCache<Integer,MBOM> s_cache
|
||||||
= new CCache<Integer,MBOM>(Table_Name, 20);
|
= new CCache<Integer,MBOM>(Table_Name, 20);
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MBOM.class);
|
private static CLogger s_log = CLogger.getCLogger (MBOM.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ public class MBOMProduct extends X_M_BOMProduct
|
||||||
} // getOfProduct
|
} // getOfProduct
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MBOMProduct.class);
|
private static CLogger s_log = CLogger.getCLogger (MBOMProduct.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class MBPBankAccount extends X_C_BP_BankAccount
|
||||||
} // getOfBPartner
|
} // getOfBPartner
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MBPBankAccount.class);
|
private static CLogger s_log = CLogger.getCLogger(MBPBankAccount.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -52,6 +52,7 @@ public class MBankStatementMatcher extends X_C_BankStatementMatcher
|
||||||
String sql = MRole.getDefault(ctx, false).addAccessSQL(
|
String sql = MRole.getDefault(ctx, false).addAccessSQL(
|
||||||
"SELECT * FROM C_BankStatementMatcher ORDER BY SeqNo",
|
"SELECT * FROM C_BankStatementMatcher ORDER BY SeqNo",
|
||||||
"C_BankStatementMatcher", MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
"C_BankStatementMatcher", MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int AD_Client_ID = Env.getAD_Client_ID(ctx);
|
int AD_Client_ID = Env.getAD_Client_ID(ctx);
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
try
|
try
|
||||||
|
|
|
@ -104,6 +104,7 @@ public class MCashBook extends X_C_CashBook
|
||||||
private static CCache<Integer,MCashBook> s_cache
|
private static CCache<Integer,MCashBook> s_cache
|
||||||
= new CCache<Integer,MCashBook>(Table_Name, 20);
|
= new CCache<Integer,MCashBook>(Table_Name, 20);
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MCashBook.class);
|
private static CLogger s_log = CLogger.getCLogger (MCashBook.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class MCashPlan extends X_C_CashPlan
|
||||||
private static final long serialVersionUID = -3068952163785661012L;
|
private static final long serialVersionUID = -3068952163785661012L;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MCashPlan.class);
|
private static CLogger s_log = CLogger.getCLogger(MCashPlan.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class MCashPlanLine extends X_C_CashPlanLine
|
||||||
private static final long serialVersionUID = 3897658515979106674L;
|
private static final long serialVersionUID = 3897658515979106674L;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MCashPlanLine.class);
|
private static CLogger s_log = CLogger.getCLogger(MCashPlanLine.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -61,6 +61,7 @@ public final class MCity extends X_C_City
|
||||||
/** City Cache */
|
/** City Cache */
|
||||||
private static CCache<Integer,MCity> s_Cities = new CCache<Integer,MCity>(Table_Name, 20);;
|
private static CCache<Integer,MCity> s_Cities = new CCache<Integer,MCity>(Table_Name, 20);;
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MCity.class);
|
private static CLogger s_log = CLogger.getCLogger (MCity.class);
|
||||||
|
|
||||||
/** Region Cache */
|
/** Region Cache */
|
||||||
|
|
|
@ -885,7 +885,7 @@ public class MClient extends X_AD_Client
|
||||||
*
|
*
|
||||||
* @return boolean representing if client accounting is enabled and it's on a client
|
* @return boolean representing if client accounting is enabled and it's on a client
|
||||||
*/
|
*/
|
||||||
private static final String CLIENT_ACCOUNTING_DISABLED = "D";
|
//private static final String CLIENT_ACCOUNTING_DISABLED = "D";
|
||||||
private static final String CLIENT_ACCOUNTING_QUEUE = "Q";
|
private static final String CLIENT_ACCOUNTING_QUEUE = "Q";
|
||||||
private static final String CLIENT_ACCOUNTING_IMMEDIATE = "I";
|
private static final String CLIENT_ACCOUNTING_IMMEDIATE = "I";
|
||||||
|
|
||||||
|
|
|
@ -256,7 +256,7 @@ public class MClientShare extends X_AD_ClientShare
|
||||||
ResultSet rs = pstmt.executeQuery ();
|
ResultSet rs = pstmt.executeQuery ();
|
||||||
while (rs.next ())
|
while (rs.next ())
|
||||||
{
|
{
|
||||||
int AD_Table_ID = rs.getInt(1);
|
//int AD_Table_ID = rs.getInt(1);
|
||||||
String TableName = rs.getString(2);
|
String TableName = rs.getString(2);
|
||||||
if (info.length() != 0)
|
if (info.length() != 0)
|
||||||
info.append(", ");
|
info.append(", ");
|
||||||
|
|
|
@ -144,6 +144,7 @@ public class MContainer extends X_CM_Container
|
||||||
} // getContainers
|
} // getContainers
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MContainer.class);
|
private static CLogger s_log = CLogger.getCLogger (MContainer.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class MContainerElement extends X_CM_Container_Element
|
||||||
private static final long serialVersionUID = 8487403111353473486L;
|
private static final long serialVersionUID = 8487403111353473486L;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MContainerElement.class);
|
private static CLogger s_log = CLogger.getCLogger (MContainerElement.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -266,6 +266,7 @@ public class MCostQueue extends X_M_CostQueue
|
||||||
// Negative Qty i.e. add
|
// Negative Qty i.e. add
|
||||||
if (remainingQty.signum() <= 0)
|
if (remainingQty.signum() <= 0)
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
BigDecimal oldQty = queue.getCurrentQty();
|
BigDecimal oldQty = queue.getCurrentQty();
|
||||||
lastPrice = queue.getCurrentCostPrice();
|
lastPrice = queue.getCurrentCostPrice();
|
||||||
BigDecimal costBatch = lastPrice.multiply(remainingQty);
|
BigDecimal costBatch = lastPrice.multiply(remainingQty);
|
||||||
|
@ -281,6 +282,7 @@ public class MCostQueue extends X_M_CostQueue
|
||||||
BigDecimal reduction = remainingQty;
|
BigDecimal reduction = remainingQty;
|
||||||
if (reduction.compareTo(queue.getCurrentQty()) > 0)
|
if (reduction.compareTo(queue.getCurrentQty()) > 0)
|
||||||
reduction = queue.getCurrentQty();
|
reduction = queue.getCurrentQty();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
BigDecimal oldQty = queue.getCurrentQty();
|
BigDecimal oldQty = queue.getCurrentQty();
|
||||||
lastPrice = queue.getCurrentCostPrice();
|
lastPrice = queue.getCurrentCostPrice();
|
||||||
BigDecimal costBatch = lastPrice.multiply(reduction);
|
BigDecimal costBatch = lastPrice.multiply(reduction);
|
||||||
|
|
|
@ -165,6 +165,7 @@ public final class MCountry extends X_C_Country
|
||||||
} // setDisplayLanguage
|
} // setDisplayLanguage
|
||||||
|
|
||||||
/** Display Language */
|
/** Display Language */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static String s_AD_Language = null;
|
private static String s_AD_Language = null;
|
||||||
|
|
||||||
/** Country Cache */
|
/** Country Cache */
|
||||||
|
|
|
@ -34,6 +34,7 @@ public class MCurrencyAcct extends X_C_Currency_Acct
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 2256532431388781618L;
|
private static final long serialVersionUID = 2256532431388781618L;
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MCurrencyAcct.class);
|
private static CLogger s_log = CLogger.getCLogger(MCurrencyAcct.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -412,7 +412,7 @@ public class MDepreciation extends X_A_Depreciation
|
||||||
* @return coeficient K degressive method for
|
* @return coeficient K degressive method for
|
||||||
* @see #apply_ARH_AD1(int, int, String, int, BigDecimal)
|
* @see #apply_ARH_AD1(int, int, String, int, BigDecimal)
|
||||||
*/
|
*/
|
||||||
private static BigDecimal get_AD_K(int A_Life_Year)
|
/*private static BigDecimal get_AD_K(int A_Life_Year)
|
||||||
{
|
{
|
||||||
if (A_Life_Year < 2) {
|
if (A_Life_Year < 2) {
|
||||||
throw new IllegalArgumentException("@A_Life_Year@ = " + A_Life_Year + " < 2");
|
throw new IllegalArgumentException("@A_Life_Year@ = " + A_Life_Year + " < 2");
|
||||||
|
@ -429,7 +429,7 @@ public class MDepreciation extends X_A_Depreciation
|
||||||
else {
|
else {
|
||||||
return new BigDecimal(2.5);
|
return new BigDecimal(2.5);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/** Calculate the value of depreciation over a month (period). In the last month of the year we add errors from the adjustment calculation
|
/** Calculate the value of depreciation over a month (period). In the last month of the year we add errors from the adjustment calculation
|
||||||
* @param A_Current_Period current month's index
|
* @param A_Current_Period current month's index
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
import java.sql.*;
|
import java.math.BigDecimal;
|
||||||
import java.math.*;
|
import java.sql.CallableStatement;
|
||||||
import java.util.*;
|
import java.sql.ResultSet;
|
||||||
import java.util.logging.*;
|
import java.sql.SQLException;
|
||||||
import org.compiere.model.*;
|
import java.util.Properties;
|
||||||
import org.compiere.util.*;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.compiere.util.CCache;
|
||||||
|
import org.compiere.util.CLogMgt;
|
||||||
|
import org.compiere.util.DB;
|
||||||
|
|
||||||
/** Convention for the first year of depreciation (ex. FMCON, FYCON ...)
|
/** Convention for the first year of depreciation (ex. FMCON, FYCON ...)
|
||||||
* @author Teo Sarca, SC Arhipac SRL
|
* @author Teo Sarca, SC Arhipac SRL
|
||||||
|
|
|
@ -2,7 +2,6 @@ package org.compiere.model;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -12,16 +11,9 @@ import java.util.Properties;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.adempiere.exceptions.AdempiereException;
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.compiere.model.MAcctSchema;
|
|
||||||
import org.compiere.model.MClient;
|
|
||||||
import org.compiere.model.MPeriod;
|
|
||||||
import org.compiere.model.ModelValidationEngine;
|
|
||||||
import org.compiere.model.ModelValidator;
|
|
||||||
import org.compiere.model.Query;
|
|
||||||
import org.compiere.process.DocAction;
|
import org.compiere.process.DocAction;
|
||||||
import org.compiere.process.DocumentEngine;
|
import org.compiere.process.DocumentEngine;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
|
||||||
import org.compiere.util.TimeUtil;
|
import org.compiere.util.TimeUtil;
|
||||||
import org.compiere.util.Trx;
|
import org.compiere.util.Trx;
|
||||||
import org.compiere.util.TrxRunnable;
|
import org.compiere.util.TrxRunnable;
|
||||||
|
|
|
@ -3,13 +3,10 @@ package org.compiere.model;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.Calendar;
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import org.adempiere.exceptions.AdempiereException;
|
|
||||||
import org.apache.commons.collections.keyvalue.MultiKey;
|
import org.apache.commons.collections.keyvalue.MultiKey;
|
||||||
import org.compiere.model.Query;
|
|
||||||
import org.compiere.util.CCache;
|
import org.compiere.util.CCache;
|
||||||
import org.compiere.util.CLogMgt;
|
import org.compiere.util.CLogMgt;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
|
|
|
@ -254,7 +254,6 @@ public class MDiscountSchema extends X_M_DiscountSchema
|
||||||
|
|
||||||
// Price Breaks
|
// Price Breaks
|
||||||
getBreaks(false);
|
getBreaks(false);
|
||||||
boolean found = false;
|
|
||||||
BigDecimal Amt = Price.multiply(Qty);
|
BigDecimal Amt = Price.multiply(Qty);
|
||||||
if (isQuantityBased())
|
if (isQuantityBased())
|
||||||
log.finer("Qty=" + Qty + ",M_Product_ID=" + M_Product_ID + ",M_Product_Category_ID=" + M_Product_Category_ID);
|
log.finer("Qty=" + Qty + ",M_Product_ID=" + M_Product_ID + ",M_Product_Category_ID=" + M_Product_Category_ID);
|
||||||
|
|
|
@ -169,6 +169,7 @@ public class MDistribution extends X_GL_Distribution
|
||||||
} // get
|
} // get
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MDistribution.class);
|
private static CLogger s_log = CLogger.getCLogger (MDistribution.class);
|
||||||
/** Distributions by Account */
|
/** Distributions by Account */
|
||||||
private static CCache<Integer,MDistribution[]> s_accounts
|
private static CCache<Integer,MDistribution[]> s_accounts
|
||||||
|
|
|
@ -94,6 +94,7 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
} // MDunningRunEntry
|
} // MDunningRunEntry
|
||||||
|
|
||||||
/** Parent */
|
/** Parent */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private MDunningRun m_parent = null;
|
private MDunningRun m_parent = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -279,12 +280,12 @@ public class MDunningRunEntry extends X_C_DunningRunEntry
|
||||||
* Get Parent
|
* Get Parent
|
||||||
* @return Dunning Run
|
* @return Dunning Run
|
||||||
*/
|
*/
|
||||||
private MDunningRun getParent()
|
/*private MDunningRun getParent()
|
||||||
{
|
{
|
||||||
if (m_parent == null)
|
if (m_parent == null)
|
||||||
m_parent = new MDunningRun(getCtx(), getC_DunningRun_ID (), get_TrxName());
|
m_parent = new MDunningRun(getCtx(), getC_DunningRun_ID (), get_TrxName());
|
||||||
return m_parent;
|
return m_parent;
|
||||||
} // getParent
|
} // getParent*/
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean beforeSave (boolean newRecord)
|
protected boolean beforeSave (boolean newRecord)
|
||||||
|
|
|
@ -57,6 +57,7 @@ public class MEXPFormat extends X_EXP_Format {
|
||||||
private static final long serialVersionUID = -5011042965945626099L;
|
private static final long serialVersionUID = -5011042965945626099L;
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MEXPFormat.class);
|
private static CLogger s_log = CLogger.getCLogger (MEXPFormat.class);
|
||||||
|
|
||||||
private static CCache<String,MEXPFormat> s_cache = new CCache<String,MEXPFormat>(MEXPFormat.Table_Name, 50 );
|
private static CCache<String,MEXPFormat> s_cache = new CCache<String,MEXPFormat>(MEXPFormat.Table_Name, 50 );
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class MEXPProcessorParameter extends X_EXP_ProcessorParameter {
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 2633307385854436092L;
|
private static final long serialVersionUID = 2633307385854436092L;
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MEXPProcessorParameter.class);
|
private static CLogger s_log = CLogger.getCLogger (MEXPProcessorParameter.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class MEXPProcessorType extends X_EXP_Processor_Type {
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -4987531346397814095L;
|
private static final long serialVersionUID = -4987531346397814095L;
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MEXPProcessorType.class);
|
private static CLogger s_log = CLogger.getCLogger (MEXPProcessorType.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1392,6 +1392,7 @@ public class MInOut extends X_M_InOut implements DocAction
|
||||||
}
|
}
|
||||||
if (!sameWarehouse) {
|
if (!sameWarehouse) {
|
||||||
//correct qtyOrdered in warehouse of order
|
//correct qtyOrdered in warehouse of order
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MWarehouse wh = MWarehouse.get(getCtx(), oLine.getM_Warehouse_ID());
|
MWarehouse wh = MWarehouse.get(getCtx(), oLine.getM_Warehouse_ID());
|
||||||
if (reservedDiff.signum() != 0) {
|
if (reservedDiff.signum() != 0) {
|
||||||
if (!MStorageReservation.add(getCtx(), oLine.getM_Warehouse_ID(),
|
if (!MStorageReservation.add(getCtx(), oLine.getM_Warehouse_ID(),
|
||||||
|
@ -1467,6 +1468,7 @@ public class MInOut extends X_M_InOut implements DocAction
|
||||||
}
|
}
|
||||||
if (!sameWarehouse) {
|
if (!sameWarehouse) {
|
||||||
//correct qtyOrdered in warehouse of order
|
//correct qtyOrdered in warehouse of order
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MWarehouse wh = MWarehouse.get(getCtx(), oLine.getM_Warehouse_ID());
|
MWarehouse wh = MWarehouse.get(getCtx(), oLine.getM_Warehouse_ID());
|
||||||
if (QtySO.signum() != 0) {
|
if (QtySO.signum() != 0) {
|
||||||
if (!MStorageReservation.add(getCtx(), oLine.getM_Warehouse_ID(),
|
if (!MStorageReservation.add(getCtx(), oLine.getM_Warehouse_ID(),
|
||||||
|
|
|
@ -348,7 +348,7 @@ public class MInventoryLine extends X_M_InventoryLine
|
||||||
/**
|
/**
|
||||||
* Create Material Allocations for new Instances
|
* Create Material Allocations for new Instances
|
||||||
*/
|
*/
|
||||||
private void createMA()
|
/*private void createMA()
|
||||||
{
|
{
|
||||||
MStorageOnHand[] storages = MStorageOnHand.getAll(getCtx(), getM_Product_ID(),
|
MStorageOnHand[] storages = MStorageOnHand.getAll(getCtx(), getM_Product_ID(),
|
||||||
getM_Locator_ID(), get_TrxName());
|
getM_Locator_ID(), get_TrxName());
|
||||||
|
@ -386,7 +386,7 @@ public class MInventoryLine extends X_M_InventoryLine
|
||||||
log.warning("QtyBook=" + getQtyBook() + " corrected to Sum of MA=" + sum);
|
log.warning("QtyBook=" + getQtyBook() + " corrected to Sum of MA=" + sum);
|
||||||
setQtyBook(sum);
|
setQtyBook(sum);
|
||||||
}
|
}
|
||||||
} // createMA
|
} // createMA*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is Internal Use Inventory
|
* Is Internal Use Inventory
|
||||||
|
|
|
@ -128,13 +128,13 @@ public class MIssueProject extends X_R_IssueProject
|
||||||
public void setA_Asset_ID (MIssue issue)
|
public void setA_Asset_ID (MIssue issue)
|
||||||
{
|
{
|
||||||
int A_Asset_ID = 0;
|
int A_Asset_ID = 0;
|
||||||
String sql = "SELECT * FROM A_Asset a "
|
/*String sql = "SELECT * FROM A_Asset a "
|
||||||
+ "WHERE EXISTS (SELECT * FROM A_Asset_Group ag " // Tracking Assets
|
+ "WHERE EXISTS (SELECT * FROM A_Asset_Group ag " // Tracking Assets
|
||||||
+ "WHERE a.A_Asset_Group_ID=ag.A_Asset_Group_ID AND ag.IsTrackIssues='Y')"
|
+ "WHERE a.A_Asset_Group_ID=ag.A_Asset_Group_ID AND ag.IsTrackIssues='Y')"
|
||||||
+ " AND EXISTS (SELECT * FROM AD_User u "
|
+ " AND EXISTS (SELECT * FROM AD_User u "
|
||||||
+ "WHERE (a.C_BPartner_ID=u.C_BPartner_ID OR a.C_BPartnerSR_ID=u.C_BPartner_ID)"
|
+ "WHERE (a.C_BPartner_ID=u.C_BPartner_ID OR a.C_BPartnerSR_ID=u.C_BPartner_ID)"
|
||||||
+ " AND u.EMail=?)" // #1 EMail
|
+ " AND u.EMail=?)" // #1 EMail
|
||||||
+ " AND (SerNo IS NULL OR SerNo=?)"; // #2 Name
|
+ " AND (SerNo IS NULL OR SerNo=?)"; // #2 Name*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class MJournalGenerator extends X_GL_JournalGenerator
|
||||||
private static final long serialVersionUID = -8044550395699815424L;
|
private static final long serialVersionUID = -8044550395699815424L;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MJournalGenerator.class);
|
private static CLogger s_log = CLogger.getCLogger(MJournalGenerator.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class MJournalGeneratorLine extends X_GL_JournalGeneratorLine
|
||||||
private static final long serialVersionUID = -8151648371117046820L;
|
private static final long serialVersionUID = -8151648371117046820L;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MJournalGeneratorLine.class);
|
private static CLogger s_log = CLogger.getCLogger(MJournalGeneratorLine.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class MJournalGeneratorSource extends X_GL_JournalGeneratorSource
|
||||||
private static final long serialVersionUID = 7489445330989092988L;
|
private static final long serialVersionUID = 7489445330989092988L;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MJournalGeneratorSource.class);
|
private static CLogger s_log = CLogger.getCLogger(MJournalGeneratorSource.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -348,7 +348,6 @@ public final class MLocatorLookup extends Lookup implements Serializable
|
||||||
|
|
||||||
// Reset
|
// Reset
|
||||||
m_lookup.clear();
|
m_lookup.clear();
|
||||||
int rows = 0;
|
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
|
|
@ -107,6 +107,7 @@ public class MMeasureCalc extends X_PA_MeasureCalc
|
||||||
{
|
{
|
||||||
if (reportDate == null)
|
if (reportDate == null)
|
||||||
reportDate = new Timestamp(System.currentTimeMillis());
|
reportDate = new Timestamp(System.currentTimeMillis());
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String dateString = DB.TO_DATE(reportDate);
|
String dateString = DB.TO_DATE(reportDate);
|
||||||
// http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions207.htm#i1002084
|
// http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions207.htm#i1002084
|
||||||
String trunc = "DD";
|
String trunc = "DD";
|
||||||
|
|
|
@ -57,6 +57,7 @@ public class MMediaServer extends X_CM_Media_Server
|
||||||
} // getMediaServer
|
} // getMediaServer
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MMediaServer.class);
|
private static CLogger s_log = CLogger.getCLogger (MMediaServer.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -314,12 +314,10 @@ public class MMovementConfirm extends X_M_MovementConfirm implements DocAction
|
||||||
m_processMsg = "@NoLines@";
|
m_processMsg = "@NoLines@";
|
||||||
return DocAction.STATUS_Invalid;
|
return DocAction.STATUS_Invalid;
|
||||||
}
|
}
|
||||||
boolean difference = false;
|
|
||||||
for (int i = 0; i < lines.length; i++)
|
for (int i = 0; i < lines.length; i++)
|
||||||
{
|
{
|
||||||
if (!lines[i].isFullyConfirmed())
|
if (!lines[i].isFullyConfirmed())
|
||||||
{
|
{
|
||||||
difference = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,6 @@ package org.compiere.model;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.Timestamp;
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,7 @@ public class MProductBOM extends X_M_Product_BOM
|
||||||
} // getBOMLines
|
} // getBOMLines
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MProductBOM.class);
|
private static CLogger s_log = CLogger.getCLogger(MProductBOM.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class MProductPrice extends X_M_ProductPrice
|
||||||
} // get
|
} // get
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MProductPrice.class);
|
private static CLogger s_log = CLogger.getCLogger (MProductPrice.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,6 +23,7 @@ public class MProduction extends X_M_Production {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/** Log */
|
/** Log */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger m_log = CLogger.getCLogger (MProduction.class);
|
private static CLogger m_log = CLogger.getCLogger (MProduction.class);
|
||||||
private int lineno;
|
private int lineno;
|
||||||
private int count;
|
private int count;
|
||||||
|
|
|
@ -173,6 +173,7 @@ public class MProjectType extends X_C_ProjectType
|
||||||
{
|
{
|
||||||
if (reportDate == null)
|
if (reportDate == null)
|
||||||
reportDate = new Timestamp(System.currentTimeMillis());
|
reportDate = new Timestamp(System.currentTimeMillis());
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String dateString = DB.TO_DATE(reportDate);
|
String dateString = DB.TO_DATE(reportDate);
|
||||||
String trunc = "D";
|
String trunc = "D";
|
||||||
if (MGoal.MEASUREDISPLAY_Year.equals(MeasureScope))
|
if (MGoal.MEASUREDISPLAY_Year.equals(MeasureScope))
|
||||||
|
|
|
@ -41,6 +41,7 @@ public class MRecentItem extends X_AD_RecentItem
|
||||||
/** Recent Item Cache */
|
/** Recent Item Cache */
|
||||||
private static CCache<Integer,MRecentItem> s_cache = new CCache<Integer,MRecentItem>(Table_Name, 10);
|
private static CCache<Integer,MRecentItem> s_cache = new CCache<Integer,MRecentItem>(Table_Name, 10);
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MRecentItem.class);
|
private static CLogger s_log = CLogger.getCLogger(MRecentItem.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class MReplicationStrategy extends X_AD_ReplicationStrategy {
|
||||||
|
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MReplicationStrategy.class);
|
private static CLogger s_log = CLogger.getCLogger (MReplicationStrategy.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class MRequestType extends X_R_RequestType
|
||||||
} // get
|
} // get
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger(MRequestType.class);
|
private static CLogger s_log = CLogger.getCLogger(MRequestType.class);
|
||||||
/** Cache */
|
/** Cache */
|
||||||
static private CCache<Integer,MRequestType> s_cache = new CCache<Integer,MRequestType>(Table_Name, 10);
|
static private CCache<Integer,MRequestType> s_cache = new CCache<Integer,MRequestType>(Table_Name, 10);
|
||||||
|
@ -367,6 +368,7 @@ public class MRequestType extends X_R_RequestType
|
||||||
{
|
{
|
||||||
if (reportDate == null)
|
if (reportDate == null)
|
||||||
reportDate = new Timestamp(System.currentTimeMillis());
|
reportDate = new Timestamp(System.currentTimeMillis());
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String dateString = DB.TO_DATE(reportDate);
|
String dateString = DB.TO_DATE(reportDate);
|
||||||
String trunc = "D";
|
String trunc = "D";
|
||||||
if (MGoal.MEASUREDISPLAY_Year.equals(MeasureScope))
|
if (MGoal.MEASUREDISPLAY_Year.equals(MeasureScope))
|
||||||
|
|
|
@ -144,6 +144,7 @@ public class MRfQResponse extends X_C_RfQResponse
|
||||||
if (get_ID() == 0) // save Response
|
if (get_ID() == 0) // save Response
|
||||||
saveEx();
|
saveEx();
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MRfQResponseLine line = new MRfQResponseLine (this, lines[i]);
|
MRfQResponseLine line = new MRfQResponseLine (this, lines[i]);
|
||||||
// line is not saved (dumped) if there are no Qtys
|
// line is not saved (dumped) if there are no Qtys
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,6 +126,7 @@ public class MRule extends X_AD_Rule
|
||||||
private static CCache<Integer,MRule> s_cache = new CCache<Integer,MRule>(Table_Name, 20);
|
private static CCache<Integer,MRule> s_cache = new CCache<Integer,MRule>(Table_Name, 20);
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MRule.class);
|
private static CLogger s_log = CLogger.getCLogger (MRule.class);
|
||||||
|
|
||||||
/* Engine Manager */
|
/* Engine Manager */
|
||||||
|
|
|
@ -1196,6 +1196,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
{
|
{
|
||||||
m_i = i;
|
m_i = i;
|
||||||
}
|
}
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_i;
|
private int m_i;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -428,6 +428,7 @@ public class MSystem extends X_AD_System
|
||||||
// log.fine(os.getName() + " " + os.getVersion() + " " + os.getArch()
|
// log.fine(os.getName() + " " + os.getVersion() + " " + os.getArch()
|
||||||
// + " Processors=" + os.getAvailableProcessors());
|
// + " Processors=" + os.getAvailableProcessors());
|
||||||
// Runtime
|
// Runtime
|
||||||
|
@SuppressWarnings("unused")
|
||||||
RuntimeMXBean rt = ManagementFactory.getRuntimeMXBean();
|
RuntimeMXBean rt = ManagementFactory.getRuntimeMXBean();
|
||||||
// log.fine(rt.getName() + " (" + rt.getVmVersion() + ") Up=" + TimeUtil.formatElapsed(rt.getUptime()));
|
// log.fine(rt.getName() + " (" + rt.getVmVersion() + ") Up=" + TimeUtil.formatElapsed(rt.getUptime()));
|
||||||
// Memory
|
// Memory
|
||||||
|
@ -437,6 +438,7 @@ public class MSystem extends X_AD_System
|
||||||
Iterator<MemoryPoolMXBean> it = list.iterator();
|
Iterator<MemoryPoolMXBean> it = list.iterator();
|
||||||
while (it.hasNext())
|
while (it.hasNext())
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MemoryPoolMXBean pool = (MemoryPoolMXBean)it.next();
|
MemoryPoolMXBean pool = (MemoryPoolMXBean)it.next();
|
||||||
/*
|
/*
|
||||||
log.finer(pool.getName() + " " + pool.getType()
|
log.finer(pool.getName() + " " + pool.getType()
|
||||||
|
@ -446,11 +448,13 @@ public class MSystem extends X_AD_System
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MemoryMXBean memory = ManagementFactory.getMemoryMXBean();
|
MemoryMXBean memory = ManagementFactory.getMemoryMXBean();
|
||||||
// log.fine("VM: " + new CMemoryUsage(memory.getNonHeapMemoryUsage()));
|
// log.fine("VM: " + new CMemoryUsage(memory.getNonHeapMemoryUsage()));
|
||||||
// log.fine("Heap: " + new CMemoryUsage(memory.getHeapMemoryUsage()));
|
// log.fine("Heap: " + new CMemoryUsage(memory.getHeapMemoryUsage()));
|
||||||
}
|
}
|
||||||
// Thread
|
// Thread
|
||||||
|
@SuppressWarnings("unused")
|
||||||
ThreadMXBean th = ManagementFactory.getThreadMXBean();
|
ThreadMXBean th = ManagementFactory.getThreadMXBean();
|
||||||
/*
|
/*
|
||||||
log.fine("Threads=" + th.getThreadCount()
|
log.fine("Threads=" + th.getThreadCount()
|
||||||
|
|
|
@ -302,6 +302,7 @@ public class MTimeExpenseLine extends X_S_TimeExpenseLine
|
||||||
+ "(SELECT SUM(Qty*ConvertedAmt) FROM S_TimeExpenseLine tel "
|
+ "(SELECT SUM(Qty*ConvertedAmt) FROM S_TimeExpenseLine tel "
|
||||||
+ "WHERE te.S_TimeExpense_ID=tel.S_TimeExpense_ID) "
|
+ "WHERE te.S_TimeExpense_ID=tel.S_TimeExpense_ID) "
|
||||||
+ "WHERE S_TimeExpense_ID=" + getS_TimeExpense_ID();
|
+ "WHERE S_TimeExpense_ID=" + getS_TimeExpense_ID();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int no = DB.executeUpdate(sql, get_TrxName());
|
int no = DB.executeUpdate(sql, get_TrxName());
|
||||||
} // updateHeader
|
} // updateHeader
|
||||||
|
|
||||||
|
|
|
@ -520,7 +520,7 @@ public class MTree extends MTree_Base
|
||||||
int AD_Form_ID = m_nodeRowSet.getInt(index++);
|
int AD_Form_ID = m_nodeRowSet.getInt(index++);
|
||||||
int AD_Workflow_ID = m_nodeRowSet.getInt(index++);
|
int AD_Workflow_ID = m_nodeRowSet.getInt(index++);
|
||||||
int AD_Task_ID = m_nodeRowSet.getInt(index++);
|
int AD_Task_ID = m_nodeRowSet.getInt(index++);
|
||||||
int AD_Workbench_ID = m_nodeRowSet.getInt(index++);
|
//int AD_Workbench_ID = m_nodeRowSet.getInt(index++);
|
||||||
//
|
//
|
||||||
MRole role = MRole.getDefault(getCtx(), false);
|
MRole role = MRole.getDefault(getCtx(), false);
|
||||||
Boolean access = null;
|
Boolean access = null;
|
||||||
|
@ -609,7 +609,7 @@ public class MTree extends MTree_Base
|
||||||
/**
|
/**
|
||||||
* Diagnostics: Print tree
|
* Diagnostics: Print tree
|
||||||
*/
|
*/
|
||||||
private void dumpTree()
|
/*private void dumpTree()
|
||||||
{
|
{
|
||||||
Enumeration<?> en = m_root.preorderEnumeration();
|
Enumeration<?> en = m_root.preorderEnumeration();
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
@ -626,7 +626,7 @@ public class MTree extends MTree_Base
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
System.out.println("Count=" + count);
|
System.out.println("Count=" + count);
|
||||||
} // diagPrintTree
|
} // diagPrintTree*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Root node
|
* Get Root node
|
||||||
|
|
|
@ -71,6 +71,7 @@ public class MUserRoles extends X_AD_User_Roles
|
||||||
} // getOfUser
|
} // getOfUser
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MUserRoles.class);
|
private static CLogger s_log = CLogger.getCLogger (MUserRoles.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
import java.util.*;
|
import java.math.BigDecimal;
|
||||||
import java.sql.*;
|
import java.sql.ResultSet;
|
||||||
import java.math.*;
|
import java.util.Properties;
|
||||||
import org.compiere.model.*;
|
|
||||||
import org.compiere.util.*;
|
import org.compiere.util.Env;
|
||||||
/** Generated Model for A_Asset
|
/** Generated Model for A_Asset
|
||||||
** @version $Id: X_A_Asset.java,v 1.88 2004/08/27 21:26:37 jjanke Exp $ */
|
** @version $Id: X_A_Asset.java,v 1.88 2004/08/27 21:26:37 jjanke Exp $ */
|
||||||
public class MXIFAJournal extends X_I_FAJournal
|
public class MXIFAJournal extends X_I_FAJournal
|
||||||
|
|
|
@ -53,6 +53,7 @@ public abstract class PaymentProcessor
|
||||||
/** Logger */
|
/** Logger */
|
||||||
protected CLogger log = CLogger.getCLogger (getClass());
|
protected CLogger log = CLogger.getCLogger (getClass());
|
||||||
/** Payment Processor Logger */
|
/** Payment Processor Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
static private CLogger s_log = CLogger.getCLogger (PaymentProcessor.class);
|
static private CLogger s_log = CLogger.getCLogger (PaymentProcessor.class);
|
||||||
/** Encoding (ISO-8859-1 - UTF-8) */
|
/** Encoding (ISO-8859-1 - UTF-8) */
|
||||||
public static final String ENCODING = "UTF-8";
|
public static final String ENCODING = "UTF-8";
|
||||||
|
|
|
@ -307,7 +307,7 @@ public class ProductCost
|
||||||
* @param onlyPOPriceList use only PO price list
|
* @param onlyPOPriceList use only PO price list
|
||||||
* @return po price
|
* @return po price
|
||||||
*/
|
*/
|
||||||
private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList)
|
/*private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList)
|
||||||
{
|
{
|
||||||
StringBuilder sql = new StringBuilder (
|
StringBuilder sql = new StringBuilder (
|
||||||
"SELECT pl.C_Currency_ID, pp.PriceList, pp.PriceStd, pp.PriceLimit "
|
"SELECT pl.C_Currency_ID, pp.PriceList, pp.PriceStd, pp.PriceLimit "
|
||||||
|
@ -360,14 +360,14 @@ public class ProductCost
|
||||||
price, C_Currency_ID, as.getC_Currency_ID(),
|
price, C_Currency_ID, as.getC_Currency_ID(),
|
||||||
as.getAD_Client_ID(), 0);
|
as.getAD_Client_ID(), 0);
|
||||||
return price;
|
return price;
|
||||||
} // getPOPrice
|
} // getPOPrice*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get PO Cost from Purchase Info - and convert it to AcctSchema Currency
|
* Get PO Cost from Purchase Info - and convert it to AcctSchema Currency
|
||||||
* @param as accounting schema
|
* @param as accounting schema
|
||||||
* @return po cost
|
* @return po cost
|
||||||
*/
|
*/
|
||||||
private BigDecimal getPOCost (MAcctSchema as)
|
/*private BigDecimal getPOCost (MAcctSchema as)
|
||||||
{
|
{
|
||||||
String sql = "SELECT C_Currency_ID, PriceList,PricePO,PriceLastPO "
|
String sql = "SELECT C_Currency_ID, PriceList,PricePO,PriceLastPO "
|
||||||
+ "FROM M_Product_PO WHERE M_Product_ID=? "
|
+ "FROM M_Product_PO WHERE M_Product_ID=? "
|
||||||
|
@ -414,7 +414,7 @@ public class ProductCost
|
||||||
cost = MConversionRate.convert (as.getCtx(),
|
cost = MConversionRate.convert (as.getCtx(),
|
||||||
cost, C_Currency_ID, as.getC_Currency_ID(), as.getAD_Client_ID(), as.getAD_Org_ID());
|
cost, C_Currency_ID, as.getC_Currency_ID(), as.getAD_Client_ID(), as.getAD_Org_ID());
|
||||||
return cost;
|
return cost;
|
||||||
} // getPOCost
|
} // getPOCost*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String Representation
|
* String Representation
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class ScheduleUtil
|
||||||
private Properties m_ctx;
|
private Properties m_ctx;
|
||||||
private int m_S_Resource_ID;
|
private int m_S_Resource_ID;
|
||||||
private boolean m_isAvailable = true;
|
private boolean m_isAvailable = true;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private boolean m_isSingleAssignment = true;
|
private boolean m_isSingleAssignment = true;
|
||||||
private int m_S_ResourceType_ID = 0;
|
private int m_S_ResourceType_ID = 0;
|
||||||
private int m_C_UOM_ID = 0;
|
private int m_C_UOM_ID = 0;
|
||||||
|
@ -776,6 +777,7 @@ public class ScheduleUtil
|
||||||
throw new IllegalStateException("ResourceTypeName not set");
|
throw new IllegalStateException("ResourceTypeName not set");
|
||||||
|
|
||||||
ArrayList<MAssignmentSlot> list = new ArrayList<MAssignmentSlot>();
|
ArrayList<MAssignmentSlot> list = new ArrayList<MAssignmentSlot>();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MUOM uom = MUOM.get (m_ctx, m_C_UOM_ID);
|
MUOM uom = MUOM.get (m_ctx, m_C_UOM_ID);
|
||||||
int minutes = MUOMConversion.convertToMinutes (m_ctx, m_C_UOM_ID, Env.ONE);
|
int minutes = MUOMConversion.convertToMinutes (m_ctx, m_C_UOM_ID, Env.ONE);
|
||||||
log.config("Minutes=" + minutes);
|
log.config("Minutes=" + minutes);
|
||||||
|
|
|
@ -26,6 +26,7 @@ public class StateChangeEvent extends EventObject {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 8536782772491762290L;
|
private static final long serialVersionUID = 8536782772491762290L;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int eventType;
|
private int eventType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -253,6 +253,7 @@ public class CPaper extends Paper
|
||||||
{
|
{
|
||||||
PrintRequestAttributeSet prats = getPrintRequestAttributeSet();
|
PrintRequestAttributeSet prats = getPrintRequestAttributeSet();
|
||||||
// Page Dialog
|
// Page Dialog
|
||||||
|
@SuppressWarnings("unused")
|
||||||
PageFormat pf = job.pageDialog(prats);
|
PageFormat pf = job.pageDialog(prats);
|
||||||
setPrintRequestAttributeSet(prats);
|
setPrintRequestAttributeSet(prats);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -103,6 +103,7 @@ public class DataEngine
|
||||||
/** Running Total after .. lines */
|
/** Running Total after .. lines */
|
||||||
private int m_runningTotalLines = -1;
|
private int m_runningTotalLines = -1;
|
||||||
/** Print String */
|
/** Print String */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_runningTotalString = null;
|
private String m_runningTotalString = null;
|
||||||
/** TrxName String */
|
/** TrxName String */
|
||||||
private String m_trxName = null;
|
private String m_trxName = null;
|
||||||
|
@ -290,7 +291,7 @@ public class DataEngine
|
||||||
int FieldLength = rs.getInt(5);
|
int FieldLength = rs.getInt(5);
|
||||||
boolean IsMandatory = "Y".equals(rs.getString(6));
|
boolean IsMandatory = "Y".equals(rs.getString(6));
|
||||||
boolean IsKey = "Y".equals(rs.getString(7));
|
boolean IsKey = "Y".equals(rs.getString(7));
|
||||||
boolean IsParent = "Y".equals(rs.getString(8));
|
//boolean IsParent = "Y".equals(rs.getString(8));
|
||||||
// SQL GroupBy
|
// SQL GroupBy
|
||||||
boolean IsGroupFunction = "Y".equals(rs.getString(9));
|
boolean IsGroupFunction = "Y".equals(rs.getString(9));
|
||||||
if (IsGroupFunction)
|
if (IsGroupFunction)
|
||||||
|
@ -321,7 +322,7 @@ public class DataEngine
|
||||||
|
|
||||||
// General Info
|
// General Info
|
||||||
boolean IsPrinted = "Y".equals(rs.getString(15));
|
boolean IsPrinted = "Y".equals(rs.getString(15));
|
||||||
int SortNo = rs.getInt(16);
|
//int SortNo = rs.getInt(16);
|
||||||
boolean isPageBreak = "Y".equals(rs.getString(17));
|
boolean isPageBreak = "Y".equals(rs.getString(17));
|
||||||
|
|
||||||
String formatPattern = rs.getString(25);
|
String formatPattern = rs.getString(25);
|
||||||
|
@ -1175,6 +1176,7 @@ public class DataEngine
|
||||||
org.compiere.Adempiere.startup(true);
|
org.compiere.Adempiere.startup(true);
|
||||||
|
|
||||||
// DataEngine de = new DataEngine(null);
|
// DataEngine de = new DataEngine(null);
|
||||||
|
@SuppressWarnings("unused")
|
||||||
DataEngine de = new DataEngine(Language.getLanguage("de_DE"));
|
DataEngine de = new DataEngine(Language.getLanguage("de_DE"));
|
||||||
MQuery query = new MQuery();
|
MQuery query = new MQuery();
|
||||||
query.addRestriction("AD_Table_ID", MQuery.LESS, 105);
|
query.addRestriction("AD_Table_ID", MQuery.LESS, 105);
|
||||||
|
|
|
@ -492,7 +492,7 @@ public class PrintUtil
|
||||||
/**
|
/**
|
||||||
* Test Stream Print Services
|
* Test Stream Print Services
|
||||||
*/
|
*/
|
||||||
private static void testSPS()
|
/*private static void testSPS()
|
||||||
{
|
{
|
||||||
// dump (DocFlavor.INPUT_STREAM.GIF, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType());
|
// dump (DocFlavor.INPUT_STREAM.GIF, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType());
|
||||||
// dump (DocFlavor.SERVICE_FORMATTED.PAGEABLE, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType());
|
// dump (DocFlavor.SERVICE_FORMATTED.PAGEABLE, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType());
|
||||||
|
@ -529,7 +529,7 @@ public class PrintUtil
|
||||||
// dump (null, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMediaType()); // lists PS output
|
// dump (null, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMediaType()); // lists PS output
|
||||||
|
|
||||||
// dump(null, null);
|
// dump(null, null);
|
||||||
} // testSPS
|
} // testSPS*/
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
@ -593,6 +593,7 @@ public class PrintUtil
|
||||||
.append(Line_ID)
|
.append(Line_ID)
|
||||||
.append(" WHERE AD_PrintFormatChild_ID IS NOT NULL AND AD_PrintFormat_ID=")
|
.append(" WHERE AD_PrintFormatChild_ID IS NOT NULL AND AD_PrintFormat_ID=")
|
||||||
.append(Header_ID);
|
.append(Header_ID);
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int no = DB.executeUpdate(sb.toString(), null);
|
int no = DB.executeUpdate(sb.toString(), null);
|
||||||
} // updatePrintFormatHeader
|
} // updatePrintFormatHeader
|
||||||
|
|
||||||
|
|
|
@ -234,6 +234,7 @@ public class ServerReportCtl {
|
||||||
*/
|
*/
|
||||||
static public boolean startFinReport (ProcessInfo pi)
|
static public boolean startFinReport (ProcessInfo pi)
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx());
|
int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx());
|
||||||
|
|
||||||
// Create Query from Parameters
|
// Create Query from Parameters
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue