CN109919590A - A kind of method and device kept accounts and settled accounts - Google Patents

A kind of method and device kept accounts and settled accounts Download PDF

Info

Publication number
CN109919590A
CN109919590A CN201910122077.9A CN201910122077A CN109919590A CN 109919590 A CN109919590 A CN 109919590A CN 201910122077 A CN201910122077 A CN 201910122077A CN 109919590 A CN109919590 A CN 109919590A
Authority
CN
China
Prior art keywords
user
bill
creation
account book
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910122077.9A
Other languages
Chinese (zh)
Inventor
高继勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chuangxin Journey Network Technology Co Ltd
Original Assignee
Beijing Chuangxin Journey Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Chuangxin Journey Network Technology Co Ltd filed Critical Beijing Chuangxin Journey Network Technology Co Ltd
Publication of CN109919590A publication Critical patent/CN109919590A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

It is related to a kind of method and device kept accounts and settled accounts in terms of the embodiment of the present invention.A kind of method kept accounts and settled accounts includes: the creation account book request of acquisition authorized user's submission, according to request, create account book, for the account book of creation, obtain the user information being invited to, and the account book of the user information being invited to and creation is associated, multiple users comprising creation account book user and invited user in the account book created;Determine multiple bills that multiple users establish in the account book of creation;According to the settlement request that multiple users submit, the final clearing currency type of the account book of creation is obtained, according to final clearing currency type, real time settlement is carried out to the bill established in the account book of creation.Through the embodiment of the present invention, the more bills that can be participated in for more people keep accounts and real time settlement, easy to use, promote user experience.

Description

