Sha256: cc827728f4ae54c670adc0f4720b328cdf740e789b94d8bd79ca33dc78c9f129

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

FactoryBot.define do
  factory :purchase_order_item, class: "Comee::Core::PurchaseOrderItem" do
    purchase_order
    unit
    source factory: :purchase_requisition_item
    quantity { 10 }
    confirmed_quantity { quantity }
    price { 100 }
    confirmed_price { price }
    delivery_date { Date.current.advance(days: 7) }
    confirmed_delivery_date { delivery_date }
    status { 0 }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comee_core-0.2.35 spec/factories/comee/core/purchase_order_items.rb