Sha256: 4eab88af871551e80d72e8552425c63a30d3b906c5bbe4b562f6e5a8b9ceee2a

Contents?: true

Size: 717 Bytes

Versions: 35

Compression:

Stored size: 717 Bytes

Contents

Given(/^billing machine in multiple vat mode$/) do
  ::Dorsale::BillingMachine.vat_mode = :multiple
end

When(/^he fills the reference, the date and the payment terms$/) do
  fill_in "invoice_label", with: @label = "My reference"
  fill_in "invoice_date", with: @date = "01/01/2014"
  select @payment_term.label
end

When(/^he fills a multiple vat line with "(.*?)", "(.*?)", "(.*?)", "(.*?)", "(.*?)"$/) do |label, quantity, unit, vat_rate, unit_price|
  within all(".line").last do
    find(".line-label textarea").set label
    find(".line-quantity input").set quantity
    find(".line-unit input").set unit
    find(".line-vat_rate input").set vat_rate
    find(".line-unit_price input").set unit_price
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
dorsale-4.0.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.20.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.19.1 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.19.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.18.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.17.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.16.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.15.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.11 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.10 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.9 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.8 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.7 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.6 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.5 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.3 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.2 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.1 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.14.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.13.0 features/step_definitions/billing_machine_multiple_vat.rb