66using DatilClientLibrary ;
77using Newtonsoft . Json . Linq ;
88using Newtonsoft . Json ;
9- using Newtonsoft . Json . Serialization . ContractResolverExtentions ;
109
1110namespace EjemploCSharp
1211{
@@ -39,6 +38,7 @@ static void Main(string[] args)
3938 // Detalle de la factura y sus impuestos.
4039 var items = new List < Item > ( ) ;
4140 Item item = new Item ( "ZNC" , "050" , "Zanahoria granel 50 Kg." , 622.0 , 7.01 , 4360.22 , 0.0 ) ;
41+ item . PrecioSinSubsidio = 600.0 ;
4242 var detallesAdicionales = new Dictionary < string , string > ( ) ;
4343 detallesAdicionales . Add ( "Peso" , "5000" ) ; // agregar más detalles al item de ser necesario
4444 item . DetallesAdicionales = detallesAdicionales ;
@@ -49,7 +49,8 @@ static void Main(string[] args)
4949
5050 // Total de la factura con sus impuestos.
5151 var totales = new TotalesFactura ( 4359.54 , 4882.68 , 0.0 , 0.0 ) ;
52- var impuestosDeTotal = new List < Impuesto > ( ) ;
52+ totales . TotalSubsidio = 22.00 ;
53+ var impuestosDeTotal = new List < Impuesto > ( ) ;
5354 impuestosDeTotal . Add ( new Impuesto ( "2" , "0" , 0.0 , 0.0 ) ) ;
5455 impuestosDeTotal . Add ( new Impuesto ( "2" , "2" , 4359.54 , 523.14 ) ) ; // agregar más impuestos a la lista de ser necesario.
5556 totales . Impuestos = impuestosDeTotal ;
@@ -63,11 +64,13 @@ de periódicos y/ o revistas.
6364 var retenciones = new List < RetencionFactura > ( ) ;
6465 RetencionFactura retencion = new RetencionFactura ( "4" , "327" , 0.20 , 0.13 ) ;
6566 retenciones . Add ( retencion ) ;
67+ RetencionFactura retencion2 = new RetencionFactura ( "4" , "327" , 0.20 , 0.13 ) ;
68+ retenciones . Add ( retencion2 ) ;
6669
6770 // Crear factura
6871 Factura factura = new Factura ( ) ;
6972 // Cabecera
70- factura . Secuencial = "610 " ;
73+ factura . Secuencial = "1612 " ;
7174 factura . Moneda = "USD" ;
7275
7376 DateTime today = DateTime . Today ;
0 commit comments