Invoicing method and system of multi-invoice-type invoices, electronic equipment and medium
By generating and rendering configuration templates and style files for multiple invoices, the invoice amount is automatically calculated, which solves the inefficient problem of invoice makers checking data, and achieves the accuracy and efficient generation of invoice data.
Patent Information
- Application Number
- CN202411257760.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, invoice billers need to check the accuracy of invoice data and amounts, resulting in a decrease in invoice efficiency and deterioration of accuracy and effect.
Provide a multi-invoice invoice issuance method and system. By obtaining invoice application information, generating invoice configuration templates of different types of invoices, determining the target invoice configuration template, obtaining invoice file format rules and tax rate rules, rendering invoice style files, and Automatically calculate the invoice amount data based on the application information, fill it into the invoice style file, and generate the target invoice file.
It improves the invoice efficiency, reduces the number of round-back and repeated operations of invoice application information, realizes the accuracy and legality of invoice data, and displays the generated invoice file visual page, supports downloading, and provides a convenient and efficient invoice process.
Smart Images

Figure CN119130573A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic invoices, and in particular to an invoicing method, system, electronic equipment and medium for issuing multiple types of invoices. Background Art
[0002] In the related art, the invoicer needs to check the accuracy of the invoicing data and amount, and needs to fill in the relevant invoice information, which delays the efficiency of invoicing and makes the accuracy and effect of bill issuance worse. Summary of the invention
[0003] Based on this, it is necessary to provide an invoicing method, system, electronic device and medium for multiple types of invoices that can improve the efficiency of invoicing in response to the above technical problems.
[0004] A method for issuing multiple types of invoices, comprising:
[0005] Obtain invoicing application information, and generate invoice configuration templates for different invoice types of the invoicing company according to the invoicing application information;
[0006] Determine a target invoice configuration template from the multiple invoice configuration templates, and obtain an invoice file format rule and a tax rate rule corresponding to the target invoice configuration template;
[0007] According to the invoice file format rule, an invoice format file is rendered, and according to the tax rate rule and the invoice application information, various invoice amount data are determined;
[0008] The invoicing application information and each item of invoice amount data are rendered into an invoice format file to generate a target invoice file.
[0009] A multi-invoice invoice issuing system, comprising:
[0010] The data center service module is used to obtain invoicing application information, and generate invoice configuration templates of different invoice types for the invoicing company according to the invoicing application information; and determine a target invoice configuration template from a plurality of the invoice configuration templates;
[0011] The bill template service module is used to obtain the invoice file format rules corresponding to the target invoice configuration template, and render the invoice style file according to the invoice file format rules;
[0012] The invoice service module is used to obtain the tax rate rules, determine the invoice amount data according to the tax rate rules and the invoice application information, and render the invoice application information and the invoice amount data into the invoice style file to generate the target invoice file.
[0013] An electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of the method for issuing multiple types of invoices are implemented.
[0014] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of issuing the above-mentioned multiple-ticket-type invoices.
[0015] The above-mentioned invoicing method, system, electronic device and medium for multiple invoice types obtain invoicing application information, and generate invoice configuration templates for different invoice types of the invoicing company according to the invoicing application information, so as to dynamically configure the invoicing application information, and facilitate the comparison and viewing of the invoicing staff, and reduce the number of times and repeated operations of filling in the invoicing application information. Then, the invoice file format rules and tax rate rules corresponding to the target invoice configuration template are obtained, and the amount data of each invoice is determined according to the tax rate rules and the invoicing application information, and the automatic calculation and assignment of the amount data is realized, so that the accuracy and legality of the invoice data generation are ensured, and the invoice style file is rendered according to the invoice file format rules to ensure that the generated invoice style can be accurate and in compliance with regulations. Finally, the invoice application information and the amount data of each invoice are filled into the corresponding position of the invoice style file, and the target invoice file is generated, so as to realize the automatic filling of the invoice application information and the invoice amount data, and the visual page display of the target invoice file can be generated, and the download of the target invoice file is supported, providing a convenient and efficient invoicing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a process for issuing multiple types of invoices in one embodiment;
[0017] Figure 2 A schematic diagram of a process for generating an invoice configuration template in one embodiment;
[0018] Figure 3 A schematic diagram of a process for generating a target invoice file in one embodiment;
[0019] Figure 4 A schematic diagram of a process for rendering an invoice file in a set file format in one embodiment;
[0020] Figure 5 It is a structural block diagram of an invoice issuing system in one embodiment;
[0021] Figure 6 It is a functional block diagram of an invoice issuing system in one embodiment;
[0022] Figure 7 The figure is a flowchart of an invoice issuance system in one embodiment. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0024] The implementation details of the technical solution of the embodiment of the present application are described in detail below.
[0025] In one embodiment, Figure 1 As shown, a method for applying for multiple types of invoices is provided, and the method may include the following steps:
[0026] Step S101, obtaining invoicing application information, and generating invoice configuration templates for different invoice types of the invoicing company according to the invoicing application information.
[0027] The invoice application information records the data required for invoice issuance, including the purchaser's information, product information, seller information and invoice requirements. Among them, the purchaser's information refers to the relevant information of the party purchasing the goods, including the purchaser's name, purchaser's taxpayer identification number, purchaser's address, contact information, etc.; the product information refers to the relevant information of the specific goods purchased, including the description of the goods (such as specifications, models), quantity, unit price, total amount, etc.; the seller's information refers to the relevant information of the party selling the goods, including the seller's name, seller's taxpayer identification number, seller's address, contact information, etc.; the invoice requirements mainly include the type of invoice that the invoicer needs to apply for, as well as other special requirements, such as whether remarks information and additional instructions are required.
[0028] The invoicing clerk collects, classifies and organizes the purchaser information, product information and seller information according to the invoicing business needs, and fills in the relevant invoicing application information in the invoicing application form of the invoice invoicing system, so that the invoice invoicing system can obtain the invoicing application information.
[0029] After obtaining the invoicing application information, invoice configuration templates for different invoice types of the invoicing company are generated according to the invoicing application information.
[0030] It should be noted that invoice type and invoice type are two different classification bases. Invoice type refers to different types of invoices divided according to tax law regulations or business needs. Common invoice types include: VAT general invoice, VAT special invoice, machinery invoice, transportation invoice and service invoice, etc. For an invoice of the same type, there are multiple types of invoices, and each type of invoice corresponds to an invoice format. Taking VAT special invoice as an example, it can be divided into two types of invoices, namely: VAT special invoice and VAT electronic special invoice.
[0031] The invoicer has already selected the invoice type to be issued in the invoicing application information, and one invoice type includes different invoice types. Based on this, the invoice issuance system automatically configures the invoicing application information and invoice amount data to generate invoice configuration templates for different invoice types for the invoicing company.
[0032] In actual applications, the invoice issuance system will output the invoice configuration template on the front-end page, so that the invoicer can dynamically switch to view different invoice configuration templates and select the invoice configuration template to use according to needs. Among them, the invoice configuration template is essentially the initial preview effect of the invoice file. The invoice configuration template standardizes the typesetting format of the invoice file. By browsing and viewing the invoice configuration template online, the invoicer can know the effect of writing the invoice application information and invoice amount data in the invoice template of a certain ticket type, and can have a preliminary understanding of the styles of invoice files of different ticket types.
[0033] In this embodiment, the invoice configuration template is obtained by dynamically configuring the invoice application information, thereby improving the efficiency of inputting and switching the invoice application information. In addition, the invoice system can switch back and forth between the acquisition and use of the invoice configuration template according to the different invoicing companies, thereby reducing the personnel overhead costs. In addition, the invoicer can generate invoice configuration templates of multiple ticket types by uploading the invoicing application information once, which is convenient for the invoicer to compare and view, and reduces the number of times the invoicing data is filled back and forth and repeated operations. And by generating invoice configuration templates of multiple ticket types in one invoicing operation, the dynamic selectivity and quickness and convenience of invoicing are greatly improved.
[0034] In one embodiment, Figure 2 As shown, Figure 2 A schematic diagram of the process of generating an invoice configuration template is shown.
[0035] Step S201, bind the invoice application information with the tax number corresponding to the invoicing company, and determine the invoice template files of different invoice types according to the tax number and the invoice type applied for.
[0036] The invoice issuance system will bidirectionally bind the invoice application information with the tax number corresponding to the invoicing company. Through the tax number of the invoicing company and the type of invoice applied for, the tax service interface of the invoicing company's location will be called to obtain invoice template files of different invoice types that match the invoice type that is not applied for.
[0037] In addition, the invoice template file may also be generated in the previous invoicing process. In the previous invoicing process, the rendered invoice style file containing the item information is stored as the invoice template file in the database of the invoice invoicing system. If the item information in the current invoicing application information is similar to or the same as the item information in the previous invoicing application information, for example, if the invoice is issued for the same item, the corresponding invoice template file can be obtained in the database, and the data for this invoicing is dynamically configured based on the invoice template file.
[0038] Step S202: Fill the invoicing application information into the invoice template file.
[0039] The invoicing application information is drawn onto the acquired invoice template file, thereby generating the invoicing company's invoice template file. These invoice template files are configured and stored in the library for dynamic switching and selection by the invoicing clerk.
[0040] Step S102, determining a target invoice configuration template from multiple invoice configuration templates, and obtaining invoice file format rules and tax rate rules corresponding to the target invoice configuration template.
[0041] The invoice issuing system interacts with the invoicer through Web interactive technology. The invoicer can browse and switch multiple invoice configuration templates according to the invoicing requirements, and finally select an invoice configuration template that meets the invoicing requirements from multiple invoice configuration templates. The selected invoice configuration template is the target configuration template. In one implementation, the invoicer can select the target invoice configuration template from multiple invoice configuration templates according to the type of invoice to be invoiced.
[0042] After the target invoice configuration template is determined, it means that the invoicer has determined the invoice type and the corresponding invoice style, and then needs to start drawing the invoice file corresponding to the target invoice configuration template. Before drawing the invoice file, it is necessary to obtain the invoice file format rules corresponding to the target invoice configuration template so that the invoice issuance system can render the style of the invoice file, and it is also necessary to obtain the tax rate rules so that the invoice issuance system can calculate the invoice amount data in the invoice file.
[0043] It is understandable that factors such as different regions and different invoice types will affect the final style of the invoice file. In order to ensure that the style of the generated invoice file is correct, the invoice issuance system calls the tax service interface of the invoicing company's location to obtain the invoice file format rules corresponding to the target invoice configuration template. That is, this invoice file format rule is the invoice file format rule for the invoice type selected by the invoicer at the invoicing company's location.
[0044] In this embodiment, the invoice issuing system can automatically obtain the invoice file format rules of the invoice types that can be issued by the tax system through the tax service interface. The invoice issuing system generates corresponding templates and style cases through the obtained invoice file format rules, so as to obtain all standard templates, specifically the invoice format and style case files of each province, city and district, and thus the invoice issuing system can support the invoicing business needs of each province, city and district.
[0045] It is understandable that different regions may have different tax rate rules, and tax rates in different regions may differ. Using the wrong tax rate rules may lead to inaccurate tax calculations. Based on this, the invoice invoicing system calls the tax service interface of the province, city, and district where the invoicing company is located according to the region where the invoicing company is located, and obtains the tax rate rules of the province, city, and district where the invoicing company is located. The obtained tax rate rules stipulate the tax rates, tax bases, and tax calculation methods for different tax items in the location of the invoicing company, and can correctly calculate the tax amount according to the tax rate rules.
[0046] Step S103, according to the invoice file format rules, the invoice format file is rendered and obtained, and according to the tax rate rules and the invoice application information, the invoice amount data of each item is determined.
[0047] The invoice file format rules define the style of the invoice file, including the structure and layout of the invoice. After obtaining the invoice file format rules, select a suitable rendering tool and render the invoice style file on the front-end page according to the parsed invoice format rules. Here, it can be ensured that the rendered invoice style file complies with the regulations of the tax system, thereby ensuring that the style of the target invoice file generated in the end is accurate.
[0048] The invoice issuance system can calculate the invoice amount data according to the obtained tax rate rules and invoice application information. Specifically, the product information in the invoice application information records the unit price, quantity and amount of each product. The tax payable is automatically calculated according to the tax rate in the tax rate rules and the product amount. Then the product amount and the tax amount are added to calculate the total amount of the invoice. If other expenses (such as operations, discounts, etc.) are also recorded in the product information, the amount of other expenses is calculated and added to the invoice total.
[0049] In actual applications, during the calculation process of various invoice amount data, the invoice application information will be calculated according to the tax-inclusive data template and the tax-exclusive data template, so as to obtain the tax-inclusive invoice amount data and the tax-exclusive invoice amount data.
[0050] Furthermore, the invoice issuing system can record the operating habits of the invoicer, such as the selected invoice type, amount processing method, tax rate setting, etc. When the invoice issuing operation is performed next time, the invoicer is automatically identified, and the corresponding operating habit information is matched according to the previous operation records. According to the invoicer's last operation rules and calculation methods, the invoice amount data is automatically calculated to ensure the accuracy and consistency of the amount, thereby improving the efficiency of invoicing.
[0051] Based on this, the invented system can automatically obtain the corresponding tax rate rules, and according to the tax rate rules and invoice application information, automatically calculate the accurate invoice amount data, thereby avoiding errors in the invoice amount data due to manual operation of the invoice issuer.
[0052] Step S104, rendering the invoicing application information and various invoice amount data into an invoice format file to generate a target invoice file.
[0053] Render the invoicing application information and various invoice amount data to the corresponding position of the invoice style file. Specifically, process the invoicing application information and invoice amount data in the form of data stream to ensure that the data is transmitted in a certain data stream format, and transmit the invoicing application information and invoice amount data to the front-end page in the form of data stream. Then obtain the target element that needs to be filled with data in the front-end page, and then use string concatenation or template syntax to create the HTML content to be filled, including text and style, based on the filled data. Finally, insert the created HTML content into the selected target element through DOM operation, thereby realizing dynamic filling and rendering of data and obtaining the invoice file required by the invoicer.
[0054] In actual applications, before rendering the invoicing application information and invoice amount data, the invoice amount data will be approved and converted into a standard format to ensure that the error is guaranteed to 1%, thereby ensuring that the amount data in the invoice file is correct.
[0055] In actual applications, the invoice style file containing the item information can be stored in the database as an invoice template file, so that when the same item is invoiced next time, the corresponding invoice template file can be retrieved from the database for dynamic data configuration.
[0056] In one embodiment, Figure 3 As shown, Figure 3 A schematic diagram of the process of generating a target invoice file is shown.
[0057] Step S301, rendering the invoicing application information and various invoice amount data into an invoice file of a set file format.
[0058] Here, according to the invoice application information and various invoice amount data, based on the invoice file format rules, according to the invoice file format rules, through the corresponding tools or programs, the invoice file in the set file format is first rendered. The set file format is usually a PDF file format. The rendering process of the set file format can refer to the rendering process in step S104.
[0059] The rendered invoice file is stored in the database of the invoice system to ensure the persistent storage and management of the invoice file, so that the invoicer can view the invoice file in the invoice system and perform subsequent operations on the invoice file.
[0060] Step S302, uploading the invoice file to the tax system for verification, obtaining the verified target invoice file, and storing the target invoice file in the server.
[0061] It should be noted that the invoice document is generated internally by the invoice issuance system and has internal validity. It is valid within the invoicing company and can be circulated and used by the staff within the invoicing company. However, the invoice document generated by the invoice issuance system does not have external validity because the invoice document has not been authenticated by the tax system and is not an invoice document actually issued by the tax system.
[0062] Based on this, the invoice file needs to be uploaded to the tax system for verification. After the tax system verifies the relevant information in the invoice file, it will return the verified target invoice file to the invoice system, and the invoice issuance system will store the target invoice file in the server of the invoice system. The difference between the target invoice file and the invoice file is that the target invoice file has the seal of the tax system, which means that the target invoice file is certified and issued by the tax system and has legal effect.
[0063] In actual application, the invoicer can request the invoice system to obtain the address link of the target invoice file on the server, and the invoice system will return the address link of the target invoice file. Then, the address link of the target invoice file can be input into the browser, and the target invoice file can be parsed online, so that the target invoice file can be downloaded, viewed and printed.
[0064] In actual applications, the generation of the target invoice file can be triggered by a function button in the invoice issuance system. For example, the front-end page for previewing the invoice file includes an invoice function button. When the invoice function button is triggered by the invoice issuer, it indicates that the invoice issuer needs to issue a verified target invoice file from the tax system. This method enables the invoice issuer to issue a target invoice file verified by the tax system after fully confirming the invoice issuance requirements, such as whether the invoice type needs to be changed, whether the relevant information in the invoice file needs to be changed, etc., which can effectively reduce the discard rate of invoice files and ensure the issuance of accurate invoice files.
[0065] For example, in an application scenario, Company A successfully sells a product to Company B. After collecting relevant information and data, the invoicer of Company A enters the invoicing application information into the invoice invoicing system. After a series of processing of the invoice invoicing application information by the invoice invoicing system, an invoice file is generated. At this time, the invoice file has not been authenticated by the tax system. In the case that Company A decides to provide Company B with a target invoice file authenticated by the tax system, the invoicer of Company A applies for invoicing in the invoice invoicing system, so that the invoice invoicing system uploads the invoice file to the tax system for verification, obtains the authenticated target invoice file, stores the target invoice file in the server, and returns the address link of the target invoice file in the server to the invoicer. The invoicer of Company A can forward the address link of the target invoice file to Company B, so that Company B can obtain the target invoice file issued by Company A through the address link.
[0066] In one embodiment, Figure 4 As shown, Figure 4 A schematic diagram showing a flow chart of rendering an invoice file in a set file format.
[0067] Step S401: If the target invoice configuration template is a paper invoice, a blank paper invoice format file matching the target invoice configuration template is rendered.
[0068] In the traditional offline invoicing process, the invoicing company prepares and manages a set of blank paper invoices, which have been numbered and formatted. When an invoice needs to be issued, the invoicing company selects a blank paper invoice. On the selected blank paper invoice, the invoicing company fills in or prints the relevant invoice information, including the invoice header, amount, product information, etc. After filling in, the blank paper invoice is regarded as a complete paper invoice. It can be seen that the format of paper invoices is limited by printers and printing equipment, and invoice information is usually displayed on a paper page, including a designed template and layout.
[0069] Based on this, it is necessary to determine whether it is a paper invoice based on the target invoice configuration template. When it is determined that the target invoice configuration template is a paper invoice, the invoice issuance system will also refer to the paper invoice generation process when rendering the paper invoice. First, the invoice issuance system renders a blank paper invoice format file according to the invoice file format rules. Here, the simulation is to select a blank paper invoice. The blank paper invoice format file matches the target invoice configuration template, that is, the blank paper invoice format file is a blank paper invoice of the location of the invoicing company that matches the invoice type and ticket type applied for. A blank paper invoice format file refers to a blank invoice file that has not been filled in with any specific product or service information. It contains the basic format and information of the invoice, but does not have specific content such as the amount, product name, quantity, etc.
[0070] In actual applications, the blank paper invoice format file will have a corresponding number to characterize the order of paper invoices. This number is usually called the invoice number. The invoice number is one of the important identifiers of the invoice, which can be used to uniquely identify each invoice and characterize the order and serial number of the invoice. The number carried by the blank paper invoice format file obtained here corresponds to the number of the next blank paper invoice. For example, after using the blank paper invoice format files numbered 001 and 002, the blank paper invoice format file used for the next invoicing corresponds to the number 003. In actual applications, the invoice issuance system will manage the numbering sequence of the blank paper invoice format files, including the management of number ranges, used numbers, unused numbers, etc., to avoid confusion in invoicing, thereby facilitating the management and tracing of invoices, including operations such as searching, checking, indexing, and archiving.
[0071] Step S402, drawing the invoice application information and the invoice amount data into a blank paper invoice format file.
[0072] The invoice file format rules here refer to the paper invoice format rules. The invoicing information and invoice amount data are filled into the corresponding positions in the blank paper invoice format file according to the format regulations of the paper invoice, and finally the rendering of the paper invoice file is completed.
[0073] In actual applications, the invoice issuer can view the rendered paper invoice file in the invoice issuance system. The paper invoice file output by the invoice issuance system is equivalent to the preview result of the final generated paper invoice file. The invoice issuer can verify whether the information is correct by viewing the paper invoice file.
[0074] In one embodiment, the invoice format file containing the item information is stored in the database as an invoice template file.
[0075] Here, the invoice style file containing the item information is used as the invoice template file, and the template list is dynamically configured and stored in the database.
[0076] In actual applications, in the process of rendering a paper invoice file, the invoice application information can be first filtered to obtain the item information, and then the item information is rendered to the corresponding position of the invoice style file. The invoice style file containing the item information is stored in the database, and then other information is filled in the invoice style file. In this way, during the rendering process of the invoice file, the invoice file can be rendered and the invoice template file in the database can be updated at the same time.
[0077] The invoice template files stored in the database are configured in a list format. For example, the invoice template files can be classified according to the item information and the location of the invoicing company, and finally a corresponding classification list is generated. By querying the classification list, invoice template files with different item information in different locations of invoicing companies can be obtained.
[0078] After the invoice template files with different item information are saved in the database, when the invoice issuer uses the invoice issuance system to issue invoices for the same item, the invoice issuer can select and bind the invoice template file with the item information in the invoice issuance system, so that the invoice issuance system can complete dynamic configuration based on the invoice template file and generate the corresponding target invoice configuration template.
[0079] In one embodiment, before the invoicing application information and various invoice amount data are rendered into the invoice format file, the invoicing application information is classified and filtered.
[0080] Here, the invoice issuance system divides the invoice application information by region based on the region where the invoice issuing company provided in the invoice application information is located, and classifies, layers and grades the information according to the province, city, district and region to which the invoice issuing company belongs.
[0081] The invoice issuance system also classifies the invoice application information according to the type of invoice applied for provided in the invoice application information, groups or marks different types of invoices, and processes and filters the data accordingly for different types of invoices to ensure that the requirements and specifications of each invoice type are met.
[0082] In addition, the invoice issuance system also filters the invoice application information, excludes data that does not meet the conditions, and selects data that meets the conditions.
[0083] In practical applications, before data classification and filtering, the invoicing application data can also be preprocessed, including data cleaning, removal of duplicates, and unification of data formats, to ensure the accuracy and completeness of the data.
[0084] In one embodiment, the invoice amount data is verified, and when errors are found in the invoice amount data, a prompt message is issued.
[0085] After automatically calculating the invoice amount data, the accuracy of the amount is compared and verified to verify whether the calculated invoice amount data has errors. Among them, thresholds or rules can be set to determine whether the calculated invoice amount data is wrong, such as comparing it with the expected amount uploaded by the invoice issuer. If it is verified that there is an error in the invoice amount data, a prompt message will be issued to remind the invoice issuer in time and display the difference to help the invoice issuer to check and correct it, so as to ensure that the accuracy of the calculated invoice amount data reaches 99.9%, avoid data errors in the final generated invoice file, and reduce the number of times the invoice issuer hypes and wastes invoicing.
[0086] In the above embodiment, the invoice application information is obtained, and the invoice configuration templates of different invoice types of the invoicing company are generated according to the invoice application information, and the target invoice configuration template is determined in multiple invoice configuration templates, so that the dynamic data configuration of the invoice application information can be realized, so that by uploading the invoice application information once, multiple invoice template style files of invoice types can be generated, which is convenient for the invoicer to compare and view, and reduces the number of times and repeated operations of filling in the invoice application information back and forth, and improves the dynamic selectivity and quickness and convenience of invoicing. Then, the invoice file format rules and tax rate rules corresponding to the target invoice configuration template are obtained, and the invoice amount data of each item is determined according to the tax rate rules and the invoice application information, and the automatic calculation and assignment of the amount data are realized, and the invoice style file is rendered according to the invoice file format rules, so that the accuracy and legality of the invoice data generation are guaranteed. Finally, the invoice application information and the invoice amount data of each item are filled into the corresponding position of the invoice style file, and the target invoice file is generated, and the automatic filling of the invoice application information and the invoice amount data is realized, and the visual page display of the target invoice file can be generated, and the download of the target invoice file is supported, providing a convenient and efficient invoicing process.
[0087] In one embodiment, Figure 5 As shown, Figure 5 The structural diagram of the invoice issuance system is shown. Figure 6 The principle block diagram of the invoice issuing system is shown. Figure 7 The invoice issuing system is shown in the flowchart. Figure 6 The block diagram and Figure 7 Work according to the flow chart of the process.
[0088] The invoice issuing system 500 can be divided into a data center service module 501, a bill template service module 502 and an invoice service module 503 in terms of functional modules. The operation of each functional module is described in detail below.
[0089] The data center service module 501 is used to obtain invoicing application information, generate invoice configuration modules for different invoice types of the invoicing company according to the invoicing application information, and determine a target invoice configuration template among multiple invoice configuration modules.
[0090] The invoicer provides the invoice application information to the invoice invoicing system 500, which is received by the data center service module 501 and processed. Specifically, the invoice application information is classified, and the invoice application information is divided into regions according to the region where the invoice company provided by the invoice application information is located, and classified, layered, and graded according to the province, city, and district where the invoice company belongs. Then the invoice application information is bound to the tax number corresponding to the invoice company, and finally an invoice configuration template is generated.
[0091] In the process of generating an invoice configuration template, the data center service module 501 saves the invoicing application information and issues a configuration request, so that the data center service module 501 finds the relevant invoice template file in the database and dynamically configures the invoicing application information to the invoice template file, thereby generating multiple invoice configuration templates for the invoicing company.
[0092] These invoice configuration templates can be output to the front-end page of the invoice issuance system 500, so that the invoicer can view and compare multiple different invoice configuration templates and finally select the target invoice configuration template.
[0093] The data center service module 501 then transmits the determined target invoice configuration template to the bill template service module 502 .
[0094] The bill template service module 502 is used to obtain the invoice file format rules corresponding to the target invoice configuration template, and render the invoice style file according to the invoice file format rules.
[0095] The bill template service module 502 classifies the received billing application information to obtain the regional classification of the province, city, and district where the billing company is located. Then, by calling the tax service interface, the invoice file format rules for the target configuration template of the billing company's location are obtained. Then, using the invoice file format rules, an invoice style file is drawn, the invoice style file is saved, and transmitted to the invoice service module.
[0096] The invoice service module 503 is used to obtain the tax rate rules, determine the invoice amount data according to the tax rate rules and the invoice application information, and render the invoice application information and the invoice amount data into the invoice format file to generate the target invoice file.
[0097] The invoice service module 503 classifies the received invoice application information to obtain the regional classification of the province, city, and district where the invoice company is located. Then, by calling the tax service interface, the tax rate rules of the invoice company's location are obtained. The tax rate rules clearly record the tax rate, and then the invoice application information is obtained from the database, so as to automatically calculate the invoice amount data according to the invoice application information and the tax rate rules.
[0098] Then, check the calculated invoice amount data, filter the invoice application information and the invoice amount data, and obtain reasonable data. Finally, fill the invoice application information and the invoice amount data into the corresponding positions in the invoice format file to generate the target invoice file.
[0099] In actual applications, the target invoice file is stored in the server of the invoice issuance system. The invoice issuance system can return the address link of the target invoice file to the invoicer. The invoicer can view, download and print the target invoice file through the address link, thus completing the invoice issuance process of the invoice file.
[0100] In one embodiment, the data center service module 501 is specifically used to bind the invoicing application information with the tax number corresponding to the invoicing company, and determine the invoice template files of different invoice types according to the tax number and the invoice type applied for;
[0101] Fill the invoicing application information into the invoice template file.
[0102] In one embodiment, the invoice service module 503 is specifically used to classify and filter the invoice application information before rendering the invoice application information and various invoice amount data into the invoice format file.
[0103] In one embodiment, the invoice service module 503 is also used to verify the invoice amount data, and issue a prompt message when it is verified that there is an error in the invoice amount data.
[0104] In one embodiment, the invoice service module 503 is specifically used to render the invoice application information and various invoice amount data into an invoice file of a set file format;
[0105] Upload the invoice file to the tax system for verification, obtain the verified target invoice file, and store the target invoice file in the server.
[0106] In one embodiment, the invoice service module 503 is specifically used to render a blank paper invoice format file that matches the target invoice configuration template if the target invoice configuration template is a paper invoice; and draw the invoice application information and invoice amount data into the blank paper invoice format file.
[0107] In one embodiment, the invoice service module 503 is further used to store the invoice format file containing the item information as an invoice template file in the database.
[0108] For the specific definition of the invoice issuance system 500, please refer to the definition of the invoice issuance method for multiple ticket types in the above text, which will not be repeated here. Each module in the above invoice issuance system 500 can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0109] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a method for issuing multiple types of invoices is implemented.
[0110] In one embodiment, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a method for issuing multiple types of invoices is implemented.
[0111] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0112] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0113] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0114] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0115] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for issuing multiple types of invoices, characterized in that: The method comprises: Obtain invoicing application information, and generate invoice configuration templates for different invoice types of the invoicing company according to the invoicing application information; Determine a target invoice configuration template from the multiple invoice configuration templates, and obtain the invoice file format rule and tax rate rule corresponding to the target invoice configuration template; According to the invoice file format rule, an invoice format file is rendered, and according to the tax rate rule and the invoice application information, various invoice amount data are determined; The invoicing application information and each item of invoice amount data are rendered into an invoice format file to generate a target invoice file.
2. The method for issuing multiple types of invoices according to claim 1, characterized in that: The invoice configuration templates for different invoice types of the invoicing company are generated according to the invoicing application information, including: Bind the invoicing application information with the tax number corresponding to the invoicing company, and determine invoice template files of different invoice types according to the tax number and the invoice type applied for; Fill the invoice template file with the invoice application information.
3. The method for issuing multiple types of invoices according to claim 2, characterized in that: Before rendering the invoicing application information and each item of invoice amount data into an invoice format file, the method includes: The invoicing application information is classified and filtered.
4. The method for issuing multiple types of invoices according to claim 1, characterized in that: The method further comprises: The invoice amount data is verified, and a prompt message is issued when errors are found in the invoice amount data.
5. The method for issuing multiple types of invoices according to claim 1, characterized in that: The step of rendering the invoicing application information and each item of invoice amount data into an invoice format file to generate a target invoice file includes: Rendering the invoicing application information and each item of invoice amount data into an invoice file in a set file format; The invoice file is uploaded to the tax system for verification, the verified target invoice file is obtained, and the target invoice file is stored in the server.
6. The method for issuing multiple types of invoices according to claim 5, characterized in that: The rendering according to the invoice file format rule to obtain an invoice style file includes: If the target invoice configuration template is a paper invoice, a blank paper invoice format file matching the target invoice configuration template is rendered; The invoicing application information and each item of invoice amount data are rendered into an invoice format file to generate a target invoice file, including: The invoicing application information and the invoice amount data are drawn to the blank paper invoice format file.
7. The method for issuing multiple types of invoices according to claim 1, characterized in that: The method further comprises: The invoice format file including the item information in the invoicing application information is stored in the database as an invoice template file.
8. An invoice issuing system, characterized in that: include: The data center service module is used to obtain invoicing application information and generate invoice configuration templates for different invoice types of the invoicing company according to the invoicing application information; Determining a target invoice configuration template among the plurality of invoice configuration templates; The bill template service module is used to obtain the invoice file format rules corresponding to the target invoice configuration template, and render the invoice style file according to the invoice file format rules; The invoice service module is used to obtain the tax rate rules, determine the invoice amount data according to the tax rate rules and the invoice application information, and render the invoice application information and the invoice amount data into the invoice style file to generate the target invoice file.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method for issuing multiple types of invoices as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for issuing multiple types of invoices as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Electronic invoice generation method and device, electronic equipment and computer program product
CN119991234A
Electronic invoice generation method and device, electronic equipment and computer program product
CN119991235A
