Ejemplo n.º 1
0
 def getAmountComision(self, so_num,subtotal, currency):
     grantotal = self.getComision(so_num).comision + subtotal
     totalLetras = amount_to_text_es.amount_to_text(grantotal, 'en', currency)
     return totalLetras
Ejemplo n.º 2
0
 def get_amount(self, amount, currency):
     amt_en = amount_to_text_es.amount_to_text(amount, 'en', currency)
     return amt_en
Ejemplo n.º 3
0
 def amount_to_text(self, amount, currency='Euro'):
    return amount_to_text_es.amount_to_text(amount, currency)
 def get_amount(self, amount, currency):
     amt_en = amount_to_text_es.amount_to_text(amount, 'en', currency)
     return amt_en
Ejemplo n.º 5
0
 def convert(self):
     if self.type and self.type in ['out_invoice']:
         self.amount_in_word = amount_to_text_es.amount_to_text(round(self.total_pesos_no_round), 'es', '')
     else:
         self.amount_in_word = amount_to_text_es.amount_to_text(self.amount_total, 'es', '')