Your IP : 3.144.206.120
BX.namespace("BX.Sale.Admin.OrderInfo");BX.Sale.Admin.OrderInfo={getFieldsUpdaters:function(){return{BUYER_FIO:BX.Sale.Admin.OrderInfo.setBuyerName,BUYER_PHONE:BX.Sale.Admin.OrderInfo.setBuyerPhone,BUYER_EMAIL:BX.Sale.Admin.OrderInfo.setBuyerEmail,STATUS_ID:BX.Sale.Admin.OrderInfo.setOrderStatus,TOTAL_PRICES:BX.Sale.Admin.OrderInfo.setTotalPrices}},setTotalPrices:function(e){BX.Sale.Admin.OrderInfo.setPriceBasket(e.PRICE_BASKET);BX.Sale.Admin.OrderInfo.setPriceBasketDiscount(e.PRICE_BASKET_DISCOUNTED);BX.Sale.Admin.OrderInfo.setDeliveryPrice(e.PRICE_DELIVERY_DISCOUNTED);BX.Sale.Admin.OrderInfo.setPrice(e.SUM_UNPAID)},setBuyerName:function(e){var r=BX("order_info_buyer_name");if(r)r.innerHTML=BX.util.htmlspecialchars(e)},setBuyerPhone:function(e){var r=BX("order_info_buyer_phone");if(!r)return;var i="";if(e){if(!(e instanceof Array)){e=[e]}for(var n=0,a=e.length;n<a;n++){e[n]=e[n].replace(/'/g,"");e[n]=BX.util.htmlspecialchars(e[n]);if(i.length>0)i+=", ";i+='<a href="javascript:void(0)" onclick="BX.Sale.Admin.OrderEditPage.desktopMakeCall(\''+e[n]+"');\">"+e[n]+"</a>"}}r.innerHTML=i},setBuyerEmail:function(e){var r=BX("order_info_buyer_email");if(r){e=BX.util.htmlspecialchars(e);r.innerHTML='<a href="mailto:'+e+'">'+e+"</a>"}},setOrderStatus:function(e){var r=BX("order_info_order_status_name");if(r&&BX.Sale.Admin.OrderEditPage.statusesNames&&BX.Sale.Admin.OrderEditPage.statusesNames[e])r.innerHTML=BX.util.htmlspecialchars(BX.Sale.Admin.OrderEditPage.statusesNames[e])},setPrice:function(e){var r=BX("order_info_buyer_price");if(r)r.innerHTML=BX.Sale.Admin.OrderEditPage.currencyFormat(e)},setPriceBasketDiscount:function(e){var r=BX("order_info_price_basket_discount");if(r)r.innerHTML=BX.Sale.Admin.OrderEditPage.currencyFormat(e)},setDeliveryPrice:function(e){var r=BX("order_info_delivery_price");if(r)r.innerHTML=BX.Sale.Admin.OrderEditPage.currencyFormat(e)},setPriceBasket:function(e){var r=BX("order_info_price_basket");if(r)r.innerHTML=BX.Sale.Admin.OrderEditPage.currencyFormat(e)},setIconLamp:function(e,r,i){var n=BX("sale-admin-order-icon-"+e+"-"+r);if(n)n.className="adm-bus-orderinfoblock-content-last-icon "+i}};
//# sourceMappingURL=order_info.map.js