A kind of book keeping operation of individual group's consumption of sharing and method and system of clearing of needingTechnical field
The present invention is book keeping operation and settlement method and the system of a kind of group based on group's concept consumption, and the many people that share at needs individuality are repeatedly especially convenient aspect the book keeping operation after the consumption of the uncertain group of member and clearing.
Background technology
At present, after needing the individual group's consumption that share to occur, generally by a member first on behalf of payment, other members repay part that individual should bear to the person of checking again according to the consumption amount of money.The drawback of this mode mainly contains: one: other members may not have enough small change; Two: be easy to forget; Three: settle accounts constant and process is loaded down with trivial details.Four: repeatedly, after the consumption of the uncertain group of member, keep accounts and clearing difficulty.
Summary of the invention
The present invention is based on group's concept, there are several members in a group, and each member has independently its consumption information of Account History, and the initial remaining sum of account is.If member pre-deposits fund, the corresponding increase of its account balance, new member can momentarily add group.There are one or several keeper in each group, only has keeper just to have authority records consumption, adjusts the account balance information of group member.Carry out keeper after the operation of the account balance amendment that relates to group member, system can send Email or SMS notification to relevant member, to confirm this operation, only have the confirmation through relevant member, just can come into force to its account balance adjustment and the operation of recording consumption information.
After one-time-consumption, keeper need to record this consumption amount of money, personnel, time, place, the information such as the amount of money that payer and each member should share.After information input system, use individual bankroll to add that for the payer's of consumption payment account balance equals last remaining sum consumption total value deducts the amount of money that in this consumption, he or she should bear.The account balance that participates in other members of this consumption equals last remaining sum and deducts the amount of money that in this consumption, he or she should bear.If member's account balance is positive number, indicate bill and account receivable; If not negative of member's account balance, indicates remittance for the proceeds, if member's account balance is 0, represent that this member's fund is settled, both without debt, also without bill and account receivable.The member that account balance is not born can pay the bill to any amount of money to any member.After payment, payment person's account balance equals last remaining sum and adds this Payment Amount, deducts this collection amount and collector's remaining sum equals last remaining sum.In addition, based on the request of group member, keeper can transfer accounts a member's account balance to other members.The remaining sum that produces account equals last remaining sum and deducts this amount of money of transferring accounts.
Algorithm and the flow process of book keeping operation and clearing are enumerated: certain one-time-consumption has A, B, and C, D, E five people participate in, and consume altogether 150 yuan, each one impartial share the expenses, this time consumption is paid the bill by A, A, B, C, D, the initial amount of money of account of E is 0.Keeper inputs after record, and the account balance of A is 120 yuan, B, and C, D, the remaining sum of E is-30 yuan.One-time-consumption has B in addition, D, and E, F tetra-people participate in, and consume altogether 200 yuan, and wherein B should bear 60 yuan, and D should bear 50 yuan, and E and F respectively should bear 45 yuan, and this time consumption is paid the bill by B.Keeper inputs after record, and the account balance of A and C is constant; The account balance of B is-30+200-60=110 unit; The account balance of D is-30+ (50)=-80 yuan; The account balance of E is-30+ (45)=-75 yuan that the remaining sum of newcomer F is-45 yuan.Although A did not pay the bill for the consumption of F, F can pay A payables, and when F pays 100 yuan to after A, the account balance of F is-45+ (100)=55 yuan.The remaining sum of A is 120-100=20 unit.F also can pay E payables, if F pays 45 yuan to E, the account balance of F is-45+45=0 unit, and the account balance of E is-75-45=-120 unit.
Brief description of the drawings
Fig. 1 is system architecture diagram.
Fig. 2 is the process flow diagram of system accounting.
Embodiment
Below in conjunction with the accompanying drawing of the embodiment of the present invention, the technical scheme of the embodiment of the present invention is carried out clearly, intactly describe, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
After mutual payment behavior between the consumer behavior generation of 201. groups or member occurs, keeper logs on the server of system, opens management control end.
202. keepers utilize the interface that system provides to input information of this time consumption or relevant member's account adjustment information.
203. system queries back-end data bases, search this and operate related member's accounts information.
By defined rule adjustment in content trifle of the present invention, this operates related member's accounts information to 204. systems, and result cache is got up.
This operates related member 205. systems transmission Emails or SMS notification, and Email or short message content are the accounts informations that will revise about this operation.
206. notified members confirm or refusal content of announcement.
If 207. systems are received acknowledge message, the accounts information that current cache is got up is saved in member's account of back-end data base, and accounts information upgrades and comes into force.
If 208. systems are received refuse information, this operation is invalid and notify keeper.Keeper need to re-enter related data checking after data.