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.

How To Create Packing List with script

Featured Replies

Good Morning all,

 

I need to come up with a way to make an item and total qty be auto consumed by a value that the user enters.

 

 

example item abcde has 152 qty's.

 

if I type 10 into a field I need the script to create 16 lines.

 

each line will have  abcde                     10,  except for the last one  that will have  2 as the qty.

 

Any ideas of examples I should look at.

 

thank you

 

 

We need some table/field names here, so assuming an OrderItems table with fields for:

• OrderItemID (auto-entered serial)
• Qty (152)
• PackSize (10)

and a PackSlips table with fields for:

• PackSlipID (auto-entered serial)
• OrderItemID
• Qty

the script could do something like (untested):
 

Set Variable [ $itemID; OrderItems::OrderItemID ]
Set Variable [ $itemQty; OrderItems::Qty ]
Set Variable [ $packSize; OrderItems::PackSize ]
Go to Layout [ PackSlips ]
Loop
  Exit Loop If [ not $itemQty ]
  Set Variable [ $qty; Min ($packSize ; $itemQty) ]
  New Record
  Set Field [ PackSlips::OrderItemID; $itemID ]
  Set Field [ PackSlips::Qty; $qty  ]
  Set Variable [ $itemQty; $itemQty - $qty) ]
End Loop
Go to Layout [ original layout ]
  • Author

Thank You!!

 

worked perfectly.

Create an account or sign in to comment

Important Information

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

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.