Test recalling too much deposit
issue10399 review348381002
This commit is contained in:
@@ -94,3 +94,18 @@ Recall deposit::
|
||||
Decimal('-100.00')
|
||||
>>> invoice.untaxed_amount
|
||||
Decimal('400.00')
|
||||
|
||||
Recall too much::
|
||||
|
||||
>>> deposit_line.unit_price = Decimal('-200.00')
|
||||
>>> deposit_line.save()
|
||||
>>> invoice.click('post') # doctest: +IGNORE_EXCEPTION_DETAIL
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
DepositError: ...
|
||||
|
||||
Recall available::
|
||||
|
||||
>>> deposit_line.unit_price = Decimal('-100.00')
|
||||
>>> deposit_line.save()
|
||||
>>> invoice.click('post')
|
||||
|
||||
Reference in New Issue
Block a user