Scenario proposition : VAT manually corrected

Registered by Luc Maurer @ Camptocamp

Feature:Test if the tax amount is correct if the user changed the value (for rounding).

Scenario:Computing invoice tax
Given I have a new supplier invoice
and the supplier invoice has line with amount 12156
and a tax that is a supplier with 19.6 rate
when I compute the taxes
then I should have a invoice taxe line with base amount -12156
and tax amount -2382.58

Scenario:modify invoice tax amount
Given I have my supplier invoice
when I modify the tax amount to 2382.55
then I should have a invoice taxe line with base amount -12156
and tax amount -2382.55

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
Joël Grand-Guillaume @ camptocamp
Definition:
Drafting
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 0.4
Started by
Joël Grand-Guillaume @ camptocamp
Completed by
Joël Grand-Guillaume @ camptocamp

Related branches

Sprints

Whiteboard

  @invoicing @account @addons @tax
  Scenario:compute_invoice_tax
 Given I have recorded on the 11 oct 2009 a supplier invoice (in_invoice) of 1000.0 CHF without tax called MySupplierInvoiceTax
    And I add a line with tax called MyTaxLine on the last created invoice of 12156.0 with the tax called 'Buy 19.6%'
 When I compute the taxes on invoice
 Then I should have a invoice tax line with a base amount of 12156.0
 And a tax amount of 2382.58

 When I modify the tax amount to 2382.55
 Then I should have a invoice tax line with a base amount of 12156.0
 And a tax amount of 2382.55

 Given I correct the total amount of the invoice according to changes
 When I press the validate button
 Then I should see the invoice MySupplierInvoiceTax open
 And I should have a linked account move with 4 lines and a posted status

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.