mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos.git
synced 2023-12-14 07:13:02 +01:00
minor fix
This commit is contained in:
parent
b49adb2609
commit
6b01a5b36b
6
sale.py
6
sale.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue