WO2019019631A1 - Blank invoice invalidation processing method, readable storage medium, server, and device - Google Patents
Blank invoice invalidation processing method, readable storage medium, server, and device Download PDFInfo
- Publication number
- WO2019019631A1 WO2019019631A1 PCT/CN2018/077245 CN2018077245W WO2019019631A1 WO 2019019631 A1 WO2019019631 A1 WO 2019019631A1 CN 2018077245 W CN2018077245 W CN 2018077245W WO 2019019631 A1 WO2019019631 A1 WO 2019019631A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- invoice
- blank
- tax control
- target
- invalidation
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/04—Billing or invoicing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
- G06Q40/123—Tax preparation or submission
Definitions
- the present application relates to the field of financial technology, and in particular, to a blank processing method for blank invoice processing, a computer readable storage medium, a server, and a device.
- the flow of blank invoices is: purchase blank invoices from the tax bureau ⁇ tax filing tray ⁇ core board ⁇ billing terminal.
- the invoicing terminal After the blank invoice is distributed to the invoicing terminal, if the paper invoice corresponding to the blank invoice is damaged or the like, the user who needs the invoicing terminal actively applies for the blanking of the damaged blank invoice.
- the enterprise's invoice management system needs to call the invalidation interface of the special tax control server (such as the tax control server of Baiwang) (the tax control invalidation interface), which is provided by the browser plug-in. Javascript interface to achieve.
- the invoice management system often calls the browser to respond slowly or even jam when calling the tax control invalidation interface.
- the browser is stuck, the user closes the browser, the client computer is powered off, etc.
- the local invoice management system cannot obtain the return result of the tax control invalidation interface in time and accurately, so it is difficult to determine whether the result of the blank blank invoice is successful or not, which leads to the inventory of the blank invoice stored in the invoice management system and the tax control system. Inconsistent issues.
- the embodiment of the invention provides a blank invoice processing method, a storage medium and a server, which are used in the inventory and tax control system of the blank invoice which is easily stored in the invoice management system when the return result of the tax control invalid interface is not known. Inconsistent issues.
- a blank blank invoice processing method including:
- the target invoice number segment to be invalidated is determined in the blank invoice available on the target invoicing terminal;
- the invoice information table on the tax control system is queried to determine whether the current blank invoice is invalid.
- the current blank invoice refers to the tax control invalidation interface.
- a blank invoice to be voided the invoice information table records information on the success or failure of each blank invoice on the tax control system;
- the information that the current blank invoice has been invalidated is updated to the blank invoice inventory of the invoice management system, and the next blank invoice of the current blank invoice is started, and the execution is performed in turn.
- the blank invoice in the target invoice number segment invokes the step of the tax control invalidation interface provided by the tax control system;
- a computer readable storage medium is stored, the computer readable storage medium storing computer readable instructions, the step of implementing the blanking invoice processing method of the blank invoice when executed by a processor .
- a server comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor implementing the computer readable instructions The steps of the above blank blank invoice processing method.
- a blank processing device for blank invoice including:
- a rule judging module configured to determine whether a blank invoice available on the target invoicing terminal meets a preset invalidation rule of the tax control system after determining the target invoicing terminal that needs to invalidate the blank invoice;
- a discarding segment determining module configured to determine, in the blank invoice available on the target invoicing terminal, a target invoice number segment to be invalidated if the judgment result of the rule judging module is yes;
- the invalid query judging module is configured to: if the judgment result of the sequentially calling and judging module is no, determine whether the current blank invoice is invalid by querying the invoice information table on the tax control system, wherein the current blank invoice refers to the current invoice Invoking a blank invoice to be voided by the tax control invalidation interface, the invoice information table recording information on the success or failure of each blank invoice on the tax control system;
- An inventory update module configured to: if the judgment result of the invalid query determination module is yes, update the information that the current blank invoice has been invalidated to the blank invoice inventory of the invoice management system, and from the current blank invoice The next blank invoice begins, returning to trigger the sequential call and judgment module;
- the invoice information table can be inquired to know whether the current blank invoice is invalid, and then the corresponding processing is performed, which can ensure that the blank invoice of the target invoice number segment can be completed and invalidated, and the invoice management system is ensured to be stored. Blank invoice inventory is consistent with this tax control system.
- FIG. 1 is a flow chart of an embodiment of a blank invoice processing method in an embodiment of the present application
- FIG. 2 is a schematic flowchart of step 101 of a blank invoice processing method in an application scenario according to an embodiment of the present application
- FIG. 3 is a schematic flowchart of steps 104 and 105 of a blank invoice processing method in an application scenario according to an embodiment of the present application;
- FIG. 4 is a flow chart of another embodiment of a method for processing a blank invoice in the embodiment of the present application.
- FIG. 5 is a structural diagram of an embodiment of a blank invoice processing apparatus according to an embodiment of the present application.
- FIG. 6 is a schematic diagram of a server according to an embodiment of the present application.
- an embodiment of a method for processing a blank invoice in an embodiment of the present application includes:
- the user may log in to the invoice management system first.
- the user needs to verify the user's account number, password, and the like. If the verification is passed, the user is successfully logged into the invoice management system.
- the invoice management system can automatically load which invoicing terminals are under the user's administrative authority. After loading, the user can select one invoicing terminal as the target invoicing terminal as needed.
- the invoice management system needs to determine whether the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system.
- the tax control system strictly limits the invalidation of blank invoices, and the limitation is achieved by prescribing the invalidation rules.
- the above-mentioned default invalidation rule may include: a blank blank invoice must be under the target invoicing terminal, that is, one invoicing terminal cannot invalidate a blank invoice on another invoicing terminal; the blank blank invoice must be the target invoicing The first available blank invoice for the terminal; and so on. Since the invoicing terminal needs to invoice in strict accordance with the invoice order, the “first available blank invoice” referred to here refers to the blank invoice with the current invoicing order.
- the blank invoice No. 1 is the first available blank invoice for the invoicing terminal; when the blank invoice No. 1 ⁇ 10 has been invoiced, the blank invoice No. 11 is The first available blank invoice for the invoicing terminal.
- step 101 may specifically include:
- step 204 Determine whether the first segment includes the second segment, and the first blank invoice in the second segment is the same as the first invoice, and if yes, perform step 205, if no Go to step 206;
- the invoice management system may invoke the “Query Current Unbilled Number” interface of the tax control system to query the first blank invoice currently available to the target invoicing terminal, and specifically query the invoice code of the blank invoice and/or Information such as the invoice number. Record this blank invoice as the first invoice C.
- the invoice management system may invoke the "purchase information inquiry" interface of the tax control system to query the invoice number segment of all the blank invoices on the target invoicing terminal, and record the invoice number segment of the inquiry as the first segment.
- step 203 it can be understood that in the invoice management system, all available blank invoices and the invoice number segments in which the blank invoices are located can be recorded in the invoice database. Therefore, the invoice number segment in which the first invoice is located in the invoice management system can be queried, that is, the second segment A.
- the second paragraph can be understood as a collection of blank invoices, recorded as the set A[A1, An].
- step 204 it is determined whether B contains A and A1 is the same as C.
- B contains A means that the blank invoice number segment A where C is located is included in all the blank invoice number segments of the billing terminal, and "A1 and C are the same” means that the current first unissued (available) The invoice C is in the first position of the A section. This condition is due to the mandatory provisions of the tax control system. When the tax control system is called to invalidate the blank invoice, only the blank unfilled blank invoice is allowed to be invalidated.
- the invoicing terminal has a blank invoice of 1-100, where 1 is the first unfilled blank invoice, and the invoicing terminal can only start from 1 when invoicing, after 1 invoicing is completed (blue ticket or red ticket), Blank invoice 2 is used for the next invoicing, and so on.
- Blank invoice 2 is used for the next invoicing, and so on.
- the paper invoice corresponding to the blank invoice 50 is damaged, for example, if it is bitten by the insect, the blank invoice (electronic invoice) of No. 50 needs to be invalidated in the invoicing terminal, but since only the blank invoice 2 is currently used, this If the interface of the tax control system is called to invalidate the blank invoice 50, it will not be allowed, and a failure or error message will be returned. Therefore, the invoicing terminal can only wait for the blank invoice of No. 2-49 to be used, and it is the turn of the current unopened blank invoice to be 50, in order to successfully call the interface of the tax control system to invalidate the blank invoice 50.
- step 204 when the determination result in step 204 is YES, it indicates that the blank invoice available on the target invoicing terminal satisfies the preset invalidation rule of the tax control system, and step 205 is performed; otherwise, when the determination result in step 204 is no.
- step 206 is performed.
- the invoice management system can prompt the user to invoice the invoice number segment of the target invoicing terminal and the blank invoice number of the tax control system. The segments do not match and cannot be invalidated.
- the invoice management system may require the user to input the number m of blank invoices to be voided, where m ⁇ n. After the user inputs m and clicks the "OK Obsolete" button, the invoice management system can determine the blank invoice set [A1, Am] on the target invoicing terminal as the above-mentioned target invoice number segment to be voided.
- step 106 each time the tax control invalidation interface is invoked, it is determined whether the return result of the tax control invalidation interface is received, and if so, the normal flow step is performed, and if not, step 106 is performed;
- the above-mentioned tax control key is a security component pre-allocated to the user for tax control operation
- the tax control key may be specifically a hardware module similar to an electronic cipher, and the hardware module is required when calling the tax control invalidation interface.
- the legal verification of the tax control invalidation interface can be made after legal verification.
- the tax control invalidation interface is required to input the tax control key each time, the operation process becomes very cumbersome and inefficient, so in this embodiment, the tax is continuously called for the blank invoice in the target invoice number segment.
- the control is used as the waste interface, in general, the user only needs to input the tax control key once.
- the continuous call of the tax control invalidation interface can be interrupted. After the continuous call is interrupted, if you want to continue to call the tax control invalid interface for the blank invoice that has not been invalidated, you need to enter or confirm the tax control key again.
- the embodiment is not specifically limited.
- the success rate of calling the tax control invalidation interface is higher. Therefore, when the tax control invalidation interface is continuously called for the blank invoice in the target invoice number segment, all blank invoices can often be called through consecutive interfaces. Successfully invalidated.
- the invoice management system determines whether the return result of the tax control invalidation interface is received, and if a return result is received, Follow the normal process steps; otherwise, if no return results are received, then step 106 is performed.
- the foregoing steps 104 and 105 may specifically include:
- step 302 it is determined whether the return result of the tax control invalidation interface is received, if yes, step 303 is performed, and if not, step 106 is performed;
- step 303 determining whether the received result is invalid or invalid, if the result of the return is invalid, starting from the current blank invoice, returning to step 301, if the result of the return is invalid, proceed to step 304;
- step 305 determining whether all the blank invoices in the target invoice number segment are invalidated, if not, returning to step 301, and if so, executing step 306;
- first unfilled blank invoice refers to the blank invoice currently invalidated in the target invoice number segment.
- target invoice number segment is A1 ⁇ Am
- first unfilled blank invoice refers to the blank invoice A1 when the tax invoice is invalidated.
- Invoice A2 becomes the “first unfilled blank invoice”; and so on, assuming that k(k ⁇ m) blank invoice has been invalidated in A1 ⁇ Am, the blank invoice A(k+1) becomes the “ The first unfilled blank invoice.”
- step 303 is executed to further determine whether the returned result is invalid or invalid.
- step 303 if the returned result is invalid, the current blank invoice is not completed.
- the current blank invoice refers to the blank invoice to be invalidated when the tax control invalidation interface is called.
- the success rate can be as high as 99.99%. Therefore, it is basically ensured that the current blank invoice is completed.
- step 304 can be performed to update the blank invoice inventory on the invoice management system.
- step 304 when a blank invoice is invalidated, it indicates that the blank invoice is no longer available, so it needs to be deleted from the blank invoice inventory of the invoice management system, or in the blank invoice inventory of the invoice management system. Blank invoices are marked as obsolete.
- step 305 after each blank invoice is successfully invalidated, it is determined whether all blank invoices in the target invoice number segment are invalidated. If not, proceed to step 301 to invalidate the remaining blank invoices that are not invalidated. Otherwise, the end of the invalidation process, the blank processing method for blank invoice provided by the embodiment is completed.
- step 106 by querying the invoice information table on the tax control system to determine whether the current blank invoice is invalid, if yes, proceed to step 107, and if not, proceed to step 108;
- the current blank invoice refers to a blank invoice to be invalidated when the tax control invalidation interface is invoked, and the invoice information table records information about the success or failure of each blank invoice on the tax control system.
- the invoice management system may not receive the return result of the tax control invalidation interface due to various accident reasons, for the tax control system, the invoice information table records the success or failure of each blank invoice. Therefore, the invoice management system can query the invoice information table to know whether the current blank invoice is invalid. If the invalidation is successful, step 107 is performed; otherwise, if it is not invalid, step 108 is performed.
- the current blank invoice has been invalidated information updated to the blank invoice inventory of the invoice management system, and from the next blank invoice of the current blank invoice, return to step 104;
- the information that the current blank invoice has been invalidated may be updated to the blank invoice inventory of the invoice management system, that is, it is deleted from the blank invoice inventory of the invoice management system. Then, the invalidation operation is continued from the next blank invoice of the current blank invoice.
- step 108 Starting from the current blank invoice, return to step 104.
- the tax control invalidation interface needs to be called again for the current blank invoice to ensure that the current blank invoice is invalidated. Therefore, the invalidation operation can be continued from the current blank invoice.
- the invoice information table can be inquired to know whether the current blank invoice is invalid, and then the corresponding processing is performed, which can ensure that the blank invoice of the target invoice number segment can be invalidated, and the blank of the invoice management system is ensured.
- the invoice inventory is consistent with that in the tax control system.
- step 407 it is determined whether the return result of the tax control invalidation interface is received, if yes, step 410 is performed, and if not, step 408 is performed;
- step 408. Determine whether the current blank invoice is invalid by querying the invoice information table on the tax control system. If yes, execute step 409. If no, proceed from the current blank invoice to return to step 404.
- Step 410 determining whether the received result is invalid or invalid, if the result of the return is invalid, then steps 411 and 412 are performed, if the result of the return is invalid, step 413 is performed;
- step 415 determining whether all the blank invoices in the target invoice number segment are invalidated, if not, returning to step 404, and if so, executing step 416;
- the embodiment may also add a relevant identifier in the process of performing the invalidation operation on the blank invoice.
- a relevant identifier in the process of performing the invalidation operation on the blank invoice. It can be understood that, by setting the identification information of the current blank invoice, and calling the tax control to invalidate the interface, the identification information is set to "abnormal", for example, set to 0, after the tax control is invalidated, if the tax control is If the result of the invalid interface is a failure, the current blank invoice always has an abnormal condition in the invalidation operation, so the relevant information can be fed back to the designated administrator to remind the designated administrator to perform related maintenance.
- the designated administrator can quickly locate the blank invoice location where the exception occurs by using the preset flag information of the blank invoice, thereby helping the designated administrator to check and handle the abnormal situation.
- the preset flag information is modified to be normal, for example, set to "1", and the blank blank invoice which is normally invalidated can be distinguished from the blank invoice which is invalid.
- the invoice management system may further insert the invoice related information of the first unfilled blank invoice into the invoice database of the invoice management system. If the return result of the tax control invalidation interface is received and the return result is invalidation, the invoice related information of the current blank invoice is invalidated from the invoice database.
- the above-mentioned invoice related information refers to basic information and/or detailed information related to the current blank invoice.
- the basic information may include the applicant of the invoice, the application department, the application date, the purchaser, the purchase date, the warehousing personnel, the warehousing time and the like; the detailed information may include the invoice type of the invoice, the invoice denomination, the invoice score, the invoice code, and the like.
- Two different forms can be used in the invoice database to store the basic information and detailed information. If the return result of this tax control invalidation interface is invalid, it is not necessary to delete the invalid invoice related information, which will help the manager to query the invoice related information of each blank invoice that has been invalidated through these two forms, and Check it against the blank invoice inventory to verify that the data in the blank invoice inventory is accurate. If the return result of the tax control invalidation interface is invalidation, the invalidation cannot be considered to be valid, and thus the invoice related information of the current invalidation needs to be deleted from the invoice database.
- step 412 if the return result received after the tax control invalidation interface is invoked is invalid, the information about the invalidation of the current blank invoice may be fed back to the designated administrator, and the current blank invoice is started. Go back to step 404.
- the blank invoice inventory stored in the invoice management system and the tax control system may be periodically (e.g., executed once an hour).
- the blank invoice inventory is synchronized, which is based on the blank invoice inventory in the tax control system.
- the invoice management system can also find invoice data with deviations between the two blank invoices, and report the inconsistent invoice data to the designated administrator for subsequent maintenance and processing.
- FIG. 5 is a structural diagram showing an embodiment of a blank processing apparatus for blank invoice in the embodiment of the present application.
- a blank processing device for blank invoice includes:
- the rule judging module 501 is configured to determine, after determining the target invoicing terminal that needs to invalidate the blank invoice, whether the blank invoice available on the target invoicing terminal meets the preset invalidation rule of the tax control system;
- the invalid number segment determining module 502 is configured to: if the determination result of the rule determining module 501 is yes, determine a target invoice number segment to be invalidated in a blank invoice available on the target invoicing terminal;
- the call and judgment module 503 is sequentially used to sequentially call the tax control invalidation interface provided by the tax control system to the blank invoice in the target invoice number segment until all blank invoices in the target invoice number segment are invalidated. And each time the tax control invalidation interface is invoked, it is determined whether the return result of the tax control invalidation interface is received;
- the invalid query determination module 504 is configured to: if the judgment result of the sequential call and judgment module 503 is negative, determine whether the current blank invoice is invalid by querying the invoice information table on the tax control system, where the current blank invoice refers to The blank invoice to be invalidated by the tax control invalidation interface is called, and the invoice information table records information about the success or failure of each blank invoice on the tax control system;
- the inventory update module 505 is configured to: if the judgment result of the invalid query determination module 504 is yes, update the information that the current blank invoice has been invalidated to the blank invoice inventory of the invoice management system, and from the current The next blank invoice of the blank invoice starts, and returns to trigger the sequential call and judgment module 503;
- the return triggering module 506 is configured to: if the determination result of the invalid query determining module 504 is negative, start from the current blank invoice, and return to trigger the sequential calling and determining module 503.
- sequential calling and determining module may include:
- An interface calling unit configured to invoke a tax control invalidation interface provided by the tax control system for the first blank invoice in the target invoice number segment;
- a result receiving determining unit configured to determine whether a return result of the tax control invalidation interface is received
- a first return triggering unit configured to: if the result of the determination by the result receiving determining unit is YES and the returning result is invalid, starting from the current blank invoice, returning to trigger the interface calling unit;
- the invalidation information updating unit is configured to update the information that the current blank invoice has been invalidated to the blank invoice inventory of the invoice management system, if the result of the determination by the result receiving judging unit is yes and the return result is invalid, And determining whether all blank invoices in the target invoice number segment are invalidated;
- a second return triggering unit configured to: if the judgment result of the invalidation information updating unit is negative, return to trigger the interface calling unit;
- the invalidation end unit is configured to end the invalidation operation of the target invoice number segment if the determination result of the invalidation information update unit is YES.
- blank processing device for blank invoice further includes:
- a first flag information modification module configured to: before the interface calling unit invokes the tax control invalidation interface provided by the tax control system on the first unfilled blank invoice in the target invoice number segment, in the invoice management In the system, the preset flag information corresponding to the first blank invoice that is not invalidated is modified to be abnormal;
- the information feedback module is configured to: if the result of the determination by the result receiving determining unit is YES and the returning result is invalid, returning information about the failure of the current blank invoice to the designated administrator;
- the second flag information modification module is configured to modify the preset flag information corresponding to the current blank invoice to be normal if the result of the determination by the result receiving determination unit is YES and the return result is invalid.
- blank processing device for blank invoice further includes:
- a related information insertion module configured to: before the interface calling unit calls the tax control invalidation interface provided by the tax control system for the first unfilled blank invoice in the target invoice number segment, to the invoice management system Invoicing related information of the first unfilled blank invoice is invalidated in the invoice database;
- the related information deleting module is configured to delete the invoice related information that the current blank invoice is invalidated from the invoice database if the result of the result receiving determination unit is YES and the return result is invalid.
- rule determining module may include:
- a first query unit configured to query a blank invoice currently available on the target invoicing terminal recorded on the tax control system, and record the first invoice;
- a second query unit configured to query an invoice number segment of all blank invoices on the target invoicing terminal recorded on the tax control system, and record the first number segment;
- a third query unit configured to query an invoice number segment where the first invoice is located in the invoice management system, and record it as a second number segment;
- a segment determining unit configured to determine whether the first segment includes the second segment, and the first blank invoice available in the second segment is the same as the first invoice;
- the determining unit is configured to determine that the blank invoice available on the target invoicing terminal meets the preset invalidation rule of the tax control system if the determination result of the number segment determining unit is YES.
- FIG. 6 is a schematic diagram of a server according to an embodiment of the present application.
- the server 6 of this embodiment includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and executable on the processor 60, such as performing the blank.
- the procedure for the invalidation of invoices The processor 60 executes the computer readable instructions 62 to implement the steps in the embodiment of the blank processing method for each blank invoice, such as steps 101 to 108 shown in FIG.
- the processor 60 when executing the computer readable instructions 62, implements the functions of the various modules/units in the various apparatus embodiments described above, such as the functions of the modules 501 through 506 shown in FIG.
- the computer readable instructions 62 may be partitioned into one or more modules/units, which are stored in a computer readable storage medium, such as the memory 61, and Executed by the processor 60 to complete the application.
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Marketing (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Technology Law (AREA)
- User Interface Of Digital Computer (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
Claims (20)
- 一种空白发票的作废处理方法,其特征在于,包括:A blank processing method for blank invoices, characterized in that it comprises:在确定需作废空白发票的目标开票终端之后,判断所述目标开票终端上可用的空白发票是否满足税控系统的预设作废规则;After determining the target invoicing terminal that needs to invalidate the blank invoice, determining whether the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system;若所述目标开票终端上可用的空白发票满足税控系统的预设作废规则,在所述目标开票终端上可用的空白发票中确定待作废的目标发票号段;If the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system, the target invoice number segment to be invalidated is determined in the blank invoice available on the target invoicing terminal;依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口,直到所述目标发票号段中的所有空白发票均作废成功,并在每次调用所述税控作废接口时,判断是否接收到所述税控作废接口的返回结果;Invoking the tax control invalidation interface provided by the tax control system in the blank invoice in the target invoice number segment until all the blank invoices in the target invoice number segment are invalidated, and each time the tax control is invoked When the interface is invalidated, it is determined whether the return result of the tax control invalid interface is received;若未接收到所述税控作废接口的返回结果,则通过查询所述税控系统上发票信息表判断当前空白发票是否作废成功,所述当前空白发票是指本次调用所述税控作废接口所要作废的空白发票,所述发票信息表记录有税控系统上关于各个空白发票作废成功与否的信息;If the return result of the tax control invalidation interface is not received, the invoice information table on the tax control system is queried to determine whether the current blank invoice is invalid. The current blank invoice refers to the tax control invalidation interface. a blank invoice to be voided, the invoice information table records information on the success or failure of each blank invoice on the tax control system;若当前空白发票作废成功,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并从所述当前空白发票的下一张空白发票开始,返回执行依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口的步骤;If the current blank invoice is invalidated, the information that the current blank invoice has been invalidated is updated to the blank invoice inventory of the invoice management system, and the next blank invoice of the current blank invoice is started, and the execution is performed in turn. The blank invoice in the target invoice number segment invokes the step of the tax control invalidation interface provided by the tax control system;若当前空白发票未作废成功,则从所述当前空白发票开始,返回执行依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口的步骤。If the current blank invoice is not invalidated, starting from the current blank invoice, returning to the step of invoking the tax control invalidation interface provided by the tax control system for the blank invoice in the target invoice number segment.
- 根据权利要求1所述的空白发票的作废处理方法,其特征在于,所述依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口,直到所述目标发票号段中的所有空白发票均作废成功,并在每次调用所述税控作废接口时,判断是否接收到所述税控作废接口的返回结果的步骤包括:The method for processing a blank invoice according to claim 1, wherein the invoking the tax control invalidation interface provided by the tax control system is sequentially performed on the blank invoice in the target invoice number segment until the target invoice is All blank invoices in the segment are invalidated, and each time the tax control invalidation interface is invoked, the steps of determining whether to receive the return result of the tax control invalidation interface include:对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口;Invoking the first unopened blank invoice in the target invoice number segment to invoke the tax control invalidation interface provided by the tax control system;判断是否接收到所述税控作废接口的返回结果;Determining whether the return result of the tax control invalidation interface is received;若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则从所述当前空白发票开始,返回执行所述对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口的步骤;If the return result of the tax control invalidation interface is received and the return result is invalidation failure, returning from the current blank invoice, returning to executing the first unfilled blank invoice in the target invoice number segment The step of calling the tax control interface provided by the tax control system;若接收到所述税控作废接口的返回结果且所述返回结果为作废成功,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并判断所述目标发票号段中的所有空白发票是否均作废成功;If the return result of the tax control invalidation interface is received and the return result is invalid, the information that the current blank invoice has been invalidated is updated to the blank invoice inventory of the invoice management system, and the target is determined. Whether all blank invoices in the invoice number segment are invalidated;若所述目标发票号段中的所有空白发票未均作废成功,则返回执行所述对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口的步骤;If all the blank invoices in the target invoice number segment are not invalidated, returning to execute the blank unfilled blank invoice in the target invoice number segment, calling the tax control invalidation interface provided by the tax control system A step of;若所述目标发票号段中的所有空白发票均作废成功,则结束对所述目标发票号段的作废操作。If all the blank invoices in the target invoice number segment are invalidated, the end of the invalidation of the target invoice number segment is ended.
- 根据权利要求2所述的空白发票的作废处理方法,其特征在于,所述空白发票的作废处理方法还包括:The method for processing the blank invoice according to claim 2, wherein the method for processing the blank invoice further comprises:在对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,在所述发票管理系统中将所述第一张未作废的空白发票对应的预设标志信息修改为异常;Before the first unfilled blank invoice in the target invoice number segment calls the tax control invalidation interface provided by the tax control system, the first unfilled blank invoice is corresponding to the invoice management system The preset flag information is modified to be abnormal;在所述判断是否接收到所述税控作废接口的返回结果的步骤之后,还包括:After the step of determining whether the return result of the tax control invalidation interface is received, the method further includes:若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则反馈关于所述当前空白发票作废失败的信息至指定管理员;If the return result of the tax control invalidation interface is received and the return result is invalid, the information about the failure of the current blank invoice is invalidated to the designated administrator;若接收到所述税控作废接口的返回结果且所述返回结果为作废成功,则将所述当前空白发票对应的预设标志信息修改为正常。If the return result of the tax control invalidation interface is received and the return result is invalid, the preset flag information corresponding to the current blank invoice is modified to be normal.
- 根据权利要求3所述的空白发票的作废处理方法,其特征在于,所述空白发票的作废处理方法还包括:The method for processing the blank invoice according to claim 3, wherein the method for processing the blank invoice further comprises:在对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,向所述发票管理系统的发票数据库中插入所述第一张未作废的空白发票本次作废的发票相关信息;Inserting the first unvacued into the invoice database of the invoice management system before calling the tax control invalidation interface provided by the tax control system for the first unfilled blank invoice in the target invoice number segment Invoice related information of blank invoice this time;在所述判断是否接收到所述税控作废接口的返回结果的步骤之后,还包括:After the step of determining whether the return result of the tax control invalidation interface is received, the method further includes:若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则从所述发票数据库中删除所述当前空白发票本次作废的发票相关信息。If the return result of the tax control invalidation interface is received and the return result is invalidation, the invoice related information of the current blank invoice is invalidated from the invoice database.
- 根据权利要求1至4中任一项所述的空白发票的作废处理方法,其特征在于,所述判断所述目标开票终端上可用的空白发票是否满足税控系统的预设作废规则包括:The blank processing method for blank invoice according to any one of claims 1 to 4, wherein the determining whether the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system comprises:查询所述税控系统上记录的所述目标开票终端上当前第一张可用的空白发票,记为第一发票;Querying the first blank invoice currently available on the target invoicing terminal recorded on the tax control system, and recording it as the first invoice;查询所述税控系统上记录的所述目标开票终端上所有空白发票的发票号段,记为第一号段;Querying the invoice number segment of all blank invoices on the target invoicing terminal recorded on the tax control system, and recording it as the first segment;查询在所述发票管理系统中所述第一发票所在的发票号段,记为第二号段;Querying the invoice number segment where the first invoice is located in the invoice management system, and recording it as the second paragraph;判断是否所述第一号段包含所述第二号段,且所述第二号段中第一张可用的空白发票与所述第一发票相同;Determining whether the first segment includes the second segment, and the first blank invoice available in the second segment is the same as the first invoice;若所述第一号段包含所述第二号段,且所述第二号段中第一张可用的空白发票与所述第一发票相同,则判定所述目标开票终端上可用的空白发票满足税控系统的预设作废规则。Determining a blank invoice available on the target invoicing terminal if the first segment includes the second segment and the first blank invoice available in the second segment is the same as the first invoice Meet the default invalidation rules of the tax control system.
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by a processor, implement the following steps:在确定需作废空白发票的目标开票终端之后,判断所述目标开票终端上可用的空白发票是否满足税控系统的预设作废规则;After determining the target invoicing terminal that needs to invalidate the blank invoice, determining whether the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system;若所述目标开票终端上可用的空白发票满足税控系统的预设作废规则,在所述目标开票终端上可用的空白发票中确定待作废的目标发票号段;If the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system, the target invoice number segment to be invalidated is determined in the blank invoice available on the target invoicing terminal;依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口,直到所述目标发票号段中的所有空白发票均作废成功,并在每次调用所述税控作废接口时,判断是否接收到所述税控作废接口的返回结果;Invoking the tax control invalidation interface provided by the tax control system in the blank invoice in the target invoice number segment until all the blank invoices in the target invoice number segment are invalidated, and each time the tax control is invoked When the interface is invalidated, it is determined whether the return result of the tax control invalid interface is received;若未接收到所述税控作废接口的返回结果,则通过查询所述税控系统上发票信息表判断当前空白发票是否作废成功,所述当前空白发票是指本次调用所述税控作废接口所要作废的空白发票,所述发票信息表记录有税控系统上关于各个空白发票作废成功与否的信息;If the return result of the tax control invalidation interface is not received, the invoice information table on the tax control system is queried to determine whether the current blank invoice is invalid. The current blank invoice refers to the tax control invalidation interface. a blank invoice to be voided, the invoice information table records information on the success or failure of each blank invoice on the tax control system;若当前空白发票作废成功,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并从所述当前空白发票的下一张空白发票开始,返回执行依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口的步骤;If the current blank invoice is invalidated, the information that the current blank invoice has been invalidated is updated to the blank invoice inventory of the invoice management system, and the next blank invoice of the current blank invoice is started, and the execution is performed in turn. The blank invoice in the target invoice number segment invokes the step of the tax control invalidation interface provided by the tax control system;若当前空白发票未作废成功,则从所述当前空白发票开始,返回执行依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口的步骤。If the current blank invoice is not invalidated, starting from the current blank invoice, returning to the step of invoking the tax control invalidation interface provided by the tax control system for the blank invoice in the target invoice number segment.
- 根据权利要求6所述的计算机可读存储介质,其特征在于,所述依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口,直到所述目标发票号段中的所有空白发票均作废成功,并在每次调用所述税控作废接口时,判断是否接收到所述税控作废接口的返回结果的步骤包括:The computer readable storage medium according to claim 6, wherein said invoking a tax control invalidation interface provided by said tax control system in turn for a blank invoice in said target invoice number segment until said target invoice number All blank invoices in the segment are invalidated, and each time the tax control invalidation interface is invoked, the steps of determining whether to receive the return result of the tax control invalidation interface include:对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口;Invoking the first unopened blank invoice in the target invoice number segment to invoke the tax control invalidation interface provided by the tax control system;判断是否接收到所述税控作废接口的返回结果;Determining whether the return result of the tax control invalidation interface is received;若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则从所述当前空白发票开始,返回执行所述对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口的步骤;If the return result of the tax control invalidation interface is received and the return result is invalidation failure, returning from the current blank invoice, returning to executing the first unfilled blank invoice in the target invoice number segment The step of calling the tax control interface provided by the tax control system;若接收到所述税控作废接口的返回结果且所述返回结果为作废成功,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并判断所述目标发票号段中的所有空白发票是否均作废成功;If the return result of the tax control invalidation interface is received and the return result is invalid, the information that the current blank invoice has been invalidated is updated to the blank invoice inventory of the invoice management system, and the target is determined. Whether all blank invoices in the invoice number segment are invalidated;若所述目标发票号段中的所有空白发票未均作废成功,则返回执行所述对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口的步骤;If all the blank invoices in the target invoice number segment are not invalidated, returning to execute the blank unfilled blank invoice in the target invoice number segment, calling the tax control invalidation interface provided by the tax control system A step of;若所述目标发票号段中的所有空白发票均作废成功,则结束对所述目标发票号段的作废操作。If all the blank invoices in the target invoice number segment are invalidated, the end of the invalidation of the target invoice number segment is ended.
- 根据权利要求7所述的计算机可读存储介质,其特征在于,所述计算机可读存储介质还包括:The computer readable storage medium according to claim 7, wherein the computer readable storage medium further comprises:在对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,在所述发票管理系统中将所述第一张未作废的空白发票对应的预设标志信息修改为异常;Before the first unfilled blank invoice in the target invoice number segment calls the tax control invalidation interface provided by the tax control system, the first unfilled blank invoice is corresponding to the invoice management system The preset flag information is modified to be abnormal;在所述判断是否接收到所述税控作废接口的返回结果的步骤之后,还包括:After the step of determining whether the return result of the tax control invalidation interface is received, the method further includes:若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则反馈关于所述当前空白发票作废失败的信息至指定管理员;If the return result of the tax control invalidation interface is received and the return result is invalid, the information about the failure of the current blank invoice is invalidated to the designated administrator;若接收到所述税控作废接口的返回结果且所述返回结果为作废成功,则将所述当前空白发票对应的预设标志信息修改为正常。If the return result of the tax control invalidation interface is received and the return result is invalid, the preset flag information corresponding to the current blank invoice is modified to be normal.
- 根据权利要求8所述的计算机可读存储介质,其特征在于,所述计算机可读存储介质还包括:The computer readable storage medium according to claim 8, wherein the computer readable storage medium further comprises:在对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,向所述发票管理系统的发票数据库中插入所述第一张未作废的空白发票本次作废的发票相关信息;Inserting the first unvacued into the invoice database of the invoice management system before calling the tax control invalidation interface provided by the tax control system for the first unfilled blank invoice in the target invoice number segment Invoice related information of blank invoice this time;在所述判断是否接收到所述税控作废接口的返回结果的步骤之后,还包括:After the step of determining whether the return result of the tax control invalidation interface is received, the method further includes:若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则从所述发票数据库中删除所述当前空白发票本次作废的发票相关信息。If the return result of the tax control invalidation interface is received and the return result is invalidation, the invoice related information of the current blank invoice is invalidated from the invoice database.
- 根据权利要求6至9中任一项所述的计算机可读存储介质,其特征在于,所述判断所述目标开票终端上可用的空白发票是否满足税控系统的预设作废规则包括:The computer readable storage medium according to any one of claims 6 to 9, wherein the determining whether the blank invoice available on the target invoicing terminal meets a preset invalidation rule of the tax control system comprises:查询所述税控系统上记录的所述目标开票终端上当前第一张可用的空白发票,记为第一发票;Querying the first blank invoice currently available on the target invoicing terminal recorded on the tax control system, and recording it as the first invoice;查询所述税控系统上记录的所述目标开票终端上所有空白发票的发票号段,记为第一号段;Querying the invoice number segment of all blank invoices on the target invoicing terminal recorded on the tax control system, and recording it as the first segment;查询在所述发票管理系统中所述第一发票所在的发票号段,记为第二号段;Querying the invoice number segment where the first invoice is located in the invoice management system, and recording it as the second paragraph;判断是否所述第一号段包含所述第二号段,且所述第二号段中第一张可用的空白发票与所述第一发票相同;Determining whether the first segment includes the second segment, and the first blank invoice available in the second segment is the same as the first invoice;若所述第一号段包含所述第二号段,且所述第二号段中第一张可用的空白发票与所述第一发票相同,则判定所述目标开票终端上可用的空白发票满足税控系统的预设作废规则。Determining a blank invoice available on the target invoicing terminal if the first segment includes the second segment and the first blank invoice available in the second segment is the same as the first invoice Meet the default invalidation rules of the tax control system.
- 一种服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A server comprising a memory, a processor, and computer readable instructions stored in the memory and operative on the processor, wherein the processor implements the following steps when the computer readable instructions are executed :在确定需作废空白发票的目标开票终端之后,判断所述目标开票终端上可用的空白发票是否满足税控系统的预设作废规则;After determining the target invoicing terminal that needs to invalidate the blank invoice, determining whether the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system;若所述目标开票终端上可用的空白发票满足税控系统的预设作废规则,在所述目标开票终端上可用的空白发票中确定待作废的目标发票号段;If the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system, the target invoice number segment to be invalidated is determined in the blank invoice available on the target invoicing terminal;依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口,直到所述目标发票号段中的所有空白发票均作废成功,并在每次调用所述税控作废接口时,判断是否接收到所述税控作废接口的返回结果;Invoking the tax control invalidation interface provided by the tax control system in the blank invoice in the target invoice number segment until all the blank invoices in the target invoice number segment are invalidated, and each time the tax control is invoked When the interface is invalidated, it is determined whether the return result of the tax control invalid interface is received;若未接收到所述税控作废接口的返回结果,则通过查询所述税控系统上发票信息表判断当前空白发票是否作废成功,所述当前空白发票是指本次调用所述税控作废接口所要作废的空白发票,所述发票信息表记录有税控系统上关于各个空白发票作废成功与否的信息;If the return result of the tax control invalidation interface is not received, the invoice information table on the tax control system is queried to determine whether the current blank invoice is invalid. The current blank invoice refers to the tax control invalidation interface. a blank invoice to be voided, the invoice information table records information on the success or failure of each blank invoice on the tax control system;若当前空白发票作废成功,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并从所述当前空白发票的下一张空白发票开始,返回执行依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口的步骤;If the current blank invoice is invalidated, the information that the current blank invoice has been invalidated is updated to the blank invoice inventory of the invoice management system, and the next blank invoice of the current blank invoice is started, and the execution is performed in turn. The blank invoice in the target invoice number segment invokes the step of the tax control invalidation interface provided by the tax control system;若当前空白发票未作废成功,则从所述当前空白发票开始,返回执行依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口的步骤。If the current blank invoice is not invalidated, starting from the current blank invoice, returning to the step of invoking the tax control invalidation interface provided by the tax control system for the blank invoice in the target invoice number segment.
- 根据权利要求11所述的服务器,其特征在于,所述依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口,直到所述目标发票号段中的所有空白发票均作废成功,并在每次调用所述税控作废接口时,判断是否接收到所述税控作废接口的返回结果的步骤包括:The server according to claim 11, wherein said invoking a tax control invalidation interface provided by said tax control system for a blank invoice in said target invoice number segment until all of said target invoice number segments The blank invoices are all invalidated, and each time the tax control invalidation interface is invoked, the steps of determining whether to receive the return result of the tax control invalidation interface include:对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口;Invoking the first unopened blank invoice in the target invoice number segment to invoke the tax control invalidation interface provided by the tax control system;判断是否接收到所述税控作废接口的返回结果;Determining whether the return result of the tax control invalidation interface is received;若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则从所述当前空白发票开始,返回执行所述对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口的步骤;If the return result of the tax control invalidation interface is received and the return result is invalidation failure, returning from the current blank invoice, returning to executing the first unfilled blank invoice in the target invoice number segment The step of calling the tax control interface provided by the tax control system;若接收到所述税控作废接口的返回结果且所述返回结果为作废成功,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并判断所述目标发票号段中的所有空白发票是否均作废成功;If the return result of the tax control invalidation interface is received and the return result is invalid, the information that the current blank invoice has been invalidated is updated to the blank invoice inventory of the invoice management system, and the target is determined. Whether all blank invoices in the invoice number segment are invalidated;若所述目标发票号段中的所有空白发票未均作废成功,则返回执行所述对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口的步骤;If all the blank invoices in the target invoice number segment are not invalidated, returning to execute the blank unfilled blank invoice in the target invoice number segment, calling the tax control invalidation interface provided by the tax control system A step of;若所述目标发票号段中的所有空白发票均作废成功,则结束对所述目标发票号段的作废操作;If all the blank invoices in the target invoice number segment are invalidated, the end of the invalidation of the target invoice number segment is ended;
- 根据权利要求12所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还包括:The server according to claim 12, wherein when the processor executes the computer readable instructions, the method further comprises:在对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,在所述发票管理系统中将所述第一张未作废的空白发票对应的预设标志信息修改为异常;Before the first unfilled blank invoice in the target invoice number segment calls the tax control invalidation interface provided by the tax control system, the first unfilled blank invoice is corresponding to the invoice management system The preset flag information is modified to be abnormal;在所述判断是否接收到所述税控作废接口的返回结果的步骤之后,还包括:After the step of determining whether the return result of the tax control invalidation interface is received, the method further includes:若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则反馈关于所述当前空白发票作废失败的信息至指定管理员;If the return result of the tax control invalidation interface is received and the return result is invalid, the information about the failure of the current blank invoice is invalidated to the designated administrator;若接收到所述税控作废接口的返回结果且所述返回结果为作废成功,则将所述当前空白发票对应的预设标志信息修改为正常。If the return result of the tax control invalidation interface is received and the return result is invalid, the preset flag information corresponding to the current blank invoice is modified to be normal.
- 根据权利要求13所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还包括:The server according to claim 13, wherein the processor further comprises:在对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,向所述发票管理系统的发票数据库中插入所述第一张未作废的空白发票本次作废的发票相关信息;Inserting the first unvacued into the invoice database of the invoice management system before calling the tax control invalidation interface provided by the tax control system for the first unfilled blank invoice in the target invoice number segment Invoice related information of blank invoice this time;在所述判断是否接收到所述税控作废接口的返回结果的步骤之后,还包括:After the step of determining whether the return result of the tax control invalidation interface is received, the method further includes:若接收到所述税控作废接口的返回结果且所述返回结果为作废失败,则从所述发票数据库中删除所述当前空白发票本次作废的发票相关信息。If the return result of the tax control invalidation interface is received and the return result is invalidation, the invoice related information of the current blank invoice is invalidated from the invoice database.
- 根据权利要求11至14中任一项所述的服务器,其特征在于,所述判断所述目标开票终端上可用的空白发票是否满足税控系统的预设作废规则包括:The server according to any one of claims 11 to 14, wherein the determining whether the blank invoice available on the target invoicing terminal meets the default invalidation rule of the tax control system comprises:查询所述税控系统上记录的所述目标开票终端上当前第一张可用的空白发票,记为第一发票;Querying the first blank invoice currently available on the target invoicing terminal recorded on the tax control system, and recording it as the first invoice;查询所述税控系统上记录的所述目标开票终端上所有空白发票的发票号段,记为第一号段;Querying the invoice number segment of all blank invoices on the target invoicing terminal recorded on the tax control system, and recording it as the first segment;查询在所述发票管理系统中所述第一发票所在的发票号段,记为第二号段;Querying the invoice number segment where the first invoice is located in the invoice management system, and recording it as the second paragraph;判断是否所述第一号段包含所述第二号段,且所述第二号段中第一张可用的空白发票与所述第一发票相同;Determining whether the first segment includes the second segment, and the first blank invoice available in the second segment is the same as the first invoice;若所述第一号段包含所述第二号段,且所述第二号段中第一张可用的空白发票与所述第一发票相同,则判定所述目标开票终端上可用的空白发票满足税控系统的预设作废规则。Determining a blank invoice available on the target invoicing terminal if the first segment includes the second segment and the first blank invoice available in the second segment is the same as the first invoice Meet the default invalidation rules of the tax control system.
- 一种空白发票的作废处理装置,其特征在于,包括:A blank processing device for blanking invoices, comprising:规则判断模块,用于在确定需作废空白发票的目标开票终端之后,判断所述目标开票终端上可用的空白发票是否满足税控系统的预设作废规则;a rule judging module, configured to determine whether a blank invoice available on the target invoicing terminal meets a preset invalidation rule of the tax control system after determining the target invoicing terminal that needs to invalidate the blank invoice;作废号段确定模块,用于若所述规则判断模块的判断结果为是,在所述目标开票终端上可用的空白发票中确定待作废的目标发票号段;a discarding segment determining module, configured to determine, in the blank invoice available on the target invoicing terminal, a target invoice number segment to be invalidated if the judgment result of the rule judging module is yes;依次调用和判断模块,用于依次对所述目标发票号段中的空白发票调用所述税控系统提供的税控作废接口,直到所述目标发票号段中的所有空白发票均作废成功,并在每次调用所述税控作废接口时,判断是否接收到所述税控作废接口的返回结果;Invoking and judging a module for sequentially invoking a tax control invalidation interface provided by the tax control system to the blank invoice in the target invoice number segment until all blank invoices in the target invoice number segment are invalidated, and Determining whether the return result of the tax control invalidation interface is received every time the tax control invalidation interface is invoked;作废查询判断模块,用于若所述依次调用和判断模块的判断结果为否,则通过查询所述税控系统上发票信息表判断当前空白发票是否作废成功,所述当前空白发票是指本次调用所述税控作废接口所要作废的空白发票,所述发票信息表记录有税控系统上关于各个空白发票作废成功与否的信息;The invalid query judging module is configured to: if the judgment result of the sequentially calling and judging module is no, determine whether the current blank invoice is invalid by querying the invoice information table on the tax control system, wherein the current blank invoice refers to the current invoice Invoking a blank invoice to be voided by the tax control invalidation interface, the invoice information table recording information on the success or failure of each blank invoice on the tax control system;库存更新模块,用于若所述作废查询判断模块的判断结果为是,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并从所述当前空白发票的下一张空白发票开始,返回触发所述依次调用和判断模块;An inventory update module, configured to: if the judgment result of the invalid query determination module is yes, update the information that the current blank invoice has been invalidated to the blank invoice inventory of the invoice management system, and from the current blank invoice The next blank invoice begins, returning to trigger the sequential call and judgment module;返回触发模块,用于若所述作废查询判断模块的判断结果为否,则从所述当前空白发票开始,返回触发所述依次调用和判断模块。Returning to the triggering module, if the judgment result of the invalidation query judging module is no, starting from the current blank invoice, returning to trigger the sequential calling and judging module.
- 根据权利要求16所述的空白发票的作废处理装置,其特征在于,所述依次调用和判断模块包括:The apparatus for processing a blank invoice according to claim 16, wherein the sequential calling and determining module comprises:接口调用单元,用于对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口;An interface calling unit, configured to invoke a tax control invalidation interface provided by the tax control system for the first blank invoice in the target invoice number segment;结果接收判断单元,用于判断是否接收到所述税控作废接口的返回结果;a result receiving determining unit, configured to determine whether a return result of the tax control invalidation interface is received;第一返回触发单元,用于若所述结果接收判断单元的判断结果为是且所述返回结果为作废失败,则从所述当前空白发票开始,返回触发所述接口调用单元;a first return triggering unit, configured to: if the result of the determination by the result receiving determining unit is YES and the returning result is invalid, starting from the current blank invoice, returning to trigger the interface calling unit;作废信息更新单元,用于若所述结果接收判断单元的判断结果为是且所述返回结果为作废成功,则将所述当前空白发票已作废的信息更新至所述发票管理系统的空白发票库存中,并判断所述目标发票号段中的所有空白发票是否均作废成功;The invalidation information updating unit is configured to update the information that the current blank invoice has been invalidated to the blank invoice inventory of the invoice management system, if the result of the determination by the result receiving judging unit is yes and the return result is invalid, And determining whether all blank invoices in the target invoice number segment are invalidated;第二返回触发单元,用于若所述作废信息更新单元的判断结果为否,则返回触发所述接口调用单元;a second return triggering unit, configured to: if the judgment result of the invalidation information updating unit is negative, return to trigger the interface calling unit;作废结束单元,用于若所述作废信息更新单元的判断结果为是,则结束对所述目标发票号段的作废操作。The invalidation end unit is configured to end the invalidation operation of the target invoice number segment if the determination result of the invalidation information update unit is YES.
- 根据权利要求17所述的空白发票的作废处理装置,其特征在于,还包括:The apparatus for processing a blank invoice according to claim 17, further comprising:第一标志信息修改模块,用于在所述接口调用单元对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,在所述发票管理系统中将所述第一张未作废的空白发票对应的预设标志信息修改为异常;a first flag information modification module, configured to: before the interface calling unit invokes the tax control invalidation interface provided by the tax control system on the first unfilled blank invoice in the target invoice number segment, in the invoice management In the system, the preset flag information corresponding to the first blank invoice that is not invalidated is modified to be abnormal;信息反馈模块,用于若所述结果接收判断单元的判断结果为是且所述返回结果为作废失败,则反馈关于所述当前空白发票作废失败的信息至指定管理员;The information feedback module is configured to: if the result of the determination by the result receiving determining unit is YES and the returning result is invalid, returning information about the failure of the current blank invoice to the designated administrator;第二标志信息修改模块,用于若所述结果接收判断单元的判断结果为是且所述返回结果为作废成功,则将所述当前空白发票对应的预设标志信息修改为正常。The second flag information modification module is configured to modify the preset flag information corresponding to the current blank invoice to be normal if the result of the determination by the result receiving determination unit is YES and the return result is invalid.
- 根据权利要求18所述的空白发票的作废处理装置,其特征在于,还包括:The apparatus for processing a blank invoice according to claim 18, further comprising:相关信息插入模块,用于在所述接口调用单元对所述目标发票号段中第一张未作废的空白发票调用所述税控系统提供的税控作废接口之前,向所述发票管理系统的发票数据库中插入所述第一张未作废的空白发票本次作废的发票相关信息;a related information insertion module, configured to: before the interface calling unit calls the tax control invalidation interface provided by the tax control system for the first unfilled blank invoice in the target invoice number segment, to the invoice management system Invoicing related information of the first unfilled blank invoice is invalidated in the invoice database;相关信息删除模块,用于若所述结果接收判断单元的判断结果为是且所述返回结果为作废失败,则从所述发票数据库中删除所述当前空白发票本次作废的发票相关信息。The related information deleting module is configured to delete the invoice related information that the current blank invoice is invalidated from the invoice database if the result of the result receiving determination unit is YES and the return result is invalid.
- 根据权利要求16至19中任一项所述的空白发票的作废处理装置,其特征在于,所述规则判断模块包括:The apparatus for processing a blank invoice according to any one of claims 16 to 19, wherein the rule judging module comprises:第一查询单元,用于查询所述税控系统上记录的所述目标开票终端上当前第一张可用的空白发票,记为第一发票;a first query unit, configured to query a blank invoice currently available on the target invoicing terminal recorded on the tax control system, and record the first invoice;第二查询单元,用于查询所述税控系统上记录的所述目标开票终端上所有空白发票的发票号段,记为第一号段;a second query unit, configured to query an invoice number segment of all blank invoices on the target invoicing terminal recorded on the tax control system, and record the first number segment;第三查询单元,用于查询在所述发票管理系统中所述第一发票所在的发票号段,记为第二号段;a third query unit, configured to query an invoice number segment where the first invoice is located in the invoice management system, and record it as a second number segment;号段判断单元,用于判断是否所述第一号段包含所述第二号段,且所述第二号段中第一张可用的空白发票与所述第一发票相同;a segment determining unit, configured to determine whether the first segment includes the second segment, and the first blank invoice available in the second segment is the same as the first invoice;判定单元,用于若所述号段判断单元的判断结果为是,则判定所述目标开票终端上可用的空白发票满足税控系统的预设作废规则。The determining unit is configured to determine that the blank invoice available on the target invoicing terminal meets the preset invalidation rule of the tax control system if the determination result of the number segment determining unit is YES.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710605487.XA CN107784530A (en) | 2017-07-24 | 2017-07-24 | Calcellation processing method, storage medium and the server of a kind of blank invoice |
CN201710605487.X | 2017-07-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019019631A1 true WO2019019631A1 (en) | 2019-01-31 |
Family
ID=61437499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/077245 WO2019019631A1 (en) | 2017-07-24 | 2018-02-26 | Blank invoice invalidation processing method, readable storage medium, server, and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107784530A (en) |
WO (1) | WO2019019631A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599265B (en) * | 2019-05-05 | 2021-05-14 | 腾讯科技(深圳)有限公司 | Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium |
CN114118881B (en) * | 2022-01-26 | 2022-05-06 | 中国民航信息网络股份有限公司 | Method, device, storage medium and equipment for processing civil aviation blank ticket |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101320444A (en) * | 2007-06-07 | 2008-12-10 | 华为技术有限公司 | Method, system and device for implementing electronic bill |
CN106530024A (en) * | 2016-11-09 | 2017-03-22 | 百望金赋科技有限公司 | Invoicing method, invoicing system and tax control server thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106920135A (en) * | 2015-12-28 | 2017-07-04 | 航天信息股份有限公司 | A kind of realization method and system of POS billing servers off-line trading |
CN106530022A (en) * | 2016-11-09 | 2017-03-22 | 百望金赋科技有限公司 | Tax control core board, use method and tax control server |
CN106504044A (en) * | 2016-11-09 | 2017-03-15 | 百望金赋科技有限公司 | A kind of billing method and system |
CN106779988A (en) * | 2016-11-15 | 2017-05-31 | 百望金赋科技有限公司 | A kind of tax control server management system and method |
-
2017
- 2017-07-24 CN CN201710605487.XA patent/CN107784530A/en active Pending
-
2018
- 2018-02-26 WO PCT/CN2018/077245 patent/WO2019019631A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101320444A (en) * | 2007-06-07 | 2008-12-10 | 华为技术有限公司 | Method, system and device for implementing electronic bill |
CN106530024A (en) * | 2016-11-09 | 2017-03-22 | 百望金赋科技有限公司 | Invoicing method, invoicing system and tax control server thereof |
Also Published As
Publication number | Publication date |
---|---|
CN107784530A (en) | 2018-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10158479B2 (en) | Systems and methods for generating, uploading and executing code blocks within distributed network nodes | |
US11321681B2 (en) | Systems and methods for issuing and tracking digital tokens within distributed network nodes | |
EP3568824B1 (en) | Systems and methods for issuing and tracking digital tokens within distributed network nodes | |
US10146947B1 (en) | Systems and methods for generating and maintaining immutable digital meeting records within distributed network nodes | |
US11764946B2 (en) | Audit chain for private blockchain | |
US11240028B2 (en) | Trust service engine for external blockchain verification | |
US8898774B2 (en) | Method and system for scanning a computer system for sensitive content | |
WO2019136812A1 (en) | Electronic device, data calling log generation and query method, and storage medium | |
US20200145221A1 (en) | Atomic transactional processing | |
WO2019019631A1 (en) | Blank invoice invalidation processing method, readable storage medium, server, and device | |
WO2022206439A1 (en) | Method and apparatus for providing cross-chain message | |
WO2019019701A1 (en) | Processing method for blank invoices recycling, storage medium and server | |
WO2019019712A1 (en) | Blank invoice distribution processing method, storage medium and server | |
US11949774B2 (en) | Securing hash chains via hybrid consensus | |
AU2022215281B2 (en) | Securing hash chains via hybrid consensus | |
US11818259B2 (en) | Query and projection processing for events | |
EP4002180A1 (en) | Secure multi distributed ledger system | |
EP4136539A1 (en) | Storing and processing longitudinal data sets |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18838674 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18838674 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 10/08/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18838674 Country of ref document: EP Kind code of ref document: A1 |