A kind of method and device kept accounts and settled accounts
Technical field
The present embodiments relate to Internet technical field more particularly to a kind of book keeping operation and the method and devices settled accounts.
Background technique
With the popularization of intelligent terminals and the deep development of Internet technology, book keeping operation software is more more and more universal, utilizes note Account software can satisfy personal timely, portable billing requirements.
But the bill that current book keeping operation software can not be generated for people more after collective activity, it is convenient to provide for people Book keeping operation mode.
Such as when the more bills participated in more people being needed to keep accounts in team appointments, owner in team is needed all to pacify Software is filled, the bill then recorded according to Team Member, then manually summarized clearing.Or when each bill in more bills When participant is different and the spending amount difference of participant, current book keeping operation software can not differentiation record bill The spending amount of participant, bill participant, and tied in real time for the spending amount of different bill participant differentiation It calculates.
Moreover, also needing the artificial exchange rate for the bill of record when having used a variety of payment currency types in the bill of record Conversion, is settled accounts further according to the bill after currency exchange, victory inconvenient for use, poor user experience later.
Summary of the invention
The embodiment of the present invention provides a kind of method and device kept accounts and settled accounts, the more bills that can be participated in for more people Keep accounts simultaneously real time settlement, easy to use, promotes user experience.
The one aspect of the embodiment of the present invention provides a kind of method kept accounts and settled accounts, this method comprises: obtaining authorization The creation account book request that user submits creates account book for the account book of creation and obtains the user being invited to according to the request Information, and the user information being invited to and the account book of the creation are associated, it obtains wrapping in the account book of the creation Multiple users containing creation account book user and invited user;Determine what the multiple user established in the account book of the creation Multiple bills;And the settlement request submitted according to the multiple user, the final clearing currency type of the account book of the creation is obtained, According to the final clearing currency type, real time settlement is carried out to the bill established in the account book of the creation.
In a kind of possible embodiment, multiple accounts that the multiple user of determination establishes in the account book of the creation It is single, comprising: to obtain the currency type of each bill in multiple bills of the foundation, payment amount, the ginseng in the multiple user With user, the payment amount of creation user and the creation user-association, allocated customized spending amount, Yi Jiyu User associated by the allocated customized spending amount;According to the allocated customized spending amount, institute is determined State unappropriated spending amount in each bill;It is right by the determining unappropriated spending amount for each bill It is not distributed equally by the customized associated user of spending amount in the participating user.
In alternatively possible embodiment, the multiple user of determination establishes multiple in the account book of the creation Bill, comprising: obtain the currency type of each bill in multiple bills of the foundation, creation user and the creation user-association Payment amount and the multiple user in participating user;It, will the payment amount pair for each bill The participating user is distributed equally.
In another possible embodiment, unappropriated spending amount in determination each bill, comprising: will obtain Allocated customized spending amount carries out difference fortune in the payment amount and each bill of each bill taken It calculates, obtains unappropriated spending amount in each bill.
In a kind of possible embodiment, the final clearing currency type of the account book for obtaining the creation, according to the creation Account book final clearing currency type, real time settlement is carried out to multiple bills for establishing in the account book of the creation, comprising: obtain institute Each bill in multiple bills in multiple bills in the account book of creation, and the account book of the traversal creation is stated, institute is obtained State the bill detail of each bill, wherein the bill detail of each bill include bill currency type, bill spending amount with And with user associated by spending amount, the payment amount of bill and with the use that Creates an Invoice associated by payment amount Family;According to the bill detail of each bill, the clearing detail of each user in the multiple user is determined.
In alternatively possible embodiment, the clearing detail of each user in the multiple user of determination, comprising: The bill list that each user trades for the account book of the creation, and the traversal bill list are obtained, is obtained Take the spending amount and payment amount of each user described in the bill list;According to the most termination of the account book of the creation Currency type is calculated, spending amount and the currency type conversion of payment amount progress to each user described in the bill list obtain institute Spending amount and payment amount after stating the currency type conversion of each user described in bill list;
For each user, payment amount has carried out summation operation respectively by the spending amount after the conversion and, Obtain each user currency type conversion after consumption total amount and paid total amount;Determine that each user needs to mend Or the amount of money moved back.
It is described that currency type conversion is carried out to the bill list traded in another possible embodiment, obtain needle Spending amount after currency type conversion and payment amount are carried out to each user, comprising: traverse institute in the bill list The spending amount for stating each user, according to the final clearing currency type of the account book of the creation, to the consumption gold of each user Volume carries out real-time currency exchange, the spending amount after obtaining each user's currency type conversion;Traverse institute in the bill list The payment amount currency type for stating each user, according to the final clearing currency type of the account book of the creation, to each user's Payment amount carries out real-time currency exchange, the payment amount after obtaining each user's currency type conversion.
In a kind of possible embodiment, the amount of money that determination each user needs to mend or move back, comprising: will it is described often The consumption total amount progress difference operation paid after total amount and each user's conversion after a user's conversion, obtains institute State the amount of money that each user in multiple users needs to mend or move back.
In alternatively possible embodiment, after the clearing detail of determination each user, the method is also wrapped It includes: each user is associated with the clearing detail of each user;
According to the sharing request that the user in each user submits, the clearing of the user in each user are exported Detail.
In another possible embodiment, comprising creating account book user and being invited in the account book for obtaining the creation After multiple users of user, the method also includes: obtain the removal request of user in the multiple user;It is deleted according to described Except request, the account book of the creation is deleted.
In a kind of possible embodiment, multiple accounts that the multiple user of determination establishes in the account book of the creation After list, the method also includes: obtain the edit requests of the user's submission to Create an Invoice of each bill;According to The edit requests are updated each bill.
The embodiment of the present invention another aspect provides a kind of book keeping operation and the device settled accounts, which includes creation account book Unit establishes bill unit and real time settlement unit.Wherein, account book unit is created, for obtaining the wound of authorized user's submission Account book request is built, according to the request, creates account book, for the account book of creation, obtains the user information being invited to, and will be described The user information being invited to and the account book of the creation are associated, and are obtained in the account book of the creation comprising creation account book user With multiple users of invited user;Bill unit is established, for determining that the multiple user builds in the account book of the creation Vertical multiple bills;And real time settlement unit, the settlement request for being submitted according to the multiple user obtain the creation The final clearing currency type of account book the bill established in the account book of the creation is carried out real according to the final clearing currency type When settle accounts.
In a kind of possible embodiment, the bill unit of establishing is used for: being obtained each in multiple bills of the foundation The currency type of bill, payment amount, participating user in the multiple user, creation user, with the creation user-association Payment amount, allocated customized spending amount, and with use associated by the allocated customized spending amount Family;According to the allocated customized spending amount, unappropriated spending amount in each bill is determined;For described Each bill, by the determining unappropriated spending amount, in the participating user not by the customized spending amount Associated user is distributed equally.
In alternatively possible embodiment, the bill unit of establishing is used for: being obtained every in multiple bills of the foundation The currency type of a bill, the payment amount of creation user and the creation user-association and the participation in the multiple user User;For each bill, the participating user is distributed equally in the payment amount.
In another possible embodiment, the bill unit of establishing is used for: the branch for each bill that will acquire It pays allocated customized spending amount in the amount of money and each bill and carries out difference operation, obtain in each bill not The spending amount of distribution.
In a kind of possible embodiment, the real time settlement unit is used for: obtaining multiple accounts in the account book of the creation Each bill in multiple bills in list, and the account book of the traversal creation, obtains the bill detail of each bill, In, the bill detail of each bill include bill currency type, bill spending amount and with use associated by spending amount Family, the payment amount of bill and with the user that Creates an Invoice associated by payment amount;According to each bill Bill detail determines the clearing detail of each user in the multiple user.
In alternatively possible embodiment, the real time settlement unit is used for: being obtained each user and is directed to the wound The bill list that the account book built is traded, and the traversal bill list, obtain each use described in the bill list The spending amount at family and payment amount;According to the final clearing currency type of the account book of the creation, to institute in the bill list It states the spending amount of each user and payment amount carries out currency type conversion, obtain each user's described in the bill list Spending amount and payment amount after currency type conversion;For each user, by the spending amount after the conversion and Payment amount carries out summation operation respectively, obtain each user currency type conversion after consumption total amount and paid total gold Volume;Determine the amount of money that each user needs to mend or move back.
In another possible embodiment, the real time settlement unit is used for: being traversed each described in the bill list The spending amount of user carries out the spending amount of each user according to the final clearing currency type of the account book of the creation Real-time currency exchange, the spending amount after obtaining each user's currency type conversion;It traverses each described in the bill list The payment amount currency type of user, the payment according to the final clearing currency type of the account book of the creation, to each user The amount of money carries out real-time currency exchange, the payment amount after obtaining each user's currency type conversion.
In a kind of possible embodiment, the real time settlement unit is used for: by the payment after each user's conversion Consumption total amount after total amount and each user's conversion carries out difference operation, obtains each use in the multiple user Family needs the amount of money mended or moved back.
In alternatively possible embodiment, the real time settlement unit is also used to: determining that the clearing of each user are bright It is after thin, each user is associated with the clearing detail of each user;According to the user in each user The sharing request of submission exports the clearing detail of the user in each user.
In another possible embodiment, the creation account book unit is also used to: obtain include in the account book of the creation After creating account book user and multiple users of invited user, the removal request of user in the multiple user is obtained;According to The removal request deletes the account book of the creation.
In a kind of possible embodiment, the bill unit of establishing is also used to: determining the multiple user in the creation Account book in after multiple bills for establishing, obtain the editor that the user to Create an Invoice of each bill submits and ask It asks;According to the edit requests, each bill is updated.
In alternatively possible embodiment, the embodiment of the present invention also provides a kind of server, and the server includes: to deposit Reservoir is configured to store instruction;And processor, it is configured to that described instruction is called to execute in above-mentioned possible embodiment Any method.
In another possible embodiment, the embodiment of the present invention also provides a kind of computer readable storage medium, described Computer-readable recording medium storage has computer executable instructions, and the computer executable instructions are executed by processor When, execute any method in above-mentioned possible embodiment.
A kind of book keeping operation provided in an embodiment of the present invention and the method settled accounts, obtain the creation account book that authorized user submits and ask It asks, account book is created according to the request, and for the account book of creation, obtain the user information being invited to, and the user that will be invited to Information and the account book of creation are associated, multiple use comprising creation account book user and invited user in the account book created Family.It determines multiple bills that multiple users establish in the account book of creation, and the settlement request submitted according to multiple users, obtains The final clearing currency type for taking the account book of creation carries out the bill established in the account book of creation real-time according to final clearing currency type Clearing.In the above manner, may be implemented in more people in account book establishes bill, and the real-time exchange rate is carried out according to the bill that more people establish Conversion and clearing.User is easy to use, promotes user experience.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other purposes, the feature of embodiment of the present invention It will become prone to understand with advantage.In the accompanying drawings, several implementations of the invention are shown by way of example rather than limitation Mode, in which:
Fig. 1 is a kind of method implementation flow chart kept accounts and settled accounts provided in an embodiment of the present invention.
Fig. 2 be the present embodiments relate to currency type convert exemplary diagram.
Fig. 3 is a kind of schematic device kept accounts and settled accounts provided in an embodiment of the present invention.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.
Although being noted that the statements such as " first " used herein, " second " to describe embodiments of the present invention not Same module, step and data etc., still the statement such as " first ", " second " is merely in different modules, step and data etc. Between distinguish, and be not offered as specific sequence or significance level.In fact, the statements such as " first ", " second " are complete It may be used interchangeably.
A kind of book keeping operation provided in an embodiment of the present invention and the method and device settled accounts, can be applied to multiple user accountings simultaneously Can real time settlement application scenarios.Under the scene, a kind of possible embodiment can establish multiple accounts for the account book of creation It is single, and carry out real-time currency exchange and clearing for multiple bills in account book, save that multiple user accountings do accounts when Between, the communication efficiency between user is improved, it is easy to use.
It is as shown in Figure 1 a kind of method implementation flow chart kept accounts and settled accounts provided in an embodiment of the present invention.It is shown in FIG. 1 The device that method executing subject can be book keeping operation and settle accounts, the book keeping operation and the device settled accounts can be server, be also possible to count Calculation machine, the terminals such as mobile terminal, the embodiment of the present invention is without limitation.As shown in fig.1, this method comprises:
S101: obtaining the request that authorized user submits, and according to the request, creates account book, for the account book of creation, obtains The user information and the account book of the creation are simultaneously associated by the user information that is invited to, are obtained in the account book of the creation Multiple users comprising creating account book user and invited user.
It, need to be to the identity of user if user is to log in for the first time in the embodiment of the present invention in a kind of possible embodiment It is verified, the user after being proved to be successful is authorized user.The mode that user logs in for the first time includes account number cipher login, mobile phone Identifying code logs in and wechat verifying logs in.
Such as the user that wechat verifying logs in, user clicks the authorization button of customer terminal webpage, and triggering client is asked Wechat server is sought, the user code and user_info of user is obtained.
It keeps accounts and after the device settled accounts gets the user code and user_info of user, sends user code to micro- Telecommunications services device, requests the unique identification openid of user, and by the openid requested and user_info associated storage to counting According in library.It keeps accounts and openid is generated open_hash using hash function by the device settled accounts, be stored in memcache, and will Open_hash is stored into database, and openid in database is associated with open_hash;The device kept accounts and settled accounts Open_hash is returned into client, open_hash is retained in client local, completes user's checking by client.
Authorized user in the embodiment of the present invention can create the page of account book by triggering client, submit creation account book Request, such as authorized user can insert the title of account book, the information such as Theme activity of remarks account book, request creation account book.
Possible embodiment in the embodiment of the present invention, is kept accounts and creation that the device settled accounts is submitted according to authorized user Account book request, creates account book.Specifically, the device kept accounts and settled accounts is requested according to the creation account book that the authorized user submits, raw It is identified at account book and the account book of the user identifier of the authorized user, generation mark is associated with the account book of creation, obtains this and award Weigh the account book of user's creation.
As a kind of possible embodiment, in the embodiment of the present invention, for example, using wechat good friend invite by other For user-association into the account book of the creation, the user for issuing invitation can be the user of creation account book, is also possible to receive and invite Authorized user afterwards.Specifically, it creates the user of account book or receives and invited on authorized user's click customer terminal webpage after inviting Please friend button, trigger the sharing event of client, client carry account book mark with card form be sent to wechat group or In good friend's chat window, after invited user is agreed to, keeps accounts and the device settled accounts gets invited user information, and in data A user is created in user's table in library, this invited user is then associated with account book mark in the following, this is invited to use Family is added into the user group of the account book.So far, creation account book user and invited user are included in the account book of the creation Multiple users.
As a kind of possible embodiment, it in the embodiment of the present invention, keeps accounts and the device settled accounts can obtain account book and include User to the removal request of account book, it is which being added or creation according to the user to the removal request of account book Account book is deleted.For example, the user that account book includes can check oneself creation or addition account book column in client homepage Table selects one of account book, is deleted according to prompt.It keeps accounts and the device settled accounts gets the user to the account of the creation This removal request, the bill list in the account book and account book is deleted.
S102: multiple bills that the multiple user establishes in the account book of the creation are determined.
As a kind of possible embodiment, it in the embodiment of the present invention, keeps accounts and the device settled accounts can obtain multiple users Middle user establishes bill request, according to the request, determines and establishes bill.The bill of foundation for example may be configured as having paid gold Volume, currency type, participating user, allocation way, bill occur date and time and remarks bill form.
Wherein, payment amount can be the prepaid billing amount of creation user of bill.Currency type, which can choose, has propped up The currency type that the bill paid uses, such as RMB, dollar, Thai Baht, yen, South Korean Won etc..Participating user, which can be, is added this account book All users, a part of user being also possible in this account book user.Possible embodiment is defaulted in the embodiment of the present invention Participating user be added this account book all users.If the participating user for establishing bill is that a part in account book user is used When family, the user that Creates an Invoice can trigger participating user's button on the newly-built bill page, the multiple use for including from account book again The participating user of the bill is selected in family, or the user for being not engaged in this bill is rejected from multiple users that account book includes, Obtain the participating user of the bill.
Allocation way can be share equally with customized mode, the participating user that the mode of sharing equally defaults this bill, which divides, to have propped up Pay the amount of money, customized mode can freely set everyone spending amount that needs to pay for participating in this bill, such as group is living The bill of a shopping in dynamic, bill participant often because the amount of money of the difference of purchase article and real consumption is not also identical, In this case, it is necessary to which the amount of money of payment is actually needed in participating user in customized bill.
Possible embodiment, in the embodiment of the present invention, such as the bill of foundation is related to user and shares equally and customized two kinds When mode, keeps accounts and the device settled accounts obtains the currency type for establishing bill, participating user, creation user and creation user-association Payment amount, allocated customized spending amount, and with after user associated by allocated customized spending amount, It determines unappropriated spending amount in bill, and determining unappropriated spending amount is allocated.Specifically, it keeps accounts simultaneously The payment amount and establish allocated customized spending amount progress difference fortune in bill that the device of clearing can will acquire It calculates, obtains unappropriated spending amount.It keeps accounts and the device settled accounts divides obtained unappropriated spending amount to participating in this The associated user of spending amount is not customized in bill user, this is not customized the associated user of spending amount bill thus After user associated by participating user's rejecting and allocated customized spending amount, remaining use in this bill participating user Family.Payment amount is assigned at this time.Next book keeping operation and checkout apparatus obtain the date and time that bill occurs, Yi Jibei Infuse information.It keeps accounts and the device settled accounts generates bill mark according to the bill of foundation and generates creation user identifier, will generate Bill mark and generation creation user identifier are associated with the bill of foundation, by the pass of the bill of foundation and the bill of foundation Join information storage into database.
Possible embodiment, in the embodiment of the present invention, such as when establishing bill and pertaining only to user and share a kind of mode equally, note It, will after account and the device settled accounts obtain the currency type for establishing bill, participating user, payment amount and the user to Create an Invoice Payment amount is averagely allocated to bill participating user.Next book keeping operation and checkout apparatus obtain the date and time that bill occurs, And remark information.It keeps accounts and the device settled accounts generates bill mark according to the bill of foundation and generates creation user identifier, Bill mark will be generated and generation creation user identifier is associated with the bill of foundation, by the bill of foundation and the account of foundation Single related information is stored into database.
The foundation of bill in creation account book is completed as a result,.Similarly, the user for including in account book can be directed to the creation Account book continues to establish bill, the multiple bills established in the account book created.
As a kind of possible embodiment, it in the embodiment of the present invention, keeps accounts and the device settled accounts can be according to establishing bill User to the editor of bill is established after, the bill of foundation is updated.Specifically, the device kept accounts and settled accounts is according to creation The edit requests of user's statement obtain the creation user identifier and bill mark of bill, and the bill for establishing bill is detailed Feelings are sent to client, and the user to Create an Invoice triggers visitor according to the essential information in the logic Modification bill of newly-built bill Family end submitting button is submitted.It keeps accounts and the device settled accounts is obtained for the modified information of account book is established, for example, for building This modified information of opening an account with can be the incoming json data of client, the base of device verification json data kept accounts and settled accounts After this field format, what is stored in more new database establishes bill information.
S103: the settlement request submitted according to the multiple user obtains the final clearing currency type of the account book of the creation, According to the final clearing currency type, real time settlement is carried out to the bill established in the account book of the creation.
As a kind of possible embodiment, the multiple users for including in the embodiment of the present invention, in the account book of creation may be used To submit real time settlement to request by way of sending account book mark.
As a kind of possible embodiment, it in the embodiment of the present invention, keeps accounts and the device acquisition settled accounts needs real time settlement Account book mark, identified according to the account book, obtain each bill in multiple bills in account book, and the multiple bills of traversal, Obtain the bill detail of each bill.Wherein, bill detail includes the spending amount and and spending amount of bill currency type, bill Associated user, the payment amount of bill and with creation user associated by payment amount.
According to the bill detail of each bill, the clearing detail of each user in account book is successively counted.Wherein, the knot of user Calculate detail include each user trade in the account book of creation bill list, the currency type of each user is changed in bill list The amount of money that spending amount after calculation and payment amount and each user need to mend or move back.
Specifically, the device kept accounts and settled accounts traverses the consumption of each user in bill list according to final clearing currency type The amount of money carries out real-time currency exchange to the spending amount of each user, the consumption gold after obtaining each user's currency type conversion Volume.And the payment amount currency type of each user in bill list is traversed, the payment amount of each user is carried out real-time Currency exchange, the payment amount after obtaining each user's currency type conversion.
Such as the spending amount of three bills of a user is respectively m yuans in account book, n Thai Baht and p dollars, it is assumed that The final clearing currency type of the bill is RMB, then obtains after carrying out real-time currency exchange respectively for the spending amount of the user With RMB be settle accounts currency type spending amount exemplary diagram, as shown in Figure 2.
For each user, payment amount has carried out summation operation respectively by the spending amount after conversion and, obtains each User's currency type conversion after consumption total amount and paid total amount.By each user's currency type conversion after the total amount of payment with Consumption total amount after each user's currency type conversion carries out difference operation, obtains each user in multiple users that account book includes The amount of money for needing to mend or move back.
As a kind of possible embodiment, in the embodiment of the present invention, after obtaining the clearing detail of each user, book keeping operation And the device settled accounts can export the personal detail of the user according to the sharing request of user in account book.
Specifically, the user that account book includes can click the sharing button on customer terminal webpage, trigger the sharing thing of client Part, keeps accounts and after the device settled accounts gets the sharing request of the user, according under the user identifier of the user and the account book The clearing detail of user in the account book is output to client local by the clearing detail of user.Share event later and calls wechat Pop-up is forwarded, the user that account book includes can choose any good friend to be shared or any wechat group by wechat, receive point The user enjoyed can be appreciated that the message of card form, when the user for receiving sharing, which clicks, checks the message of card form, i.e., can see Clearing detail to the user is shown.
A kind of book keeping operation provided in an embodiment of the present invention and the method and device settled accounts, obtain the creation account that authorized user submits This request creates account book according to the request, and for the account book of creation, obtains the user information being invited to, and will be invited to User information and the account book of creation are associated, in the account book created comprising creation account book user and invited user it is more A user.The multiple bills established in the account book of creation by the multiple users of determination may be implemented more people in account book and establish account The process of the spending amount of single and differentiation record bill participant and bill participant.It is submitted according to user in account book Settlement request, obtain the final clearing currency type of the account book of creation, according to final clearing currency type, realize to being built in the account book of creation Vertical bill carries out real-time currency exchange and clearing.User is easy to use, promotes user experience.
Based on identical inventive concept, the embodiment of the invention also provides a kind of devices kept accounts and settled accounts.
As shown in figure 3, a kind of book keeping operation provided in an embodiment of the present invention and the device 300 settled accounts, the device include creation account This unit 301 establishes bill unit 302 and real time settlement unit 303.Wherein, account book unit 301 is created, is awarded for obtaining The creation account book request that user submits is weighed to create account book according to the request for the account book of creation and obtain the use being invited to Family information, and the user information being invited to and the account book of the creation are associated, it obtains in the account book of the creation Multiple users comprising creating account book user and invited user.Bill unit 302 is established, for determining that the multiple user exists The multiple bills established in the account book of the creation.And real time settlement unit 303, for what is submitted according to the multiple user Settlement request obtains the final clearing currency type of the account book of the creation, according to the final clearing currency type, to the account of the creation The bill established in this carries out real time settlement.
In a kind of possible embodiment, establishes bill unit 302 and be used for: obtaining each account in multiple bills of the foundation The currency type of list, payment amount, the participating user in the multiple user, creation user and the creation user-association are Payment amount, allocated customized spending amount, and with user associated by the allocated customized spending amount; According to the allocated customized spending amount, unappropriated spending amount in each bill is determined;For described every A bill, by the determining unappropriated spending amount, to not closed by the customized spending amount in the participating user The user of connection is distributed equally.
It in alternatively possible embodiment, establishes bill unit 302 and is used for: obtaining each in multiple bills of the foundation Currency type, creation user, the participation use with the payment amount for creating user-association and in the multiple user of bill Family;For each bill, the participating user is distributed equally in the payment amount.
It in another possible embodiment, establishes bill unit and is used for: the gold of payment for each bill that will acquire Allocated customized spending amount carries out difference operation in volume and each bill, obtains unallocated in each bill Spending amount.
In a kind of possible embodiment, real time settlement unit 303 is used for: obtaining multiple accounts in the account book of the creation Each bill in multiple bills in list, and the account book of the traversal creation, obtains the bill detail of each bill.Its In, the bill detail of each bill include bill currency type, bill spending amount and with use associated by spending amount Family, the payment amount of bill and with the user that Creates an Invoice associated by payment amount;According to each bill Bill detail determines the clearing detail of each user in the multiple user.
In alternatively possible embodiment, real time settlement unit 303 is used for: being obtained each user and is directed to the creation The bill list traded of account book, and the traversal bill list obtains each user described in the bill list Spending amount and payment amount;According to the final clearing currency type of the account book of the creation, to described in the bill list The spending amount of each user and payment amount carry out currency type conversion, obtain the coin of each user described in the bill list Plant the spending amount after converting and payment amount;For each user, by the spending amount after the conversion and prop up Pay the amount of money carry out summation operation respectively, obtain each user currency type conversion after consumption total amount and paid total gold Volume;Determine the amount of money that each user needs to mend or move back.
In another possible embodiment, real time settlement unit 303 is used for: traversing each use described in the bill list The spending amount at family carries out the spending amount of each user real according to the final clearing currency type of the account book of the creation When currency exchange, the spending amount after obtaining each user's currency type conversion;Traverse each use described in the bill list The payment amount currency type at family, according to the final clearing currency type of the account book of the creation, to the gold of payment of each user Volume carries out real-time currency exchange, the payment amount after obtaining each user's currency type conversion.
In a kind of possible embodiment, real time settlement unit 303 is used for: the payment after each user's conversion is total Consumption total amount after the amount of money and each user's conversion carries out difference operation, obtains each user in the multiple user The amount of money for needing to mend or move back.
In alternatively possible embodiment, real time settlement unit 303 is also used to: determining the clearing detail of each user Later, each user is associated with the clearing detail of each user;It is mentioned according to the user in each user The sharing request of friendship exports the clearing detail of the user in each user.
In another possible embodiment, creation account book unit 301 is also used to: being obtained in the account book of the creation comprising wound It builds after account book user and multiple users of invited user, obtains the removal request of user in the multiple user;According to institute Removal request is stated, the account book of the creation is deleted.
In a kind of possible embodiment, establishes bill unit 302 and be also used to: determining the multiple user in the creation After the multiple bills established in account book, the edit requests that the user to Create an Invoice of each bill submits are obtained; According to the edit requests, each bill is updated.
In a kind of possible embodiment, the embodiment of the present invention also provides a kind of server, and the server includes: storage Device is configured to store instruction;And processor, it is configured to call and appoint in the above-mentioned possible embodiment of described instruction execution Method described in one.
In a kind of possible embodiment, the embodiment of the present invention also provides a kind of computer readable storage medium, the meter Calculation machine readable storage medium storing program for executing is stored with computer executable instructions, the computer executable instructions when executed by the processor, Execute any method in above-mentioned possible embodiment.
In possible embodiment, the embodiment of the invention also provides following implementation:
In a kind of possible embodiment, a kind of book keeping operation provided in an embodiment of the present invention and method settled accounts includes: to obtain The creation account book request that authorized user submits creates account book according to the request, for the account book of creation, obtains and is invited to User information, and the user information being invited to and the account book of the creation are associated, obtain the account book of the creation In comprising creation account book user and invited user multiple users;Determine that the multiple user builds in the account book of the creation Vertical multiple bills;And the settlement request submitted according to the multiple user, obtain the final clearing of the account book of the creation Currency type carries out real time settlement to the bill established in the account book of the creation according to the final clearing currency type.
In a kind of possible embodiment, the multiple user of determination establishes multiple in the account book of the creation Bill, comprising: obtain the currency type of each bill in multiple bills of the foundation, payment amount, in the multiple user Participating user, the payment amount of creation user and the creation user-association, allocated customized spending amount, and With user associated by the allocated customized spending amount;According to the allocated customized spending amount, determine Unappropriated spending amount in each bill;For each bill, by the determining unappropriated spending amount, To not being distributed equally by the customized associated user of spending amount in the participating user.
In a kind of possible embodiment, the multiple user of determination establishes multiple in the account book of the creation Bill, comprising: obtain the currency type of each bill in multiple bills of the foundation, creation user and the creation user-association Payment amount and the multiple user in participating user;It, will the payment amount pair for each bill The participating user is distributed equally.
In a kind of possible embodiment, unappropriated spending amount in determination each bill, comprising: will obtain Allocated customized spending amount carries out difference fortune in the payment amount and each bill of each bill taken It calculates, obtains unappropriated spending amount in each bill.
In a kind of possible embodiment, the final clearing currency type of the account book for obtaining the creation, according to the wound The final clearing currency type for the account book built carries out real time settlement to the multiple bills established in the account book of the creation, comprising: obtain Each bill in multiple bills in multiple bills in the account book of the creation, and the account book of the traversal creation, obtains The bill detail of each bill.Wherein, the bill detail of each bill includes the spending amount of bill currency type, bill And with user associated by spending amount, the payment amount of bill and with creation user associated by payment amount; According to the bill detail of each bill, the clearing detail of each user in the multiple user is determined.
In a kind of possible embodiment, the clearing detail of each user in the multiple user of determination, comprising: The bill list that each user trades for the account book of the creation, and the traversal bill list are obtained, is obtained Take the spending amount and payment amount of each user described in the bill list;According to the most termination of the account book of the creation Currency type is calculated, spending amount and the currency type conversion of payment amount progress to each user described in the bill list obtain institute Spending amount and payment amount after stating the currency type conversion of each user described in bill list;For each user, Payment amount has carried out summation operation respectively by the spending amount after the conversion and, obtains the currency type conversion of each user Rear consumption total amount and total amount is paid;Determine the amount of money that each user needs to mend or move back.
It is described that currency type conversion is carried out to the bill list traded in a kind of possible embodiment, obtain needle Spending amount after currency type conversion and payment amount are carried out to each user, comprising: traverse institute in the bill list The spending amount for stating each user, according to the final clearing currency type of the account book of the creation, to the consumption gold of each user Volume carries out real-time currency exchange, the spending amount after obtaining each user's currency type conversion;Traverse institute in the bill list The payment amount currency type for stating each user, according to the final clearing currency type of the account book of the creation, to each user's Payment amount carries out real-time currency exchange, the payment amount after obtaining each user's currency type conversion.
In a kind of possible embodiment, the amount of money that determination each user needs to mend or move back, comprising: will be described The consumption total amount progress difference operation paid after total amount and each user's conversion after each user's conversion, obtains The amount of money that each user in the multiple user needs to mend or move back.
In a kind of possible embodiment, after the clearing detail of determination each user, the method is also wrapped It includes: each user is associated with the clearing detail of each user;
According to the sharing request that the user in each user submits, the clearing of the user in each user are exported Detail.
It comprising creation account book user and is invited in a kind of possible embodiment, in the account book for obtaining the creation After multiple users of user, the method also includes: obtain the removal request of user in the multiple user;It is deleted according to described Except request, the account book of the creation is deleted.
In a kind of possible embodiment, the multiple user of determination establishes multiple in the account book of the creation After bill, the method also includes: obtain the edit requests of the creation user submission of each bill;According to described Edit requests are updated each bill.
In a kind of possible embodiment, described device includes: creation account book unit, for obtaining authorized user's submission Account book request is created, according to the request, creates account book, for the account book of creation, obtains the user information being invited to, and by institute The account book for stating the user information and the creation that are invited to is associated, and obtains using in the account book of the creation comprising creation account book Multiple users at family and invited user;Bill unit is established, for determining the multiple user in the account book of the creation The multiple bills established;And real time settlement unit, the settlement request for being submitted according to the multiple user obtain the wound The final clearing currency type for the account book built carries out the bill established in the account book of the creation according to the final clearing currency type Real time settlement.
In a kind of possible embodiment, the bill unit of establishing is used for: being obtained every in multiple bills of the foundation The currency type of a bill, payment amount, the participating user in the multiple user, creation user and the creation user-association Payment amount, allocated customized spending amount, and with associated by the allocated customized spending amount User;According to the allocated customized spending amount, unappropriated spending amount in each bill is determined;For institute Each bill is stated, by the determining unappropriated spending amount, to golden not by the customized consumption in the participating user The associated user of volume is distributed equally.
In a kind of possible embodiment, the bill unit of establishing is used for: being obtained every in multiple bills of the foundation The currency type of a bill, the payment amount of creation user and the creation user-association and the participation in the multiple user User;For each bill, the participating user is distributed equally in the payment amount.
In a kind of possible embodiment, the bill unit of establishing is used for: the branch for each bill that will acquire It pays allocated customized spending amount in the amount of money and each bill and carries out difference operation, obtain in each bill not The spending amount of distribution.
In a kind of possible embodiment, the real time settlement unit is used for: being obtained multiple in the account book of the creation Each bill in multiple bills in bill, and the account book of the traversal creation, obtains the bill detail of each bill, Wherein, the bill detail of each bill include bill currency type, bill spending amount and with associated by spending amount User, the payment amount of bill and with the user that Creates an Invoice associated by payment amount;According to each bill Bill detail, determine the clearing detail of each user in the multiple user.
In a kind of possible embodiment, the real time settlement unit is used for: being obtained each user and is directed to the wound The bill list that the account book built is traded, and the traversal bill list, obtain each use described in the bill list The spending amount at family and payment amount;According to the final clearing currency type of the account book of the creation, to institute in the bill list It states the spending amount of each user and payment amount carries out currency type conversion, obtain each user's described in the bill list Spending amount and payment amount after currency type conversion;For each user, by the spending amount after the conversion and Payment amount carries out summation operation respectively, obtain each user currency type conversion after consumption total amount and paid total gold Volume;Determine the amount of money that each user needs to mend or move back.
In a kind of possible embodiment, the real time settlement unit is used for: being traversed each described in the bill list The spending amount of user carries out the spending amount of each user according to the final clearing currency type of the account book of the creation Real-time currency exchange, the spending amount after obtaining each user's currency type conversion;It traverses each described in the bill list The payment amount currency type of user, the payment according to the final clearing currency type of the account book of the creation, to each user The amount of money carries out real-time currency exchange, the payment amount after obtaining each user's currency type conversion.
In a kind of possible embodiment, the real time settlement unit is used for: by the branch after each user's conversion Consumption total amount after paying total amount and each user's conversion carries out difference operation, obtains each of the multiple user User needs the amount of money mended or moved back.
In a kind of possible embodiment, the real time settlement unit is also used to: determining that the clearing of each user are bright It is after thin, each user is associated with the clearing detail of each user;According to the user in each user The sharing request of submission exports the clearing detail of the user in each user.
In a kind of possible embodiment, the creation account book unit is also used to: obtain include in the account book of the creation After creating account book user and multiple users of invited user, the removal request of user in the multiple user is obtained;According to The removal request deletes the account book of the creation.
In a kind of possible embodiment, the bill unit of establishing is also used to: determining the multiple user in the wound After the multiple bills established in the account book built, the editor for obtaining the user's submission to Create an Invoice of each bill is asked It asks;According to the edit requests, each bill is updated.
In a kind of possible embodiment, the embodiment of the present invention also provides a kind of server, and the server includes: storage Device is configured to store instruction;And processor, it is configured to call and appoint in the above-mentioned possible embodiment of described instruction execution Method described in one.
In a kind of possible embodiment, the embodiment of the present invention also provides a kind of computer readable storage medium, the meter Calculation machine readable storage medium storing program for executing is stored with computer executable instructions, the computer executable instructions when executed by the processor, Execute any method in above-mentioned possible embodiment.
Although description operation in a particular order in the accompanying drawings should not be construed as requiring specific shown in Sequence or serial order operate to execute these operations, or shown in requirement execution whole to obtain desired result.? In specific environment, multitask and parallel processing be may be advantageous.
Methods and apparatus of the present invention can be completed using standard programming technology, using rule-based logic or its His logic realizes various method and steps.It should also be noted that herein and the terms used in the claims " device " " module " is intended to include using the realization of a line or multirow software code and/or hardware realization and/or for receiving input Equipment.
One or more combined individually or with other equipment can be used in any step, operation or program described herein A hardware or software module are executed or are realized.In one embodiment, software module use includes comprising computer program The computer program product of the computer-readable medium of code is realized, can be executed by computer processor any for executing Or whole described step, operation or programs.
For the purpose of example and description, the preceding description that the present invention is implemented is had been presented for.Preceding description is not poor Also not the really wanting of act property limits the invention to exact form disclosed, according to the above instruction there is likely to be various modifications and Modification, or various changes and modifications may be obtained from the practice of the present invention.Select and describe these embodiments and be in order to Illustrate the principle of the present invention and its practical application, so that those skilled in the art can be to be suitable for the special-purpose conceived Come in a variety of embodiments with various modifications and utilize the present invention.

