public infNFe() { ide = new ide(); emit = new emit(); dest = new dest(); total = new total(); transp = new transp(); cobr = new cobr(); infAdic = new infAdic(); }
protected virtual cobr GetCobranca() { var c = new cobr { fat = new fat { nFat = "12345678910", vLiq = 90 }, dup = new List <dup> { new dup { nDup = "12345678", vDup = decimal.Parse("0,45") }, new dup { nDup = "987654321", vDup = decimal.Parse("0,45") } } }; return(c); }
private static cobr GetCobranca(ICMSTot icmsTot) { decimal valorParcela = (icmsTot.vNF / 2).Arredondar(2); cobr c = new cobr { fat = new fat { nFat = "12345678910", vLiq = icmsTot.vNF, vOrig = icmsTot.vNF, vDesc = 0m }, dup = new List <dup> { new dup { nDup = "001", dVenc = DateTime.Now.AddDays(30), vDup = valorParcela }, new dup { nDup = "002", dVenc = DateTime.Now.AddDays(60), vDup = icmsTot.vNF - valorParcela } } }; return(c); }
protected virtual cobr GetCobranca(ICMSTot icmsTot) { var valorParcela = Valor.Arredondar(icmsTot.vProd / 2, 2); var c = new cobr { fat = new fat { nFat = "12345678910", vLiq = icmsTot.vProd }, dup = new List <dup> { new dup { nDup = "12345678", vDup = valorParcela }, new dup { nDup = "987654321", vDup = icmsTot.vProd - valorParcela } } }; return(c); }
protected CobrancaNFe() { Cobr = new cobr(); Cobr.dup = new List <dup>(); }