× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Right now it is really old code and only processes by month. We want to add
the second level of the sections.

Here is an example.

Our water bill charges for Water, Sewer, Storm Water, and Trash. So lets say
you didn't pay your bill for the last two months and you are now on the
third month. Your bill is now $150 (about $50 per month). For whatever
reason, you only send it $75. First thing that gets paid off is the oldest
month. Then any money left gets applied to storm water first, then trash,
then sewer, then water of that next month. Of course this is only one
scenario. Short of 16+ if statements, there has to be a better way to do
this.

On 9/5/06, Richard Reeve <richreeve@xxxxxxxxx> wrote:

I think that if you were to supply a bit more specific information it
would be easier to point you in the right direction.  ie.  how are these
currently processed and what change are you trying to make?

Mike <koldark@xxxxxxxxx> wrote:  I am sure someone has done something
similar to what we need.

The monthly bills we send are broken into 4 sections and the money the
customers pay are applied to the sections in a certain order. The money is
also applied to the oldest month first then progresses to the current
month.
Normally I would say a multi-dimensional array. However, I see that RPG
doesn't do it the same way as Java or other languages would. I hope I
explained this well enough. Any suggestions? Can anyone point me in a
direction?

--
Mike Wills
http://mikewills.name - Blog
http://theriverbendpodcast.com - Podcast
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




Warmest Regards,

Rich


---------------------------------
Do you Yahoo!?
Everyone is raving about the  all-new Yahoo! Mail.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.