Claims (10)

1. a kind of book keeping operation and the method settled accounts, wherein the described method includes:
It obtains the creation account book request that authorized user submits and account book is created according to the request, for the account book of creation, obtain The user information being invited to, and the user information being invited to and the account book of the creation are associated, obtain the wound Multiple users comprising creation account book user and invited user in the account book built;
Determine multiple bills that the multiple user establishes in the account book of the creation;And
According to the settlement request that the multiple user submits, the final clearing currency type of the account book of the creation is obtained, according to described Final clearing currency type, carries out real time settlement to the bill established in the account book of the creation.
2. according to the method described in claim 1, wherein, the multiple user of determination establishes in the account book of the creation Multiple bills, comprising:
Obtain that the currency type of each bill in multiple bills of the foundation, payment amount, the participation in the multiple user have been used Family, creation user, with the creation payment amount of user-association, allocated customized spending amount, and with it is described User associated by allocated customized spending amount;
According to the allocated customized spending amount, unappropriated spending amount in each bill is determined;
For each bill, by the determining unappropriated spending amount, in the participating user not by it is described from The associated user of spending amount is defined to be distributed equally.
3. according to the method described in claim 1, wherein, the multiple user of determination establishes in the account book of the creation Multiple bills, comprising:
Obtain the currency type of each bill in multiple bills of the foundation, creation user, the branch with the creation user-association Pay the participating user in the amount of money and the multiple user;
For each bill, the participating user is distributed equally in the payment amount.
4. according to the method described in claim 2, wherein, unappropriated spending amount in determination each bill wraps It includes:
In the payment amount of each bill that will acquire and each bill allocated customized spending amount into Row difference operation obtains unappropriated spending amount in each bill.
5. according to the method described in claim 1, wherein, the final clearing currency type of the account book for obtaining the creation, according to The final clearing currency type of the account book of the creation carries out real time settlement, packet to the multiple bills established in the account book of the creation It includes:
Obtain each account in multiple bills in multiple bills in the account book of the creation, and the account book of the traversal creation It is single, the bill detail of each bill is obtained,
Wherein, the bill detail of each bill includes bill currency type, the spending amount of bill and is closed with spending amount The user of connection, the payment amount of bill and with creation user associated by payment amount;
According to the bill detail of each bill, the clearing detail of each user in the multiple user is determined.
6. according to the method described in claim 5, wherein, the clearing of each user in the multiple user of determination are bright Carefully, comprising:
Obtain the bill list that each user trades for the account book of the creation, and the traversal bill column Table obtains the spending amount and payment amount of each user described in the bill list;
According to the final clearing currency type of the account book of the creation, spending amount to each user described in the bill list and Payment amount carry out currency type conversion, obtain each user described in the bill list currency type conversion after spending amount and Payment amount;
For each user, payment amount has carried out summation operation respectively by the spending amount after the conversion and, obtains Each user currency type conversion after consumption total amount and paid total amount;
Determine the amount of money that each user needs to mend or move back.
7. it is described that currency type conversion is carried out to the bill list traded according to the method described in claim 6, wherein, It obtains carrying out the spending amount after currency type conversion and payment amount for each user, comprising:
The spending amount for traversing each user described in the bill list, according to the final clearing coin of the account book of the creation Kind, real-time currency exchange is carried out to the spending amount of each user, the consumption after obtaining each user's currency type conversion The amount of money;
The payment amount currency type for traversing each user described in the bill list, according to the most termination of the account book of the creation Currency type is calculated, real-time currency exchange is carried out to the payment amount of each user, after obtaining each user's currency type conversion Payment amount.
8. a kind of book keeping operation and the device settled accounts, wherein described device includes:
Account book unit is created, the creation account book request for obtaining authorized user's submission creates account book, needle according to the request To the account book of creation, obtain the user information being invited to, and by the user information being invited to and the account book of the creation into Row association obtains multiple users comprising creation account book user and invited user in the account book of the creation;
Bill unit is established, the multiple bills established in the account book of the creation for determining the multiple user;And
Real time settlement unit, the settlement request for being submitted according to the multiple user, obtains the final of the account book of the creation Currency type is settled accounts, according to the final clearing currency type, real time settlement is carried out to the bill established in the account book of the creation.
9. a kind of server, wherein the server includes:
Memory is configured to store instruction;And
Processor is configured to that described instruction perform claim is called to require book keeping operation described in any one of 1-11 and the side settled accounts Method.
10. a kind of computer readable storage medium, wherein the computer-readable recording medium storage has computer is executable to refer to It enables, when executed by the processor, perform claim requires book keeping operation described in any one of 1-11 simultaneously to the computer executable instructions The method of clearing.
CN201910122077.9A 2019-01-24 2019-02-19 A kind of method and device kept accounts and settled accounts Pending CN109919590A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2019100702100 2019-01-24
CN201910070210 2019-01-24

