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
def get_amount(self, amount, currency): amt_en = amount_to_text_es.amount_to_text(amount, 'en', currency) return amt_en
def amount_to_text(self, amount, currency='Euro'): return amount_to_text_es.amount_to_text(amount, currency)
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', '')