diff --git a/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js b/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js index 1cdf5847..41541d7d 100644 --- a/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js +++ b/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js @@ -236,7 +236,7 @@ export class ProductMapping extends Component { formatMargin(cost, price) { const m = this.calcMargin(cost, price); if (m === null) return "—"; - return m.toFixed(1) + "%"; + return Math.round(m) + "%"; } // ------------------------------------------------------------------------- @@ -653,7 +653,7 @@ export class ProductMapping extends Component { args: [[product.odoo_product_id], { list_price: rounded }], kwargs: {}, }); - this.notification.add("Sale price set to $" + rounded.toFixed(2) + " (" + value.toFixed(1) + "% margin).", { type: "success" }); + this.notification.add("Sale price set to $" + rounded.toFixed(2) + " (" + Math.round(value) + "% margin).", { type: "success" }); await this._loadMapped(); return; } diff --git a/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml b/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml index e91aa9fa..5734db4d 100644 --- a/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml +++ b/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml @@ -231,7 +231,7 @@