CN115660659A - Bill deduction method and device, electronic equipment and storage medium - Google Patents
Bill deduction method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115660659A CN115660659A CN202211373691.0A CN202211373691A CN115660659A CN 115660659 A CN115660659 A CN 115660659A CN 202211373691 A CN202211373691 A CN 202211373691A CN 115660659 A CN115660659 A CN 115660659A
- Authority
- CN
- China
- Prior art keywords
- negative
- bill
- deduction
- settlement
- bills
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 238000012545 processing Methods 0.000 claims abstract description 80
- 238000004590 computer program Methods 0.000 claims description 10
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 abstract description 4
- 238000004891 communication Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application provides a bill deduction method, a bill deduction device, electronic equipment and a storage medium, wherein the method comprises the following steps: under the condition that a first bill pair corresponding to a target object in a current settlement period is obtained and meets a preset condition, generating a first settlement list corresponding to the target object in the current settlement period; and under the condition that the first bill deduction pool corresponding to the target object comprises N negative bills to be deducted, deducting at least one negative bill according to the first settlement list and the deduction sequence corresponding to the N negative bills, wherein N is an integer greater than or equal to 1. This application can realize the automatic compensation of burden bill based on settlement single current water and deduction queue, has promoted the people and has imitated by a wide margin, has reduced processing cycle and cost, and can trace back data on line, avoids the condition of many accounts, few accounts.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for bill deduction, an electronic device, and a storage medium.
Background
In a settlement system for transaction-type services such as e-commerce, take-out, online and offline hotel travel and the like, the number of completed orders in each account period of a merchant is usually larger than the number of refund orders, namely 'forward settlement amount > reverse refund amount', so that the statement of account settlement amount is positive, and the merchant can be paid after a settlement list is generated based on the statement of account. If the number of refund orders of the merchant is larger than the number of forward finished orders in a certain account period, a reverse bill can be generated due to 'reverse refund amount > forward settlement amount', and the bill of negative account standing at the platform angle is the receivable direction, so that the bill of settlement cannot be generated.
Because the bill counter and the settlement phase in the current settlement system in the industry are independent, the bill negative processing mode mainly comprises two modes of manual adjustment and manual collection claiming.
When the negative bill is processed in a manual adjustment mode, the negative bill generated in the current account period of the merchant is not checked, if the normal statement of the subsequent account period of the merchant can be deducted (not deducted or completely deducted) for the amount of the negative bill, an operator manually enters an adjustment item to adjust and reduce the normal statement, and if the normal statement of the subsequent account period of the merchant generates a settlement single face to pay the merchant, the settlement single state is that the payment is successful and the negative statement state is unchanged.
When the negative bill is processed in a manual collection and claiming mode, a merchant carries out off-line payment on the amount of the negative bill, the operator is informed after successful payment, the operator asks for the platform to actually receive the serial number from the payment side, manually initiates collection and claiming aiming at the negative bill, fills in the actual payment detailed information of the merchant and the platform to actually receive the serial number, a collection and claiming system carries out matching verification and cancellation according to rules, and after successful collection and claiming, the negative bill state is that collection is successful.
Aiming at the manual adjustment mode, the manual adjustment is required each time by an operator, the human efficiency is low, the fault tolerance rate is low, the online data association is lost, and a manual machine account is established to prevent excessive adjustment, missing adjustment and wrong adjustment. For the manual collection claiming mode, the merchant has subsequent payment for deduction, so that the willingness of paying a negative bill alone is not strong; the mode strongly depends on a payment system, and the development cost is high; and the operator needs to manually apply after acquiring real receiving and real paying information from a plurality of systems, the communication cost is high, and the human efficiency is low.
Disclosure of Invention
Embodiments of the present application provide a bill deduction method, apparatus, electronic device and storage medium, which overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present application provides a bill deduction method, including:
under the condition that a first bill pair corresponding to a target object in a current settlement period is obtained and meets a preset condition, generating a first settlement list corresponding to the target object in the current settlement period;
and under the condition that N negative bills to be deducted are included in a first bill deduction pool corresponding to the target object, deducting at least one negative bill according to the first settlement list and a deduction sequence corresponding to the N negative bills, wherein N is an integer greater than or equal to 1.
In a second aspect, an embodiment of the present application provides a bill deduction device, including:
the generation module is used for generating a first bill of the target object corresponding to the current settlement period under the condition that the first bill of the target object corresponding to the current settlement period is obtained and the first bill of the target object meets the preset conditions;
and the deduction module is used for deducting at least one negative bill according to the first settlement list and a deduction sequence corresponding to the N negative bills under the condition that the first bill deduction pool corresponding to the target object comprises the N negative bills to be deducted, wherein N is an integer greater than or equal to 1.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the bill deduction method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the bill deduction method as described in the first aspect.
According to the technical scheme, the first bill pair corresponding to the target object in the current settlement period is obtained, the first settlement list is generated under the condition that the first bill pair is determined to meet the preset conditions, the deduction processing is carried out on at least one negative bill according to the first settlement list and the deduction sequence corresponding to the N negative bills under the condition that the first bill pair corresponding to the target object comprises the N negative bills to be deducted in the first bill deduction pool, the settlement single-flow water and the deduction queue can be based on, the automatic compensation of the negative bills is realized, the human efficiency is greatly improved, the processing period and the cost are reduced, data can be traced back on line, and the situations of multiple accounts and few accounts are avoided.
Drawings
Fig. 1 is a schematic diagram of a bill deduction method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an exemplary embodiment of a method for generating a negative bill;
fig. 3 is a schematic diagram illustrating an exemplary embodiment of the present disclosure for deducting two negative bills
FIG. 4 is a flowchart illustrating an embodiment of a bill deduction method according to the present application;
figure 5 shows a schematic view of a bill deduction device according to an embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The bill withholding method is provided for solving the problems that in the prior art, when a negative bill is processed in a manual adjustment mode, the human efficiency is low, the manual account is established to cause a complicated flow, and when the negative bill is processed in a manual collection and claiming mode, the intention of independently paying the negative bill is not strong, the development cost and the communication cost are high, and the human efficiency is low.
The following describes a bill deduction method provided by an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
The bill deduction method provided by the application can be applied to a target platform, the target platform is an online transaction platform, and the target object of the embodiment can be a target merchant associated with the target platform or a target consumer associated with the target platform. The target merchant may be one of a plurality of merchants associated with the target platform, where association refers to the merchants selling goods through the target platform; accordingly, the target consumer may be one of a plurality of consumers associated with the target platform, where the association refers to the consumer selecting an item to effect consumption via the target platform. In addition, the bill deduction method provided by the present application may also be applied to other platforms such as a merchant end and a user end, and the embodiment of the present application is not limited thereto.
The target platform performs transaction settlement with other parties such as merchants and/or consumers at intervals, for example, settlement is performed once per week and once per month, settlement periods corresponding to different merchants may be different, settlement periods corresponding to different consumers may be different, and settlement periods corresponding to merchants and consumers may be different. If the merchant 1 settles with the target platform once every month, the merchant 2 settles with the target platform once every week, the consumer A settles with the target platform once every 10 days, and the consumer B settles with the target platform once every half month.
The statement of account in this embodiment may include a forward settlement resource amount (forward settlement amount) and/or a reverse settlement resource amount (reverse settlement amount), and for the target merchant, the forward settlement resource amount is a payment resource amount of the target merchant, and the reverse settlement resource amount is a resource amount that the target merchant should return to the target platform; for the target consumer, the forward settlement resource amount is the resource amount returned by the target platform, and the reverse settlement resource amount is the payment resource amount.
In this embodiment, after acquiring the first pair of bills corresponding to the target object in the current settlement period, the target platform detects whether the acquired first pair of bills meets a preset condition, and generates a first settlement list corresponding to the target object in the current settlement period based on the first pair of bills when the first pair of bills corresponding to the target object in the current settlement period meets the preset condition. The specific content of the preset condition may be set by user according to a specific application scenario, a requirement, and the like, and the embodiment of the present invention is not limited. For example, the preset condition may be a condition set for a resource flow direction of the resource to be settled corresponding to the first pair of bills, a symbol (for example, a positive number or a negative number) of the amount of the resource to be settled, and the like, and assuming that the scheme is applied to the user side, that is, a client side used by an ordinary consumer, or to the settlement of the consumer in the platform, in order to facilitate the consumer to determine the final settlement amount, considering that the proportion of the resource paid by the consumer is larger, the returned resource from the merchant side or other platforms to the consumer may be deducted, at this time, the preset condition may be set that the resource flow direction corresponding to the first pair of bills is from the user side to the shopping platform, and the negative bills may be understood as a bill in which the corresponding resource flow direction is from the shopping platform to the user side. Moreover, generally speaking, for a consumer, if the amount of the resource to be settled is a negative value, it indicates that the consumer needs to pay out the resource, that is, the resource flow at this time is from the user terminal to the merchant terminal or other platforms, and if the amount of the resource to be settled is a positive value, it indicates that the consumer can receive the corresponding resource, that is, the resource flow at this time is from the merchant terminal or other platforms to the user terminal.
If the scheme is applied to the merchant end or the settlement for the merchant in the platform, considering that the proportion of the resource paid by the consumer is larger, the returned resource from the merchant end or other platforms to the consumer can be deducted, at this time, the preset condition can be set that the resource flow corresponding to the first bill pair is from the platform or the consumer to the merchant, and the negative bill can be understood that the corresponding resource flow is from the merchant to the platform or the consumer. Furthermore, generally speaking, for a merchant, if the amount of the resource to be settled is a negative value, it indicates that the merchant needs to pay out the resource, that is, the resource flow at this time is from the merchant to the consumer or other platform, and if the amount of the resource to be settled is a positive value, it indicates that the merchant can receive the corresponding resource, that is, the resource flow at this time is from the consumer or other platform to the merchant.
The above is only one specific example for the consumer and merchant ends, respectively. Of course, the reverse deduction can be performed according to the requirement, and at this time, the preset condition and the type of the negative bill can be correspondingly adjusted according to the requirement, which is not limited in the embodiment of the present application.
Under the condition that a first pair of bills corresponding to a target object in a current settlement period is obtained and meets a preset condition, generating a first settlement list corresponding to the target object in the current settlement period, wherein the method comprises the following steps:
under the condition that the target object is a target merchant and the amount of the resource to be settled corresponding to the first pair of bills is a positive number, determining that the first pair of bills meets the preset condition, and generating a first settlement list corresponding to the target merchant in the current settlement period;
and under the condition that the target object is a target consumer and the amount of the resource to be settled corresponding to the first pair of bills is a negative number, determining that the first pair of bills meets the preset condition, and generating a first settlement list corresponding to the target consumer in the current settlement period.
The amount of the resource to be settled corresponding to the first pair of bills is the difference between the amount of the forward settlement resource and the amount of the reverse settlement resource. For the target merchant, the amount of resources to be settled corresponding to the first pair of bills is the difference between the amount of resources collected by the target merchant (forward settlement resource amount) and the amount of resources returned by the target merchant to the target platform (reverse settlement resource amount), and under the condition that the difference between the amount of resources to be settled and the amount of resources returned by the target merchant to the target platform is positive, the first pair of bills corresponding to the target merchant is determined to meet the preset condition, and at the moment, the target platform needs to pay the target merchant. When it is determined that the first bill pair corresponding to the target merchant meets the preset condition, a first settlement list corresponding to the target merchant in the current settlement period can be generated, wherein the first settlement list corresponding to the target merchant comprises a settlement condition determined based on the difference between the amount of the collection resources of the target merchant and the amount of the resources returned to the target platform by the target merchant.
After a first pair of bills corresponding to the current settlement period is obtained for the target merchant, a first settlement list is generated based on a trigger condition that the amount of the resource to be settled corresponding to the first pair of bills is a positive number, and the generated negative bills can be automatically deducted by utilizing the first settlement list, so that the automatic compensation of the negative bills is realized.
For a target consumer, the amount of the resource to be settled corresponding to the first pair of bills is the difference between the amount of the resource returned by the target platform and the amount of the payment resource, under the condition that the difference between the amount of the resource to be settled and the amount of the payment resource is negative, the first pair of bills corresponding to the target consumer is determined to meet the preset condition, a first settlement list corresponding to the target consumer in the current settlement period is generated, and the first settlement list corresponding to the target consumer comprises the settlement condition determined based on the difference between the amount of the resource returned by the target platform and the amount of the payment resource. After a first pair of bills corresponding to the current settlement period is obtained for a target consumer, a first settlement list is generated based on a trigger condition that the amount of resources to be settled corresponding to the first pair of bills is a negative number, and the generated negative bills can be automatically deducted by utilizing the first settlement list, so that the automatic compensation of the negative bills is realized.
The resources in the embodiment of the present invention may be any resources that can be settled and circulated, such as money amount, credit, and virtual currency, and the embodiment of the present invention is not limited to this.
102, under the condition that the first bill deduction pool corresponding to the target object comprises N negative bills to be deducted, deducting at least one negative bill according to the first settlement list and a deduction sequence corresponding to the N negative bills, wherein N is an integer greater than or equal to 1.
And under the condition that a first settlement list corresponding to the target object in the current settlement period is generated, detecting whether a negative bill to be deducted is included in a first bill deduction pool corresponding to the target object. And when the first bill deduction pool comprises N negative bills to be deducted, deducting at least one negative bill in the N negative bills according to the first calculation list. When at least one negative bill is deducted based on the first settlement list, the negative bill can be directly deducted aiming at the condition that the value of N is 1. And if the balance is left in the first settlement list after the deduction of the negative bill is completed, determining the negative bill with the priority level based on the deduction sequence, and performing at least partial deduction on the negative bill resource amount corresponding to the negative bill. And if the first bill to be deducted has no balance after the deduction of the first bill to be deducted is finished, ending the deduction of the first bill. If the first bill cannot be deducted from the first negative bill to be deducted, the first bill needs to be deducted continuously based on the subsequently generated bill.
The deduction sequence corresponding to the N negative bills can be determined based on the bill generation time corresponding to the N negative bills, the bill importance level, the negative bill resource amount and a plurality of parameters, and can be determined according to the bill generation time sequence by default and the bill importance level and the negative bill resource amount when the negative bill resource amount is determined based on the plurality of parameters. For example, the weight corresponding to the bill generation time, the bill importance level and the negative account resource amount is sequentially reduced, if the creation time of a plurality of negative bills of different service types is the same, the higher the importance level of the service type is, the more the negative bills are ranked, and if the creation time of a plurality of negative bills of the same service type is the same, the negative account resource amount is sequentially deducted from large to small or from small to large.
For example, if the refund amount of the target merchant in a settlement period is greater than the payment amount, the settlement period corresponds to the negative bill; for the target object is the target consumer, the negative bill corresponding to the target consumer is the bill collected by the target consumer, for example, if the refund amount of the target consumer in a settlement period is greater than the payment amount, the settlement period corresponds to the negative bill.
For each merchant that establishes an association with the target platform, it may correspond to one or more bill deduction pools, and for a case where the merchant corresponds to a plurality of bill deduction pools, it may be that each service type of the merchant corresponds to one bill deduction pool, and for a case where the merchant corresponds to one bill deduction pool, it may be that at least one service type of the merchant corresponds to one bill deduction pool. Accordingly, for each consumer, it may correspond to one or more bill deduction pools, and when the consumer corresponds to a plurality of bill deduction pools, each business type of the consumer may correspond to one bill deduction pool, and for the case that the consumer corresponds to one bill deduction pool, at least one business type of the consumer may correspond to one bill deduction pool.
According to the implementation process, the first pair of bills corresponding to the target object in the current settlement period is obtained, the first settlement list is generated under the condition that the first pair of bills meets the preset condition, the deduction processing is carried out on at least one negative bill according to the first settlement list and the deduction sequence corresponding to the N negative bills under the condition that the first bill corresponding to the target object comprises the N negative bills to be deducted in the first bill deduction pool, the automatic compensation of the negative bills can be realized based on settlement uniflow water and the deduction queue, the human efficiency is greatly improved, the processing period and the cost are reduced, data can be traced back on line, and the situations of multiple accounts and few accounts are avoided.
In an embodiment of the present application, the method further includes: for each settlement period, under the condition that at least one statement of K statements corresponding to the target object in the settlement period is negative, storing the negative statement corresponding to the settlement period into a statement deduction pool corresponding to the target object, wherein the statement deduction pool corresponding to the target object comprises the first statement deduction pool, and K is an integer greater than or equal to 1;
and setting a deduction priority order for the newly added negative bill in the bill deduction pool corresponding to the target object, wherein the deduction priority order corresponding to the negative bill is negatively related to the bill generation time corresponding to the negative bill.
And for each settlement period, when at least one statement of the K statements corresponding to the target object in the settlement period is a negative statement, storing the negative statement into a statement deduction pool corresponding to the target object, so that the negative statements corresponding to the target object in different settlement periods are gathered, and a negative statement queue is generated, so that the negative statements in the negative statement queue can be deducted based on the statement corresponding to the target object. The negative bill can be counted aiming at the current settlement period and other settlement periods different from the current settlement period, and is stored into the corresponding bill deduction pool. Other settlement periods that are distinct from the current settlement period may be a settlement period before the current settlement period and a settlement period after the current settlement period. The bill deduction pool corresponding to the target object may only include the first bill deduction pool, or may further include other bill deduction pools in the case that the first bill deduction pool is included, and for the case that the bill deduction pools corresponding to the target object are plural, when a negative bill is stored, the matched bill deduction pool may be determined for storage.
Under the condition of a newly added negative bill, a corresponding withholding priority order is set for the newly added negative bill, the withholding priority order corresponding to the negative bill is negatively related to the bill generation time corresponding to the negative bill, namely, the earlier the bill generation time corresponding to the negative bill is, the higher the withholding priority corresponding to the negative bill is, and the later the bill generation time corresponding to the negative bill is, the lower the withholding priority corresponding to the negative bill is, and the negative bill in the bill withholding pool can be withheld based on the first-in first-out sequence.
By preferentially deducting the negative bill with the bill generation time being earlier based on the bill generation time, the situation that the negative bill with the bill generation time being later is preferentially deducted can be avoided, the orderliness of deduction of the negative bill can be ensured, and the situation that the negative bill is disorderly deducted is avoided. The method comprises the steps that the important levels of bills can be compared aiming at a plurality of negative bills generated at the same time, the negative bills with high important levels can be cancelled preferentially, and a deduction strategy is provided for the negative bills corresponding to the same time; for multiple negative bills of the same service type generated at the same time, the bill resource amount can be compared, the higher the bill resource amount is, the higher the priority is, or the lower the bill resource amount is, the higher the priority is, so as to provide a deduction strategy for the multiple negative bills of the same service type corresponding to the same time.
In an embodiment of the present application, the target object corresponds to at least one service type, and the first statement is a statement corresponding to the first service type;
under the condition that the target object corresponds to at least two business types, the first bill deduction pool comprises negative bills corresponding to the first business type, or comprises negative bills corresponding to the first business type and at least one other business type respectively;
wherein the at least two traffic types include the first traffic type and at least one other traffic type.
The target object may correspond to one or more business types, and the first statement of the target object corresponding to the current settlement period is a statement of the first business type of the target object corresponding to the current settlement period. When the target object corresponds to a plurality of service types, the target object may correspond to a plurality of bill deduction pools or one bill deduction pool.
For the case that the target object corresponds to at least two service types, the at least two service types include a first service type and at least one other service type, the other service type is a service type different from the first service type, and the number of the other service types may be one or more. The target object may include a first pair of bills corresponding to the first business type and at least one second pair of bills corresponding to the at least one other business type. When a first pair of bills corresponding to a first service type of a target object in a current settlement period is obtained, a second pair of bills corresponding to other service types of the target object in the current settlement period can be obtained, so that a second settlement list is generated under the condition that the second pair of bills meets a preset condition, and then negative bills in a bill deduction pool are deducted based on the second settlement list.
The first bill deduction pool may only include negative bills corresponding to the first service type, and the first bill deduction pool may also include negative bills corresponding to the first service type and negative bills corresponding to other service types.
For a case where the first bill deduction pool only includes negative bills corresponding to the first service type, the target object may correspond to at least two bill deduction pools, where the at least two bill deduction pools include a first bill deduction pool and at least one second bill deduction pool, the first bill deduction pool is associated with the first service type, the first service type is associated with the first pair of bills, the second bill deduction pool is associated with other service types, and the other service types are associated with the second pair of bills. In this case, the first bill settlement sheet corresponding to the first bill balance pool can balance out the negative bill in the first bill balance pool, and for each other service type, the second bill settlement sheet corresponding to the first bill settlement sheet can balance out the negative bill in the second bill balance pool. For example, the target merchant corresponds to a first business type corresponding to a first bill deduction pool, a second business type (other business types) corresponding to a second bill deduction pool, a first statement corresponding to the first business type in the current settlement period can deduct negative statements in the first bill deduction pool, and a second statement corresponding to the second business type in the current settlement period can deduct negative statements in the second bill deduction pool.
For a case where the first bill deduction pool includes negative bills corresponding to the first business type and negative bills corresponding to other business types, the target object corresponds to the first bill deduction pool, and the first bill deduction pool is associated with the first business type and the other business types. In this case, the first bill settlement unit corresponding to the first bill deduction pool can cancel the negative bill corresponding to the first service type and the negative bill corresponding to the other service type in the first bill deduction pool, and the second bill settlement unit corresponding to the second bill settlement unit can cancel the negative bill corresponding to the first service type and the negative bill corresponding to the other service type in the first bill deduction pool, so that the negative bills of each service type can be cancelled based on the first bill settlement unit, and the negative bills of each service type can be cancelled based on the second bill settlement unit.
It should be noted that, when the target object corresponds to at least two service types, for other settlement periods different from the current settlement period, if the first pair of bills corresponding to the first service type of the target object in the settlement period is negative bills, the negative bills corresponding to the first service type are stored in the first bill deduction pool. Under the condition that a second pair of bills corresponding to other business types of the target object in the settlement period is negative bills, if the target object corresponds to the first bill deduction pool and the at least one second bill deduction pool, storing the negative bills corresponding to the other business types into the corresponding second bill deduction pools; and if the target object only corresponds to the first bill deduction pool, storing negative bills corresponding to other business types into the first bill deduction pool.
For the situation that the target object only corresponds to the first bill deduction pool and the first bill deduction pool comprises negative bills corresponding to different service types, when a deduction priority order is set for the newly added negative bills in the first bill deduction pool, the deduction priority order can be determined based on bill generation time, and when the bill generation time is the same, the deduction priority order can be determined by referring to the bill importance level and the bill resource amount.
In the implementation process of the application, when the target object corresponds to one service type, the negative bill is stored in a bill deduction pool corresponding to the target object; when the target object corresponds to at least two business types, negative bills corresponding to different business types can be classified and stored into corresponding bill deduction pools, so that classified storage of the negative bills is realized, and the negative bills corresponding to different business types can also be stored into one bill deduction pool, so that mixed storage of the negative bills is realized.
By storing the negative bills in a classified manner, directional deduction can be performed based on the incidence relation between the settlement bills and the negative bills of the same service type; by hybrid storage of negative bills, the negative bills for each service type can be made up in a hybrid manner based on the generated bill.
The following describes the process of deducting negative bills based on a statement. When at least one negative bill is subjected to deduction processing according to the first settlement list and the deduction sequence corresponding to the N negative bills, the method comprises the following steps: and according to the settlement resource amount corresponding to the first settlement list and the negative bill resource amount corresponding to the N negative bills respectively, performing deduction processing on at least one negative bill in the N negative bills according to the deduction sequence.
When a first statement corresponding to a first service type of a target object is used for carrying out deduction processing on N negative bills to be deducted in a first bill deduction pool, the statement resource amount corresponding to the first statement and the negative bill resource amount corresponding to the N negative bills need to be compared, a corresponding deduction rule is determined according to a comparison result, at least one negative bill in the N negative bills is deducted according to a deduction sequence based on the determined deduction rule, and when negative bill deduction is carried out according to the deduction sequence, deduction processing needs to be carried out on the next negative bill after all negative bills are deducted.
Correspondingly, when the negative bills to be deducted in the bill deduction pool are deducted based on the second settlement sheets corresponding to other business types of the target object, if each business type of the target object corresponds to one bill deduction pool, the negative bills to be deducted in the second bill deduction pool corresponding to the current business type can be deducted according to the deduction sequence according to the second settlement sheets corresponding to the current business type aiming at any other business type; if a plurality of service types of the target object correspond to the first bill deduction pool, the negative bills to be deducted in the first bill deduction pool corresponding to the target object can be deducted according to the deduction sequence according to the second settlement bills corresponding to other service types.
Above-mentioned process, through carrying out according to the preface to the burden bill according to the order of deducting and detaining and handle, can realize the orderliness that the bill was detained, avoid appearing the burden bill and detain the mixed and disorderly condition.
Optionally, when performing deduction processing on at least one negative bill in the N negative bills according to the deduction sequence and according to the settlement resource amount corresponding to the first settlement list and the negative bill resource amount corresponding to each of the N negative bills, the method includes:
under the condition that the amount of settlement resources corresponding to the first settlement list is larger than or equal to the sum of the amounts of negative account resources corresponding to the N negative bills, performing deduction processing on the N negative bills according to the first settlement list and the deduction sequence;
when the settlement resource amount corresponding to the first settlement list is smaller than the negative account resource amount corresponding to the first negative bill, carrying out deduction processing on part of negative account resource amounts of the first negative bill according to the first settlement list, wherein the first negative bill is the negative bill with the highest deduction priority in the N negative bills;
under the condition that the amount of settlement resources corresponding to the first settlement list is larger than the amount of negative account resources corresponding to a first negative bill and smaller than the sum of the amounts of negative account resources corresponding to the N negative bills, carrying out deduction processing on the first negative bill and M second negative bills according to the first settlement list and the deduction sequence, wherein the second negative bills are negative bills different from the first negative bill in the N negative bills, and M is larger than or equal to 1 and smaller than N;
the deduction sequence is determined based on the deduction priority sequence corresponding to the N negative bills, the deduction priority sequence corresponding to the negative bills is negatively related to the bill generation time corresponding to the negative bills, and the deduction processing is carried out on the next negative bill after the previous negative bill is completely deducted according to the deduction sequence.
After the amount of the settlement resources corresponding to the first settlement statement and the amount of the negative account resources corresponding to the N negative bills are compared, if the amount of the settlement resources corresponding to the first settlement statement is greater than or equal to the total amount of the negative account resources corresponding to the N negative bills, the deduction rule can be determined as that the N negative bills are sequentially deducted according to the first settlement statement and the deduction order. The deduction order in this embodiment is determined based on the deduction priority order corresponding to the N negative bills, the deduction priority order corresponding to the negative bills is negatively related to the bill generation time corresponding to the negative bills, and the earlier the bill generation time corresponding to the negative bills is, the higher the deduction priority is. For example, the N negative bills include negative bill 1, negative bill 2 and negative bill 3, the negative bill 1, the negative bill 2 and the negative bill 3 are sequentially arranged from morning to evening according to the bill generation time, the deduction priority corresponding to the negative bill 1 is highest, the deduction priority corresponding to the negative bill 2 is lowest, and the deduction priority corresponding to the negative bill 3 is lowest, when the deduction processing is performed on the 3 negative bills, the deduction processing is performed on the negative bill 1 first, then the deduction processing is performed on the negative bill 2, and finally the deduction processing is performed on the negative bill 3.
And under the condition that the amount of the settlement resources corresponding to the first settlement list is smaller than the amount of the negative account resources corresponding to the first negative bill with the highest deduction priority in the N negative bills, determining that the deduction rule is to carry out deduction on part of the amount of the negative account resources of the first negative bill according to the first settlement list. When the deduction processing is carried out on the N negative bills, deduction is carried out according to the sequence from high deduction priority to low deduction priority, whether the amount of the settlement resources corresponding to the first statement of account is larger than or equal to the amount of the negative account resources corresponding to the first negative bill with the highest deduction priority needs to be judged, and if the amount of the settlement resources corresponding to the first statement of account is smaller than the amount of the negative account resources corresponding to the first negative bill, partial deduction is carried out on the amount of the negative account resources of the first negative bill based on the first statement of account; if the settlement resource amount corresponding to the first settlement list is equal to the negative account resource amount corresponding to the first negative bill, performing total deduction on the negative account resource amount of the first negative bill based on the first settlement list; if the settlement resource amount corresponding to the first settlement list is larger than the negative account resource amount corresponding to the first negative bill, the negative account resource amount of the first negative bill can be deducted based on the first settlement list, and then the deduction processing can be carried out on other negative bills.
Under the condition that the amount of the settlement resources corresponding to the first settlement list is larger than the amount of the negative account resources corresponding to the first negative bill and smaller than the sum of the amounts of the negative account resources corresponding to the N negative bills, the deduction rule can be determined as follows: and according to the first settlement list, the first negative bills are deducted firstly, and then the M second negative bills are deducted in sequence according to the deduction sequence and the rest of the first settlement list. The second negative bills in this embodiment are other negative bills different from the first negative bills, and the M second negative bills may be at least partial negative bills in all the N negative bills, and if the M second negative bills are partial negative bills in all the N negative bills, the M second negative bills may be all deducted, or (M-1) second negative bills may be all deducted and the remaining one second negative bill may be partially deducted according to the deduction sequence; and if the M second negative bills are all the N negative bills, performing all deduction on the (M-1) second negative bills and performing partial deduction on the rest second negative bills according to the deduction sequence. The value of M is less than N, the difference between N and M is equal to 1, or the difference between N and M is greater than 1.
In the implementation process, the matched deduction rule is determined based on the comparison result of the settlement resource amount corresponding to the first settlement list and the negative account resource amount corresponding to the N negative bills, and the negative bills are deducted according to the deduction rule and the deduction sequence, so that the deduction processing of at least part of the negative bills in the N negative bills based on the first settlement list can be realized.
In an embodiment of the present application, after performing deduction processing on the N negative bills according to the first settlement list, the method further includes: under the condition that the amount of settlement resources corresponding to the first settlement list is larger than the sum of the amounts of negative account resources corresponding to the N negative bills, determining the amount of real payment resources according to the net value after deduction corresponding to the first settlement list, and setting the settlement state as successful payment and the negative account state as all deduction; and setting the settlement state as a successful deduction and the negative account state as a complete deduction under the condition that the amount of the settlement resources corresponding to the first settlement list is equal to the sum of the amounts of the negative account resources corresponding to the N negative bills.
And aiming at the condition that the amount of the settlement resources corresponding to the first settlement list is larger than the sum of the amounts of the negative account resources corresponding to the N negative bills, the first settlement list also has balance after the deduction of the N negative bills is completed, and the net value after the deduction corresponding to the first settlement list is the amount of the real payment resources. And aiming at the condition that the target object is the target merchant, the net value after deduction corresponding to the first settlement list is the amount of the real payment resource corresponding to the payment to the target merchant, and aiming at the condition that the target object is the target consumer, the net value after deduction corresponding to the first settlement list is the amount of the real payment resource corresponding to the target consumer. And after the deduction processing is finished on the N negative bills, setting the settlement state of the first settlement bill as successful payment and the negative bill state of the N negative bills as all deductions.
And aiming at the condition that the amount of the settlement resources corresponding to the first settlement list is equal to the sum of the amounts of the negative account resources corresponding to the N negative bills, after the deduction is completed, the first settlement list has no balance, and the settlement state of the first settlement list is set as the successful deduction and the negative account state of the N negative bills is set as the total deduction.
In the implementation process, after the completion of all deductions of the N negative bills, if the first settlement list has balance, the real payment resource amount is determined based on the net value after deduction, the settlement state is set as successful payment, and the negative account state is set as all deductions, so that the deduction is completed based on the first settlement list and the net value is determined; after the deduction of all the N negative bills is finished, if the first settlement list has no balance, setting the settlement state as the successful deduction and the negative bill state as the all-deduction, and realizing the deduction of the negative bills based on the first settlement list.
In an embodiment of the present application, the method further includes:
after the deduction processing is carried out on the partial negative account resource amount of the first negative bill according to the first settlement list, carrying out deduction processing on the residual negative account resource amount of the first negative bill according to a settlement list corresponding to at least one settlement period, and carrying out deduction processing on a second negative bill in the deduction pool of the first bill according to the deduction sequence;
and after the first negative bill and the M second negative bills are deducted according to the first settlement list and the deduction sequence, deduction processing is carried out on the second negative bills which are not deducted and are not deducted according to the settlement list corresponding to at least one settlement period.
For the situation that the deduction processing is performed on the amount of partial negative account resources of the first negative bill based on the first bill of settlement, because the first bill of settlement does not complete the whole deduction on of the first negative bill, the deduction processing can be performed on the amount of the remaining negative account resources of the first negative bill according to the bill of settlement corresponding to at least one settlement period, and after the deduction processing on the first negative bill is completed, the deduction processing is performed on the second negative bill in the first bill deduction pool according to the deduction order.
If the target object corresponds to a plurality of business types and the negative bills corresponding to the business types can be deducted in a mixed mode, after partial negative bill resource amount of the first negative bill is deducted on the basis of a first settlement list corresponding to the first business type in the current settlement period, deduction processing can be continuously carried out on the negative bill resource amount of the first negative bill on the basis of a second settlement list corresponding to at least one other business type in the current settlement period, when deduction is successful and balance exists, deduction processing is continuously carried out on the second negative bill according to a deduction sequence, and deduction processing can be carried out on the negative bills which are not deducted on the basis of the first settlement list and/or the second settlement list corresponding to the next settlement period when deduction processing on all the second negative bills cannot be completed. When the balance resource amount of the first negative bill is continuously deducted but not completely deducted according to the second bill corresponding to the current settlement cycle respectively according to at least one other service type, the first negative bill can be continuously deducted based on the settlement bill corresponding to the subsequent at least one settlement cycle, and after the deduction is successful, the deduction processing is carried out on the second negative bill based on the deduction sequence.
For the case that the target object corresponds to one service type, after the deduction processing is performed on the amount of the partial negative account resources of the first negative bill based on the first statement corresponding to the first service type in the current settlement period, the deduction processing is continuously performed on the amount of the negative account resources of the first negative bill based on the first statement corresponding to the first service type in at least one subsequent settlement period, and after the deduction for the first negative bill is completed, the deduction processing is performed on the second negative bill according to the deduction order.
Referring to fig. 2, the first service type of the target merchant partially offsets a negative bill a (first negative bill) in a first statement a corresponding to the current settlement period, and the settlement status corresponding to the first statement a is successful; the second business type of the target merchant continues to partially withhold the negative bill A in a second bill b corresponding to the current settlement period, and the settlement state corresponding to the second bill b is successful in withholding; and the third business type of the target merchant continuously deducts the negative bill A in the second statement c corresponding to the current settlement period, the second statement c still has balance after the deduction of the negative bill A is completed, the net value after the deduction corresponding to the second statement c is the real payment resource amount which should be paid to the target merchant, and the settlement state corresponding to the second statement c is successful payment.
Referring to fig. 3, a case of deducting the first negative bill and the second negative bill is described below by using a specific example, where a first service type of a target merchant partially deducts a negative bill a (a first negative bill) in a first settlement statement a corresponding to a current settlement period, and a settlement state corresponding to the first settlement statement a is that deduction is successful; and the second business type of the target merchant continues to carry out deduction processing on the negative bill A in a second statement of account B corresponding to the current settlement period, and can continue to carry out deduction processing on the negative bill B (the second negative bill) after the deduction of the negative bill A is finished, and if the second statement of account B has no balance after the deduction of the negative bill B is finished, the settlement state corresponding to the second statement of account B is successful in deduction.
In the process, after the first settlement list based on the current settlement period deducts part of the negative bill resource amount of the first negative bill, the first negative bill can be continuously deducted according to the second settlement list corresponding to the current settlement period, and other negative bills can be deducted when balance exists, so that the negative bills can be subjected to mixed deduction based on the settlement lists of different service types, and the first negative bill can also be continuously deducted based on the first settlement list of the next settlement period, so that directional deduction is realized.
For the situation that the first negative bill and the M second negative bills are deducted in the deduction sequence based on the first settlement list, the M second negative bills can be deducted after the deduction for the first negative bill is completed by the first settlement list, or (M-1) second negative bills are deducted and the rest second negative bills are partly deducted, and the second negative bills which are not deducted and are not deducted can be deducted according to the deduction sequence and the settlement list corresponding to at least one settlement period.
For the situation that the M second negative bills are partial negative bills in all the second negative bills corresponding to the N negative bills, after the first negative bills and the M second negative bills are all cancelled based on the first settlement list in the current settlement period, the second negative bills which are not cancelled exist at the moment, and the second negative bills which are not cancelled can be cancelled according to the settlement lists respectively corresponding to at least one settlement period and the cancellation sequence. The method comprises the following steps that for the condition that a target object corresponds to one service type, deduction processing can be carried out on second negative bills which are not deducted on the basis of first settlement sheets which respectively correspond to the first service type in at least one subsequent settlement period; and when the deduction is not successful, the deduction processing is continued on the second negative bill according to the settlement list corresponding to the subsequent settlement period.
After the first negative bill and all (M-1) second negative bills are deducted based on the first bill of the current settlement period and the remaining second negative bill is partially deducted, the second negative bill which is not deducted and the second negative bill which is not deducted (part of the deduction) exist at the moment, and the deduction processing can be carried out on the second negative bills which are not deducted and the second negative bills which are not deducted according to the settlement sheets which respectively correspond to at least one settlement period. The method comprises the following steps that for the condition that a target object corresponds to one service type, deduction processing can be conducted on second negative bills which are not deducted and not deducted based on first settlement lists respectively corresponding to a first service type in at least one subsequent settlement period; and when the deduction is not successful, carrying out deduction processing on the second negative bill continuously according to the settlement list corresponding to the subsequent settlement period.
For the case that the M second negative bills are all the second negative bills corresponding to the N negative bills, after the first negative bill and (M-1) second negative bills are all deducted based on the first bill of the current settlement cycle, and the remaining second negative bill is partially deducted, the second negative bill which is not deducted exists, and the deduction processing can be performed on the second negative bill which is not deducted according to the settlement bill corresponding to at least one settlement cycle. The method comprises the following steps that for the condition that a target object corresponds to one service type, deduction processing can be conducted on a second negative bill which is not deducted in at least one subsequent settlement period on the basis of a first settlement list corresponding to the first service type; and when the deduction is not successful, the second negative bill is continuously deducted according to the settlement sheets corresponding to the subsequent settlement periods.
In the above process, after the first negative bill and the M second negative bills are deducted based on the first settlement list in the current settlement period, the second negative bills which are not deducted and deducted can be deducted according to the second settlement list corresponding to the current settlement period, so that the negative bills can be deducted in a mixed manner based on the settlement lists of different service types, or the second negative bills which are not deducted and deducted can be deducted based on the first settlement list in the subsequent settlement period, so that the directional deduction is realized.
Taking a target object as a target merchant as an example, the bill deduction method provided by the present application is described through a specific implementation process, and as shown in fig. 4, the method includes the following steps:
step 401, under the condition that the current settlement period is finished, obtaining a first pair of bills corresponding to the target merchant in the current settlement period, wherein the target merchant corresponds to one service type, and the first pair of bills corresponding to the target merchant in the current settlement period is the first pair of bills corresponding to the service type of the target merchant in the current settlement period.
Step 403, generate a first bill of settlement according to the first pair of bills, and then execute step 404.
And 405, under the condition that the amount of settlement resources corresponding to the first settlement list is larger than or equal to the sum of the amounts of negative account resources corresponding to the N negative bills, performing deduction processing on the N negative bills according to a deduction sequence based on the first settlement list.
And step 406, under the condition that the amount of the settlement resources corresponding to the first settlement list is smaller than the amount of the negative account resources corresponding to the first negative bill, performing deduction processing on the amount of the partial negative account resources of the first negative bill based on the first settlement list.
And step 407, under the condition that the amount of settlement resources corresponding to the first settlement list is larger than the amount of negative account resources corresponding to the first negative bill and smaller than the sum of the amounts of negative account resources corresponding to the N negative bills, performing deduction processing on the first negative bill and the M second negative bills based on the first settlement list according to a deduction order.
Step 408 may be performed after step 405, step 409 may be performed after step 406, and step 410 may be performed after step 407.
And 409, according to the settlement list corresponding to at least one settlement period, carrying out deduction processing on the remaining negative bill resource amount of the first negative bill, carrying out deduction processing on the second negative bill in the first bill deduction pool according to a deduction sequence, and ending the flow.
And step 410, performing deduction processing on the unfinished deduction and non-deduction second negative bills according to the settlement list corresponding to at least one settlement period, and ending the flow.
Step 411, determining that the current settlement period does not need to pay the target merchant, and then ending the process.
According to the implementation process, the corresponding deduction rule can be determined based on the account balance resource amount corresponding to the settlement uniflow water and the N negative bills, so that the negative bills are deducted based on the determined deduction rule, automatic compensation of the negative bills is realized, manual adjustment and manual account establishment are not needed by operators, the human efficiency is improved, and the development cost and the labor cost are reduced.
In the above overall implementation process of the bill deduction method provided by the embodiment of the application, by obtaining the first pair of bills corresponding to the target object in the current settlement period, under the condition that it is determined that the first pair of bills meets the preset condition, the first settlement sheet is generated, and under the condition that the first bill deduction pool corresponding to the target object includes N negative bills to be deducted, at least one negative bill is deducted according to the first settlement sheet and the deduction sequence corresponding to the N negative bills.
Furthermore, the deduction priority is determined based on the bill generation time, so that the negative bills can be orderly deducted based on the time parameter, and the condition that the negative bills are disordered in deduction is avoided. When the target object corresponds to a plurality of business types, the negative bills are stored in a classified mode, directional deduction can be conducted on the basis of the incidence relation between the bill of the same business type and the negative bills, and mixed deduction can be conducted on the negative bills of all the business types on the basis of the generated bill of negative bills through mixed storage. The matched deduction rule is determined based on the comparison result of the settlement resource amount corresponding to the first settlement list and the negative account resource amount corresponding to the N negative bills, the negative bills are deducted according to the deduction rule and the deduction sequence, and at least part of the negative bills in the N negative bills can be deducted based on the first settlement list.
The present application further provides a bill deducting device, as shown in fig. 5, including:
a generating module 501, configured to generate a first statement corresponding to a target object in a current settlement period when a first statement corresponding to the target object in the current settlement period is obtained and the first statement meets a preset condition;
a deduction module 502, configured to, when N negative bills to be deducted are included in a first bill deduction pool corresponding to the target object, perform deduction processing on at least one negative bill according to the first calculation list and a deduction sequence corresponding to the N negative bills, where N is an integer greater than or equal to 1.
Optionally, the generating module includes:
the first determining and generating sub-module is used for determining that the first pair of bills meets the preset condition and generating a first settlement list corresponding to the target merchant in the current settlement period under the condition that the target object is the target merchant and the amount of the resource to be settled corresponding to the first pair of bills is a positive number;
and the second determination and generation submodule is used for determining that the first pair of bills meets the preset condition and generating a first settlement list corresponding to the current settlement period of the target consumer under the condition that the target object is the target consumer and the amount of the resource to be settled corresponding to the first pair of bills is a negative number.
Optionally, the apparatus further comprises:
the storage module is used for storing the negative bill corresponding to the settlement period into a bill deduction pool corresponding to the target object under the condition that at least one of K bills corresponding to the target object in the settlement period is a negative bill, the bill deduction pool corresponding to the target object comprises the first bill deduction pool, and K is an integer greater than or equal to 1;
and the setting module is used for setting a deduction priority order for the newly added negative bills in the bill deduction pool corresponding to the target object, wherein the deduction priority order corresponding to the negative bills is negatively related to the bill generation time corresponding to the negative bills.
Optionally, the target object corresponds to at least one service type, and the first statement of account is a statement of account corresponding to the first service type;
in the case that the target object corresponds to at least two business types, the first bill deduction pool comprises negative bills corresponding to the first business type, or comprises negative bills corresponding to the first business type and at least one other business type respectively;
wherein the at least two traffic types include the first traffic type and at least one other traffic type.
Optionally, the deduction module is further configured to:
and according to the settlement resource amount corresponding to the first settlement list and the negative account resource amounts corresponding to the N negative bills respectively, carrying out deduction processing on at least one negative bill in the N negative bills according to the deduction sequence.
Optionally, the retaining module includes:
the first deduction sub-module is used for carrying out deduction processing on the N negative bills according to the first settlement list and the deduction sequence under the condition that the amount of settlement resources corresponding to the first settlement list is larger than or equal to the sum of the amounts of the negative account resources corresponding to the N negative bills;
the second deduction sub-module is used for carrying out deduction processing on part of the negative account resource amount of the first negative bill according to the first settlement list under the condition that the settlement resource amount corresponding to the first settlement list is smaller than the negative account resource amount corresponding to the first negative bill, wherein the first negative bill is a negative bill with the highest deduction priority in the N negative bills;
a third deduction sub-module, configured to, when a settlement resource amount corresponding to the first settlement statement is greater than a negative settlement resource amount corresponding to a first negative bill and smaller than a total negative settlement resource amount corresponding to the N negative bills, perform deduction processing on the first negative bill and M second negative bills according to the first settlement statement and the deduction order, where the second negative bills are negative bills different from the first negative bill in the N negative bills, and M is greater than or equal to 1 and less than N;
the deduction sequence is determined based on the deduction priority sequence corresponding to the N negative bills, the deduction priority sequence corresponding to the negative bills is negatively related to the bill generation time corresponding to the negative bills, and the deduction processing is carried out on the next negative bill after the previous negative bill is completely deducted according to the deduction sequence.
Optionally, the apparatus further comprises:
the first processing module is used for determining the real payment resource amount according to the post-deduction net value corresponding to the first settlement list and setting the settlement state as successful payment and all deduction states under the condition that the settlement resource amount corresponding to the first settlement list is larger than the sum of the negative account resource amounts corresponding to the N negative bills after the first deduction sub-module carries out deduction processing on the N negative bills according to the first settlement list;
and the second processing module is used for setting the settlement state as the successful deduction and the negative account state as the total deduction under the condition that the settlement resource amount corresponding to the first settlement list is equal to the sum of the negative account resource amounts corresponding to the N negative bills after the first deduction sub-module carries out deduction processing on the N negative bills according to the first settlement list.
Optionally, the apparatus further comprises:
the third processing module is used for deducting the remaining negative account resource amount of the first negative bill according to the settlement list corresponding to at least one settlement period after the second deduction module deducts the partial negative account resource amount of the first negative bill according to the first settlement list, and deducts the second negative bill in the first bill deduction pool according to the deduction sequence;
and the fourth processing module is used for performing deduction processing on the first negative bills and the M second negative bills by the third deduction sub-module according to the first bill and the deduction sequence, and then performing deduction processing on the unfinished and unfinished second negative bills according to the bill corresponding to at least one settlement period.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present application further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement each process of the above bill deduction method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
For example, fig. 6 shows a schematic physical structure diagram of an electronic device. As shown in fig. 6, the electronic device may include: a processor (processor) 610, a communication Interface 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 complete communication with each other through the communication bus 640. The processor 610 may call logic instructions in the memory 630, and the processor 610 is configured to perform the following steps: under the condition that a first bill pair corresponding to a target object in a current settlement period is obtained and meets a preset condition, generating a first settlement list corresponding to the target object in the current settlement period; and under the condition that the first bill deduction pool corresponding to the target object comprises N negative bills to be deducted, deducting at least one negative bill according to the first settlement list and the deduction sequence corresponding to the N negative bills, wherein N is an integer greater than or equal to 1. The processor 610 may also perform other aspects of the embodiments of the present application and will not be further described herein.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above bill deduction method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed in the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
1. A method of bill deduction comprising:
under the condition that a first bill pair corresponding to a target object in a current settlement period is obtained and meets a preset condition, generating a first settlement list corresponding to the target object in the current settlement period;
and under the condition that the first bill deduction pool corresponding to the target object comprises N negative bills to be deducted, deducting at least one negative bill according to the first settlement list and the deduction sequence corresponding to the N negative bills, wherein N is an integer greater than or equal to 1.
2. The method of claim 1, wherein in a case that a first pair of bills corresponding to a target object in a current settlement period is obtained and meets a preset condition, generating a first settlement list corresponding to the target object in the current settlement period comprises:
under the condition that the target object is a target merchant and the amount of the resource to be settled corresponding to the first pair of bills is a positive number, determining that the first pair of bills meets the preset condition, and generating a first settlement list corresponding to the target merchant in the current settlement period;
and under the condition that the target object is a target consumer and the amount of the resource to be settled corresponding to the first pair of bills is a negative number, determining that the first pair of bills meets the preset condition, and generating a first settlement list corresponding to the target consumer in the current settlement period.
3. The method of claim 1, further comprising:
for each settlement period, under the condition that at least one statement of K statements corresponding to the target object in the settlement period is a negative statement, storing the negative statement corresponding to the settlement period into a statement deduction pool corresponding to the target object, wherein the statement deduction pool corresponding to the target object comprises the first statement deduction pool, and K is an integer greater than or equal to 1;
and setting a deduction priority order for the newly added negative bill in the bill deduction pool corresponding to the target object, wherein the deduction priority order corresponding to the negative bill is negatively related to the bill generation time corresponding to the negative bill.
4. The method of any of claims 1 to 3, wherein the target object corresponds to at least one business type, and the first statement is a statement corresponding to the first business type;
in the case that the target object corresponds to at least two business types, the first bill deduction pool comprises negative bills corresponding to the first business type, or comprises negative bills corresponding to the first business type and at least one other business type respectively;
wherein the at least two traffic types include the first traffic type and at least one other traffic type.
5. The method as claimed in claim 1, wherein the performing the deduction processing on at least one negative bill according to the first statement of account and the deduction order corresponding to the N negative bills comprises:
and according to the settlement resource amount corresponding to the first settlement list and the negative bill resource amount corresponding to the N negative bills respectively, performing deduction processing on at least one negative bill in the N negative bills according to the deduction sequence.
6. The method as claimed in claim 5, wherein the deducting at least one negative bill of the N negative bills according to the amount of settlement resources corresponding to the first settlement bill and the amount of negative account resources corresponding to the N negative bills respectively in the deduction order comprises:
under the condition that the amount of settlement resources corresponding to the first settlement list is larger than or equal to the sum of the amounts of negative account resources corresponding to the N negative bills, performing deduction processing on the N negative bills according to the first settlement list and the deduction sequence;
when the settlement resource amount corresponding to the first settlement list is smaller than the negative account resource amount corresponding to the first negative bill, carrying out deduction processing on part of negative account resource amounts of the first negative bill according to the first settlement list, wherein the first negative bill is the negative bill with the highest deduction priority in the N negative bills;
under the condition that the amount of settlement resources corresponding to the first settlement list is larger than the amount of negative account resources corresponding to a first negative bill and smaller than the sum of the amounts of the negative account resources corresponding to the N negative bills, according to the first settlement list, carrying out deduction processing on the first negative bill and M second negative bills according to the deduction sequence, wherein the second negative bills are negative bills different from the first negative bill in the N negative bills, and M is larger than or equal to 1 and smaller than N;
the deduction sequence is determined based on the deduction priority sequence corresponding to the N negative bills, the deduction priority sequence corresponding to the negative bills is negatively related to the bill generation time corresponding to the negative bills, and the deduction processing is carried out on the next negative bill after the previous negative bill is completely deducted according to the deduction sequence.
7. The method of claim 6, further comprising, after the deducting the N negative bills according to the first settlement sheet:
under the condition that the amount of settlement resources corresponding to the first settlement list is larger than the sum of the amounts of negative account resources corresponding to the N negative bills, determining the amount of real payment resources according to the net value after deduction corresponding to the first settlement list, and setting the settlement state as successful payment and the negative account state as all deduction;
and setting the settlement state as the successful deduction and the negative account state as the total deduction under the condition that the amount of the settlement resources corresponding to the first settlement list is equal to the sum of the amounts of the negative account resources corresponding to the N negative bills.
8. The method of claim 6, further comprising:
after the deduction processing is carried out on the amount of partial negative account resources of the first negative bill according to the first settlement list, carrying out deduction processing on the amount of the residual negative account resources of the first negative bill according to a settlement list corresponding to at least one settlement period, and carrying out deduction processing on a second negative bill in the first bill deduction pool according to the deduction sequence;
and after the first negative bill and the M second negative bills are deducted according to the first settlement list and the deduction sequence, deduction processing is carried out on the second negative bills which are not deducted and are not deducted according to the settlement list corresponding to at least one settlement period.
9. A bill retaining device, comprising:
the generation module is used for generating a first bill of the target object corresponding to the current settlement period under the condition that the first bill of the target object corresponding to the current settlement period is obtained and the first bill of the target object meets the preset conditions;
and the deduction module is used for deducting at least one negative bill according to the first settlement list and a deduction sequence corresponding to the N negative bills under the condition that the first bill deduction pool corresponding to the target object comprises the N negative bills to be deducted, wherein N is an integer greater than or equal to 1.
10. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the bill deduction method according to any of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the bill deduction method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211373691.0A CN115660659A (en) | 2022-11-03 | 2022-11-03 | Bill deduction method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211373691.0A CN115660659A (en) | 2022-11-03 | 2022-11-03 | Bill deduction method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115660659A true CN115660659A (en) | 2023-01-31 |
Family
ID=84995337
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211373691.0A Pending CN115660659A (en) | 2022-11-03 | 2022-11-03 | Bill deduction method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115660659A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002056194A (en) * | 2000-08-08 | 2002-02-20 | Sumisho Computer Systems Corp | System and method for managing asset floating and recording medium |
CN110046995A (en) * | 2018-12-28 | 2019-07-23 | 阿里巴巴集团控股有限公司 | Refund request processing method, device and equipment |
CN110705981A (en) * | 2018-07-09 | 2020-01-17 | 北京京东金融科技控股有限公司 | Real-time settlement method and device |
CN111970380A (en) * | 2020-09-02 | 2020-11-20 | 陈顺发 | Service processing method based on block chain and service processing system based on block chain |
CN112465615A (en) * | 2020-12-01 | 2021-03-09 | 中国联合网络通信集团有限公司 | Bill data processing method, device and system |
CN113627922A (en) * | 2021-08-16 | 2021-11-09 | 北京京东振世信息技术有限公司 | Logistics data processing method and device, storage medium and electronic equipment |
CN114840527A (en) * | 2022-05-17 | 2022-08-02 | 中国工商银行股份有限公司 | Data processing method, device and computer readable storage medium |
-
2022
- 2022-11-03 CN CN202211373691.0A patent/CN115660659A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002056194A (en) * | 2000-08-08 | 2002-02-20 | Sumisho Computer Systems Corp | System and method for managing asset floating and recording medium |
CN110705981A (en) * | 2018-07-09 | 2020-01-17 | 北京京东金融科技控股有限公司 | Real-time settlement method and device |
CN110046995A (en) * | 2018-12-28 | 2019-07-23 | 阿里巴巴集团控股有限公司 | Refund request processing method, device and equipment |
CN111970380A (en) * | 2020-09-02 | 2020-11-20 | 陈顺发 | Service processing method based on block chain and service processing system based on block chain |
CN112465615A (en) * | 2020-12-01 | 2021-03-09 | 中国联合网络通信集团有限公司 | Bill data processing method, device and system |
CN113627922A (en) * | 2021-08-16 | 2021-11-09 | 北京京东振世信息技术有限公司 | Logistics data processing method and device, storage medium and electronic equipment |
CN114840527A (en) * | 2022-05-17 | 2022-08-02 | 中国工商银行股份有限公司 | Data processing method, device and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
姚前: "《数字货币初探》", 31 May 2018, 中国金融出版社, pages: 281 - 282 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101813256B1 (en) | Payment system using virtual money exchange | |
US7797224B2 (en) | Systems and methods for automatically backing out by orders | |
CN102968715B (en) | A kind of payment control method and system based on credit data | |
US20080162325A1 (en) | Systems and Methods for Automatically Backing Out Buy Orders | |
US20130311357A1 (en) | Methods for facilitating online transactions involving a plurality of unique currencies | |
CN107886428B (en) | Method for determining payment clearing exchange rate and payment clearing system | |
CN106934610A (en) | Solve the method and system of the virtual account gathering difference of foreign trade electric business platform bank | |
CN106557921A (en) | On-line payment method and device | |
CN109993653A (en) | A kind of method of net loan system financial settlement loan fund balance | |
CN112465628A (en) | Data verification method and device, electronic equipment and storage medium | |
CN115660659A (en) | Bill deduction method and device, electronic equipment and storage medium | |
CN113627933B (en) | Method and device for mobile terminal payment under network-free state | |
JP4445686B2 (en) | Balance management method, balance management program and distributed charge processing system in distributed charge processing system | |
CN113744044A (en) | Method and device for processing deposit and financing business | |
CN112232953A (en) | Bond transaction prepayment method, device, equipment and storage medium | |
CN112017037A (en) | Method and system for pre-purchasing large-amount bank deposit | |
CN115131085A (en) | Method, device and equipment for processing super package bills | |
CN108270579B (en) | Method and device for determining expected value of balance | |
CN110599344A (en) | Foundation transaction data processing method and device based on block chain | |
JP5986168B2 (en) | Automatic overdraft system and method using electronically recorded receivables | |
CN116452311A (en) | Cache-based money allocation processing method and device | |
JP2914438B2 (en) | Data terminal equipment | |
JP2004272469A (en) | Settlement intermediation processing method and settlement intermediation server | |
CN111915421B (en) | Exchange processing method and system for internal transaction of banking system | |
CN116452312A (en) | Interest rate determination method and device |
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 |