VishalMistry
6th October 2016, 16:14
Hi Everyone,

I just want to know is there any dll function which can return fiscal year and period based on date passed to it ?

Please guide.

Vishal

srprks
6th October 2016, 16:39
Hi you can use this

tfgld.dll5005.get.year.period.from.date(get.compnr(),tfgld.ptyp.financial,gld.date,fyer,fprd,err)

VishalMistry
10th October 2016, 17:55
Hello,

Sorry I forgot to mention. I am on Baan IV. Although I worked on ERPLn FP2. But since last one year, I am on Baan IV.

I could not find any such library therein.

Can you suggest similar dll in Baan IV ?

Vishal

manish_patel
19th October 2016, 09:01
You can use itfgld0012.get.year.prno.from.date() function.

VishalMistry
19th October 2016, 10:47
Thanks a lot for guidance,

The function is there, but, when i try to view it, it says itfgld0012 is not present. Can you guide me how can I view it's prototype ?

Vishal

manish_patel
19th October 2016, 15:19
|* INPUT - 1) igld0012.gcmp - Group Company Number
|* 2) igld0012.ptyp - Period Type - Financial, Reporting, Vat
|* 3) igld0012.date - Date
|*
|* RETURN VALUE 1) TRUE - If a valid year and period is found. Then you can
|* directly use variables igld0012.year & igld0012.prno
|*
|* 2) FALSE - If there is no year and period in which this date
|* falls.
|*
|* OUTPUT - 1) igld0012.year - Year Code
|* 2) igld0012.prno - Period Number

function long itfgld0012.get.year.prno.from.date(
domain tcncmp igld0012.gcmp,
domain tfgld.ptyp igld0012.ptyp,
domain tfgld.date igld0012.date)