Example #1
0
        private void populateHeaderForTaxType(TaxTypeDto taxType, bool hasMeasurement, IXLWorksheet worksheet,
                                              int columnIndex)
        {
            var taxTypeHeader = taxType.Type;

            if (hasMeasurement)
            {
                taxTypeHeader += $" ({taxType.UnitOfMeasurement})";
                worksheet.Cell(1, columnIndex + 1).Value = "Unit price";
                worksheet.Cell(1, columnIndex + 2).Value = "Then was";
                worksheet.Cell(1, columnIndex + 3).Value = "Now is";
                worksheet.Cell(1, columnIndex + 4).Value = "Cost";
            }
            else
            {
                worksheet.Cell(1, columnIndex + 1).Value = "Cost";
            }

            worksheet.Cell(1, columnIndex).Value = taxTypeHeader;
        }
 public async Task <IActionResult> UpdateTaxType(TaxTypeDto model)
 {
     return(Ok(await _taxTypeManagerRepository.EditItem(model)));
 }