• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/blocks/orderbasket.php
  • Класс: BitrixSaleHelpersAdminBlocksOrderBasket
  • Вызов: OrderBasket::getTotalBlockFieldsJs
protected function getTotalBlockFieldsJs($totalPrices, $data)
{
	return '
		totalBlockFields: {
		PRICE_BASKET: {
			id: "'.$this->idPrefix.'sale_order_edit_basket_price_basket",
				value: "'.SalePriceMaths::roundByFormatCurrency($totalPrices["PRICE_BASKET"], $this->order->getCurrency()).'",
				type: "currency"
			},
		PRICE_BASKET_DISCOUNTED: {
			id: "'.$this->idPrefix.'sale_order_edit_basket_price_discount",
				value: "'.SalePriceMaths::roundByFormatCurrency($totalPrices["PRICE_BASKET_DISCOUNTED"], $this->order->getCurrency()).'",
				type: "currency"
			},
		PRICE_DELIVERY: {
			id: "'.$this->idPrefix.'sale_order_edit_basket_price_delivery",
				value: "'.SalePriceMaths::roundByFormatCurrency($totalPrices["PRICE_DELIVERY"], $this->order->getCurrency()).'",
				type: "currency"
			},
		PRICE_DELIVERY_DISCOUNTED: {
			id: "'.$this->idPrefix.'sale_order_edit_basket_price_delivery_discount",
				value: "'.SalePriceMaths::roundByFormatCurrency($totalPrices["PRICE_DELIVERY_DISCOUNTED"], $this->order->getCurrency()).'",
				type: "currency"
			},
		TAX_VALUE: {
			id: "'.$this->idPrefix.'sale_order_edit_basket_tax",
				value: "'.SalePriceMaths::roundByFormatCurrency($totalPrices["TAX_VALUE"], $this->order->getCurrency()).'",
				type: "currency"
			},
		WEIGHT: {
			id: "'.$this->idPrefix.'sale_order_edit_basket_weight",
				value: "'.roundEx(floatval($data["WEIGHT"]), SALE_WEIGHT_PRECISION).'",
				type: "weight"
			},
		SUM_PAID: {
			id: "'.$this->idPrefix.'sale_order_edit_summ_paid",
				value: "'.SalePriceMaths::roundByFormatCurrency($totalPrices["SUM_PAID"], $this->order->getCurrency()).'",
				//edit: true,
				type: "currency"
			},
		SUM_UNPAID: {
			id: "'.$this->idPrefix.'sale_order_edit_basket_price_total",
				value: "'.SalePriceMaths::roundByFormatCurrency($totalPrices["SUM_UNPAID"], $this->order->getCurrency()).'",
				type: "currency"
			}
	}';
}