Report Issue

In AX4.0 one report is there:

public void executeSection()
{
PurchLine PurchLine;
while select PurchLine where PurchLine.ItemId == InventTable.ItemId &&
PurchLine.PurchStatus == PurchStatus::Backorder &&

PurchLine.createddate <= AsofDAte

{
VendName = PurchLine.VendorName_IN;
RemainQty = PurchLine.RemainPurchPhysical;

super();
}

}

// How to write ““PurchLine.createddate <= AsofDAte”” in Ax-2009…

Hi,

You can use ‘DateTimeUtil::newDateTime’ method. For ex -

PurchLine.CreateDate <= DateTimeUtil::newDateTime(systemdateget(),0)