Skip to content

Commit

Permalink
IMP
Browse files Browse the repository at this point in the history
  • Loading branch information
jjscarafia committed Aug 29, 2017
1 parent 399b8e2 commit 27f14e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sipreco_payment_line/models/account_voucher_payment_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def only_digits(string):
Registro += numero_legajo[:6]

# Right("00000000000000" & CLng(Importe * 100), 14)
Registro += str(int(self.amount * 100)).rjust(14, '0')
# hacemos round porque int trunca
Registro += str(int(round(self.amount * 100))).rjust(14, '0')

# Format(Range("E5").Text, "YYYYMMDD")
Registro += fields.Date.from_string(
Expand Down

0 comments on commit 27f14e1

Please sign in to comment.