Sha256: 3f67a90eba1da55e0b0f30c0092f4c0d9dcd2837bde7f4f96577a79a2c24669e
Contents?: true
Size: 684 Bytes
Versions: 15
Compression:
Stored size: 684 Bytes
Contents
FactoryBot.define do factory :sales_order_item, class: "Comee::Core::SalesOrderItem" do sales_order association :customer_order_item, :with_inventory source factory: :fulfillment_center product unit customer_item_no { Faker::Alphanumeric.alpha(number: 10) } quantity { 100 } quantity_delivered { 0 } price { 50 } total_price { quantity * price } delivery_date { Date.current.advance(months: 1) } handover_date { Date.current } eb_number { Faker::Lorem.word } lead_time { nil } comment { Faker::Lorem.sentence } action_note { Faker::Lorem.sentence } po_reference { Faker::Alphanumeric.alpha(number: 10) } end end
Version data entries
15 entries across 15 versions & 1 rubygems