Method and device for configuring tax classification codes and electronic equipment
By automatically analyzing and configuring tax classification codes, the problem of low efficiency of manually adding tax classification codes when issuing invoices is solved, and efficient and accurate tax classification code completion is achieved, which adapts to the latest invoice data requirements of the State Taxation Administration.
Patent Information
- Application Number
- CN202311631021.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, tax classification codes need to be added manually when issuing invoices, resulting in low efficiency, high error rate, and wasted a lot of human resources and time.
By analyzing the document data, the corresponding tax classification code is automatically checked and configured for the product details that do not have tax classification codes, and the tax classification code database is used to obtain the corresponding tax classification code based on the product element information.
It improves the efficiency of completing the tax classification code of the goods, reduces the waste of human resources and time, and reduces the error rate, so that the generated invoices meet the latest requirements of the State Taxation Administration.
Smart Images

Figure CN120069984A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of financial data processing, and in particular, to a method, apparatus, and electronic device for configuring tax classification codes. Background Art
[0002] Currently, for invoices issued, the tax administration department requires that the commodity details need to carry the tax classification codes to which the commodities belong, for the management department to count the growth or proportion of commodities under each classification, etc. Before this requirement, tax classification codes were not required in the invoice information issued. For the new invoice issuance requirement, it is necessary to manually add the tax classification codes to which each commodity belongs when issuing invoices. This manual addition method will waste a large amount of human resources and time, and the efficiency of issuing invoices is low, and the error rate is high. Summary of the Invention
[0003] This application provides a method, apparatus, and electronic device for configuring tax classification codes, which are used to automatically configure corresponding tax classification codes for commodity details without tax classification codes, effectively improving the efficiency of completing the tax classification codes to which the commodities belong.
[0004] In a first aspect, this application provides a method for configuring tax classification codes, and the method includes:
[0005] When receiving document data, parse the document data to obtain a document object, where the document object contains multiple lines of commodity details;
[0006] Check whether there is target commodity detail in the document object, where the target commodity detail is commodity detail without a tax classification code;
[0007] When there is target commodity detail in the document object, configure a corresponding tax classification code for the target commodity detail in the document object.
[0008] In a possible design, configuring a corresponding tax classification code for the target commodity detail in the document object includes: obtaining, from a tax classification code database, the tax classification code corresponding to the element information according to the element information of the target commodity detail, where the tax classification code database stores tax classification code information corresponding to different element information; adding the tax classification code to the target commodity detail.
[0009] In a possible design, obtaining the tax classification code corresponding to the element information from the tax classification code database according to the element information in the target commodity details includes: searching for the commodity record corresponding to the commodity name in the element information of the target commodity details from the tax classification code database; when there are multiple commodity records corresponding to the commodity name, filtering the multiple commodity records according to the specification model in the element information to obtain a target commodity record, where the target commodity record is the commodity record corresponding to the specification model; if there is only one target commodity record, obtaining the tax classification code from the target commodity record; or, if there are multiple target commodity records, selecting a first target commodity record that meets the preset requirements from the multiple target commodity records, and obtaining the tax classification code from the first target commodity record.
[0010] In a possible design, checking whether the document object has target commodity details includes: checking each row of the commodity details in the document object one by one; determining whether there is a corresponding tax classification code in each row of the commodity details, and taking the commodity details without a tax classification code as the target commodity details.
[0011] In a second aspect, the present application provides a device for configuring tax classification codes, and the device includes:
[0012] A parsing module, when receiving document data, parses the document data to obtain a document object, where the document object contains multiple rows of commodity details;
[0013] An inspection module, which inspects whether the document object has target commodity details, where the target commodity details are commodity details without a tax classification code;
[0014] A configuration module, when the document object has target commodity details, configures the corresponding tax classification code for the target commodity details in the document object.
[0015] In a possible design, the configuration module is specifically configured to: obtain the tax classification code corresponding to the element information from the tax classification code database according to the element information of the target commodity details, where the tax classification code database stores tax classification code information corresponding to different element information; add the tax classification code to the target commodity details.
[0016] In a possible design, the configuration module is further configured to: look up, in the tax classification code database, a product record corresponding to the product name in the element information of the target product details; when there are multiple product records corresponding to the product name, filter the multiple product records according to the specification model in the element information to obtain a target product record, where the target product record is the product record corresponding to the specification model; if there is only one target product record, obtain the tax classification code from the target product record; or, if there are multiple target product records, select a first target product record that meets the preset requirements from the multiple target product records, and obtain the tax classification code from the first target product record.
[0017] In a possible design, the checking module is specifically configured to: check each row of the product details in the document object one by one; determine whether there is a corresponding tax classification code in each row of the product details, and use the product details without a tax classification code as the target product details.
[0018] In a third aspect, the present application provides an electronic device, which includes:
[0019] A memory for storing a computer program;
[0020] A processor for implementing the method steps of the above-mentioned method for configuring a tax classification code when executing the computer program stored on the memory.
[0021] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program realizes the method steps of the above-mentioned method for configuring a tax classification code when executed by a processor.
[0022] For the various aspects in the second to fourth aspects above and the possible technical effects that each aspect may achieve, please refer to the technical effects that can be achieved by the above-mentioned first aspect or various possible solutions in the first aspect, and will not be repeated here. Description of the Drawings
[0023] Figure 1 It is a flowchart of a method for configuring a tax classification code provided by the present application;
[0024] Figure 2 It is a schematic diagram of a device for configuring a tax classification code provided by the present application;
[0025] Figure 3 It is a structural diagram of a possible document business system provided by the present application;
[0026] Figure 4A schematic diagram of the structure of an electronic device provided by this application. Detailed implementation manners
[0027] In order to make the objectives, technical solutions and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments.
[0028] In the description of this application, "a plurality of" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The connection between A and B can represent: two situations where A is directly connected to B and A is connected to B through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0029] See Figure 1 As shown, it is a schematic flowchart of a method for configuring tax classification codes provided by an embodiment of this application. The specific implementation process of this method is as follows:
[0030] Step 101: When receiving document data, parse the document data to obtain a document object;
[0031] In the embodiment of this application, the document data is an external file input into the document business system, and the format of the document data can be a text format, an Excel format, a compressed package format, etc. The document object is a file used internally in the document business system, containing specific face information. Each document object contains multiple lines of commodity details, and each line of commodity details records different commodity information. For example, the commodity details record information such as commodity name, commodity specification, commodity unit price, commodity quantity, and tax classification code.
[0032] Specifically, when receiving document data, parse the document data to obtain a document object. The obtained document object may be one or multiple, depending on the specific situation of the document data.
[0033] By parsing the document data, a document object containing specific commodity detail information can be obtained, which is convenient for subsequent processing based on the commodity detail information in the document object.
[0034] After obtaining the document object, the specific processing process for each document object is the same. The following takes the processing process of one document object as an example for detailed elaboration.
[0035] Step 102: Check whether there is a target commodity detail in the document object;
[0036] Specifically, after obtaining the document object, check each line of all the commodity details in the document object to determine whether there is a corresponding tax classification code for each line of commodity details, and use the commodity details without a tax classification code as the target commodity details.
[0037] In a possible implementation manner, when there are no target commodity details in the document object, that is, there is a corresponding tax classification code for each line of commodity details in the document object, directly store the document object, which can be stored in the document database for subsequent invoicing processing.
[0038] In a possible implementation manner, when there are target commodity details in the document object, perform the operation of step 103.
[0039] In the embodiment of the present application, there may be N lines of target commodity details in a document object, where N is an integer greater than 0, that is, there may be N lines of commodity details without corresponding tax classification codes in a document object.
[0040] Step 103: When there are target commodity details in the document object, configure corresponding tax classification codes for the target commodity details in the document object.
[0041] In the embodiment of the present application, when there are target commodity details in the document object, corresponding tax classification codes need to be configured for the target commodity details.
[0042] Specifically, according to the element information in the target commodity details, obtain the tax classification code corresponding to the element information from the tax classification code database, and add the obtained tax classification code to the corresponding target commodity details.
[0043] The tax classification code database is a pre-constructed database, and the tax classification code database stores tax classification code information corresponding to different element information. The element information may include but is not limited to commodity name, commodity specification, etc.
[0044] Specifically, according to the commodity name in the element information of the target commodity details, search for the commodity record corresponding to the commodity name in the tax classification code database, and there is a tax classification code corresponding to the commodity name in the commodity record. For example, Table 1 below shows the commodity record with the commodity name "xx keyboard" in the tax classification code database.
[0045] Commodity Name Specification Model …… Tax Classification Code xx Keyboard x68 …… A xx Keyboard x75 …… B xx Keyboard x99 …… C …… …… …… ……
[0046] Table 1
[0047] When there are multiple commodity records corresponding to the commodity name, the multiple commodity records can be filtered according to the specification model in the element information of the target commodity details to obtain the target commodity record corresponding to the specification model.
[0048] For example, in Table 1 above, there are multiple commodity records with the commodity name "xx Keyboard". At this time, if the specification model in the target commodity details is "x75", the commodity record corresponding to the specification model "x75" is obtained from the multiple commodity records, and this commodity record is the target commodity record.
[0049] In a possible case, if there is only one target commodity record, the tax classification code is directly obtained from the target commodity record, and this tax classification code is the tax classification code corresponding to the commodity recorded in the target commodity details.
[0050] In a possible case, if there are also multiple target commodity records, the first target commodity record that meets the preset requirements is selected from the multiple target commodity records. For example, according to the arrangement order, the first record is default selected as the first target commodity record, or the record with the highest tax rate can also be selected as the first target commodity record, and the preset requirements can be set according to actual needs.
[0051] After selecting the first target commodity record according to the preset requirements, the tax classification code is obtained from the first target commodity record, and this tax classification code is the tax classification code corresponding to the commodity recorded in the target commodity details.
[0052] For example, in Table 2 below, there are two commodity records with the commodity name "xx Keyboard" and the specification model "x75". According to the preset requirements, the first record is default selected as the first target commodity record. Then, in the table, the commodity record with the commodity name "xx Keyboard", the specification model "x75", and the type "membrane keyboard" is the first target commodity record, and the tax classification code "B" can be obtained from it. 1 ”。
[0053] Commodity Name Specification Model Type …… Tax Classification Code xx Keyboard x75 Membrane Keyboard …… <![CDATA[B 1 > xx Keyboard x75 Mechanical Keyboard …… <![CDATA[B 2 >
[0054] Table 2
[0055] After obtaining the tax classification code corresponding to the commodity recorded in the target commodity details, the tax classification code is added to the target commodity details to complete the configuration of the tax classification code of the target commodity details.
[0056] Furthermore, after completing the configuration of the corresponding tax classification code for the target commodity details in the document object, the completed document object is obtained, and the completed document object is saved again and stored in the document database for subsequent invoicing processing.
[0057] By checking the tax classification codes for each line of commodity details in the document object, the target commodity details without configured tax classification codes can be determined, and then the tax classification codes for the target commodity details can be automatically completed in a targeted manner. This way of automatically checking and configuring tax classification codes improves the efficiency of adding tax classification codes corresponding to commodities, reduces a large amount of human resources and time, and makes the subsequent generated invoices meet the latest invoice data requirements of the State Taxation Bureau, achieving a smooth transition to the new invoice requirements.
[0058] Based on the same inventive concept, the present application also provides a device for configuring tax classification codes, which is used to automatically configure corresponding tax classification codes for commodity details without tax classification codes, effectively improving the efficiency of completing the tax classification codes to which the commodities belong. See Figure 2 and the device includes:
[0059] Parsing module 201, when receiving document data, parses the document data to obtain a document object, where the document object contains multiple lines of commodity details;
[0060] Checking module 202, checks whether there are target commodity details in the document object, where the target commodity details are commodity details without tax classification codes;
[0061] Configuration module 203, when there are target commodity details in the document object, configures corresponding tax classification codes for the target commodity details in the document object.
[0062] In a possible design, the configuration module is specifically used to: obtain the tax classification code corresponding to the element information from the tax classification code database according to the element information of the target commodity details, where the tax classification code database stores tax classification code information corresponding to different element information; add the tax classification code to the target commodity details.
[0063] In a possible design, the configuration module is further used to: search for the commodity record corresponding to the commodity name in the tax classification code database according to the commodity name in the element information of the target commodity details; when there are multiple commodity records corresponding to the commodity name, filter the multiple commodity records according to the specification model in the element information to obtain a target commodity record, where the target commodity record is the commodity record corresponding to the specification model; if there is only one target commodity record, obtain the tax classification code from the target commodity record; or, if there are multiple target commodity records, select a first target commodity record that meets the preset requirements from the multiple target commodity records, and obtain the tax classification code from the first target commodity record.
[0064] In a possible design, the checking module is specifically configured to: check each line of all the commodity details in the document object one by one; determine whether there is a corresponding tax classification code for each line of commodity details, and regard the commodity details without a tax classification code as target commodity details.
[0065] Based on the above device, the document data of the external file is parsed and converted into a document object for internal processing. The tax classification codes of each line of commodity details in the document object are checked to determine the target commodity details without corresponding tax classification codes. According to the element information in the target commodity details, the corresponding tax classification codes are obtained from the pre-constructed tax classification code database, and the obtained tax classification codes are added to the corresponding target commodity details, so as to realize the configuration of the tax classification codes of the target commodity details. This way of automatically checking and configuring tax classification codes improves the efficiency of adding the tax classification codes corresponding to commodities, reduces a large amount of human resources and time, and makes the subsequent generated invoices meet the latest invoice data requirements of the State Taxation Bureau, achieving a smooth transition to the new invoice requirements.
[0066] Based on the same inventive concept, an embodiment of the present application further provides a possible document business system for automatically configuring the corresponding tax classification codes for the commodity details without tax classification codes. Refer to Figure 3 , this document business system includes:
[0067] A document parsing device for parsing the document data in the external file and converting it into a document object for internal use in the document business system.
[0068] A document database for storing document objects and providing document data for subsequent invoice processing.
[0069] A tax classification code checking device for checking whether the tax classification code information corresponding to each of all the commodity details in the document object is complete.
[0070] A tax classification code complementing device for complementing the tax classification codes of the commodity details lacking tax classification codes in the document object.
[0071] A tax classification code database for storing the tax classification code information corresponding to the element information of each commodity that needs to issue an invoice.
[0072] In the embodiment of the present application, the business processing process of the document business system is specifically as follows:
[0073] When the document parsing device receives the document data, it parses the document data and converts it into a document object for internal processing in the system. The document object contains multiple lines of commodity details, and each line of commodity details records different commodity information.
[0074] The document parsing device passes the parsed document object to the tax classification code checking device. The tax classification code checking device checks each line of all the commodity details in the document object one by one to determine whether there is a corresponding tax classification code for each line of commodity details. If there is a corresponding tax classification code for all the commodity details in the document object, the document object does not need to have its tax classification code completed, and the document object is returned to the document parsing device, which stores the document object in the document database. If there is at least one line of commodity details in the document object that does not have a corresponding tax classification code, the document object needs to have its tax classification code completed. In the embodiment of the present application, the commodity details without corresponding tax classification codes can be used as target commodity details, and the document object with at least one line of target commodity details can be used as the target document object.
[0075] After determining the target document object, the tax classification code checking device passes the target document object to the tax classification code completion device. The tax classification code completion device scans each line of the commodity details in the target document object one by one. When scanning the target commodity details, according to the element information in the target commodity details, such as the commodity name, it looks up the commodity record corresponding to the commodity name in the tax classification code database. The commodity record includes information such as the commodity name, specification model, and tax classification code. If there are multiple commodity records corresponding to the commodity name found, the multiple commodity records are filtered according to the specification model to obtain the commodity record corresponding to the specification model, and the commodity record corresponding to the specification model is used as the target commodity record.
[0076] If there is only one target commodity record, directly obtain the tax classification code from the target commodity record, and add the tax classification code to the corresponding target commodity details to complete the completion of the tax classification code for the target commodity details.
[0077] If there are also multiple target commodity records, select the first target commodity record that meets the preset requirements from the multiple target commodity records. The preset requirements can be set according to actual needs. For example, according to the arrangement order, by default, the first record is selected as the first target commodity record. After selecting the first target commodity record, obtain the tax classification code from the first target commodity record, and add the tax classification code to the corresponding target commodity details to complete the completion of the tax classification code for the target commodity details.
[0078] After the tax classification code completion device completes the completion of the tax classification code for the target commodity details in the target document object, it passes the completed document object back to the document parsing device, and the document parsing device saves the completed document object to the document database.
[0079] By using the above-mentioned document business processing system to check the tax classification codes for each line of commodity details in the document object, it is possible to identify the target commodity details without configured tax classification codes, and then automatically complete the tax classification codes for the target commodity details in a targeted manner. This way of automatically checking and configuring tax classification codes improves the efficiency of adding tax classification codes corresponding to commodities and reduces a large amount of human resources and time.
[0080] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application. The electronic device can implement the functions of the aforementioned device for configuring tax classification codes. Refer to Figure 4 , the electronic device includes:
[0081] At least one processor 401, and a memory 402 connected to at least one processor 401. In the embodiment of the present application, the specific connection medium between the processor 401 and the memory 402 is not limited. Figure 4 In [reference], it is taken as an example that the processor 401 and the memory 402 are connected through a bus 400. The bus 400 is represented by a thick line in Figure 4 . The connection manners between other components are only for illustrative purposes and are not to be construed as limitations. The bus 400 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 4 it is only represented by a thick line in [reference], but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 401 can also be called a controller, and there is no limitation on the name.
[0082] In the embodiment of the present application, the memory 402 stores instructions executable by at least one processor 401. By executing the instructions stored in the memory 402, at least one processor 401 can execute the method for configuring tax classification codes discussed above. The processor 401 can implement Figure 2 the functions of each module in the device shown.
[0083] Among them, the processor 401 is the control center of the device. It can connect various parts of the entire control device through various interfaces and lines. By running or executing the instructions stored in the memory 402 and calling the data stored in the memory 402, various functions of the device and process data, thereby monitoring the device as a whole.
[0084] In a possible design, the processor 401 may include one or more processing units. The processor 401 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401 either. In some embodiments, the processor 401 and the memory 402 may be implemented on the same chip, and in some embodiments, they may also be separately implemented on independent chips.
[0085] The processor 401 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method for configuring tax classification codes disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0086] As a non-volatile computer-readable storage medium, the memory 402 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 402 may include at least one type of storage medium, for example, it may include flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (RAM), a static random access memory (SRAM), a programmable read-only memory (PROM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic memory, a magnetic disk, an optical disk, and so on. The memory 402 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 402 in the embodiments of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.
[0087] By designing and programming the processor 401, the code corresponding to the method for configuring tax classification codes introduced in the foregoing embodiments can be solidified into the chip, so that the chip can execute when running Figure 1Steps of the method for configuring tax classification codes in the illustrated embodiments. How to design and program the processor 401 is a well-known technique to those skilled in the art and will not be elaborated here.
[0088] Based on the same inventive concept, an embodiment of the present application also provides a storage medium storing computer instructions, which, when run on a computer, cause the computer to execute the method for configuring tax classification codes described above.
[0089] In some possible implementation manners, various aspects of the method for configuring tax classification codes provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a device, the program code is used to cause the control device to execute the steps in the method for configuring tax classification codes according to various exemplary embodiments of the present application described above in this specification.
[0090] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a device, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0091] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one or more flows and / or Figure 1 blocks or multiple blocks.
[0092] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in Figure 1 one or more flows and / or Figure 1 blocks or multiple blocks.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so as to cause a series of operational steps to be performed on the computer or other programmable apparatus to generate a computer-implemented process, thereby providing steps for implementing the functions specified in one flow Figure 1 one or more flows and / or blocks Figure 1 in one block or more blocks.
[0094] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to cover these changes and modifications.
Claims
1. A method for configuring tax classification codes, characterized in that, the method includes: When receiving document data, parsing the document data to obtain a document object, where the document object contains multiple lines of commodity details; Checking whether there is a target commodity detail in the document object, where the target commodity detail is a commodity detail without a tax classification code; When there is a target commodity detail in the document object, configuring a corresponding tax classification code for the target commodity detail in the document object.
2. The method according to claim 1, characterized in that, configuring a corresponding tax classification code for the target commodity detail in the document object includes: According to the element information of the target commodity detail, obtaining the tax classification code corresponding to the element information from the tax classification code database, where the tax classification code database stores tax classification code information corresponding to different element information; Adding the tax classification code to the target commodity detail.
3. The method according to claim 2, characterized in that, obtaining the tax classification code corresponding to the element information from the tax classification code database according to the element information in the target commodity detail includes: According to the commodity name in the element information of the target commodity detail, searching in the tax classification code database for the commodity record corresponding to the commodity name; When there are multiple commodity records corresponding to the commodity name, filtering the multiple commodity records according to the specification model in the element information to obtain a target commodity record, where the target commodity record is the commodity record corresponding to the specification model; If there is only one target commodity record, obtaining the tax classification code from the target commodity record; or, If there are multiple target commodity records, selecting a first target commodity record that meets the preset requirements from the multiple target commodity records, and obtaining the tax classification code from the first target commodity record.
4. The method according to claim 1, characterized in that, checking whether there is a target commodity detail in the document object includes: Checking each line of the commodity details in the document object one by one; Determining whether there is a corresponding tax classification code in each line of commodity details, and taking the commodity details without a tax classification code as the target commodity details.
5. A device for configuring tax classification codes, characterized in that, the device includes: A parsing module, which parses the document data to obtain a document object when receiving document data, where the document object contains multiple lines of commodity details; A checking module, which checks whether there is a target commodity detail in the document object, where the target commodity detail is a commodity detail without a tax classification code; A configuration module, which configures a corresponding tax classification code for the target commodity detail in the document object when there is a target commodity detail in the document object.
6. The device according to claim 5, characterized in that, the configuration module is specifically used for: Obtain the tax classification code corresponding to the element information from the tax classification code database according to the element information of the target commodity details, wherein the tax classification code database stores tax classification code information corresponding to different element information; Add the tax classification code to the target commodity details.
7. The device according to claim 5, characterized in that, the configuration module is further configured to: Search for the commodity record corresponding to the commodity name in the element information of the target commodity details from the tax classification code database; When there are multiple commodity records corresponding to the commodity name, filter the multiple commodity records according to the specification model in the element information to obtain a target commodity record, wherein the target commodity record is the commodity record corresponding to the specification model; If there is only one target commodity record, obtain the tax classification code from the target commodity record; or, If there are multiple target commodity records, select a first target commodity record that meets the preset requirements from the multiple target commodity records, and obtain the tax classification code from the first target commodity record.
8. The device according to claim 5, characterized in that, the inspection module is specifically configured to: Check each row of all commodity details in the document object one by one; Determine whether there is a corresponding tax classification code in each row of commodity details, and use the commodity details without a tax classification code as the target commodity details.
9. An electronic device, characterized in that, comprising: A memory for storing a computer program; A processor for implementing the method steps described in any one of claims 1-4 when executing the computer program stored on the memory.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1-4 are implemented.