In Prices.php if the user wants to add a new price for the item starting sometime in the future the system will add this new price correctly, BUT the update of the current price (changing the end date) is not correct, as end date should be the future start date -1, not always today -1.
Please check attached screenshot.
I guess it has something to do with line 384. Also why the variable $NextStartDate is set on line 384, unset 2 lines later and checked if isset 2 lines later? Probably is out of my PHP knowlegde but sounds weird.
(01-20-2012, 10:50 AM)PakRicard Wrote: I guess it has something to do with line 384. Also why the variable $NextStartDate is set on line 384, unset 2 lines later and checked if isset 2 lines later? Probably is out of my PHP knowlegde but sounds weird.
Yes looks wrong ... tricky one this - will have another look,
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz