Sha256: fb4d87aa8cb9ee8ca4042b6f90b69c2d082e55f003fee62e59579336910afe5c
Contents?: true
Size: 824 Bytes
Versions: 15
Compression:
Stored size: 824 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 purchase_order_item { nil } customer_item_no { Faker::Alphanumeric.alpha(number: 10) } customer_item_description { Faker::Lorem.sentence } 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 } canceled { false } processing_status { Comee::Core::SalesOrderItem.processing_statuses[:unprocessed] } end end
Version data entries
15 entries across 15 versions & 1 rubygems