Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this example we will demo a simple setup of 2 forms, which emulate the stock / warehouse


Stock form

ConfiForms Form Definition
formNamestock
registrationFormTitleStock
Register stock itemINLINE


itemitemtexttrue

quantityQuantitynumber

quantity:<0Quantity shall be non negativeValidation rule


ConfiForms TableView
formNamestock





Salespoint / ordering form, which reduces stock

Items with 0 quantity are not shown in the ordering list

ConfiForms Form Definition
formNameorderForm
OrderINLINE


orderItemItem to order[29393083|stock|item|true||]smartselect2

orderItemquantity:>0Apply Filter on a field – show only items with quantity > 0

Create ConfiForms EntryonCreatedentryId=[entry.orderItem]&quantity=([entry.orderItem.quantity]-1)stock:this


ConfiForms TableView
formNameorderForm

ordered itemorderItem order timecreated