(self, line)
return st_line
22 - Registro principal de movimiento (obligatorio)
22 - Registro principal de movimiento (obligatorio)
22 - Registro principal de movimiento ( obligatorio )
def _process_record_22(self, line):
        """22 - Registro principal de movimiento (obligatorio)"""
        st_line = {
            "of_origen": line[6:10],
            "fecha_oper": datetime.strptime(line[10:16], "%y%m%d"),
            "fecha_valor": datetime.strptime(line[16:22], "%y%m%d"),
            "concepto_c": line[22:24],
            "concepto_p": line[24:27],
            "importe": (float(line[28:40]) + (float(line[40:42]) / 100)),
            "num_documento": line[42:52],
            "referencia1": line[52:64].strip(),
            "referencia2": line[64:].strip(),
            "conceptos": {},
        }
        if line[27:28] == "1":
            st_line["importe"] *= -1
        return st_line
def _process_record_22 ( self , line ) : st_line = { "of_origen" : line [ 6 : 10 ] , "fecha_oper" : datetime . strptime ( line [ 10 : 16 ] , "%y%m%d" ) , "fecha_valor" : datetime . strptime ( line [ 16 : 22 ] , "%y%m%d" ) , "concepto_c" : line [ 22 : 24 ] , "concepto_p" : line [ 24 : 27 ] , "importe" : ( float ( line [ 28 : 40 ] ) + ( float ( line [ 40 : 42 ] ) / 100 ) ) , "num_documento" : line [ 42 : 52 ] , "referencia1" : line [ 52 : 64 ] . strip ( ) , "referencia2" : line [ 64 : ] . strip ( ) , "conceptos" : { } , } if line [ 27 : 28 ] == "1" : st_line [ "importe" ] *= - 1 return st_line