Publications (1)

Publication Number Publication Date
CN109919590A true CN109919590A (en) 2019-06-21

Family

ID=66961789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122077.9A Pending CN109919590A (en) 2019-01-24 2019-02-19 A kind of method and device kept accounts and settled accounts

Country Status (1)

Country Link
CN (1) CN109919590A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011863A (en) * 2021-03-19 2021-06-22 维沃移动通信有限公司 Bill management method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980967A (en) * 2017-03-29 2017-07-25 北京小米移动软件有限公司 Payment processing method and processing device
CN107818460A (en) * 2016-09-13 2018-03-20 北京京东尚科信息技术有限公司 A kind of method of payment and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818460A (en) * 2016-09-13 2018-03-20 北京京东尚科信息技术有限公司 A kind of method of payment and device
CN106980967A (en) * 2017-03-29 2017-07-25 北京小米移动软件有限公司 Payment processing method and processing device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
OREAL7: ""如何实现多人协同记账(多人记一个账本)"", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/3065B3B697039FBECEF8A41 0.HTML》 *
理赔帮: ""AA组团出游攻略(记账篇)"", 《HTTPS://WWW.SOHU.COM/A/214197663_672335》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011863A (en) * 2021-03-19 2021-06-22 维沃移动通信有限公司 Bill management method and device
CN113011863B (en) * 2021-03-19 2024-03-22 维沃移动通信有限公司 Bill management method and device

