Skip 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.

portal calculations

Featured Replies

Hi,

I'm stumped. Hope this is the best place to post this.

In the process of converting an invoice layout from repeating fields to using portals, I have been unable to calculate totals for different line item types, ie. plants, hargoods and labor as I was able to using the repeating field format.

The following calculation gave me the info desired and I need to be able to duplicate these same total using portals.

If(Left(code;1)="p";line price;0) gave me a plant total

If(Left(code;1)="h";line price;0) gave me a hardgood total

If(Left(code;1)="l";line price;0) gave me a labor total. I need to be able to seperate these by these group for sales tax reasons and discount reasons.

I have tried to do subsummaries sorted by code, to add the above calculations to the table associated with the portal layout with no success. What is the best way to accomplish this? summary fields, subsummaries?

Thanks in advance for any suggestions.

lj

First, you can do those "If" calculations in the line items table. Then you could use Sum ( line_items::plant_price), Sum (line_items::hardgood_price), etc.. in the Invoice table to get the totals. It's almost the same as what you were doing with the repeating fields. There is something about using relationships which is throwing you. It shouldn't, after you get used to it.

Alternatively, you could create separate relationships for the different types of line items. If you had a calculation, "p", in the Invoice table, then created a relationship from that to line items, to the "code" field, AND the Invoice ID to the Invoice ID, a calculation, Sum ( that relationship::line price) would be the plants total for the Invoice.

The relationship could also be used to produce a portal of only plants. So you could use this structure to separate data entry and viewing for the different codes, if you wanted to.

  • Author

Thanks for the reply. After so long of using the repeating field method....

I'll give it a shot in the A.M.

thanks again

lj

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.