Skip to content
Snippets Groups Projects
valueProcess.js 494 B
import("system.translate");
import("system.text");
import("system.result");
import("system.vars");
import("Product_lib");

var currency;
if(vars.get("$param.OrderOfferInformations_param"))
{
    currency = JSON.parse(vars.get("$param.OrderOfferInformations_param")).Currency_param;
}

var price = ProductUtils.getCurrentProductPrice(vars.get("$field.PRODUCTID"), "PP", true, currency);
if (price.length > 0)
{
    result.string(text.formatDouble(price[0], "#,##0.00", true) + " " + price[1]);
}