CN111429243A - Bill generation method and device, electronic equipment and storage medium - Google Patents

Bill generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111429243A
CN111429243A CN202010209069.0A CN202010209069A CN111429243A CN 111429243 A CN111429243 A CN 111429243A CN 202010209069 A CN202010209069 A CN 202010209069A CN 111429243 A CN111429243 A CN 111429243A
Authority
CN
China
Prior art keywords
bill
configuration
file
customized
charge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010209069.0A
Other languages
Chinese (zh)
Inventor
刘传富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tongbang Zhuoyi Technology Co ltd
Original Assignee
Beijing Tongbang Zhuoyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tongbang Zhuoyi Technology Co ltd filed Critical Beijing Tongbang Zhuoyi Technology Co ltd
Priority to CN202010209069.0A priority Critical patent/CN111429243A/en
Publication of CN111429243A publication Critical patent/CN111429243A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to a bill generation method, a bill generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring configuration files containing basic charge-out rules of at least two different product objects, wherein the bill configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects; acquiring signing files containing customized expenditure rules of at least two product objects, wherein the signing files are obtained by configuring a preset customized rule template according to the expenditure rules of actual requirements of users; and generating an electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the contract file. According to the embodiment of the invention, the electronic bill files of the product objects can be uniformly and automatically generated only by reading the basic charge-out rules in the configuration file and the configuration parameters in the customized charge-out rules in the contract file according to the configuration parameters, and the charge-out program does not need to be separately developed, so that the development efficiency is improved, the maintenance cost is saved, and the resources are saved.

Description

