A method and system for determining PDF invoice template on a WEB side

Through the WEB side system, the PDF invoice templates are imported, modified and configured, which solves the problems of complex PDF invoice design and chaotic version management in the tax industry, and achieves rapid design and accuracy improvement, reducing development and testing time.

CN113743071BActive Publication Date: 2024-11-29AISINO CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110885707.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-03
Publication Date
2024-11-29
Estimated Expiration
2041-08-03

AI Technical Summary

Technical Problem

In the tax industry, the invoice sample design of PDF invoices is complex. The use of EXCEL management leads to confusion in version management, unclear description of element information, resulting in extended design cycles. Developers need to change the code for testing, and the testing work needs to be started after development is completed.

Method used

Provide a method and system for determining PDF invoice templates on the WEB side. By importing the initial template, modifying element components, configuring attributes, generating invoice files corresponding to the modified templates, and storing them in the database, supporting dragging and dropping components and setting styles and background image to achieve version comparison and difference analysis.

Benefits of technology

Save development time, improve design accuracy, reduce modification and testing time, realize component styles consistent with actual PDF display, and support version management and rapid design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113743071B_ABST
    Figure CN113743071B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for determining a PDF invoice template on a WEB side, including: importing an invoice template of a first preset format according to an invoice template import instruction to obtain an initial invoice template; modifying the element components in the initial invoice template to obtain a modified invoice template; modifying the invoice generation rules in the background according to the modified invoice template to obtain an invoice template file of a second preset format corresponding to the modified invoice template, and determining the final invoice template of the first preset format. The present invention can drag and drop component elements in an invoice, and the component style is exactly the same as that displayed in the actual PDF. A variety of attributes are built into the PDF invoice element component, which can assist the personnel involved in perfecting the invoice element rules as much as possible, saving a lot of development time, being able to compare versions, and being able to select any version for application, thereby improving the accuracy of PDF invoice design and reducing the development and testing time of PDF invoice modification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of invoices, and more specifically, to a method and system for determining a PDF invoice template on a WEB side. Background Art

[0002] In the tax industry, many PDF invoice template designs are basically completed using EXCEL. The design of various types of PDF invoice templates is complex, and using EXCEL to manage them will lead to chaotic version management. The element information in the PDF invoice template is not clearly described or the description information is not detailed, such as the color, font size, line thickness, etc. of an element. After the design is completed, the version change points need to be explained to the corresponding developers. The developers must change the code to complete the new PDF version. The testing of the PDF style must wait until the development is completed before it can begin, which prolongs the PDF version design cycle.

[0003] Therefore, a method for quickly determining an invoice template is needed. Summary of the invention

[0004] The present invention provides a method and system for determining a PDF invoice template on a WEB side, so as to solve the problem of how to quickly determine an invoice template in PDF format.

[0005] In order to solve the above problem, according to one aspect of the present invention, a method for determining a PDF invoice template on a WEB side is provided, the method comprising:

[0006] Importing the invoice template in the first preset format according to the invoice template import instruction to obtain an initial invoice template;

[0007] Modify the element components in the initial invoice template to obtain a modified invoice template;

[0008] The invoice generation rules in the background are modified according to the modified invoice template to obtain an invoice template file in the second preset format corresponding to the modified invoice template, and determine the final invoice template in the first preset format.

[0009] Preferably, the method further comprises:

[0010] A blank invoice template is created according to the invoice template creation instruction, the selected invoice element components are placed in the blank invoice template according to the obtained drag and drop instruction, and the attribute information of each invoice element component is configured to obtain the modified invoice template.

[0011] Preferably, the step of modifying the element components in the initial invoice template to obtain a modified invoice template includes:

[0012] Add and / or delete element components in the initial invoice template, and set the border style, border color, font position within the element component, font style and / or component background image of each added element component to obtain a modified invoice template.

[0013] Preferably, the method further comprises:

