IDEMPIERE-75 Process Reset Accounting - Parameter DateTo not used if DateFrom is null

This commit is contained in:
Carlos Ruiz 2011-09-27 10:07:37 -05:00
parent 20b1cb08fa
commit 083b9dfc49
12 changed files with 12 additions and 12 deletions

View File

@ -61,7 +61,7 @@ public class AllocationReset extends SvrProcess
{ {
log.fine("prepare - " + para[i]); log.fine("prepare - " + para[i]);
String name = para[i].getParameterName(); 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")) else if (name.equals("C_BP_Group_ID"))
p_C_BP_Group_ID = para[i].getParameterAsInt(); p_C_BP_Group_ID = para[i].getParameterAsInt();

View File

@ -54,7 +54,7 @@ public class ExpenseAPInvoice extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("C_BPartner_ID"))
m_C_BPartner_ID = para[i].getParameterAsInt(); m_C_BPartner_ID = para[i].getParameterAsInt();

View File

@ -62,7 +62,7 @@ public class ExpenseSOrder extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("C_BPartner_ID"))
p_C_BPartner_ID = para[i].getParameterAsInt(); p_C_BPartner_ID = para[i].getParameterAsInt();

View File

@ -75,7 +75,7 @@ public class FactAcctReset extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("AD_Client_ID"))
p_AD_Client_ID = ((BigDecimal)para[i].getParameter()).intValue(); p_AD_Client_ID = ((BigDecimal)para[i].getParameter()).intValue();

View File

@ -69,7 +69,7 @@ public class InvoicePrint extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("DateInvoiced"))
{ {

View File

@ -79,7 +79,7 @@ public class InvoiceWriteOff extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("C_BPartner_ID"))
p_C_BPartner_ID = para[i].getParameterAsInt(); p_C_BPartner_ID = para[i].getParameterAsInt();

View File

@ -54,7 +54,7 @@ public class OrderBatchProcess extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("C_DocTypeTarget_ID"))
p_C_DocTypeTarget_ID = para[i].getParameterAsInt(); p_C_DocTypeTarget_ID = para[i].getParameterAsInt();

View File

@ -62,7 +62,7 @@ public class OrderPOCreate extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("DateOrdered"))
{ {

View File

@ -99,7 +99,7 @@ public class RequisitionPOCreate extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("AD_Org_ID"))
p_AD_Org_ID = para[i].getParameterAsInt(); p_AD_Org_ID = para[i].getParameterAsInt();

View File

@ -109,7 +109,7 @@ public class FinStatement extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("C_AcctSchema_ID"))
p_C_AcctSchema_ID = ((BigDecimal)para[i].getParameter()).intValue(); p_C_AcctSchema_ID = ((BigDecimal)para[i].getParameter()).intValue();

View File

@ -114,7 +114,7 @@ public class TrialBalance extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("C_AcctSchema_ID"))
p_C_AcctSchema_ID = ((BigDecimal)para[i].getParameter()).intValue(); p_C_AcctSchema_ID = ((BigDecimal)para[i].getParameter()).intValue();

View File

@ -62,7 +62,7 @@ public class InvoicePrint extends SvrProcess
for (int i = 0; i < para.length; i++) for (int i = 0; i < para.length; i++)
{ {
String name = para[i].getParameterName(); 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")) else if (name.equals("DateInvoiced"))
{ {