Bill generation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a bill, an electronic device, and a storage medium.
Background
The core ledger for supply chain finance needs to provide a unified billing service for recording the aggregate amounts of principal and interest charges that each enterprise customer should charge within a specific time period. Different businesses in supply chain finance have billing requirements, but their billing modes and rules are very different.
For example: the business A requires that all outstanding loan bill accounts from the last month No. 1 to the last month end client deposit bill are drawn out every month No. 5, the processing mode is that before the loan bill begins to pay, the corresponding outstanding principal and interest fee of all outstanding loan bills are recorded and snapshot is taken before the loan bill begins to pay, and when No. 5 is taken, the bill is made according to the value in the snapshot drawn out from No. 1, and in the process, if some information in the snapshot is updated, the snapshot information is correspondingly updated. The bill of the service A has no overdue attribute, and the bill which is not settled after the bill is paid out at this time can be invalid in the next month No. 5, and a new bill is generated again. The bill requirement of the service B is flexible, and the bill can be issued according to the self-defined time points such as week, month and rolling (automatic issuing once every N days).
At present, the dimensions of charge-out parameters such as charge-out periods, repayment days and consumption periods of different business products are different, the dimension difference of the charge-out parameters is large, and the charge-out programs need to be developed respectively according to product customization, so that the maintenance cost is huge and resources are occupied.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a bill generation method, a bill generation device, an electronic device and a storage medium.
In a first aspect, the present application provides a method for generating a bill, the method comprising:
acquiring configuration files containing basic charge-out rules of at least two different product objects, wherein the configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects;
acquiring signing files containing customized expenditure rules of at least two product objects, wherein the signing files are obtained by configuring a preset customized rule template according to the expenditure rules of the actual requirements of users;
and generating an electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the signing file.
Optionally, the method further comprises:
acquiring basic charge-out parameters needed to be used when at least two different product objects are charged out;
determining unrepeated basic charge-off parameters in all the obtained basic charge-off parameters as basic configuration parameters;
and generating the preset basic rule template based on all the basic configuration parameters.
Optionally, the method further comprises:
obtaining customized expenditure parameters customized when a user signs with at least two different product objects;
determining unrepeated customized expenditure parameters in all the obtained customized expenditure parameters as customized configuration parameters;
and generating the preset customized rule template based on all the customized configuration parameters.
Optionally, the preset basic rule template includes: and configuring parameters according to the cycle type, wherein the step of generating the electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the subscription file comprises the following steps:
searching a cycle type configuration parameter for configuring an expenditure presentation cycle type and configuration information corresponding to the cycle type configuration parameter in the configuration file;
if the configuration information corresponding to the cycle type configuration parameters is periodically billable, searching the cycle customization parameters for configuring the billable cycle and the customization information corresponding to the cycle customization parameters in the subscription file;
calculating the generation period of the electronic bill file of each product object according to the customized information;
and generating the electronic bill file of each product object according to the generation period.
Optionally, the step of generating the electronic bill file for each product object according to the generation cycle includes:
determining bill generation time of the electronic bill files of the product objects according to the generation period;
detecting whether the current time reaches the bill generation time of the electronic bill file closest to any product object;
and if the current time reaches the bill generation time of the latest electronic bill file of any product object, generating the electronic bill file of the product object.
Optionally, the preset basic rule template includes: generating configuration parameters by snapshot; the step of generating the electronic bill file for the product object includes:
searching snapshot generating configuration parameters for configuring whether to allow generating a snapshot and configuration information corresponding to the snapshot generating configuration parameters in the configuration file;
if the configuration information corresponding to the snapshot generating configuration parameters is that the snapshot is allowed to be generated, storing the snapshot of the account detail data recorded between the last bill generating time and the current time;
and generating an electronic bill file of the product object according to the snapshot.
Optionally, the preset basic rule template includes: summarizing type configuration parameters; the step of generating the electronic bill file for the product object includes:
searching a summary type configuration parameter for configuring a summary type and configuration information corresponding to the summary type configuration parameter in the configuration file;
summarizing the account detail data recorded between the record data between the last bill generation time and the current date according to the configuration information corresponding to the summarizing type configuration parameters to obtain summarized data;
and generating an electronic bill file of the product object according to the summarized data.
Optionally, the preset basic rule template includes: billing and interest-bearing configuration parameters; the step of generating the electronic bill file for the product object includes:
searching a bill information configuration parameter for configuring whether bill information is required or not and configuration information corresponding to the bill information configuration parameter in the configuration file;
if the configuration information corresponding to the bill interest configuration parameter is allowed bill interest, carrying out interest accounting on account detail data recorded between the last bill generation time and the current date;
and generating an electronic bill file of the product object according to the interest-bearing result.
In a second aspect, the present application provides a bill generation apparatus, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring configuration files containing basic charge-out rules of at least two different product objects, and the configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects;
the second acquisition module is used for acquiring the signed files containing the customized expenditure presentation rules of at least two product objects, wherein the signed files are obtained by configuring a preset customized rule template according to the expenditure presentation rules of the actual requirements of the user;
and the first generation module is used for generating the electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the contract file.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and a processor for implementing the bill generation method of any one of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a program of a bill generation method, which when executed by a processor, implements the steps of the bill generation method of any of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method comprises the steps of firstly obtaining configuration files containing basic charge-out rules of at least two different product objects, wherein the configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects, then obtaining signing files containing customized charge-out rules of the at least two product objects, wherein the signing files are obtained by configuring the preset customized rule template according to the charge-out rules actually required by a user, and finally generating electronic bill files of the product objects according to the basic charge-out rules in the configuration files and the customized charge-out rules in the signing files.
Because the configuration file in the embodiment of the invention is obtained by configuring the preset basic rule template according to the actual charge-out rule of the product object, and the contracted file is obtained by configuring the preset customized rule template according to the charge-out rule of the actual requirement of the user, different actual charge-out rules of different product objects can be filled into the basic rule template according to a uniform format, different preset customized rules of different product objects are filled into the customized rule template according to the uniform format, and then the electronic bill files of all product objects can be uniformly and automatically generated according to the basic charge-out rule in the configuration file and the customized charge-out rule in the contracted file, that is, the embodiment of the invention only needs to read the basic charge-out rule defined in the configuration file and the configuration parameters in the customized charge-out rule defined in the contracted file, and the electronic bill files of all product objects can be uniformly and automatically generated according to the configuration parameters, and the expenditure presentation program does not need to be developed independently, so that the development efficiency is improved, the maintenance cost is saved, and the resources are saved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a bill generation provided in an embodiment of the present application;
FIG. 2 is a flowchart of step S103 in FIG. 1;
FIG. 3 is a flowchart of step S204 in FIG. 2;
fig. 4 is a block diagram of a bill generation device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 embodiments of the present application, but not all embodiments. 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.
Because the dimensions of the existing accounting parameters such as the accounting period, the repayment date, the consumption period and the like of different business products are different, the dimension difference of the accounting parameters is large, accounting programs need to be developed respectively according to product customization, the maintenance cost is huge, and resources are occupied. To this end, an embodiment of the present invention provides a bill generation method, an apparatus, an electronic device, and a storage medium, where the bill generation method may be applied to a server, as shown in fig. 1, and the method includes the following steps:
step S101, configuration files containing basic charge-out rules of at least two different product objects are obtained.
In the embodiment of the present invention, the product object may refer to a financial product that needs to generate a bill, and may exemplarily refer to a financing product, and the basic billing rule may refer to a rule that needs to be followed when an electronic bill file is automatically generated, for example, the basic billing rule may include: whether one or more of reissue, snapshot, summary type, bill account and the like are allowed or not can be repeated, and the configuration file is obtained by configuring a preset basic rule template according to the actual reimbursement rule of the product object.
In practical application, the preset basic rule template can be generated in the following way: the method comprises the steps of obtaining basic charge parameters needed to be used when at least two different product objects are charged, determining unrepeated basic charge parameters in all the obtained basic charge parameters as basic configuration parameters, and generating the preset basic rule template based on all the basic configuration parameters.
Illustratively, the basic charge parameters to be used when the product object 1 is charged include: A. b, C, D and E, the basic charge parameters that need to be used when the product object 2 is charged include: A. b, F, G and H, only the non-repeated basic charge parameters A, B, C, D, E, F, G and H can be reserved as basic configuration parameters, and then the preset basic rule template containing the basic configuration parameters A, B, C, D, E, F, G and H can be generated.
After the preset basic rule template is generated, the configuration information corresponding to each basic configuration parameter can be filled in the preset basic rule template according to the actual charge-out rule of different product objects, and then the configuration files of different product objects are obtained.
Step S102, obtaining the signing files containing the customized expenditure presentation rules of at least two product objects.
In this embodiment of the present invention, the customized posting rule may refer to a customized posting rule agreed with a user agreement when the user signs up to purchase the product object, for example, the customized posting rule may include: the subscription file is obtained by configuring a preset customized rule template according to the accounting rule actually required by the user.
In practical application, the preset customized rule template can be generated in the following manner: obtaining customized expenditure parameters customized when a user signs with at least two different product objects, determining unrepeated customized expenditure parameters in all the obtained customized expenditure parameters as customized configuration parameters, and generating the preset customized rule template based on all the customized configuration parameters.
Illustratively, the customized billing parameters to be used when the product object 1 is billed include: m, N, O and P, the customized billing parameters that need to be used when the product object 2 is billed include: n, O, and Q, it is possible to retain only the non-repeating customized billing parameters M, N, O, P and Q as the customized configuration parameters, and then generate the preset customized rule template containing the customized configuration parameters M, N, O, P and Q.
After the preset customized rule template is generated, the configuration information corresponding to each customized configuration parameter can be filled in the preset customized rule template according to the growth rule actually required by different users, and then the signing files of different product objects are obtained.
And step S103, generating electronic bill files of the product objects according to the basic charge-out rules in the configuration files and the customized charge-out rules in the subscription files.
In this step, the account detail data of each product object may be processed according to the basic accounting rule in the configuration file and the customized accounting rule in the contract file, and an electronic bill file including the processed account detail data may be generated.
The method comprises the steps of firstly obtaining configuration files containing basic charge-out rules of at least two different product objects, wherein the configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects, then obtaining signing files containing customized charge-out rules of the at least two product objects, wherein the signing files are obtained by configuring the preset customized rule template according to the charge-out rules actually required by a user, and finally generating electronic bill files of the product objects according to the basic charge-out rules in the configuration files and the customized charge-out rules in the signing files.
Because the configuration file in the embodiment of the invention is obtained by configuring the preset basic rule template according to the actual charge-out rule of the product object, and the contracted file is obtained by configuring the preset customized rule template according to the charge-out rule of the actual requirement of the user, different actual charge-out rules of different product objects can be filled into the basic rule template according to a uniform format, different preset customized rules of different product objects are filled into the customized rule template according to the uniform format, and then the electronic bill files of all product objects can be uniformly and automatically generated according to the basic charge-out rule in the configuration file and the customized charge-out rule in the contracted file, that is, the embodiment of the invention only needs to read the basic charge-out rule defined in the configuration file and the configuration parameters in the customized charge-out rule defined in the contracted file, and the electronic bill files of all product objects can be uniformly and automatically generated according to the configuration parameters, and the expenditure presentation program does not need to be developed independently, so that the development efficiency is improved, the maintenance cost is saved, and the resources are saved.
In another embodiment of the present invention, as shown in fig. 2, the preset basic rule template includes: a cycle type configuration parameter; the step S103 may include:
step S201, searching a cycle type configuration parameter for configuring an expenditure presentation cycle type and configuration information corresponding to the cycle type configuration parameter in the configuration file;
in this embodiment of the present invention, the configuration information corresponding to the cycle type configuration parameter may include: periodic charge-out or non-periodic charge-out, etc.
Step S202, if the configuration information corresponding to the cycle type configuration parameters is periodically billable, searching the cycle customization parameters for configuring the billable cycle and the customization information corresponding to the cycle customization parameters in the subscription file;
for example, the periodic customization parameters for configuring the charge-out period in the subscription file may include: the payment period, the settlement day or the consumption period, etc. the customization information corresponding to the period customization parameter is exemplary, and may be one month, two weeks or one week, etc.
Step S203, calculating the generation cycle of the electronic bill file of each product object according to the customized information;
in this step, the customized information may be calculated through calculation methods such as unit conversion, so as to obtain a generation cycle, for example, if the cycle customization parameter is an account-out cycle, the customized information corresponding to the cycle customization parameter is one month, that is: the charge-out period is one month, the generation period of the electronic bill file can be flexibly adjusted according to different months, for example, 28 days in 2 months (29 days in leap year), 31 days in 3 months, 30 days in 4 months, and the like.
And step S204, generating the electronic bill file of each product object according to the generation period.
In practical applications, assuming that the generation cycle of a certain time is 30 days, the electronic bill file of the next month may be generated 30 days after the electronic bill file of the previous month, and so on.
The embodiment of the invention can automatically calculate the generation period of the electronic bill file according to the customized information of the user in the contract file, and generate the electronic bill file of each product object according to the calculated generation period, thereby realizing the uniform charge-out of different product objects without independently developing charge-out programs, improving the development efficiency, saving the maintenance cost and saving resources.
In still another embodiment of the present invention, as shown in fig. 3, step S204 may include:
step S301, determining the bill generation time of the electronic bill file of each product object according to the generation period;
in practical applications, assuming that the generation period is one month, in order that the complete account detail data per month can be counted, the bill generation time may be set to 1 day per month, or in order to leave more accounting time, the bill generation time may be set to 5 days per month, and so on.
Step S302, detecting whether the current time reaches the bill generation time of the electronic bill file nearest to any product object;
in practical applications, the current date may be compared to the date of the bill generation time at a specified time of day, and so forth.
If the current time reaches the bill generation time of the latest electronic bill file of any product object, step S303 generates an electronic bill file of the product object.
In an embodiment of the present invention, the preset basic rule template includes: generating configuration parameters by snapshot; therefore, in this step, a snapshot generating configuration parameter for configuring whether or not to allow the snapshot to be generated and configuration information corresponding to the snapshot generating configuration parameter may be searched for in the configuration file, and if the configuration information corresponding to the snapshot generating configuration parameter is that the snapshot is allowed to be generated, a snapshot of the account detail data recorded between the last bill generating time and the current time is stored, and an electronic bill file of the product object is generated according to the snapshot.
In one embodiment of the present invention, the preset basic rule template includes: summarizing type configuration parameters; therefore, in this step, summary type configuration parameters for configuring the summary type and configuration information corresponding to the summary type configuration parameters may be searched in the configuration file, the account detail data recorded between the last bill generation time and the record data between the last bill generation time and the current date may be summarized according to the configuration information corresponding to the summary type configuration parameters, so as to obtain summary data, and an electronic bill file of the product object may be generated according to the summary data.
In one embodiment of the present invention, the preset basic rule template includes: billing and interest-bearing configuration parameters; therefore, in this step, the billing information configuration parameter for configuring whether billing information needs to be performed or not and the configuration information corresponding to the billing information configuration parameter may be searched in the configuration file, and if the configuration information corresponding to the billing information configuration parameter is allowed billing information, the electronic billing file of the product object is generated according to the result of the billing by charging the account detail data recorded between the last billing generation time and the current date.
According to the embodiment of the invention, when the bill generation time of the electronic bill file nearest to any product object is automatically detected, the electronic bill file of each product object is automatically generated according to the preset basic charge-out rule in the configuration file, so that unified charge-out of different product objects is realized, a charge-out program does not need to be separately developed, the development efficiency is improved, the maintenance cost is saved, and the resources are saved.
In still another embodiment of the present invention, there is also provided a bill generation apparatus, as shown in fig. 4, the apparatus including:
a first obtaining module 11, configured to obtain configuration files containing basic charge-out rules of at least two different product objects, where the configuration files are obtained by configuring a preset basic rule template according to actual charge-out rules of the product objects;
a second obtaining module 12, configured to obtain a subscription file containing a customized expenditure presentation rule of at least two product objects, where the subscription file is obtained by configuring a preset customized rule template according to an expenditure presentation rule of an actual demand of a user;
and the first generating module 13 is configured to generate an electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the subscription file.
The method comprises the steps of firstly obtaining configuration files containing basic charge-out rules of at least two different product objects, wherein the configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects, then obtaining signing files containing customized charge-out rules of the at least two product objects, wherein the signing files are obtained by configuring the preset customized rule template according to the charge-out rules actually required by a user, and finally generating electronic bill files of the product objects according to the basic charge-out rules in the configuration files and the customized charge-out rules in the signing files.
Because the configuration file in the embodiment of the invention is obtained by configuring the preset basic rule template according to the actual charge-out rule of the product object, and the contracted file is obtained by configuring the preset customized rule template according to the charge-out rule of the actual requirement of the user, different actual charge-out rules of different product objects can be filled into the basic rule template according to a uniform format, different preset customized rules of different product objects are filled into the customized rule template according to the uniform format, and then the electronic bill files of all product objects can be uniformly and automatically generated according to the basic charge-out rule in the configuration file and the customized charge-out rule in the contracted file, that is, the embodiment of the invention only needs to read the basic charge-out rule defined in the configuration file and the configuration parameters in the customized charge-out rule defined in the contracted file, and the electronic bill files of all product objects can be uniformly and automatically generated according to the configuration parameters, and the expenditure presentation program does not need to be developed independently, so that the development efficiency is improved, the maintenance cost is saved, and the resources are saved.
In yet another embodiment of the present invention, the method further comprises:
the third acquisition module is used for acquiring basic charge parameters which need to be used when at least two different product objects are charged;
the first determining module is used for determining unrepeated basic charge-out parameters in all the obtained basic charge-out parameters as basic configuration parameters;
and the second generation module is used for generating the preset basic rule template based on all the basic configuration parameters.
In yet another embodiment of the present invention, the method further comprises:
the fourth acquisition module is used for acquiring customized expenditure parameters customized when the user signs a contract with at least two different product objects;
the second determining module is used for determining unrepeated customized expenditure parameters in all the obtained customized expenditure parameters as customized configuration parameters;
and the third generation module is used for generating the preset customized rule template based on all the customized configuration parameters.
In another embodiment of the present invention, the preset basic rule template includes: a cycle type configuration parameter, and the first generation module 13 includes:
the first searching unit is used for searching a cycle type configuration parameter for configuring an expenditure presentation cycle type and configuration information corresponding to the cycle type configuration parameter in the configuration file;
a second searching unit, configured to search, if the configuration information corresponding to the cycle type configuration parameter is periodically billable, a cycle customization parameter for configuring a billing cycle and customization information corresponding to the cycle customization parameter in the subscription file;
the calculation unit is used for calculating the generation cycle of the electronic bill file of each product object according to the customized information;
and the generating unit is used for generating the electronic bill file of each product object according to the generating period.
In another embodiment of the present invention, the generating unit includes:
the determining submodule is used for determining the bill generating time of the electronic bill file of each product object according to the generating period;
the detection submodule is used for detecting whether the current time reaches the bill generation time of the electronic bill file closest to any product object;
and the generation submodule is used for generating the electronic bill file of the product object if the current time reaches the bill generation time of the electronic bill file which is the latest of any product object.
In another embodiment of the present invention, the preset basic rule template includes: generating configuration parameters by snapshot; the generation submodule is further configured to:
searching snapshot generating configuration parameters for configuring whether to allow generating a snapshot and configuration information corresponding to the snapshot generating configuration parameters in the configuration file;
if the configuration information corresponding to the snapshot generating configuration parameters is that the snapshot is allowed to be generated, storing the snapshot of the account detail data recorded between the last bill generating time and the current time;
and generating an electronic bill file of the product object according to the snapshot.
In another embodiment of the present invention, the preset basic rule template includes: summarizing type configuration parameters; the generation submodule is further configured to:
searching a summary type configuration parameter for configuring a summary type and configuration information corresponding to the summary type configuration parameter in the configuration file;
summarizing the account detail data recorded between the record data between the last bill generation time and the current date according to the configuration information corresponding to the summarizing type configuration parameters to obtain summarized data;
and generating an electronic bill file of the product object according to the summarized data.
In another embodiment of the present invention, the preset basic rule template includes: billing and interest-bearing configuration parameters; the generation submodule is further configured to:
searching a bill information configuration parameter for configuring whether bill information is required or not and configuration information corresponding to the bill information configuration parameter in the configuration file;
if the configuration information corresponding to the bill interest configuration parameter is allowed bill interest, carrying out interest accounting on account detail data recorded between the last bill generation time and the current date;
and generating an electronic bill file of the product object according to the interest-bearing result.
In another embodiment of the present invention, an electronic device is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the bill generation method in the embodiment of the method when executing the program stored in the memory.
In the electronic device provided by the embodiment of the present invention, the processor implements, by executing the program stored in the memory, that the configuration files containing the basic charge-out rules of at least two different product objects are obtained by first obtaining the configuration files containing the basic charge-out rules of the at least two different product objects, where the configuration files are obtained by configuring the preset basic rule templates according to the actual charge-out rules of the product objects, and then obtaining the subscription files containing the customized charge-out rules of the at least two product objects, where the subscription files are obtained by configuring the preset customized rule templates according to the charge-out rules actually required by the user, and finally, the electronic bill files of the product objects can be generated according to the basic charge-out rules in the configuration files and the customized charge-out rules in the subscription files. Because the configuration file in the embodiment of the invention is obtained by configuring the preset basic rule template according to the actual charge-out rule of the product object, and the contracted file is obtained by configuring the preset customized rule template according to the charge-out rule of the actual requirement of the user, different actual charge-out rules of different product objects can be filled into the basic rule template according to a uniform format, different preset customized rules of different product objects are filled into the customized rule template according to the uniform format, and then the electronic bill files of all product objects can be uniformly and automatically generated according to the basic charge-out rule in the configuration file and the customized charge-out rule in the contracted file, that is, the embodiment of the invention only needs to read the basic charge-out rule defined in the configuration file and the configuration parameters in the customized charge-out rule defined in the contracted file, and the electronic bill files of all product objects can be uniformly and automatically generated according to the configuration parameters, and the expenditure presentation program does not need to be developed independently, so that the development efficiency is improved, the maintenance cost is saved, and the resources are saved.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In still another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a program of a bill generation method, which when executed by a processor, implements the steps of the bill generation method described in the foregoing method embodiment.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A bill generation method, the method comprising:
acquiring configuration files containing basic charge-out rules of at least two different product objects, wherein the configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects;
acquiring signing files containing customized expenditure rules of at least two product objects, wherein the signing files are obtained by configuring a preset customized rule template according to the expenditure rules of the actual requirements of users;
and generating an electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the signing file.
2. The bill generation method according to claim 1, wherein the method further comprises:
acquiring basic charge-out parameters needed to be used when at least two different product objects are charged out;
determining unrepeated basic charge-off parameters in all the obtained basic charge-off parameters as basic configuration parameters;
and generating the preset basic rule template based on all the basic configuration parameters.
3. The bill generation method according to claim 1, wherein the method further comprises:
obtaining customized expenditure parameters customized when a user signs with at least two different product objects;
determining unrepeated customized expenditure parameters in all the obtained customized expenditure parameters as customized configuration parameters;
and generating the preset customized rule template based on all the customized configuration parameters.
4. The bill generation method according to claim 1, wherein the preset basic rule template includes: and configuring parameters according to the cycle type, wherein the step of generating the electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the subscription file comprises the following steps:
searching a cycle type configuration parameter for configuring an expenditure presentation cycle type and configuration information corresponding to the cycle type configuration parameter in the configuration file;
if the configuration information corresponding to the cycle type configuration parameters is periodically billable, searching the cycle customization parameters for configuring the billable cycle and the customization information corresponding to the cycle customization parameters in the subscription file;
calculating the generation period of the electronic bill file of each product object according to the customized information;
and generating the electronic bill file of each product object according to the generation period.
5. The bill generation method according to claim 4, wherein the step of generating the electronic bill file for each product object in accordance with the generation cycle comprises:
determining bill generation time of the electronic bill files of the product objects according to the generation period;
detecting whether the current time reaches the bill generation time of the electronic bill file closest to any product object;
and if the current time reaches the bill generation time of the latest electronic bill file of any product object, generating the electronic bill file of the product object.
6. The bill generation method according to claim 5, wherein the preset basic rule template comprises: generating configuration parameters by snapshot; the step of generating the electronic bill file for the product object includes:
searching snapshot generating configuration parameters for configuring whether to allow generating a snapshot and configuration information corresponding to the snapshot generating configuration parameters in the configuration file;
if the configuration information corresponding to the snapshot generating configuration parameters is that the snapshot is allowed to be generated, storing the snapshot of the account detail data recorded between the last bill generating time and the current time;
and generating an electronic bill file of the product object according to the snapshot.
7. The bill generation method according to claim 5, wherein the preset basic rule template comprises: summarizing type configuration parameters; the step of generating the electronic bill file for the product object includes:
searching a summary type configuration parameter for configuring a summary type and configuration information corresponding to the summary type configuration parameter in the configuration file;
summarizing the account detail data recorded between the record data between the last bill generation time and the current date according to the configuration information corresponding to the summarizing type configuration parameters to obtain summarized data;
and generating an electronic bill file of the product object according to the summarized data.
8. The bill generation method according to claim 5, wherein the preset basic rule template comprises: billing and interest-bearing configuration parameters; the step of generating the electronic bill file for the product object includes:
searching a bill information configuration parameter for configuring whether bill information is required or not and configuration information corresponding to the bill information configuration parameter in the configuration file;
if the configuration information corresponding to the bill interest configuration parameter is allowed bill interest, carrying out interest accounting on account detail data recorded between the last bill generation time and the current date;
and generating an electronic bill file of the product object according to the interest-bearing result.
9. A bill generation apparatus, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring configuration files containing basic charge-out rules of at least two different product objects, and the configuration files are obtained by configuring a preset basic rule template according to the actual charge-out rules of the product objects;
the second acquisition module is used for acquiring the signed files containing the customized expenditure presentation rules of at least two product objects, wherein the signed files are obtained by configuring a preset customized rule template according to the expenditure presentation rules of the actual requirements of the user;
and the first generation module is used for generating the electronic bill file of each product object according to the basic charge-out rule in the configuration file and the customized charge-out rule in the contract file.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for realizing the bill generation method according to any one of claims 1 to 8 when executing the program stored in the memory.
11. A computer-readable storage medium, characterized in that a program of a bill generation method is stored on the computer-readable storage medium, and the program of the bill generation method realizes the steps of the bill generation method according to any one of claims 1 to 8 when executed by a processor.
CN202010209069.0A 2020-03-23 2020-03-23 Bill generation method and device, electronic equipment and storage medium Pending CN111429243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209069.0A CN111429243A (en) 2020-03-23 2020-03-23 Bill generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209069.0A CN111429243A (en) 2020-03-23 2020-03-23 Bill generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111429243A true CN111429243A (en) 2020-07-17

