Sha256: e50239df1361687621ad21d952556d3c669f01a63aaf268c4e94d09dd64b0994

Contents?: true

Size: 720 Bytes

Versions: 24

Compression:

Stored size: 720 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

24 entries across 24 versions & 1 rubygems

Version Path
dorsale-3.8.1 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.8.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.8 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.7 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.6 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.5 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.4 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.2 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.1 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.7.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.6.1 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.6.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.5.2 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.5.1 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.5.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.4.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.3.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.2.0 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.1.7 features/step_definitions/billing_machine_multiple_vat.rb
dorsale-3.1.6 features/step_definitions/billing_machine_multiple_vat.rb