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 subtract Last Row or Subtract a Row on a Portal?

Featured Replies

This is continuation that i'm working on a Water Billing App.

I need this calculation for my Disconnection Letter.

portal.thumb.jpg.6e7bf38ccece454998bfaf50e26cc496.jpg

I would like to subtract the last portal row or the row that is not "Due" and don't have penalties yet.

so like the data show above, the bill #-08-0000133-5 is not yet Due coz it does'nt have a penalty yet, so this row will have to subtract to the total balance.

like this Total Balance= 2,934.568-580.30

Total is 2,354.27 

and it will show here:

1804927844_disconnectionletter.jpg.4c673cf0fa91dd1f301ea3aa239365a7.jpg

 

Thanks for the reply in advaced.

I will warn against using calculations for this kind of data.  They will be unstored by nature and have a tendency to become huge performance dogs when you later want to report on them (for instance "show me all clients with a balance of more than $1,000").

The balance gets sets when you receive payments and when you issue new invoices.  Those are very specific events with their own workflow so it is easy enough to add a step in the workflow to calculate the balance and set it as a static number in the balance field.

  • Author

it's ok sir, coz i am not gonna use that data any other than this form or letter.

I don't understand the logic you describe.

I believe the best way to produce the result you show would be to find all Billings records where DueDate has passed and DatePaid is empty (this requires no calculation fields, neither stored nor unstored). Then sort them by customer and print them using a  layout having a sub-summary by customer as its only part, with a page break after each sub-summary. Using a summary field to get the subtotal will result in each customer seeing the total of their past-due-date amounts. 

This is assuming you're printing the letters. If you need to produce individual PDFs or e-mails , it gets a bit more complex.

 

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.