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.

Delivery calculation

Featured Replies

Hi Guys,

I have stock and a deliveries TO in my file. The product has a field called current stock, which for e.g. could be 100.

The deliveries table may a several records, each with a date and number of items. What I would like to do is calculate how many items are remaining from each delivery.

So for Eg.

Stock Table Occurance

Current Stock = 100

Delivery Occurance (4 records for example)

1) Date 1/4/2007 Number Delivered 50 [calculated field should say 50]

2) Date 1/3/2007 Number Delivered 20 [calculated field should say 20]

3) Date 1/2/2007 Number Delivered 10 [calculated field should say 10]

4) Date 1/1/2007 Number Delivered 40 [calculated field should say [color:red]20 not 40 as the current stock is 100 and not 120, first in first out approach]

Any help much appreciated. I have also included a file to show you what I mean as I think Ive not explained it very clearly.

delivery.zip

  • Author

Not to worry guys, Ive worked it out using getnthrecord and a relationship which is sorted decending.

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.