Example #1
0
        private static CalculoImpostoViewModel ObterTotalImposto(NFeIcmsTot total)
        {
            var model = new CalculoImpostoViewModel
            {
                ValorAproximadoTributos = (double?)total.VTotTrib,
                BaseCalculoIcms         = (double)total.VBc,
                ValorIcms          = (double)total.VIcms,
                BaseCalculoIcmsSt  = (double)total.VBcSt,
                ValorIcmsSt        = (double)total.VSt,
                ValorTotalProdutos = (double?)total.VProd,
                ValorFrete         = (double)total.VFrete,
                ValorSeguro        = (double)total.VSeg,
                Desconto           = (double)total.VDesc,
                ValorII            = (double)total.VII,
                ValorIpi           = (double)total.VIpi,
                ValorPis           = (double)total.VPis,
                ValorCofins        = (double)total.VCofins,
                OutrasDespesas     = (double)total.VOutro,
                ValorTotalNota     = (double)total.VNf,
                vFCPUFDest         = (double?)total.VFcpUfDest,
                vICMSUFDest        = (double?)total.VIcmsUfDest,
                vICMSUFRemet       = (double?)total.VIcmsUfRemet
            };

            return(model);
        }
Example #2
0
 public DanfeViewModel()
 {
     QuantidadeCanhotos        = 1;
     Margem                    = 4;
     Orientacao                = Orientacao.Retrato;
     CalculoImposto            = new CalculoImpostoViewModel();
     Emitente                  = new EmpresaViewModel();
     Destinatario              = new EmpresaViewModel();
     Duplicatas                = new List <DuplicataViewModel>();
     Produtos                  = new List <ProdutoViewModel>();
     Transportadora            = new TransportadoraViewModel();
     CalculoIssqn              = new CalculoIssqnViewModel();
     NotasFiscaisReferenciadas = new List <string>();
 }