Sha256: f8d1140ea2ebb0e29e57b1e33aea87db85bdb4100e17a511818bdd7a3976708b
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 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) } 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 } po_reference { Faker::Alphanumeric.alpha(number: 10) } canceled { false } processing_status { Comee::Core::SalesOrderItem.processing_statuses[:unprocessed] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comee_core-0.2.35 | spec/factories/comee/core/sales_order_items.rb |