コード例 #1
0
        private static TaxItemType MapTaxItemType(Model.TaxItemType taxItem)
        {
            TaxItemType tax = new TaxItemType()
            {
                TaxableAmount      = taxItem.TaxableAmount.FixedFraction(2),
                Comment            = taxItem.Comment,
                TaxAmountSpecified = true,
                TaxAmount          = (taxItem.TaxableAmount * taxItem.TaxPercent.Value / 100).FixedFraction(2),
                TaxPercent         = new TaxPercentType()
                {
                    TaxCategoryCode = taxItem.TaxPercent.TaxCategoryCode,
                    Value           = taxItem.TaxPercent.Value
                }
            };

            return(tax);
        }
コード例 #2
0
 private static object MapVatItemType(Model.TaxItemType vatItem)
 {
     if (vatItem.TaxPercent.TaxCategoryCode == PlugInSettings.VStBefreitCode)
     {
         var taxexNew = new TaxExemptionType
         {
             Value = vatItem.Comment
         };
         return(taxexNew);
     }
     else
     {
         var taxexNew = new VATRateType
         {
             Value = vatItem.TaxPercent.Value
         };
         return(taxexNew);
     }
 }