In this example we will demo a simple setup of 2 forms, which emulate the stock / warehouse
Stock form
ConfiForms Form Definition |
---|
formName | stock |
---|
registrationFormTitle | Stock |
---|
|
Register stock itemINLINE
itemitemtexttrue quantityQuantitynumber quantity:<0Quantity shall be non negativeValidation rule
|
Salespoint / ordering form, which reduces stock
Items with 0 quantity are not shown in the ordering list
ConfiForms Form Definition |
---|
|
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 |
---|
|
ordered itemorderItem order timecreated |