New Field Formatter for Stock level field - Stock Level by Location

Created on 9 June 2021, over 3 years ago
Updated 7 August 2023, over 1 year ago

Problem/Motivation

This is a split-up issue from Location overview for product stock level . Part of the issue was to add a new Field formatter for Stock level field which would allow displaying the stock level for a specific location. Especially useful for building a stock level view for multiple stock locations (See the discussion at the other issue).

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany daveiano

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia lucashodge

    Thanks David,

    I fixed a few things. The location value was not being stored correctly.

    I have also extended this formatter so that if no location is entered the formatter will output a list of all the stock for each locations in the store. Also added a setting to the formatter to set a max value. Stock above this max value will display for example as 100+ instead of the actual stock value.

  • 🇦🇺Australia lucashodge

    Fixed a few issues in the previous file.

Production build 0.71.5 2024