View Single Post
  #2  
Old 10-15-2019, 01:11 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default Re: Sale price decimal placs

I think the problem comes from the following. In XLite/Model/Product.php, we have
Code:
/** * Product price * * @var float * * @Column ( * type="money", * precision=14, * scale=4, * options={ * @\XLite\Core\Doctrine\Annotation\Behavior (list={"taxable"}), * @\XLite\Core\Doctrine\Annotation\Purpose (name="net", source="clear "), * @\XLite\Core\Doctrine\Annotation\Purpose (name="display", source="n et") * } * ) */ protected $price = 0.0000;
whereas in XLite/CDeV/Sale/Model/Product.php we have
Code:
/** * "Sale value" * * @var float * * @Column (type="decimal", precision=14, scale=4) */ protected $salePriceValue = 0;
A solution would be modify the type of "Sale Value" to "money".
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote