From 869015680387205aa6b82b23da2bc5004f7e93aa Mon Sep 17 00:00:00 2001 From: Prasad <prasad@vtiger.com> Date: Thu, 6 Oct 2022 17:41:47 +0530 Subject: [PATCH] Fixed Product, Pricebook compatability --- include/fields/CurrencyField.php | 2 +- layouts/v7/modules/Products/ProductsPopupContents.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fields/CurrencyField.php b/include/fields/CurrencyField.php index b698280fd..46114dc61 100644 --- a/include/fields/CurrencyField.php +++ b/include/fields/CurrencyField.php @@ -363,7 +363,7 @@ class CurrencyField { } //$value = round($value, $this->maxNumberOfDecimals); - return $value; + return (float)$value; } /** diff --git a/layouts/v7/modules/Products/ProductsPopupContents.tpl b/layouts/v7/modules/Products/ProductsPopupContents.tpl index c51b25ccd..5f533cb9f 100644 --- a/layouts/v7/modules/Products/ProductsPopupContents.tpl +++ b/layouts/v7/modules/Products/ProductsPopupContents.tpl @@ -80,7 +80,7 @@ {assign var="ROW_NUMBER" value={$smarty.foreach.listViewEntry.index}} {assign var=LISTVIEW_HEADERNAME value=$LISTVIEW_HEADER->get('name')} {assign var=LISTVIEW_ENTRY_VALUE value=$LISTVIEW_ENTRY->get($LISTVIEW_HEADERNAME)} - <td class="listViewEntryValue textOverflowEllipsis" title="{$RECORD_DATA[$LISTVIEW_HEADERNAME]}"> + <td class="listViewEntryValue textOverflowEllipsis"> {if $LISTVIEW_HEADER->isNameField() eq true or $LISTVIEW_HEADER->get('uitype') eq '4'} <a>{$LISTVIEW_ENTRY->get($LISTVIEW_HEADERNAME)}</a> {else if $LISTVIEW_HEADER->get('uitype') eq '72'} -- GitLab