Skip to content

Commit

Permalink
issue #60 Update scenario invoice with manual pos. Company needs to h…
Browse files Browse the repository at this point in the history
…ave ar_cuit tax identifier.
  • Loading branch information
lukio committed Apr 26, 2019
1 parent 0afbac4 commit debc6ea
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/scenario_invoice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,26 @@ Create a paid invoice::
>>> line.product = product
>>> line.quantity = 5
>>> line.unit_price = Decimal('40')

>>> invoice.click('post') # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
UserError: ...
>>> invoice.state
'draft'

>>> tax_identifier, = company.party.identifiers
>>> tax_identifier.type = 'ar_cuit'
>>> tax_identifier.save()

>>> invoice.click('post')
>>> pay = Wizard('account.invoice.pay', [invoice])
>>> pay.form.payment_method = payment_method
>>> pay.execute('choice')
>>> pay.state
'end'
>>> invoice.tax_identifier
>>> invoice.tax_identifier.type
'ar_cuit'
>>> invoice.state
'paid'

Expand All @@ -434,7 +447,8 @@ The invoice is posted when the reconciliation is deleted::
>>> invoice.reload()
>>> invoice.state
'posted'
>>> invoice.tax_identifier
>>> invoice.tax_identifier.type
'ar_cuit'

Credit invoice with non line lines::

Expand Down

0 comments on commit debc6ea

Please sign in to comment.