コード例 #1
0
        protected override void Setup(IReportBuilder reportBuilder)
        {
            var basePrice  = Request.Product.Price;
            var tax        = Request.Tax;
            var finalPrice = basePrice.ApplyTax(tax);

            reportBuilder
            .WithTemplateKey(Constants.ReportTemplates.Tax)
            .WithKeyValue(Constants.Placeholders.BasePrice, basePrice)
            .WithKeyValue(Constants.Placeholders.TaxRate, tax)
            .WithKeyValue(Constants.Placeholders.FinalPrice, finalPrice);
        }