Sha256: fe791cf7d420f4f93b1ec34fe8b693d47e2cea34b40c052b96f9c5e48b0b268a
Contents?: true
Size: 656 Bytes
Versions: 5
Compression:
Stored size: 656 Bytes
Contents
FactoryBot.define do factory :master_price, class: "Comee::Core::MasterPrice" do purchase_price { 100.0 } selling_price { 90.0 } valid_from { Date.current.advance(months: -1) } valid_to { Date.current.advance(months: 1) } primary { false } margin { 10.0 } product supplier unit previous_price { nil } propagated_to_client { false } trait :past do valid_from { Date.current.advance(months: -2) } valid_to { Date.current.advance(months: -1) } end trait :future do valid_from { Date.current.advance(months: 1) } valid_to { Date.current.advance(months: 2) } end end end
Version data entries
5 entries across 5 versions & 1 rubygems