1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/views/api/orders/_product.json.jbuilder

9 lines
330 B
Plaintext
Raw Normal View History

2023-01-02 16:59:41 +01:00
# frozen_string_literal: true
json.orderable_name item.orderable.name
json.orderable_ref item.orderable.sku
json.orderable_slug item.orderable.slug
json.orderable_main_image_url item.orderable.main_image&.attachment_url
json.orderable_external_stock item.orderable.stock['external']
json.quantity_min item.orderable.quantity_min