Sha256: 7ba1f523b63de06ddbb885e6deb05b0193b124eaa11b1987fdd208c171341331

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

FactoryBot.define do
  factory :master_price, class: "Comee::Core::MasterPrice" do
    purchase_price { 100.0 }
    selling_price { 90.0 }
    pp_valid_from { Date.current.advance(months: -1) }
    pp_valid_to { Date.current.advance(months: 1) }
    sp_valid_from { Date.current.advance(months: -1) }
    sp_valid_to { Date.current.advance(months: 1) }
    active { true }
    primary { false }
    margin { 10.0 }
    product
    supplier
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
comee_core-0.1.18 spec/factories/comee/core/master_prices.rb
comee_core-0.1.17 spec/factories/comee/core/master_prices.rb
comee_core-0.1.16 spec/factories/comee/core/master_prices.rb
comee_core-0.1.15 spec/factories/comee/core/master_prices.rb
comee_core-0.1.14 spec/factories/comee/core/master_prices.rb