Sha256: a5774f074b6564b2b4b33a61bc5cda0dd7bba589b07d9504ac15eb1246c3738d
Contents?: true
Size: 1 KB
Versions: 9
Compression:
Stored size: 1 KB
Contents
FactoryBot.define do factory :sales_order_item, class: "Comee::Core::SalesOrderItem" do serial_no { Faker::Number.within(range: 1..10) } sales_order association :customer_order_item, :with_inventory source factory: :fulfillment_center product unit { customer_order_item.unit } purchase_order_item { nil } customer_item_no { Faker::Alphanumeric.alpha(number: 10) } customer_item_description { Faker::Lorem.sentence } quantity { customer_order_item.quantity } quantity_diff { 0 } quantity_delivered { 0 } quantity_canceled { 0 } price { customer_order_item.price } price_diff { 0 } 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
9 entries across 9 versions & 1 rubygems