Family

ID=71549715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209069.0A Pending CN111429243A (en) 2020-03-23 2020-03-23 Bill generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111429243A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111631A (en) * 2021-04-15 2021-07-13 北京同邦卓益科技有限公司 Data processing method, device, equipment, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818508A (en) * 2017-11-10 2018-03-20 国信嘉宁数据技术有限公司 A kind of e bill merges the method for charging
CN108268593A (en) * 2017-12-08 2018-07-10 中国平安财产保险股份有限公司 Credit card is insured processing method, device, server and the storage medium of information
CN108345634A (en) * 2017-12-29 2018-07-31 迈迪信息技术有限公司 A kind of form design method, system and storage medium Internet-based
CN109685668A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Order batch processing method, device, computer equipment and storage medium
CN109978223A (en) * 2019-01-08 2019-07-05 阿里巴巴集团控股有限公司 Generate the high performance method and its device of account balance snapshot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818508A (en) * 2017-11-10 2018-03-20 国信嘉宁数据技术有限公司 A kind of e bill merges the method for charging
CN108268593A (en) * 2017-12-08 2018-07-10 中国平安财产保险股份有限公司 Credit card is insured processing method, device, server and the storage medium of information
CN108345634A (en) * 2017-12-29 2018-07-31 迈迪信息技术有限公司 A kind of form design method, system and storage medium Internet-based
CN109685668A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Order batch processing method, device, computer equipment and storage medium
CN109978223A (en) * 2019-01-08 2019-07-05 阿里巴巴集团控股有限公司 Generate the high performance method and its device of account balance snapshot

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111631A (en) * 2021-04-15 2021-07-13 北京同邦卓益科技有限公司 Data processing method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN109961365B (en) Account receiving record processing method and system based on block chain intelligent contract
CN110264214B (en) Transaction bill generation and verification method, device and equipment
US20120239558A1 (en) Method and systems for efficiently processing large volumes of complex small value financial transactions
CN108805632B (en) Charging method and device
US11887197B2 (en) System and method for a revenue allocation engine for use with subscription economy
CN112258306B (en) Account information checking method, device, electronic equipment and storage medium
CN111429243A (en) Bill generation method and device, electronic equipment and storage medium
CN111311215A (en) E-commerce platform settlement method and device, storage medium and settlement equipment
JP2018022230A (en) Payment management device and payment management method
CN115719267A (en) Use right asset management method and device based on ERP system
CN115718762A (en) Fee calculation method, device, electronic equipment, storage medium and product
CN111429125B (en) Account management method and device, storage medium and electronic equipment
CN114239519A (en) Credit investigation data processing method and device, electronic equipment and computer readable medium
CN103959319A (en) Configurable billing with subscriptions having conditional components
CN114266609A (en) Sales invoice issuing method and device
CN113159789A (en) Cross-bank transfer and remittance method and device
CN111429259A (en) Method and device for processing interest data
CN110349016A (en) Client's accrediting amount measuring method and system
CN111415244B (en) Method and device for processing data
JP2001229284A (en) Rate collection system for electricity, gas and water
CN110675235B (en) Financial data processing method and device, electronic equipment and storage medium
CN115796794A (en) Automatic account checking method and device based on RPA technology and terminal equipment
CN115131115A (en) Bill generation method and device and electronic equipment
CN114612172A (en) Virtual asset increment calculation method and device, storage medium and electronic equipment
CN116385190A (en) Automatic account checking 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