Commit 83924f50 authored by Daniel Santibáñez Polanco's avatar Daniel Santibáñez Polanco
Browse files

Currency round

parent 1be21f2c
......@@ -2,7 +2,7 @@
{
"name": """Chile - Web Services Cesión de Documentos Tributarios Electrónicos\
""",
'version': '9.0.5.2.0',
'version': '9.0.5.2.1',
'category': 'Localization/Chile',
'sequence': 12,
'author': 'Daniel Santibáñez Polanco',
......
......@@ -256,7 +256,7 @@ version="1.0">
IdDoc['RUTReceptor'] = self.format_vat(self.partner_id.commercial_partner_id.vat)
IdDoc['Folio'] = self.get_folio()
IdDoc['FchEmis'] = self.date_invoice
IdDoc['MntTotal'] = int(round(self.amount_total, 0))
IdDoc['MntTotal'] = self.currency_id.round(self.amount_total)
return IdDoc
def _cedente(self):
......@@ -295,7 +295,7 @@ version="1.0">
return dte_cedido
def _monto_cesion(self):
return int(round(self.amount_total, 0))
return self.currency_id.round(self.amount_total)
def _cesion(self, certp, priv_key):
id = 'CesDoc1'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment