From 6eaee0c6f942c55049b2d2715ecaaa0e924c663b Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 20 Dec 2020 15:02:22 +0100 Subject: [PATCH] Fixed number display for quick consume buttons --- views/stockoverview.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index 9f3e6452..07f6c3b6 100755 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -185,7 +185,7 @@ href="#" data-toggle="tooltip" data-placement="left" - title="{{ $__t('Consume %1$s of %2$s', $currentStockEntry->quick_consume_amount . ' ' . $currentStockEntry->qu_unit_name, $currentStockEntry->product_name) }}" + title="{{ $__t('Consume %1$s of %2$s', floatval($currentStockEntry->quick_consume_amount) . ' ' . $currentStockEntry->qu_unit_name, $currentStockEntry->product_name) }}" data-product-id="{{ $currentStockEntry->product_id }}" data-product-name="{{ $currentStockEntry->product_name }}" data-product-qu-name="{{ $currentStockEntry->qu_unit_name }}" @@ -210,7 +210,7 @@ href="#" data-toggle="tooltip" data-placement="left" - title="{{ $__t('Mark %1$s of %2$s as open', $currentStockEntry->quick_consume_amount . ' ' . $currentStockEntry->qu_unit_name, $currentStockEntry->product_name) }}" + title="{{ $__t('Mark %1$s of %2$s as open', floatval($currentStockEntry->quick_consume_amount) . ' ' . $currentStockEntry->qu_unit_name, $currentStockEntry->product_name) }}" data-product-id="{{ $currentStockEntry->product_id }}" data-product-name="{{ $currentStockEntry->product_name }}" data-product-qu-name="{{ $currentStockEntry->qu_unit_name }}"