Hi I have a question. In our current Cash report, we have the posting date, and the due date. How to calculate the days when custoer pay the cash, i.e due date - posting date. I tried it, but it didn't work. Thanks in advance!
Save it in a text file and import it into Navision. It's a form with object number 50000. If that number is already taken, just change the number to one that is available.
I don't have the liscence to import the file. I changed something. Now almost all the number are -30 whether it is paid before the due date or after the due date except the number that is paid at exact due date is correct that is zero. I still don't why. Can it give me for instance 20, 8 and etc after I minus the two date?
I really don't know how else to explain it.... You subtract two dates and it returns an integer. This works all the time. If date 1 is before date 2 it returns a positive number, a negative number if it's after date 2, and zero if it's the same.
If you're not getting the right results then you're not programming it correctly. If it's in a report you typically want to do this in the OnAfterGetRecord trigger of the relevant dataitem. You can even put the source expression of the control to be "Posting Date" - "Due Date" and it will show the number.
Comments
RIS Plus, LLC
RIS Plus, LLC
If you're not getting the right results then you're not programming it correctly. If it's in a report you typically want to do this in the OnAfterGetRecord trigger of the relevant dataitem. You can even put the source expression of the control to be "Posting Date" - "Due Date" and it will show the number.
RIS Plus, LLC
http://www.BiloBeauty.com
http://www.autismspeaks.org