Can anyone help me with this problem please.
I have a table as below:
|Work Order No||Work Order Date||Payment Received Date||Fiscal Year||Payment Value|
Now that I wanted Current Fiscal Year and Carry Over Fiscal Year for each Work Order Received. Wherein Current fiscal year is the fiscal year against the work order date. If work order date is not there then lease payment received date should be taken as a work order date and the fiscal year against that row should be current fiscal year.
Now when I Select a work order (or a list of work orders) I should get current fiscal year, carry over fiscal year and payment received in current year and payment received in carry over fiscal year.
|Work Order No||Current Fiscal Year||Carry Over Fiscal Yr||Current Yr Payment Received Value||Carry Over Yr Payment Recieved|