decodeProperties(array ( 'file_dependency' => array ( 'a8ead0210a1b52dd06b50096cdb379222bfa7fb3' => array ( 0 => '/home/sophalnexs/www/sophalcrm/includes/runtime/../../layouts/v7/modules/Inventory/partials/LineItemsContent.tpl', 1 => 1624978635, 2 => 'file', ), ), 'nocache_hash' => '1387971415e67aa402d73c3-29384410', 'function' => array ( ), 'version' => 'Smarty-3.1.7', 'unifunc' => 'content_5e67aa406c4f2', 'variables' => array ( 'row_no' => 0, 'entityIdentifier' => 0, 'data' => 0, 'RELATED_PRODUCTS' => 0, 'hdnProductId' => 0, 'productId' => 0, 'MODULE' => 0, 'purchaseCost' => 0, 'qty' => 0, 'RECORD_CURRENCY_RATE' => 0, 'CURRENCIES' => 0, 'currency_details' => 0, 'IMAGE_EDITABLE' => 0, 'image' => 0, 'PRODUCT_EDITABLE' => 0, 'tax_row_no' => 0, 'productName' => 0, 'productDeleted' => 0, 'entityType' => 0, 'PRODUCT_ACTIVE' => 0, 'SERVICE_ACTIVE' => 0, 'subproduct_ids' => 0, 'subprod_names' => 0, 'subprod_qty_list' => 0, 'SUB_PRODUCT_INFO' => 0, 'SUB_PRODUCT_ID' => 0, 'COMMENT_EDITABLE' => 0, 'comment' => 0, 'QUANTITY_EDITABLE' => 0, 'PURCHASE_COST_EDITABLE' => 0, 'MARGIN_EDITABLE' => 0, 'margin' => 0, 'qtyInStock' => 0, 'LIST_PRICE_EDITABLE' => 0, 'CURRENT_USER_MODEL' => 0, 'listPrice' => 0, 'RECORD_ID' => 0, 'listPriceValues' => 0, 'PRICEBOOK_MODULE_MODEL' => 0, 'ITEM_DISCOUNT_AMOUNT_EDITABLE' => 0, 'ITEM_DISCOUNT_PERCENT_EDITABLE' => 0, 'discount_type' => 0, 'discount_percent' => 0, 'discount_amount' => 0, 'DISCOUNT_TYPE' => 0, 'productTotal' => 0, 'checked_discount_zero' => 0, 'checked_discount_percent' => 0, 'checked_discount_amount' => 0, 'IS_GROUP_TAX_TYPE' => 0, 'totalAfterDiscount' => 0, 'tax_data' => 0, 'taxname' => 0, 'popup_tax_rowname' => 0, 'discountTotal' => 0, 'taxTotal' => 0, 'netPrice' => 0, ), 'has_nocache_code' => false, ),false); /*/%%SmartyHeaderCode%%*/?> tpl_vars["deleted"] = new Smarty_variable(("deleted").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["image"] = new Smarty_variable(("productImage").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["purchaseCost"] = new Smarty_variable(("purchaseCost").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["margin"] = new Smarty_variable(("margin").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["hdnProductId"] = new Smarty_variable(("hdnProductId").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["productName"] = new Smarty_variable(("productName").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["comment"] = new Smarty_variable(("comment").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["productDescription"] = new Smarty_variable(("productDescription").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["qtyInStock"] = new Smarty_variable(("qtyInStock").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["qty"] = new Smarty_variable(("qty").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["listPrice"] = new Smarty_variable(("listPrice").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["productTotal"] = new Smarty_variable(("productTotal").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["subproduct_ids"] = new Smarty_variable(("subproduct_ids").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["subprod_names"] = new Smarty_variable(("subprod_names").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["subprod_qty_list"] = new Smarty_variable(("subprod_qty_list").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["entityIdentifier"] = new Smarty_variable(("entityType").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["entityType"] = new Smarty_variable($_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['entityIdentifier']->value], null, 0);?>tpl_vars["discount_type"] = new Smarty_variable(("discount_type").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["discount_percent"] = new Smarty_variable(("discount_percent").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["checked_discount_percent"] = new Smarty_variable(("checked_discount_percent").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["style_discount_percent"] = new Smarty_variable(("style_discount_percent").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["discount_amount"] = new Smarty_variable(("discount_amount").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["checked_discount_amount"] = new Smarty_variable(("checked_discount_amount").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["style_discount_amount"] = new Smarty_variable(("style_discount_amount").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["checked_discount_zero"] = new Smarty_variable(("checked_discount_zero").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["discountTotal"] = new Smarty_variable(("discountTotal").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["totalAfterDiscount"] = new Smarty_variable(("totalAfterDiscount").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["taxTotal"] = new Smarty_variable(("taxTotal").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["netPrice"] = new Smarty_variable(("netPrice").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["FINAL"] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_PRODUCTS']->value[1]['final_details'], null, 0);?>tpl_vars["productDeleted"] = new Smarty_variable(("productDeleted").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["productId"] = new Smarty_variable($_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['hdnProductId']->value], null, 0);?>tpl_vars["listPriceValues"] = new Smarty_variable(Products_Record_Model::getListPriceValues($_smarty_tpl->tpl_vars['productId']->value), null, 0);?>tpl_vars['MODULE']->value=='PurchaseOrder'){?>tpl_vars["listPriceValues"] = new Smarty_variable(array(), null, 0);?>tpl_vars['RECORD_CURRENCY_RATE']->value;?> tpl_vars['data']->value[$_smarty_tpl->tpl_vars['purchaseCost']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['purchaseCost']->value])/((float)$_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['qty']->value]*$_tmp1));?>tpl_vars["purchaseCost"] = new Smarty_variable($_tmp2, null, 0);?>tpl_vars['currency_details'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['currency_details']->_loop = false; $_from = $_smarty_tpl->tpl_vars['CURRENCIES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['currency_details']->key => $_smarty_tpl->tpl_vars['currency_details']->value){ $_smarty_tpl->tpl_vars['currency_details']->_loop = true; ?>createLocalArrayVariable('listPriceValues', null, 0); $_smarty_tpl->tpl_vars['listPriceValues']->value[$_smarty_tpl->tpl_vars['currency_details']->value['currency_id']] = $_smarty_tpl->tpl_vars['currency_details']->value['conversionrate']*$_smarty_tpl->tpl_vars['purchaseCost']->value;?> tpl_vars['IMAGE_EDITABLE']->value){?>value[$_smarty_tpl->tpl_vars['image']->value];?> ' height="42" width="42">tpl_vars['PRODUCT_EDITABLE']->value){?>
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productName']->value])){?> disabled="disabled" >tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productDeleted']->value]){?>
tpl_vars['row_no']->value==0){?> tpl_vars['entityType']->value==''&&$_smarty_tpl->tpl_vars['PRODUCT_ACTIVE']->value=='true'){?> tpl_vars['entityType']->value==''&&$_smarty_tpl->tpl_vars['SERVICE_ACTIVE']->value=='true'){?> tpl_vars['entityType']->value=='Services')&&(!$_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productDeleted']->value])){?> tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productDeleted']->value])){?>
tpl_vars['SUB_PRODUCT_INFO'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['SUB_PRODUCT_INFO']->_loop = false; $_smarty_tpl->tpl_vars['SUB_PRODUCT_ID'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['subprod_qty_list']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['SUB_PRODUCT_INFO']->key => $_smarty_tpl->tpl_vars['SUB_PRODUCT_INFO']->value){ $_smarty_tpl->tpl_vars['SUB_PRODUCT_INFO']->_loop = true; $_smarty_tpl->tpl_vars['SUB_PRODUCT_ID']->value = $_smarty_tpl->tpl_vars['SUB_PRODUCT_INFO']->key; ?> - tpl_vars['SUB_PRODUCT_INFO']->value['name'];?> (tpl_vars['SUB_PRODUCT_INFO']->value['qty'];?> )tpl_vars['SUB_PRODUCT_INFO']->value['qty']>getProductQtyInStock($_smarty_tpl->tpl_vars['SUB_PRODUCT_ID']->value)){?> - tpl_vars['MODULE']->value);?>
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productDeleted']->value]){?>
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productName']->value])){?>tpl_vars['MODULE']->value);?> tpl_vars['MODULE']->value);?> tpl_vars['entityType']->value;?> tpl_vars['MODULE']->value);?>
tpl_vars['COMMENT_EDITABLE']->value){?>

tpl_vars['QUANTITY_EDITABLE']->value==false){?> disabled=disabled />tpl_vars['PURCHASE_COST_EDITABLE']->value==false&&$_smarty_tpl->tpl_vars['MODULE']->value!='PurchaseOrder'){?>tpl_vars['MARGIN_EDITABLE']->value==false){?>tpl_vars['MODULE']->value!='PurchaseOrder'){?>
tpl_vars['PURCHASE_COST_EDITABLE']->value){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['purchaseCost']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['purchaseCost']->value];?> 0tpl_vars['LIST_PRICE_EDITABLE']->value){?>
tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser())){?> readonly id="tpl_vars['listPrice']->value;?> " name="tpl_vars['listPrice']->value;?> " value="tpl_vars['data']->value[$_smarty_tpl->tpl_vars['listPrice']->value])){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['listPrice']->value];?> 0" type="text"data-rule-required=true data-rule-positive=true class="listPrice smallInputBox inputElement" data-is-price-changed="tpl_vars['RECORD_ID']->value&&$_smarty_tpl->tpl_vars['row_no']->value!=0){?>truefalse" list-info='tpl_vars['data']->value[$_smarty_tpl->tpl_vars['listPrice']->value])){?>tpl_vars['listPriceValues']->value);?> ' data-base-currency-id="tpl_vars['entityType']->value;?> tpl_vars['productId']->value,$_tmp3);?> " /> tpl_vars['PRICEBOOK_MODULE_MODEL'] = new Smarty_variable(Vtiger_Module_Model::getInstance('PriceBooks'), null, 0);?>tpl_vars['PRICEBOOK_MODULE_MODEL']->value->isPermitted('DetailView')&&$_smarty_tpl->tpl_vars['MODULE']->value!='PurchaseOrder'){?>
tpl_vars['ITEM_DISCOUNT_AMOUNT_EDITABLE']->value||$_smarty_tpl->tpl_vars['ITEM_DISCOUNT_PERCENT_EDITABLE']->value){?>
(-) tpl_vars['MODULE']->value);?> tpl_vars['ITEM_DISCOUNT_PERCENT_EDITABLE']->value&&$_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discount_type']->value]=='percentage'){?>(tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discount_percent']->value];?> %)tpl_vars['ITEM_DISCOUNT_AMOUNT_EDITABLE']->value&&$_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discount_type']->value]=='amount'){?>(tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discount_amount']->value];?> )(0) :
tpl_vars["DISCOUNT_TYPE"] = new Smarty_variable("zero", null, 0);?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discount_type']->value])){?>tpl_vars["DISCOUNT_TYPE"] = new Smarty_variable($_smarty_tpl->tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discount_type']->value], null, 0);?>

tpl_vars['MODULE']->value);?> : tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productTotal']->value];?>

tpl_vars['ITEM_DISCOUNT_PERCENT_EDITABLE']->value){?>tpl_vars['ITEM_DISCOUNT_AMOUNT_EDITABLE']->value){?>
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['checked_discount_zero']->value];?> tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discount_type']->value])){?>checked class="discounts" data-discount-type="zero" /> tpl_vars['MODULE']->value);?>
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['checked_discount_percent']->value];?> class="discounts" data-discount-type="percentage" />  %tpl_vars['MODULE']->value);?>  %
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['checked_discount_amount']->value];?> class="discounts" data-discount-type="amount" /> tpl_vars['MODULE']->value);?>
tpl_vars['MODULE']->value);?> :
(+) tpl_vars['MODULE']->value);?> :

tpl_vars['MODULE']->value);?> : tpl_vars['data']->value[$_smarty_tpl->tpl_vars['totalAfterDiscount']->value];?>

tpl_vars['data']->value['taxes'])>0){?>
tpl_vars['tax_data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax_data']->_loop = false; $_smarty_tpl->tpl_vars['tax_row_no'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['data']->value['taxes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['tax_data']->key => $_smarty_tpl->tpl_vars['tax_data']->value){ $_smarty_tpl->tpl_vars['tax_data']->_loop = true; $_smarty_tpl->tpl_vars['tax_row_no']->value = $_smarty_tpl->tpl_vars['tax_data']->key; ?>tpl_vars["taxname"] = new Smarty_variable((($_smarty_tpl->tpl_vars['tax_data']->value['taxname']).("_percentage")).($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["tax_id_name"] = new Smarty_variable(("hidden_tax").($_smarty_tpl->tpl_vars['tax_row_no']->value)+((1).("_percentage")).($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["taxlabel"] = new Smarty_variable((($_smarty_tpl->tpl_vars['tax_data']->value['taxlabel']).("_percentage")).($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>tpl_vars["popup_tax_rowname"] = new Smarty_variable(("popup_tax_row").($_smarty_tpl->tpl_vars['row_no']->value), null, 0);?>
  tpl_vars['tax_data']->value['taxlabel'];?>  %
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productTotal']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['productTotal']->value];?> 0
tpl_vars['ITEM_DISCOUNT_AMOUNT_EDITABLE']->value||$_smarty_tpl->tpl_vars['ITEM_DISCOUNT_PERCENT_EDITABLE']->value){?>
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discountTotal']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['discountTotal']->value];?> 0
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['totalAfterDiscount']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['totalAfterDiscount']->value];?> 0
tpl_vars['data']->value[$_smarty_tpl->tpl_vars['taxTotal']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['taxTotal']->value];?> 0
tpl_vars['MARGIN_EDITABLE']->value&&$_smarty_tpl->tpl_vars['PURCHASE_COST_EDITABLE']->value){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['margin']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['margin']->value];?> 0tpl_vars['data']->value[$_smarty_tpl->tpl_vars['netPrice']->value]){?>tpl_vars['data']->value[$_smarty_tpl->tpl_vars['netPrice']->value];?> 0