Data Analysis Method Based on VAT Invoice

Through data analysis methods based on value-added tax invoices, invoice data is obtained and processed, and chain analysis and graph drawing technology are used to solve the problem of massive data analysis and achieve intuitive display and efficient analysis of invoice relationships.

CN112232894BActive Publication Date: 2024-09-27JIANGSU TAXSOFT SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011159645.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2024-09-27
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

In the face of complex business systems, it is difficult to carry out effective data analysis on massive registration, identification, declaration, collection and management, invoice and other data.

Method used

Provide a data analysis method based on value-added tax invoices. By obtaining invoice data information, the invoice summary information is obtained after processing, using the chain analysis method to obtain the relationship between taxpayers, and using d3.js and yFiles plug-ins to draw invoice issuance A relationship map displays the relationships and related information between taxpayers.

Benefits of technology

Effectively display and analyze bill relationships, improve data analysis efficiency, and intuitively display related information between taxpayers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112232894B
    Figure CN112232894B
Patent Text Reader

Abstract

The present invention relates to a data analysis method based on value-added tax invoices. It comprises the following steps: Step 1, obtaining invoice data information, and processing the invoice data information to obtain the required invoice summary information; Step 2, for any taxpayer, obtaining the upstream and downstream associated data of the invoice data corresponding to the current taxpayer for the transaction information in the invoice summary information; Step 3, according to the upstream and downstream associated data of the invoice data corresponding to each taxpayer, to obtain the association relationship between different taxpayers, and using the association relationship between different taxpayers to draw an invoice issuance association relationship map, in the drawn invoice switch association relationship map, each node corresponds to a unique taxpayer, and the required tax-related information can be expanded at each node. The present invention can effectively display and analyze the relationship between bills and improve the efficiency of data analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a data analysis method, in particular to a data analysis method based on value-added tax invoices. Background Art

[0002] Faced with complex business systems and massive amounts of registration, identification, declaration, tax collection, invoice and other data, it is often difficult to know where to start and conduct effective data analysis. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a data analysis method based on value-added tax invoices, which can effectively display and analyze the relationship between bills and improve the efficiency of data analysis.

[0004] According to the technical solution provided by the present invention, a data analysis method based on value-added tax invoices comprises the following steps:

[0005] Step 1: Obtain invoice data information, and process the invoice data information to obtain the required invoice summary information;

[0006] Step 2: For any taxpayer, the transaction information in the invoice summary information is used to obtain the upstream and downstream associated data of the invoice data corresponding to the current taxpayer;

[0007] Step 3: Based on the upstream and downstream association data of the invoice data corresponding to each taxpayer, the association relationship between different taxpayers is obtained, and the association relationship between different taxpayers is used to draw an invoice issuance association relationship map. In the invoice switch association relationship map drawn, each node corresponds to a unique taxpayer, and the required tax-related information can be expanded at each node.

[0008] The tax-related information expanded at each node includes the taxpayer, financial manager, legal person, investor, telephone number and / or MAC address;

[0009] After the expansion, when taxpayers at different nodes have the same tax-related information, identification lines are used to connect the nodes with the same tax-related information, and different tax-related information is indicated by lines of different colors.

[0010] The open source component d3.js force-directed graph and yFiles plug-in are used to draw an invoice issuance association relationship map, and the nodes in the invoice issuance association relationship map are expanded with tax-related information.

[0011] In step 1, the invoice data information is obtained in the form of electronic ledger, anti-counterfeiting tax control data or manually imported invoice data, and the invoice data information includes basic information of the taxpayer, invoice issuance information and detailed data of each invoice.

[0012] After obtaining the invoice data information, the obtained invoice data information is matched with the standard data field, and after matching, the invoice data standard information can be obtained;

[0013] The invoice summary information includes an invoice summary table, a taxpayer MAC address table, a taxpayer investor table, a commodity name summary table, a taxpayer motherboard serial number table and / or a taxpayer association result table.

[0014] In step 2, when obtaining the upstream and downstream related data of the invoice data corresponding to the current taxpayer, a chain analysis method is used to display the upstream and downstream related data of the invoice data corresponding to the current taxpayer.

[0015] The advantages of the present invention are as follows: based on the invoice data information, the required invoice summary information is obtained; for any taxpayer, the upstream and downstream associated data of the invoice data corresponding to the current taxpayer are obtained for the transaction information in the invoice summary information; based on the upstream and downstream associated data of the invoice data corresponding to each taxpayer, the association relationship between different taxpayers is obtained, and the association relationship between different taxpayers is used to draw an invoice issuance association relationship map, in which each node corresponds to a unique taxpayer in the drawn invoice switch association relationship map, and the required tax-related information can be expanded at each node, so that the relationship between taxpayers and the specific association information between taxpayers can be intuitively displayed according to the invoice switch association relationship map, and the relationship between the bills can be effectively displayed and analyzed, thereby improving the efficiency of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of the invoice switch association relationship map is drawn for the present invention.

[0017] Figure 2 This is a schematic diagram of the present invention using the invoice switch association relationship map to obtain the same MAC address.

[0018] Figure 3 It is a schematic diagram of a temporary table when performing chain analysis in the present invention.

[0019] Figure 4 A temporary table after obtaining the first-tier seller taxpayer information for the present invention.

[0020] Figure 5 This is a temporary table after the present invention obtains the multi-layer seller taxpayer information.

[0021] Figure 6 A temporary table after obtaining the taxpayer information of the first purchaser for the present invention.

[0022] Figure 7A temporary table after obtaining multi-layer purchaser taxpayer information for the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described below in conjunction with specific drawings and embodiments.

[0024] In order to effectively display and analyze the relationship between bills and improve the efficiency of data analysis, the data analysis method of the present invention includes the following steps:

[0025] Step 1: Obtain invoice data information, and process the invoice data information to obtain the required invoice summary information;

[0026] Specifically, the invoice data information obtained includes electronic ledgers, anti-counterfeiting tax control data or manually imported invoice data, and the invoice data information includes basic information of the taxpayer, invoice issuance information and detailed data of each invoice. Generally, the invoice data information can be the name of the taxpayer, the taxpayer identification number, the industry to which the taxpayer belongs, the region to which the taxpayer belongs, the size of the taxpayer, the name and telephone number of the legal person, the name and telephone number of the tax handling personnel, the name and telephone number of the financial person in charge, the invoice code, the invoice number, the name of the invoice goods, the unit price, the quantity, etc. The specific content of the invoice data information can be selected and determined according to actual needs, and will not be repeated here.

[0027] Further, after obtaining the invoice data information, the obtained invoice data information is matched with the standard data field, and after matching, the invoice data standard information can be obtained;

[0028] The invoice summary information includes an invoice summary table, a taxpayer MAC address table, a taxpayer investor table, a commodity name summary table, a taxpayer motherboard serial number table and / or a taxpayer association result table.

[0029] In the embodiment of the present invention, the invoice data includes an invoice master table and an invoice detail table, wherein the content of the invoice master table may include invoice number, invoice code, invoice date, price and tax total, amount, tax rate, tax amount, buyer name, buyer taxpayer identification number, buyer address, buyer phone number, buyer bank, buyer account number, seller name, seller taxpayer identification number, seller address, seller phone number, seller bank, invoice issuer, invoice status and remarks, etc. The invoice detail table may generally include commodity name, specification model, unit, quantity, unit price, price and tax total, amount tax rate and amount.

[0030] When matching, the fields that need to be matched are the corresponding fields in the invoice master table and the invoice detail table. For example, in the invoice data, a field is called gf_djxh, and the field to be matched can be f_gf_djxh, which is matched by direct comparison of characters and fields, and so on. After the matching is completed, the data is extracted from the database level to obtain the standard invoice data information. In specific implementation, after obtaining the standard invoice data information, the standard invoice master table and standard invoice detail table that can be processed later are obtained.

[0031] In the embodiment of the present invention, when obtaining invoice data information, other information can generally be obtained, such as the taxpayer's MAC address, etc. After extracting this information, an invoice summary table, a taxpayer's MAC address table, a taxpayer's investor table, a goods name summary table, a taxpayer's mainboard serial number table and / or a taxpayer association result table can be obtained. Of course, when it is specifically implemented, it can also include a taxpayer association table, a case taxpayer analysis result table, and a case goods name result table, etc. The specific process and method of obtaining the above-mentioned specific data tables are well known to those in the technical field and will not be repeated here.

[0032] Step 2: For any taxpayer, the transaction information in the invoice summary information is used to obtain the upstream and downstream associated data of the invoice data corresponding to the current taxpayer;

[0033] In the embodiment of the present invention, when obtaining the upstream and downstream associated data of the invoice data corresponding to the current taxpayer, a chain analysis method is used to display the upstream and downstream associated data of the invoice data corresponding to the current taxpayer.

[0034] In the specific implementation, in order to distinguish the relationship between the upstream and downstream levels, a method similar to the coordinate axis is used, and the data is finally stored in the result temporary table, such as Figure 3 When performing flow analysis, you need to set the node for current analysis, that is, the current taxpayer. All invoice flows pass through this node, and flows that do not pass through this node are not displayed.

[0035] The specific analysis process is explained below. Specifically, the taxpayers currently analyzed are: Taxpayer A, Taxpayer B, and Taxpayer C.

[0036] 1) Obtain the first-tier sales taxpayer:

[0037] It can be understood as obtaining the upstream of the current taxpayer, that is, the upstream invoicing enterprise, taking the taxpayer in the current set as the purchasing taxpayer, obtaining all relevant invoice data from the invoice summary information, and storing it in the invoice temporary table TI_XXX. At this time, the category is -1; the data structure generated at this time is as follows Figure 4 shown.

[0038] 2) Obtain the 2nd to Nth level of sales taxpayers:

[0039] This is equivalent to expanding to the left, that is, obtaining the upstream of the upstream and the seller of the seller. At this time, the seller needs to be used as the buyer to obtain the invoice data from the invoice summary information (at this time, based on the current node as the buyer, obtain its seller data).

[0040] A loop is required here, and the category is subscript *-1, that is, starting from -2 and moving away from the origin of the coordinate axis (the current taxpayer is the origin of the coordinate axis). It is worth noting that the data here comes from the temporary table TI_XXX of the first invoice, that is, Figure 3 The table shown. Since the data to be analyzed is no longer the first three taxpayers, but the upstream data of these three taxpayers.

[0041] For example: if the data starts to circulate from the second layer, it means that the upstream 2-layer data needs to be generated. When the second layer is generated, the data relies on the first layer data, and the category is -1;

[0042] If the data starts to circulate from the third layer, it means that I want to generate 3 layers of upstream data. When generating the third layer, the data is based on the second layer data, and the category is -2;

[0043] Therefore, if you want to generate N layers of upstream data, you need to find data with category (N-1) * -1 in the invoice temporary table TI_XXX.

[0044] Therefore, the taxpayer's sales items in the data with category (N-1) * -1 in TI_XXX are taken as input items, and the relevant invoice data is obtained from the invoice summary information. The data generated at this time is as follows Figure 5 shown.

[0045] 3) Obtain the first-tier purchaser taxpayer:

[0046] That is, get the downstream enterprises of the current taxpayer and get the downstream invoice purchasing enterprises. Take the current taxpayer as the seller. Take the taxpayer in the current collection as the seller taxpayer, get all the relevant invoice data from the invoice summary information, and store it in the invoice temporary table TI_XXX. At this time, the category is 1; the data structure generated at this time is as follows Figure 6 shown.

[0047] 4) Obtain the 2nd to Nth level purchaser taxpayers:

[0048] This is equivalent to expanding to the right to obtain the downstream of the downstream and the buyer of the buyer. At this time, the buyer needs to be the seller and obtain the invoice data from the upstream and downstream summary table.

[0049] Here we need to loop, the category subscript is 1, that is, starting from 2, we move away from the origin of the coordinate axis. It should be noted that the data here comes from Figure 6 The first level of purchaser taxpayer data in the temporary invoice table TI_XXX. Because the data to be analyzed here is no longer the first three taxpayers, but the downstream data of these three taxpayers.

[0050] If the data starts to circulate from the second layer, it means that the downstream 2 layers of data are to be generated. When the second layer is generated, the data relies on the first layer data, and the category is 1; if the data starts to circulate from the third layer, it means that the downstream 3 layers of data are to be generated. When the third layer is generated, the data relies on the second layer data, and the category is 2.

[0051] Therefore, if you want to generate N layers of downstream data, you need to find data with category (N-1) * 1 in the invoice temporary table TI_XXX.

[0052] Therefore, the taxpayer's input items in the data with category (N-1)*1 in TI_XXX are taken as output items, and the relevant invoice data is obtained from the invoice summary information. The data generated at this time is as follows Figure 7 shown.

[0053] After the above steps, for any taxpayer, the upstream and downstream associated data of the invoice data corresponding to the taxpayer can be obtained.

[0054] Step 3: Based on the upstream and downstream association data of the invoice data corresponding to each taxpayer, the association relationship between different taxpayers is obtained, and the association relationship between different taxpayers is used to draw an invoice issuance association relationship map. In the invoice switch association relationship map drawn, each node corresponds to a unique taxpayer, and the required tax-related information can be expanded at each node.

[0055] In the embodiment of the present invention, the tax-related information expanded at each node includes the taxpayer, the financial person in charge, the legal person, the investor, the telephone number and / or the MAC address;

[0056] After the expansion, when taxpayers at different nodes have the same tax-related information, identification lines are used to connect the nodes with the same tax-related information, and different tax-related information is indicated by lines of different colors. Figure 1 For the specific generated invoice switch association relationship map, Figure 2 In the example, since taxpayers 10, 14 and 15 have the same invoicing MAC address, after they are connected, the association status between them can be intuitively displayed, which can not only analyze invoice data but also analyze personnel relationships.

[0057] In the specific implementation, the open source component d3.js force-directed graph and the yFiles plug-in are used to draw the invoice issuance association relationship map, and the nodes in the invoice issuance association relationship map are expanded with tax-related information. Specifically, the specific process and method of using the open source component d3.js force-directed graph and the yFiles plug-in to draw the invoice issuance association relationship map are well known to those skilled in the art and will not be repeated here.

[0058] In the embodiment of the present invention, when yFiles is drawn, the following methods may be used, specifically:

[0059] 1) According to the upstream and downstream association data of the invoice data corresponding to each taxpayer, the association relationship between different taxpayers can be obtained, so as to obtain the node set arrList and traverse the set.

[0060] 2) Use hashTable(key, obj) and the variable mHTAllCompany to store nodes, so the search speed is fast!

[0061] 3) Get the upstream node Node, and use mHTAllCompany to determine whether it exists. If it does not exist, create the Node through the Enterprise.as class;

[0062] 4) Get the downstream node Node, and use mHTAllCompany to determine whether it exists. If it does not exist, create the Node through the Enterprise.as class;

[0063] Traverse the upstream and find the downstream node.

[0064] Specifically, after creating a node, such as node Node1--ànode Node2, a line will be automatically generated from node 1 to node 2, and a hierarchical relationship will be generated. The specific method of drawing using the yFiles plug-in can be selected as needed, which is well known to those in the art and will not be repeated here.

Claims

1. A data analysis method based on value-added tax invoices, characterized in that: The data analysis method comprises the following steps: Step 1: Obtain invoice data information, and process the invoice data information to obtain the required invoice summary information; Step 2: For any taxpayer, the transaction information in the invoice summary information is used to obtain the upstream and downstream associated data of the invoice data corresponding to the current taxpayer; Step 3: Obtain the association relationship between different taxpayers based on the upstream and downstream association data of the invoice data corresponding to each taxpayer, and draw an invoice issuance association relationship map using the association relationship between different taxpayers. In the invoice issuance association relationship map drawn, each node corresponds to a unique taxpayer, and the required tax-related information can be expanded at each node; Using the open source component d3.js force-directed graph and the yFiles plug-in to draw an invoice issuance association relationship map, and expanding the nodes in the invoice issuance association relationship map with tax-related information; In step 2, when obtaining the upstream and downstream related data of the invoice data corresponding to the current taxpayer, a chain analysis method is used to display the upstream and downstream related data of the invoice data corresponding to the current taxpayer; In order to distinguish the relationship between the upstream and downstream levels, a method similar to the coordinate axis is used, and the data is finally stored in the result temporary table; when analyzing the flow direction, it is necessary to set the current analysis node, that is, the current taxpayer, and all invoice flows pass through this node, and the flows that do not pass through this node are not displayed; When drawing based on yFiles, it includes: 1) According to the upstream and downstream association data of the invoice data corresponding to each taxpayer, the association relationship between different taxpayers can be obtained, so as to obtain the node set arrList and traverse the set; 2) Use hashTable(key, obj) and the variable mHTAllCompany to store nodes; 3) Get the upstream node Node, and use mHTAllCompany to determine whether it exists. If it does not exist, create the Node through the Enterprise.as class; 4) Get the downstream node Node, and use mHTAllCompany to determine whether it exists. If it does not exist, create the Node through the Enterprise.as class; Traverse the upstream and find the downstream node.

2. The data analysis method based on value-added tax invoices according to claim 1 is characterized in that: The tax-related information expanded by each node includes the taxpayer, financial manager, legal person, investor, telephone number and / or MAC address; After the expansion, when taxpayers at different nodes have the same tax-related information, identification lines are used to connect the nodes with the same tax-related information, and different tax-related information is indicated by lines of different colors.

3. The data analysis method based on value-added tax invoices according to claim 1 is characterized in that: In step 1, the invoice data information is obtained in the form of electronic ledger, anti-counterfeiting tax control data or manually imported invoice data, and the invoice data information includes basic information of the taxpayer, invoice issuance information and detailed data of each invoice.

4. The data analysis method based on value-added tax invoices according to claim 3 is characterized in that: After obtaining the invoice data information, the obtained invoice data information is matched with the standard data field, and after matching, the invoice data standard information can be obtained; The invoice summary information includes an invoice summary table, a taxpayer MAC address table, a taxpayer investor table, a commodity name summary table, a taxpayer motherboard serial number table and / or a taxpayer association result table.