[0014] The invoice data is obtained, and an invoice file corresponding to the invoice data is generated according to the modified invoice template file, and when the obtained invoice file meets the preset invention design requirements, the modified invoice template file is stored in the database.

[0015] Preferably, the method further comprises:

[0016] Obtain a historical version of the invoice template file, and compare the historical version of the invoice template file with the current version of the invoice template file to determine the differences between different versions of the invoice templates.

[0017] According to another aspect of the present invention, a system for determining a PDF invoice template on a web side is provided, the system comprising:

[0018] An initial invoice template acquisition unit, used to import an invoice template in a preset format according to an invoice template import instruction to obtain an initial invoice template;

[0019] The template modification unit is used to modify the element components in the initial invoice template to obtain a modified invoice template;

[0020] The invoice template determining unit is used to modify the invoice generation rules in the background according to the modified invoice template to obtain an invoice template file in a second preset format corresponding to the modified invoice template and determine a final invoice template in a first preset format.

[0021] Preferably, the system further comprises:

[0022] The template creation unit is used to create a blank invoice template according to the invoice template creation instruction, place the selected invoice element components in the blank invoice template according to the obtained drag and drop instruction, and configure the attribute information of each invoice element component to obtain the modified invoice template.

[0023] Preferably, the template modification unit modifies the element components in the initial invoice template to obtain a modified invoice template, including:

[0024] Add and / or delete element components in the initial invoice template, and set the border style, border color, font position within the element component, font style and / or component background image of each added element component to obtain a modified invoice template.

[0025] Preferably, the system further comprises:

[0026] The verification unit is used to obtain invoice data and generate an invoice file corresponding to the invoice data based on the modified invoice template file, and when the obtained invoice file meets the preset invention design requirements, the modified invoice template file is stored in the database.

[0027] Preferably, the system further comprises:

[0028] The template difference determination unit is used to obtain the historical version of the invoice template file and compare the historical version of the invoice template file with the current version of the invoice template file to determine the differences between the different versions of the invoice templates.

[0029] The present invention provides a method and system for determining a PDF invoice template on a WEB side, including: importing an invoice template of a first preset format according to an invoice template import instruction to obtain an initial invoice template; modifying the element components in the initial invoice template to obtain a modified invoice template; modifying the invoice generation rules in the background according to the modified invoice template to obtain an invoice template file of a second preset format corresponding to the modified invoice template, and determining the final invoice template of the first preset format. The present invention can drag and drop component elements in an invoice, and the component style is exactly the same as that displayed in the actual PDF. A variety of attributes are built into the PDF invoice element component, which can assist the personnel involved in perfecting the invoice element rules as much as possible, saving a lot of development time, being able to compare versions, and being able to select any version for application, thereby improving the accuracy of PDF invoice design and reducing the development and testing time of PDF invoice modification. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:

[0031] Figure 1 A flowchart of a method 100 for determining a PDF invoice template on a WEB side according to an embodiment of the present invention;

[0032] Figure 2 A flowchart of selecting an invoice template according to an embodiment of the present invention;

[0033] Figure 3 A flowchart for determining canvas parameter settings for an invoice template according to an embodiment of the present invention;

[0034] Figure 4 A flowchart of modifying a component according to an embodiment of the present invention;

[0035] Figure 5 A flowchart of parsing a modified invoice template to determine an invoice template file according to an embodiment of the present invention;

[0036] Figure 6 It is a schematic diagram of the structure of a system 600 for determining a PDF invoice template on a WEB side according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.

[0038] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.

