コード例 #1
0
        public OtroTributoType Convertir( TributoComprobante tributoComprobante )
        {
            OtroTributoType tributo = new OtroTributoType();
            tributo.codigo =  (short) tributoComprobante.Id;
            tributo.descripcion = tributoComprobante.Descripcion;
            tributo.baseImponible = Redondeo.AplicarDecimal( tributoComprobante.BaseImponible );
            tributo.importe = Redondeo.AplicarDecimal( tributoComprobante.Importe );

            return tributo;
        }
コード例 #2
0
        public Tributo Convertir( TributoComprobante tributoComprobante )
        {
            Tributo tributo = new Tributo();
            tributo.Id =  (short) tributoComprobante.Id;
            tributo.Desc = tributoComprobante.Descripcion;
            tributo.BaseImp = Redondeo.Aplicar( tributoComprobante.BaseImponible );
            tributo.Alic = tributoComprobante.Alicuota;
            tributo.Importe = Redondeo.Aplicar( tributoComprobante.Importe );

            return tributo;
        }