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.

calculate the previous field

Featured Replies

I have a database which we use for quotes (at least once I finish it).

It has repeating fields of item, description, price and extended. I need to make it so if discount is entered as a item, that the price calculates the qty and the last extended (line item discount... percentage of the last extended line).

I've tried everything and am about ready to give up... HELP!

Thanks

Why don't you just enter your discount as a negative price? Why does it matter if it's applied to the previous entry?

Have you tried structuring your solution using a portal of related records instead of a repeating field? This makes things easier in the long run.

  • Author

Why don't you just enter your discount as a negative price? Why does it matter if it's applied to the previous entry?

Have you tried structuring your solution using a portal of related records instead of a repeating field? This makes things easier in the long run.

Entering it as a negative price involves calculating manually. Never a big fan of doing things that a computer can do (automatically). It would have to be applied to the previous entry since line 2 would be a discount of the previous line's "Extended".

I will investigate these "portals" you speak of... perhaps I can come up with a better mousetrap!

Never a big fan of doing things that a computer can do (automatically)

Why not ask a stonemason to issue quotes and invoices on your behalf?

--sd

I still don't understand. What's being calculated manually? Is your discount a percent? If so, where do you get (or put) the percent?

  • Author

I've attached a photo of the quote db. The first line would be a product (price gets pulled via relationship to parts DB).

Line 2 (my lines are misnumbered and still working on that...) would be a product called "Discount" that will take extended from the line 1's (or x-1) field and calculate accordingly. (quantity * previous repetition extended /100)

It really makes sense in my head... it's trying to convey it to the world...

quote.jpg

Edited by Guest

If the discount is intended to apply to the item above it (and only to the item above it), it should be entered into the same line into a dedicated discount field, as a part of the same item. It will make things much easier, and after all a discount is NOT a product.

Nor related directly to your question, but important: you should not use repeating fields for this, but a related LineItems table, where each line is a separate record.

  • Author

never thought about that... a table inside a table...

Thanks for the advice! Back to work for me!

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.