Looks like this:
PHP Code:
$NewItemDue = date($_SESSION['DefaultDateFormat']);
Should be this in a few places:
PHP Code:
$NewItemDue = DateAdd (Date($_SESSION['DefaultDateFormat']),'d', $_SESSION['Items'.$identifier]->DeliveryDays);
Specifically on lines 1222 and 1271 in my case of non-kit parts being sold.
Also... Should we not compare that value to purchdata.leadtime value to be sure the dates work?
Can a webERP expert please help clarify?