Similar Documents

Publication Publication Date Title
CN110163590B (en) Payment withholding method and device based on block chain, electronic equipment and storage medium
RU2620715C2 (en) System of cash transactions
CN104081425B (en) Payment system based on eCheck
US8849714B2 (en) Value exchange system for use within an internet-based social network
US20130013494A1 (en) Peer-to-peer and group financial management systems and methods
CN107430749A (en) Settlement processing device, method and computer program
CN108140180A (en) The method for rewarding the server for generating distributed digital resource field is used for for rewarding the server for generating distributed digital resource field and control
CA3001900C (en) Systems and methods for facilitating secure electronic transactions
CN106022759A (en) Electronic payment method supporting multiple accounts
CN112488702B (en) Block chain-based settlement method and device and electronic equipment
CN103460643A (en) SMS payment system having chargeback to subscriber telephone account
CN110221919A (en) Virtual resource allocation method and apparatus based on block chain
CN110390553A (en) Investment public offering system for working capital
CN109146659A (en) Resource allocation methods and device, system
AU2020351308A1 (en) Distributed blockchain-type implementations configured to manage tokenized digital assets and improved electronic wallets, and methods of use thereof
CN104504561A (en) Offline payment and exchange system based on electronic note
CN110852730A (en) Transaction processing method and device based on digital currency and electronic equipment
US20120283000A1 (en) System and method for trading tournaments
CN109919590A (en) A kind of method and device kept accounts and settled accounts
CN109587244A (en) Cloud data in mobile phone processing method, device, computer readable storage medium and electronic equipment
CN103748864B (en) Accommodate the SMS message transmission system of the variable participation for lottery ticket
CN111401873A (en) Task creation method and device, storage medium and electronic equipment
CN106815730A (en) Commercial information network interaction method and system
CN112540802B (en) Virtual article definition method and device, storage medium and electronic device
Mayer et al. BatPay: a gas efficient protocol for the recurrent micropayment of ERC20 tokens

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination