CN-116975141-B - Digital-to-electric invoice visualization method and device, computer equipment and storage medium
Abstract
The embodiment of the application belongs to the technical field of data processing and relates to a digital invoice visualization method, a digital invoice visualization device, computer equipment and a storage medium, wherein the method comprises the steps of obtaining structured digital invoice data according to a visualization instruction, and analyzing nodes of the structured digital invoice data to obtain a plurality of displayable node information; the method comprises the steps of determining a visual page format according to a visual instruction, generating corresponding page configuration information according to the visual page format, acquiring target node information from displayable node information, acquiring associated information of a digital invoice, generating a two-dimensional code according to the target node information and the associated information, generating a digital invoice visual page through the displayable node information and the page configuration information, and combining and displaying the two-dimensional code at a target position of the visual page. The technical scheme of the embodiment of the application can meet the requirement that a user can quickly check invoice information of the digital invoice presented by the structured data, thereby improving convenience and saving time.
Inventors
- LI ZIGUO
- GUAN YING
- FAN HAO
- DONG GUANPING
- He Aicong
Assignees
- 远光软件股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230731
Claims (7)
- 1. A digital to electrical invoice visualization method, the method comprising: receiving a visual instruction of a digital invoice, acquiring structured digital invoice data according to the visual instruction, and analyzing nodes of the structured digital invoice data to obtain a plurality of displayable node information; Determining a visual page format according to the visual instruction, and generating corresponding page configuration information according to the visual page format; Acquiring target node information from the displayable node information, acquiring the associated information of the digital invoice, and generating a two-dimensional code according to the target node information and the associated information; generating a digital electronic invoice visual page through the displayable node information and the page configuration information, and merging and displaying the two-dimensional code at a target position of the visual page; The step of generating a digital invoice visualization page through the presentable node information and the page configuration information comprises the following steps: Acquiring a page display element tag in the page configuration information, and determining final displayed node information from the displayable node information through the page display element tag; Judging whether to adjust the page configuration information according to the finally displayed node information, if so, adjusting the page configuration information, generating a visual page of the digital invoice based on the finally displayed node information and the adjusted page configuration information, otherwise, directly generating the visual page of the digital invoice according to the finally displayed node information and the page configuration information; The step of judging whether to adjust the page configuration information according to the finally displayed node information comprises the steps of acquiring the entry and sales item detail in the finally displayed node information, determining the display range of the entry and sales item detail in the visual page according to the entry and sales item detail, judging whether the display range exceeds the preconfigured display range in the page configuration information, if yes, adjusting the page configuration information, and otherwise, not adjusting.
- 2. The digital invoice visualization method of claim 1, wherein the step of determining a presentation range of the entry item on the visualization page according to the entry item detail comprises: acquiring the display line height, the column width, the character occupation width and the font size information of the entry and sales item detail; Determining the detail of the line-changeable displayed line-changeable item in the line-changeable item detail, judging whether the line-changeable display is required for each line-changeable displayed line-changeable item detail according to the display line height and the line width, if the line feed display is needed, obtaining a final display height, and obtaining a first display range; According to the character space occupation width and the font size information, the character space occupation width and the font size of the entry and sales item details which are not displayed in a line changing manner are adjusted, and a second display range is obtained; and determining the display range of the entry and sales item detail in the visual page according to the first display range and the second display range.
- 3. The digital invoice visualization method according to claim 1, wherein the step of obtaining the association information of the digital invoice and generating a two-dimensional code according to the target node information and the association information comprises: And extracting the code information of the tax payment subject from the displayable node information, dynamically acquiring a tax office seal according to the code information, obtaining the associated information of the digital invoice, and generating a two-dimensional code according to the target node information and the tax office seal.
- 4. The digital invoice visualization method of claim 1, wherein after generating a visualization page of the digital invoice, the method further comprises: and storing the address of the visual page combined and displayed with the two-dimensional code or generating an access two-dimensional code based on the address of the visual page combined and displayed with the two-dimensional code and storing the access two-dimensional code so that a target user can view the visual page through the address or the access two-dimensional code.
- 5. A digital to electrical invoice visualization device, comprising: The node information acquisition module is used for receiving a visual instruction of the digital invoice, acquiring structured digital invoice data according to the visual instruction, and analyzing nodes of the structured digital invoice data to obtain a plurality of displayable node information; the configuration information acquisition module is used for determining a visual page format according to the visual instruction and generating corresponding page configuration information according to the visual page format; the two-dimensional code generation module is used for acquiring target node information from the displayable node information, acquiring the associated information of the digital invoice and generating a two-dimensional code according to the target node information and the associated information; The visualized page generation module is used for generating a digital-to-electric invoice visualized page through the displayable node information and the page configuration information, and combining and displaying the two-dimensional code at the target position of the visualized page; the visual page generation module is specifically configured to, when generating a digital invoice visual page through the displayable node information and the page configuration information: Judging whether to adjust the page configuration information according to the final displayed node information, if so, adjusting the page configuration information, and generating a visual page of an electronic invoice based on the final displayed node information and the adjusted page configuration information, otherwise, directly generating a visual page of the electronic invoice according to the final displayed node information and the page configuration information; And when the visualized page generating module judges whether to adjust the page configuration information according to the finally displayed node information, the visualized page generating module is specifically used for: Acquiring the details of the entry and the sales items in the finally displayed node information, determining the display range of the entry and the sales items in the visual page according to the details of the entry and the sales items, judging whether the display range exceeds the preconfigured display range in the page configuration information, if so, adjusting the page configuration information, otherwise, not adjusting the page configuration information.
- 6. A computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the digital invoice visualization method as claimed in any one of claims 1 to 4 when the computer program is executed.
- 7. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the digital invoice visualization method as claimed in any one of claims 1 to 4.
Description
Digital-to-electric invoice visualization method and device, computer equipment and storage medium Technical Field The present application relates to the field of data processing technologies, and in particular, to a digital electronic invoice visualization method, a digital electronic invoice visualization device, a computer device, and a storage medium. Background For the comprehensive digital electronic invoice (digital invoice for short), the electronic invoice does not need to be claimed, but has the same legal efficacy as paper invoice, so that the invoice is effectively prevented from being falsified, and the convenience degree of invoicing is greatly increased. A value-added tax invoice comprehensive service platform provided by the tax department provides several formats of digital invoice downloading, including PDF (Powder Diffraction File) format, OFD (Open Fixed-layout Document) format and XML (Extensible Markup Language) format. The digital invoice in the PDF format is mainly used as a certificate of reimbursement and account checking, the digital invoice in the OFD format is an electronic certificate of reimbursement and account checking archiving, the type of the digital invoice is not different from the PDF format, but the digital invoice in the OFD format needs to be checked in a special value-added tax electronic invoice plate-type file reader for checking the validity of the invoice in the reimbursement and account checking, the checking process is complex, the digital invoice in the XML format contains structured invoice data, digital signature is contained, signature validity verification can be carried out without special software, and therefore the digital invoice in the XML format is adopted during reimbursement and account checking archiving. However, after the conventional digital ticket is delivered in an XML format file, the XML format file cannot directly view the invoice content, and a user needs to enter a tax bureau website to view the visualized invoice content, so that the operation is complex, the time and the cost are consumed, and the user experience is affected. Disclosure of Invention The embodiment of the application aims to provide a digital invoice visualization method, a digital invoice visualization device, computer equipment and a storage medium, so as to solve the problem that structured digital invoice data cannot be visualized in the prior art. In order to solve the technical problems, an embodiment of the present application provides a digital-to-electrical invoice visualization method, which includes: receiving a visual instruction of a digital invoice, acquiring structured digital invoice data according to the visual instruction, and analyzing nodes of the structured digital invoice data to obtain a plurality of displayable node information; Determining a visual page format according to the visual instruction, and generating corresponding page configuration information according to the visual page format; Acquiring target node information from the displayable node information, acquiring the associated information of the digital invoice, and generating a two-dimensional code according to the target node information and the associated information; generating a digital invoice visual page through the displayable node information and the page configuration information, and merging and displaying the two-dimensional code at a target position of the visual page. Further, the step of generating a digital invoice visualization page through the presentable node information and the page configuration information includes: Acquiring a page display element tag in the page configuration information, and determining final displayed node information from the displayable node information through the page display element tag; Judging whether to adjust the page configuration information according to the finally displayed node information, if so, adjusting the page configuration information, generating a visual page of the digital invoice based on the finally displayed node information and the adjusted page configuration information, and otherwise, directly generating the visual page of the digital invoice according to the finally displayed node information and the page configuration information. Further, the step of determining whether to adjust the page configuration information according to the finally displayed node information includes: Acquiring the details of the entry and the sales items in the finally displayed node information, determining the display range of the entry and the sales items in the visual page according to the details of the entry and the sales items, judging whether the display range exceeds the preconfigured display range in the page configuration information, if so, adjusting the page configuration information, otherwise, not adjusting the page configuration information. Further, the step of determining the display range of the entry and sales item