[0039] Figure 1 Flow chart of a method 100 for determining a PDF invoice template on a web terminal according to an embodiment of the present invention. Figure 1 As shown, the method for determining the PDF invoice template on the WEB side provided by the embodiment of the present invention can drag and drop the component elements in the invoice, and the component style is exactly the same as that displayed in the actual PDF. The PDF invoice element component has multiple attributes built in, which can assist the personnel involved in perfecting the invoice element rules as much as possible, saving a lot of development time, and can compare between versions. Any version can be selected for application, improving the accuracy of PDF invoice design and reducing the development and testing time of PDF invoice modification. The method 100 for determining the PDF invoice template on the WEB side provided by the embodiment of the present invention starts from step 101. In step 101, an invoice template in a first preset format is imported according to an invoice template import instruction to obtain an initial invoice template.

[0040] In step 102, the element components in the initial invoice template are modified to obtain a modified invoice template.

[0041] Preferably, the step of modifying the element components in the initial invoice template to obtain a modified invoice template includes:

[0042] Add and / or delete element components in the initial invoice template, and set the border style, border color, font position within the element component, font style and / or component background image of each added element component to obtain a modified invoice template.

[0043] Preferably, the method further comprises:

[0044] A blank invoice template is created according to the invoice template creation instruction, the selected invoice element components are placed in the blank invoice template according to the obtained drag and drop instruction, and the attribute information of each invoice element component is configured to obtain the modified invoice template.

[0045] Combination Figure 2 As shown, in the present invention, the design interface of the PDF invoice template is automatically opened first, and then it is determined whether to continue designing. If so, the design is continued. Otherwise, it is determined whether to import the stored invoice template. If the invoice template is imported, a template is selected from the database as the initial invoice template, and the initial invoice template is modified to obtain the modified invoice template; if a new blank template is selected, a new blank template is created and element components are added to the blank template to obtain the modified invoice template.

[0046] Combination Figure 3 As shown, when designing an invoice template in the present invention, the layout of the invoice template can be designed, including: setting the workspace grid size, setting the grid color, setting the overall background color or background image, setting the paper size, and setting the paper direction.

[0047] In the present invention, after the initial invoice template is obtained by importing the template, the element components in the initial invoice template are added and / or deleted, and the border style, border color, font position within the element component, font style and / or component background image of each added element component are set to obtain a modified invoice template.

[0048] After obtaining the initial invoice template by creating a new blank template, element components are added to the initial invoice template directly by dragging and dropping, and the attribute information of the element components is set to obtain the modified invoice template.

[0049] Specifically, the process of modifying the attribute information of an element component is as follows: Figure 4As shown, it includes: setting style, including: fill color, line style, line color, transparency, etc.; setting text, including: font type, font size, font position, font background color, etc.; setting the arrangement of element components, including: component size and position; setting component string length, character attributes, etc.

[0050] In step 103, the invoice generation rules in the background are modified according to the modified invoice template to obtain an invoice template file in the second preset format corresponding to the modified invoice template, and determine the final invoice template in the first preset format.

[0051] In the present invention, after the format of the invoice template is determined, parsing is performed to obtain the invoice template file and store it. The implementation process is as follows: Figure 5 shown.

[0052] Preferably, the method further comprises:

[0053] The invoice data is obtained, and an invoice file corresponding to the invoice data is generated according to the modified invoice template file, and when the obtained invoice file meets the preset invention design requirements, the modified invoice template file is stored in the database.

[0054] Preferably, the method further comprises:

[0055] Obtain a historical version of the invoice template file, and compare the historical version of the invoice template file with the current version of the invoice template file to determine the differences between different versions of the invoice templates.

[0056] In the present invention, it is also possible to obtain invoice data and generate an invoice file corresponding to the invoice data based on the modified invoice template file, verify whether the designed invoice template meets the design requirements based on the invoice file, and when the obtained invoice file meets the preset invention design requirements, the modified invoice template file is stored in the database.

[0057] In the present invention, different versions of invoice template files are stored in a database, and designers can extract different versions of invoice template files according to requirements, and compare the differences between the invoice templates to select a suitable invoice template according to requirements.

[0058] The method for determining an invoice template of the present invention designs an invoice through a WEB page, has multiple built-in PDF invoice element components, and can also customize components. Each component has corresponding attribute settings, which assists designers to clearly design the rules of each element. After the design is completed, the system can modify the background PDF invoice generation rules according to the design results, and the development is completed after the design is completed. At the same time, the system can simulate the formal environment to generate invoices according to the rules of each element, which is convenient for designers to modify possible problems and modify the PDF template.

[0059] The method of the present invention can provide a variety of PDF invoice templates for users to refer to. Users can copy existing invoice templates and modify them, or they can completely customize invoice templates. The system provides PDF invoice element components for designers to use. Each component can set border style, border color, font position within the component, font style, background image, watermark, etc., and can also associate other components to make corresponding rules. The system parses XML and JSON format invoice data to generate an invoice data template, and the user binds the invoice template and the invoice data template and the component data. Customized attributes can be added. The component style changes in real time with the parameter settings, and is exactly the same as the position and style on the actual PDF. The PDF invoice paper direction can also be adjusted. The system parses the configured PDF invoice template, changes the PDF invoice generation parameters, and realizes the change of the invoice PDF. And the PDF template information and parameter information are saved to the database.

[0060] In addition, through the historical version viewing and application functions, you can select two different versions for comparison, view the differences between the versions, and select any version for application.

[0061] Once the PDF invoice template is finalized, you can perform an automatic invoice generation test based on the configuration information of the current template. Different invoices can be generated for each element configuration. Designers can check the generated invoices to see if they meet the design expectations and make timely adjustments if they do not.

[0062] Through the method of the present invention, invoice templates can be conveniently exported and imported, and can be conveniently transplanted to other systems.

[0063] The system for determining invoice templates based on the present invention is a web-based PDF invoice design system for the tax industry, which has the following advantages: it can improve the accuracy of PDF invoice design; the PDF invoice design is intuitive; the development and testing time for PDF invoice modification is reduced; the system maintains PDF invoice versions, and version changes and viewing are quick; it can be quickly ported between systems, which is easy to use and develop.

[0064] Figure 6 FIG. 6 is a schematic diagram of a system 600 for determining a PDF invoice template on a web side according to an embodiment of the present invention. Figure 6 As shown, the system 600 for determining a PDF invoice template on a WEB side provided by an embodiment of the present invention includes: an initial invoice template obtaining unit 601, a template modifying unit 602 and an invoice template determining unit 603.

[0065] Preferably, the initial invoice template acquiring unit 601 is used to import an invoice template in a preset format according to an invoice template import instruction to acquire an initial invoice template.

[0066] Preferably, the template modification unit 602 is used to modify the element components in the initial invoice template to obtain a modified invoice template.

[0067] Preferably, the system further comprises:

[0068] The template creation unit is used to create a blank invoice template according to the invoice template creation instruction, place the selected invoice element components in the blank invoice template according to the obtained drag and drop instruction, and configure the attribute information of each invoice element component to obtain the modified invoice template.

[0069] Preferably, the template modification unit 602 modifies the element components in the initial invoice template to obtain a modified invoice template, including:

[0070] Add and / or delete element components in the initial invoice template, and set the border style, border color, font position within the element component, font style and / or component background image of each added element component to obtain a modified invoice template.

[0071] Preferably, the invoice template determining unit 603 is used to modify the invoice generation rules in the background according to the modified invoice template to obtain an invoice template file in the second preset format corresponding to the modified invoice template, and determine the final invoice template in the first preset format.

[0072] Preferably, the system further comprises:

[0073] The verification unit is used to obtain invoice data and generate an invoice file corresponding to the invoice data based on the modified invoice template file, and when the obtained invoice file meets the preset invention design requirements, the modified invoice template file is stored in the database.

[0074] Preferably, the system further comprises:

[0075] The template difference determination unit is used to obtain the historical version of the invoice template file and compare the historical version of the invoice template file with the current version of the invoice template file to determine the differences between the different versions of the invoice templates.

