aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
184 stars 43 forks source link

Precision Config not Respected #169

Closed exemplari closed 3 years ago

exemplari commented 3 years ago

Environment "aimeos/aimeos-laravel": "~2020.10" linux

Describe the bug Various template issues in the display of product-price precision.

To Reproduce Steps to reproduce the behavior:

  1. Set precision to other than 2 mshop/price/precision = 4
  2. Create an order with 4 digit precision item price (using JSON frontend)
  3. Visit the Admin Dashboard and see incorrect values for recent order

Expected behavior Display the correctly rounded numbers.

Screenshots order-product Order on the Left and Product on the Right

Additional context The core functionality is correct and totals are correct. This is a display error. This line seems to be a starting point. templates/order/item-standard.php line 41 $priceFormat = $this->translate( 'client/code', '%1$s %2$s' );

exemplari commented 3 years ago

UG, Actually the issue is on the table structure.. mshop_order_base_product it is incorrect My bad.