Page 2 of 2

Re: alternative invoice layouts

Posted: 29 Feb 2016, 09:58
by brucedenney
I hope it does.... "For the period 01/02/2016 to <invoicedate>"

If you have problems let me know

Re: alternative invoice layouts

Posted: 29 Feb 2016, 17:47
by sbrown1264
Hi

I Created an invoice dated 08/03/16, using the formula below it came up with 01/03/16 to 08/03/16, so how can we make it go to the end of the month?

Regards

Stephen

substring(DateTimeToString(CreateDateTime(YearFromDate(INVOICE.INVOICE_DATE), MonthFromDate(INVOICE.INVOICE_DATE),1)), 1,10) + " to " + substring(DateTimeToString(INVOICE.INVOICE_DATE),1,10)

Re: alternative invoice layouts

Posted: 29 Feb 2016, 17:53
by brucedenney
You could try setting the date to the first of next month and then taking one day away, I have not tried this but I am thinking something like this might work... I would test it over a year end as month 12 + 1 might break things, not sure, you have to try and see...

Code: Select all

substring(DateTimeToString(CreateDateTime(YearFromDate(INVOICE.INVOICE_DATE), MonthFromDate(INVOICE.INVOICE_DATE)+1,1)-1), 1,10)