minor fix

This commit is contained in:
wilson gomez 2021-11-18 14:55:26 -05:00
parent b49adb2609
commit 6b01a5b36b

View file

@ -593,9 +593,9 @@ class Sale(metaclass=PoolMeta):
return result
def get_residual_amount(self, name=None):
total = 0
if self.total_amount_cache:
total = self.total_amount_cache
total = self.total_amount_cache
if not total:
total = self.total_amount
return (total - self.paid_amount)
@classmethod