Sha256: d3b6d119fcf3c96e5027a612e66ba0f7a25eba69d9709dc17058066bebdf45b7
Contents?: true
Size: 1.02 KB
Versions: 39
Compression:
Stored size: 1.02 KB
Contents
FactoryBot.define do factory :sales_order, class: "Comee::Core::SalesOrder" do order_number { Faker::Alphanumeric.alpha(number: 10) } order_date { Date.current } customer_order fulfillment_center client order_terms { Faker::Lorem.sentence } shipment_address { Faker::Address.full_address } delivery_address { Faker::Address.full_address } invoice_address { Faker::Address.full_address } destination { Faker::Address.city } handover_date { Date.current.advance(weeks: 1) } shipping_date { Date.current.advance(days: 10) } delivery_date { Date.current.advance(days: 15) } consignee { Faker::Name.name } parent_client_name { Faker::Name.name } payment_term { Faker::Lorem.sentence } delivery_term { Faker::Lorem.sentence } payment_penalty { 0 } status { Comee::Core::SalesOrder.statuses[:draft] } total_price { 0 } amount_paid { 0 } pallete_note { Faker::Lorem.sentence } remark { Faker::Lorem.sentence } created_by { Faker::Name.name } end end
Version data entries
39 entries across 39 versions & 1 rubygems