Ejemplo n.º 1
0
 def get_contract_total_str(self):
     total = decimal.Decimal('0.00')
     cur = u'MNT'
     for req in self.requisition_set.all() :
         total += req.amount()
         cur = req.currency.iso_code
     return u'%s %s' % (digitFormat(total), cur)
Ejemplo n.º 2
0
 def getUnitPriceStr(self):
     return digitFormat(self.unit_price, self.currency)