IDEMPIERE-75 Process Reset Accounting - Parameter DateTo not used if DateFrom is null
This commit is contained in:
parent
20b1cb08fa
commit
083b9dfc49
|
@ -61,7 +61,7 @@ public class AllocationReset extends SvrProcess
|
|||
{
|
||||
log.fine("prepare - " + para[i]);
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("C_BP_Group_ID"))
|
||||
p_C_BP_Group_ID = para[i].getParameterAsInt();
|
||||
|
|
|
@ -54,7 +54,7 @@ public class ExpenseAPInvoice extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("C_BPartner_ID"))
|
||||
m_C_BPartner_ID = para[i].getParameterAsInt();
|
||||
|
|
|
@ -62,7 +62,7 @@ public class ExpenseSOrder extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("C_BPartner_ID"))
|
||||
p_C_BPartner_ID = para[i].getParameterAsInt();
|
||||
|
|
|
@ -75,7 +75,7 @@ public class FactAcctReset extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("AD_Client_ID"))
|
||||
p_AD_Client_ID = ((BigDecimal)para[i].getParameter()).intValue();
|
||||
|
|
|
@ -69,7 +69,7 @@ public class InvoicePrint extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("DateInvoiced"))
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@ public class InvoiceWriteOff extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("C_BPartner_ID"))
|
||||
p_C_BPartner_ID = para[i].getParameterAsInt();
|
||||
|
|
|
@ -54,7 +54,7 @@ public class OrderBatchProcess extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("C_DocTypeTarget_ID"))
|
||||
p_C_DocTypeTarget_ID = para[i].getParameterAsInt();
|
||||
|
|
|
@ -62,7 +62,7 @@ public class OrderPOCreate extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("DateOrdered"))
|
||||
{
|
||||
|
|
|
@ -99,7 +99,7 @@ public class RequisitionPOCreate extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("AD_Org_ID"))
|
||||
p_AD_Org_ID = para[i].getParameterAsInt();
|
||||
|
|
|
@ -109,7 +109,7 @@ public class FinStatement extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("C_AcctSchema_ID"))
|
||||
p_C_AcctSchema_ID = ((BigDecimal)para[i].getParameter()).intValue();
|
||||
|
|
|
@ -114,7 +114,7 @@ public class TrialBalance extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("C_AcctSchema_ID"))
|
||||
p_C_AcctSchema_ID = ((BigDecimal)para[i].getParameter()).intValue();
|
||||
|
|
|
@ -62,7 +62,7 @@ public class InvoicePrint extends SvrProcess
|
|||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
if (para[i].getParameter() == null && para[i].getParameter_To() == null)
|
||||
;
|
||||
else if (name.equals("DateInvoiced"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue