/// <summary> /// Tos the fixed string. /// </summary> /// <returns>The fixed string.</returns> /// <see href=""/> public string ToFixedStringRetencion() { //UNDONE string cadena = string.Format("{0}{1:d}{2}{3}{4}A" , CUIT , Fecha , Sucursal.PadLeft(4, '0') , NroDeComprobante.PadLeft(8, '0') , Importe.ToString("F2").PadLeft(11, '0')); return(cadena); }
/// <summary> /// Tos the fixed string. /// </summary> /// <returns>The fixed string.</returns> /// <see href=""/> public string ToFixedStringPercepcion() { //UNDONE string montoImponible = MontoImponible.ToString("F2").PadLeft(12, '0'); string importe = Importe.ToString("F2").PadLeft(11, '0'); if (TipoDeComprobante == "C") { montoImponible = "-" + montoImponible.Substring(1); importe = "-" + importe.Substring(1); } string cadena = string.Format("{0}{1:d}{2}{3}{4}{5}{6}{7}A" , CUIT , Fecha , TipoDeComprobante == "N" ? "D" : TipoDeComprobante , LetraDelComprobante , Sucursal.PadLeft(4, '0') , NroDeComprobante.PadLeft(8, '0') , montoImponible , importe); return(cadena); }