facho/fe/form.py(Amount): redondeo ROUND_HALF_EVEN
FossilOrigin-Name: 03d4c9ada4765b69a5f33fc0649a7fc7f46848dce6afdb3095b21787df989f03
This commit is contained in:
		@@ -59,7 +59,9 @@ class Amount:
 | 
				
			|||||||
            self.amount = amount.amount
 | 
					            self.amount = amount.amount
 | 
				
			||||||
            self.currency = amount.currency
 | 
					            self.currency = amount.currency
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self.amount = Decimal(amount, decimal.Context(prec=DECIMAL_PRECISION, rounding=decimal.ROUND_HALF_DOWN ))
 | 
					            self.amount = Decimal(amount, decimal.Context(prec=DECIMAL_PRECISION,
 | 
				
			||||||
 | 
					                                                          #DIAN 1.7.-2020: 1.2.1.1
 | 
				
			||||||
 | 
					                                                          rounding=decimal.ROUND_HALF_EVEN ))
 | 
				
			||||||
            self.currency = currency
 | 
					            self.currency = currency
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __round__(self, prec):
 | 
					    def __round__(self, prec):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user