1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/views/api/orders/_product.json.jbuilder
2023-02-15 10:29:51 +01:00

9 lines
330 B
Ruby

# 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