RE: how to query field date is null or not
Hi Nikolaos,
Yes, it's only bcos you 're mentioned to share the method so I did, while on going search for the cause... :)
Anyway, yes, I found the cause, as Blue just mentioned as well, it is because the DateTimeUtil.
But I did change it just now, by preserved the GetSystemDate earlier like this :
TransDate CurrentDate = DateTimeUtil::date(DateTimeUtil::getSystemDate(DateTimeUtil::getUserPreferredTimeZone()));
while select CustTable where CustTable.AccountNum == CustAccount
join CustInvJour where CustInvJour.InvoiceAccount == CustTable.AccountNum
// && currentDate - CustInvJour.InvoiceDate >= (custCollectionLetterLine.NumOfDays)
&& CustInvJour.InvoiceAmountMST >= limitBalance
join CustTrans where CustTrans.Invoice == CustInvJour.InvoiceId
&& CustTrans.AccountNum == CustInvJour.InvoiceAccount
&& CustTrans.TransDate == CustInvJour.InvoiceDate
&& CustTrans.Voucher == CustInvJour.LedgerVoucher
&& !CustTrans.Closed
{
}
But unfortunately after using the variable, the error still persist. Currently I remark it, so the error gone. but of course I still need that date calculation.
Thanks.