Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in Prices.php (v 4.06.6)
01-20-2012, 10:50 AM, (This post was last modified: 01-20-2012, 11:02 AM by PakRicard.)
#1
Error in Prices.php (v 4.06.6)
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.


Attached Files Thumbnail(s)
   
Regards,
Pak Ricard
Reply
01-20-2012, 06:13 PM,
#2
RE: Error in Prices.php (v 4.06.6)
(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
Reply
02-11-2012, 02:05 PM,
#3
RE: Error in Prices.php (v 4.06.6)
Think I've cracked this - I am a bit worried about specific customer/branch prices though
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
02-11-2012, 05:58 PM,
#4
RE: Error in Prices.php (v 4.06.6)
Thanks Phil: Works OK, but line 160 should be deleted. Besides this, it's OK.
Regards,
Pak Ricard
Reply
02-12-2012, 11:29 AM,
#5
RE: Error in Prices.php (v 4.06.6)
oh dear yes - thanks Ricard...
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)