• Post Reply Bookmark Topic Watch Topic
  • New Topic

Additon of integers in a single textfield  RSS feed

 
charles macharia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to figure out a code for an accounting software for schools where school fees balances can be carried forward to next semester automatically
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
charles macharia wrote:Hi,
I'm trying to figure out a code for an accounting software for schools where school fees balances can be carried forward to next semester automatically

That's nice. Did you have an actual question ?
 
charles macharia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stuart A. Burkett wrote:
charles macharia wrote:Hi,
I'm trying to figure out a code for an accounting software for schools where school fees balances can be carried forward to next semester automatically

That's nice. Did you have an actual question ?

Yes. How to store values which have been imputed in a text field and used later.like in my case where unsettled balances of one semester are carried forward to the next
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
charles macharia wrote:Yes. How to store values which have been imputed in a text field and used later.like in my case where unsettled balances of one semester are carried forward to the next

I'm obviously still missing something, but why can't you store them in your database along with all your other data ?
 
charles macharia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stuart A. Burkett wrote:
charles macharia wrote:Yes. How to store values which have been imputed in a text field and used later.like in my case where unsettled balances of one semester are carried forward to the next

I'm obviously still missing something, but why can't you store them in your database along with all your other data ?

For example i have a student with unsettled balance in the first semester so when we enter the second semester there is a new set school fees so i was asking how can i make the unsettled balance of the first semeseter be imputed to bring total balances for the next semester
 
Ashish Dutt
Ranch Hand
Posts: 172
Java MySQL Database Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about the usage of serialization?
You can serialize the objects that can then be carried forward...
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashish Dutt wrote:How about the usage of serialization?

I wouldn't advise that. Serialization is tricky, and sometimes brittle.

charles macharia wrote:For example i have a student with unsettled balance in the first semester so when we enter the second semester there is a new set school fees so i was asking how can i make the unsettled balance of the first semeseter be imputed to bring total balances for the next semester

And as Stuart said, one presumes that you have a database that contains these values. If you don't, that's where you need to start.

Winston
 
charles macharia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i already have a database but the problem is when i make new entries for a new semester the previous balances are not automatically added to the new balances
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
charles macharia wrote:i already have a database but the problem is when i make new entries for a new semester the previous balances are not automatically added to the new balances

I don't understand your question. Do you think that this is somehow magically going to happen? If there's some value (or values) that need to be added from your database, you need to read them, possibly summarize them, and then add them in yourself. It's possible that one or more of those actions might be best done on the database, but we've got very little to go on as yet.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!