Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

inventory

Featured Replies

somebody have an inventory example? i am confuse about cantity and how increment o decrement that. i am complety confuse, please help me, give an idea. confused.gif

Hello TereLavin,

By 'cantity', I assume you mean quantity??

If so, then the process is relatively simple. Basically you need a related file (eg a product file) with a quantity field in it, and you will need a script which cycles through the items on an invoice and subtracts the invoice quantity from the products quantity, then marks the invoice as committed (so it can't be accidentally committed twice).

A very simple example of such a script is:

If ["not IsEmpty(ComittedField)"]

Show Message ["This record is already comitted"]

Exit Script

End If

Go To Portal Row [<Line Items>, First]

Loop

Set Field ["gCurrentProduct", "LineItems::ProductID"]

Set Field ["Inventory::QuantityOnHand", "Inventory::QuantityOnHand - LineItems::Quantity"]

Go To Portal Row [Exit after last, Next]

End Loop

Set Field ["CommittedField", " "X" "]

Such a script would work in an invoice file that has a portal listing line items for the current invoice, plus a relationship called 'inventory' which matches a global field called 'gCurrentProduct' with the ProductID field in the products file.

It would generally also be wise to set validations or record level access (or other measures) to ensure that invoices cannot be edited after they have been committed.

There are many variations and many embellishements that are possible - all of which depend on the business rules and on the structure of the solution. But the above should give you a few ideas to work with. wink.gif

  • Author

Thank

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.