Hello!
We recently made a report that displays all the PO's in a particular period.
The report displays the following
Date PO Num Vendor Code Vendor Name Vendor VAT Num Currency VAT Total Amount
The data sources are PurchTable, VendTable and VendPurchOrderJour.
I want the report to sort according to date inputted by the user. Say the date is 01-01-2017..31-12-2017, I want only the PO's within this date to show in the report.
Below is the Method in PurchTable I used to display the date in the report
1) Date
Table: PurchTable
Data Method: LastPurchaseOrderDate
client server
display LastPurchaseOrderDate lastPurchaseOrderDate()
{
return (select maxof(PurchOrderDate) from vendPurchOrderPurchLink
index hint origPurchIdx
where vendPurchOrderPurchLink.OrigPurchId == this.PurchId).PurchOrderDate;
}
There is also a field called PurchOrderDate in VendPurchOrderJour. I tried setting the range in the data source to PurchOrderDate. But the report does not sort. It brings a list of all PO's since the beginning of time in the system.
Appreciate any support on how to sort the report date wise.