[0076] The system 600 for determining a PDF invoice template on a WEB side in an embodiment of the present invention corresponds to the method 100 for determining a PDF invoice template on a WEB side in another embodiment of the present invention, and will not be described in detail herein.

[0077] The invention has been described above with reference to a few embodiments. However, it is readily apparent to a person skilled in the art that other embodiments than the ones disclosed above are equally within the scope of the invention, as defined by the appended patent claims.

[0078] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a / said / the [means, components, etc.]" are to be openly interpreted as at least one instance of the means, components, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not necessarily have to be performed in the exact order disclosed, unless explicitly stated otherwise.

[0079] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0080] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for determining a PDF invoice template on a WEB side, characterized in that: The method comprises: Importing the invoice template in the first preset format according to the invoice template import instruction to obtain an initial invoice template; Modify the element components in the initial invoice template to obtain a modified invoice template; Modify the invoice generation rules in the background according to the modified invoice template to obtain an invoice template file in a second preset format corresponding to the modified invoice template, and replace the invoice generation parameters in the invoice template in the first preset format based on the invoice template file in the second preset format to determine the final invoice template in the first preset format; Wherein, the method further comprises: Creating a blank invoice template according to the invoice template creation instruction, placing the selected invoice element component in the blank invoice template according to the obtained drag and drop instruction, and configuring the attribute information of each invoice element component to obtain a modified invoice template; Wherein, the method further comprises: Obtain a historical version of the invoice template file, and compare the historical version of the invoice template file with the current version of the invoice template file to determine the differences between different versions of the invoice templates.

2. The method according to claim 1, characterized in that The element components in the initial invoice template are modified to obtain a modified invoice template, including: Add and / or delete element components in the initial invoice template, and set the border style, border color, font position within the element component, font style and / or component background image of each added element component to obtain a modified invoice template.

3. The method according to claim 1, characterized in that The method further comprises: The invoice data is obtained, and an invoice file corresponding to the invoice data is generated according to the modified invoice template file, and when the obtained invoice file meets the preset invention design requirements, the modified invoice template file is stored in the database.

4. A system for determining a PDF invoice template on a WEB side, characterized in that: The system comprises: An initial invoice template acquisition unit, used to import an invoice template in a first preset format according to an invoice template import instruction to acquire an initial invoice template; The template modification unit is used to modify the element components in the initial invoice template to obtain a modified invoice template; an invoice template determining unit, configured to modify the invoice generation rules in the background according to the modified invoice template, so as to obtain an invoice template file of a second preset format corresponding to the modified invoice template, and replace the invoice generation parameters in the invoice template of the first preset format based on the invoice template file of the second preset format, so as to determine a final invoice template of the first preset format; Wherein, the system further comprises: A template creation unit, used to create a blank invoice template according to an invoice template creation instruction, place the selected invoice element component in the blank invoice template according to the obtained drag and drop instruction, and configure the attribute information of each invoice element component to obtain a modified invoice template; Wherein, the system further comprises: The template difference determination unit is used to obtain the historical version of the invoice template file and compare the historical version of the invoice template file with the current version of the invoice template file to determine the differences between the different versions of the invoice templates.

5. The system according to claim 4, characterized in that The template modification unit modifies the element components in the initial invoice template to obtain a modified invoice template, including: Add and / or delete element components in the initial invoice template, and set the border style, border color, font position within the element component, font style and / or component background image of each added element component to obtain a modified invoice template.

6. The system according to claim 4, characterized in that The system further comprises: The verification unit is used to obtain invoice data and generate an invoice file corresponding to the invoice data based on the modified invoice template file, and when the obtained invoice file meets the preset invention design requirements, the modified invoice template file is stored in the database.

Citation Information

Patent Citations

  • Internet Web 2.0 platform-based on-line document management system

    CN101986294A

  • Customization and management method of visual management invoice template

    CN102074080A