Method and device for processing accounting document number based on floating-point number sequence number

By using a floating-point linked list storage and integer mapping display mechanism, the system performance degradation caused by the insertion and deletion of accounting vouchers is solved, the continuity of accounting voucher numbers and efficient processing are achieved, and the system's processing efficiency is improved.

CN120848835APending Publication Date: 2025-10-28SHANDONG INSPUR GENESOFT INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511027215.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-24
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

In the process of inserting and deleting accounting vouchers, the frequent movement of accounting voucher numbers in the existing technology leads to a decrease in system data processing performance and may even cause database deadlock, affecting normal user operation.

Method used

A floating-point linked list storage mechanism is adopted to associate accounting vouchers with floating-point type sequence numbers one-to-one, and display them through integer mapping to ensure the continuity of voucher numbers and support fast insertion and deletion operations.

Benefits of technology

It achieves continuity and efficient processing of accounting voucher numbers, avoids system performance degradation and database deadlock, meets the requirement of continuity of accounting voucher numbers, and improves the system's processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120848835A_ABST
    Figure CN120848835A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of data processing, and provides a method and a device for processing an accounting document number based on a floating-point number sequence number in order to solve the problems that at present, accounting documents are frequently moved, a large amount of accounting document data needs to be updated, the data processing performance of a system is reduced, a database table can even generate a deadlock phenomenon, and the system crashes. The method comprises the steps of obtaining all accounting documents and sorting the accounting documents according to a set sequence; associating and storing the sorted accounting documents with the sequence numbers of the floating-point number types in a one-to-one correspondence manner; according to the mapping principle that the set sequence is unchanged and integers are continuous, the sequence numbers of all the floating-point number types are mapped into continuous integers to be displayed. The method can simply and efficiently process the insertion and deletion of the accounting vouchers, ensures that the accounting voucher numbers are continuous, and avoids the influence on the data processing performance of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of data processing, and in particular relates to a method and apparatus for processing accounting voucher numbers based on floating-point sequence numbers. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] In the process of digitizing accounting vouchers, it is common to insert and delete them. This insertion and deletion often leads to changes in the order of accounting vouchers, resulting in changes to voucher numbers. Currently, the industry requires the use of discrete integers for accounting voucher numbers, and these numbers must be consecutive and without gaps. This necessitates that when inserting an accounting voucher, the system increments the voucher number following the insertion position by one to move the voucher forward; conversely, when deleting an accounting voucher, it decrements the voucher number following the deletion position to move the voucher forward. However, frequent voucher movements require updating a large amount of accounting voucher data, thus reducing system data processing performance and potentially causing database deadlocks, leading to system crashes and disrupting normal user operations. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention provides a method and apparatus for processing accounting voucher numbers based on floating-point sequential numbers. This method can simply and efficiently process the insertion and deletion of accounting vouchers, while ensuring that the accounting voucher numbers are continuous and avoiding impact on the system's data processing performance.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: The first aspect of the present invention provides a method for processing accounting voucher numbers based on floating-point sequence numbers.

[0006] In one or more embodiments, a method for processing accounting voucher numbers based on floating-point sequence numbers is provided, including: Retrieve all accounting documents and sort them according to the set order; Each sorted accounting voucher is associated with a floating-point number sequence number and stored accordingly. Following the mapping principle of maintaining the set order and ensuring consecutive integers, the floating-point type sequence numbers of all accounting vouchers are mapped to consecutive integers for display.

[0007] As one implementation method, when it is necessary to delete an accounting voucher, the accounting voucher is deleted directly, and the floating-point type sequence number of the remaining accounting vouchers remains unchanged.

[0008] As one implementation method, when it is necessary to delete an accounting voucher, the corresponding floating-point number sequence number is remapped to a consecutive integer and displayed according to the order of the remaining accounting vouchers.

[0009] As one implementation method, when the accounting voucher to be deleted is the last accounting voucher in the sorted list, the accounting voucher is deleted directly, and the floating-point type sequence number of the remaining accounting vouchers and the consecutive integers displayed by their mapping remain unchanged.

[0010] As one implementation method, when it is necessary to insert an accounting voucher, the floating-point type sequence number of the two vouchers before and after the insertion position is obtained, and an intermediate number is randomly generated between the two floating-point type sequence numbers as the floating-point type sequence number of the inserted accounting voucher.

[0011] As one implementation method, when it is necessary to insert accounting vouchers, the corresponding floating-point number type sequence number is remapped to consecutive integers for display according to the order in which the accounting vouchers are inserted.

[0012] As one implementation method, the insertion position of the accounting voucher is determined according to the set requirements before inserting the accounting voucher.

[0013] As one implementation method, each accounting voucher and its floating-point type sequence number are stored using a floating-point linked list structure.

[0014] A second aspect of the present invention provides an apparatus for processing accounting voucher numbers based on floating-point sequence numbers.

[0015] In one or more embodiments, an apparatus for processing accounting voucher numbers based on floating-point sequence numbers includes: The accounting voucher sorting module is used to retrieve all accounting vouchers and sort them according to a set order. The floating-point sequence association module is used to associate and store each sorted accounting voucher with a sequence number of a floating-point number. The integer mapping display module is used to map the sequence numbers of all floating-point numbers to consecutive integers for display, according to the mapping principle that the set order remains unchanged and the integers are consecutive.

[0016] In one or more embodiments, an apparatus for processing accounting voucher numbers based on floating-point sequence numbers includes: a server and a client. The server is configured to: retrieve all accounting vouchers and sort them in a set order; Each sorted accounting voucher is associated with a floating-point number sequence number and stored accordingly. Following the mapping principle of maintaining the set order and ensuring consecutive integers, all floating-point number sequence numbers of accounting vouchers are mapped to consecutive integers for display. The client is configured to display the sequential number of the accounting voucher, which is a mapped consecutive integer.

[0017] A third aspect of the present invention provides an electronic device.

[0018] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the steps of the method for processing accounting document numbers based on floating-point sequence numbers as described above.

[0019] Compared with the prior art, the beneficial effects of the present invention are: This invention employs a floating-point linked list storage + integer display mechanism. It adds floating-point numbers as the sequence numbers of accounting vouchers and stores them in a linked list. The voucher numbers are automatically converted into integer sequences according to accounting standards for display, thus meeting the industry requirement that accounting voucher numbers must be integers and consecutive. Through a storage / display separation architecture, it innovatively uses a floating-point linked list storage + integer display mechanism to ensure the continuity of voucher numbers, supports the rapid insertion and deletion of accounting vouchers, and efficiently handles the voucher number changes caused by the insertion of accounting vouchers. Attached Figure Description

[0020] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0021] Figure 1 This is a flowchart illustrating the method for processing accounting voucher numbers based on floating-point sequence numbers according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the device structure for processing accounting voucher numbers based on floating-point sequence numbers according to an embodiment of the present invention; Figure 3 This is a schematic diagram of an electronic device according to an embodiment of the present invention; Figure 4 This is the storage structure for deleting accounting vouchers according to an embodiment of the present invention; Figure 5 This is an embodiment of the invention that removes the storage and display mapping relationship of accounting vouchers; Figure 6 This is the storage structure for inserting accounting vouchers according to an embodiment of the present invention; Figure 7 This is the storage and display mapping relationship for inserting accounting vouchers in an embodiment of the present invention. Detailed Implementation

[0022] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0023] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0024] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0025] Terminology Explanation: Accounting vouchers are written documents that record the occurrence or completion of economic transactions and serve as the basis for bookkeeping. Every enterprise must prepare and verify accounting vouchers according to certain procedures, and make bookkeeping entries based on verified accounting vouchers to accurately reflect the enterprise's economic transactions.

[0026] According to the "Accounting Basic Work Standards", accounting voucher numbers must meet the following requirements: (1) Continuity and uniqueness: Vouchers must be numbered consecutively by month and by category, and omissions, duplicates or skips are prohibited.

[0027] (2) Fractional numbering method: When an economic transaction involves multiple vouchers, fractional numbering should be used. For example, if the 8th transaction in a certain month needs to be split into 4 vouchers, the numbers should be 8 1 / 4, 8 2 / 4, 8 3 / 4, and 8 4 / 4 (Note: "8" represents the transaction sequence number, and "1 / 4" indicates that the current one is the first one, and there are a total of 4 vouchers).

[0028] (3) Timeliness: Vouchers must be numbered before being bound and filed. Vouchers without numbers are prohibited from being posted.

[0029] Floating-point numbers are numerical representations of numbers belonging to a specific subset of rational numbers, used in computers to approximate any real number. Specifically, this real number is obtained by multiplying an integer or fixed-point number (i.e., the mantissa) by an integer power of a certain base (usually 2 in computers), a representation similar to scientific notation with a base of 10.

[0030] Figure 1 This is a flowchart illustrating a method for processing accounting voucher numbers based on floating-point sequence numbers, as described in an embodiment of the present invention. Figure 1 The method for processing accounting voucher numbers based on floating-point sequence numbers in this embodiment may include the following steps S101 to S103.

[0031] The specific implementation process of steps S101 to S103 is as follows: Step S101: Obtain all accounting documents and sort them according to the set order.

[0032] In practice, all accounting vouchers can be sorted in advance according to a set order, such as amount, time, etc.

[0033] It should be noted that the sorting dimensions of all accounting vouchers can be set by those skilled in the art according to the actual situation, and will not be described in detail here.

[0034] Step S102: Associate and store each sorted accounting voucher with a floating-point number sequence number.

[0035] In this embodiment, each accounting voucher and its floating-point type sequence number are stored using a floating-point linked list structure.

[0036] A floating-point linked list structure can be implemented using a structure and pointers. Each node contains a data field (storing the floating-point number) and a pointer field (a pointer to the next node), forming a linear structure through dynamic memory allocation. The advantages of using a floating-point linked list structure are as follows: (1) Dynamic memory management: The floating-point linked list structure does not require pre-allocation of fixed memory space and can dynamically allocate storage resources according to actual needs. When data needs to be added or deleted, only the pointer needs to be adjusted, which avoids the memory waste problem caused by the fixed size of the array.

[0037] (2) Flexible data type adaptation: The nodes of the floating-point linked list structure can store different types of data (such as floating-point numbers), and each node manages the data type independently, adapting to scenarios with complex data structures. This is in stark contrast to arrays, which require a uniform data type.

[0038] (3) Efficient insertion / deletion operations: The floating-point linked list structure realizes dynamic adjustment between nodes through pointer links. Insertion or deletion operations only involve local node modification, which is more efficient than the batch movement operation of array.

[0039] (4) High scalability: The floating-point linked list structure can theoretically expand the number of nodes indefinitely, only limited by memory capacity, making it suitable for scenarios where the amount of data changes dynamically.

[0040] Step S103: According to the mapping principle of keeping the set order unchanged and the integers consecutive, map the floating-point type sequence number of all accounting vouchers to consecutive integers for display.

[0041] In this embodiment, when it is necessary to delete an accounting voucher, the accounting voucher is deleted directly, and the floating-point type sequence number of the remaining accounting vouchers remains unchanged.

[0042] Since the floating-point number sequence of accounting vouchers does not require them to be consecutive, deleting an accounting voucher directly will not affect the overall sequence of accounting vouchers.

[0043] like Figure 4 As shown, the floating-point number sequence numbers of accounting vouchers are [1.0, 2.0, 3.0]. When you need to delete the accounting voucher with sequence number 2.0, simply delete it and then rearrange it according to sequence numbers [1.0, 3.0]. The overall order of the accounting vouchers will not change.

[0044] When an accounting voucher needs to be deleted, the corresponding floating-point number sequence number is remapped to a consecutive integer and displayed according to the order of the remaining accounting vouchers.

[0045] like Figure 5 As shown, the storage layer stores floating-point numbers [1, 3] as sequence numbers. Following the mapping principle of keeping the order unchanged and integers continuous, the floating-point number sequence number is mapped to a continuous integer for display. Then, in the interface display layer, it is displayed as an accounting voucher number in the form of integers [1, 2].

[0046] In some optional embodiments, when the accounting voucher to be deleted is the last accounting voucher in the sorted list, the accounting voucher is deleted directly, and the floating-point type sequence number of the remaining accounting vouchers and the consecutive integers displayed by their mapping remain unchanged.

[0047] This embodiment innovatively uses a storage / display separation architecture and a floating-point linked list storage + integer display mechanism to ensure the continuity of accounting voucher numbers. It uses floating-point deletion to achieve a time complexity of O(1) without moving existing vouchers. Compared with the risk of broken numbers that are easy to occur in traditional integer sequences, the use of floating-point continuity avoids conflicts in accounting voucher numbers.

[0048] In the actual implementation process, the insertion position of the accounting voucher is determined according to the set requirements before insertion.

[0049] It should be noted that those skilled in the art can set requirements according to actual circumstances, and thus determine the insertion position of accounting vouchers.

[0050] When an accounting voucher needs to be inserted, obtain the floating-point type sequence number of the two vouchers before and after the insertion position, and randomly generate an intermediate number between these two floating-point type sequence numbers as the floating-point type sequence number of the inserted accounting voucher.

[0051] like Figure 6As shown, when you need to insert accounting vouchers at positions 1.0 and 2.0 of the floating-point type sequence number, you only need to randomly select a middle number between 1.0 and 2.0, such as 1.5, and use it as the sequence number for inserting the vouchers. After insertion, the vouchers are arranged according to the sequence number [1.0, 1.5, 2.0, 3.0], and the overall order of the accounting vouchers will not change.

[0052] When an accounting voucher needs to be inserted, the corresponding floating-point number sequence number will be remapped to a consecutive integer for display according to the order in which the accounting vouchers are inserted.

[0053] like Figure 7 As shown, the storage layer stores floating-point numbers in the order of [1, 1.5, 2, 3] as sequence numbers. Following the mapping principle of keeping the order unchanged and the integers consecutive, the floating-point sequence numbers are mapped to consecutive integers for display. The interface display layer displays the accounting voucher number in the form of integers [1, 2, 3, 4].

[0054] Compared with traditional methods with low insertion efficiency, this invention uses floating-point numbers for insertion and deletion to achieve a time complexity of O(1) without moving existing vouchers; compared with traditional integer sequences which are prone to breakage or duplication, the use of the continuity of floating-point numbers avoids conflicts in accounting voucher numbers.

[0055] This embodiment employs a floating-point linked list storage + integer display mechanism. Floating-point numbers are added as the sequence numbers of accounting vouchers and stored in a linked list. They are automatically converted into integer sequences according to accounting standards for display, meeting the industry requirement that accounting voucher numbers must be integers and consecutive. Through a storage / display separation architecture, the innovative use of floating-point linked list storage + integer display mechanism ensures the continuity of voucher numbers, supports the rapid insertion and deletion of accounting vouchers, and efficiently handles the voucher number changes caused by the insertion of accounting vouchers.

[0056] This embodiment reconstructs the accounting voucher management logic through floating-point sequence numbers, achieving innovation in three dimensions: data structure, precision control, and display layer conversion. It combines improved computing efficiency (hardware-friendly), compliance assurance (adaptation to accounting standards), and system scalability (unlimited insertion), possessing strong technical barriers and industry application value.

[0057] like Figure 2 As shown, the device for processing accounting voucher numbers based on floating-point sequence numbers provided in this embodiment of the invention can be implemented in software. The device for processing accounting voucher numbers based on floating-point sequence numbers includes the following software modules: accounting voucher sorting module 201, floating-point sequence association module 202, and integer mapping display module 203.

[0058] The following is a description of the functions of each software module in the device for processing accounting voucher numbers based on floating-point sequence numbers: The accounting voucher sorting module 201 is used to obtain all accounting vouchers and sort them according to a set order.

[0059] In practice, all accounting vouchers can be sorted in advance according to a set order, such as amount, time, etc.

[0060] It should be noted that the sorting dimensions of all accounting vouchers can be set by those skilled in the art according to the actual situation, and will not be described in detail here.

[0061] The floating-point sequence association module 202 is used to associate and store each sorted accounting voucher with a sequence number of a floating-point number.

[0062] In this embodiment, each accounting voucher and its floating-point type sequence number are stored using a floating-point linked list structure.

[0063] A floating-point linked list structure can be implemented using a structure and pointers. Each node contains a data field (storing the floating-point number) and a pointer field (a pointer to the next node), forming a linear structure through dynamic memory allocation. The advantages of using a floating-point linked list structure are as follows: Dynamic memory management: The floating-point linked list structure does not require pre-allocation of fixed memory space and can dynamically allocate storage resources according to actual needs. When data needs to be added or deleted, only pointers need to be adjusted, avoiding the memory waste problem caused by arrays with fixed sizes.

[0064] Flexible data type adaptation: Nodes in a floating-point linked list structure can store different types of data (such as floating-point numbers), and each node manages its own data type, adapting to scenarios with complex data structures. This contrasts sharply with arrays, which require a uniform data type.

[0065] Efficient insertion / deletion operations: The floating-point linked list structure enables dynamic adjustment between nodes through pointer links. Insertion or deletion operations only involve local node modifications, which is more efficient than batch movement operations of arrays.

[0066] High scalability: The floating-point linked list structure can theoretically expand the number of nodes indefinitely, limited only by memory capacity, making it suitable for scenarios with dynamically changing data volumes.

[0067] The integer mapping display module 203 is used to map the sequence numbers of all floating-point numbers to consecutive integers for display according to the mapping principle that the set order remains unchanged and the integers are consecutive.

[0068] In this embodiment, when it is necessary to delete an accounting voucher, the accounting voucher is deleted directly, and the floating-point type sequence number of the remaining accounting vouchers remains unchanged.

[0069] Since the floating-point number sequence of accounting vouchers does not require them to be consecutive, deleting an accounting voucher directly will not affect the overall sequence of accounting vouchers.

[0070] like Figure 4 As shown, the floating-point number sequence numbers of accounting vouchers are [1.0, 2.0, 3.0]. When you need to delete the accounting voucher with sequence number 2.0, simply delete it and then rearrange it according to sequence numbers [1.0, 3.0]. The overall order of the accounting vouchers will not change.

[0071] When an accounting voucher needs to be deleted, the corresponding floating-point number sequence number is remapped to a consecutive integer and displayed according to the order of the remaining accounting vouchers.

[0072] like Figure 5 As shown, the storage layer stores floating-point numbers [1, 3] as sequence numbers. Following the mapping principle of keeping the order unchanged and the integers continuous, the floating-point number type sequence number is mapped to a continuous integer for display. Then, in the interface display layer, it is displayed as an accounting voucher number in the form of integers [1, 2].

[0073] In some optional embodiments, when the accounting voucher to be deleted is the last accounting voucher in the sorted list, the accounting voucher is deleted directly, and the floating-point type sequence number of the remaining accounting vouchers and the consecutive integers displayed by their mapping remain unchanged.

[0074] This embodiment innovatively uses a storage / display separation architecture and a floating-point linked list storage + integer display mechanism to ensure the continuity of accounting voucher numbers. It uses floating-point deletion to achieve a time complexity of O(1) without moving existing vouchers. Compared with the risk of broken numbers that are easy to occur in traditional integer sequences, the use of floating-point continuity avoids conflicts in accounting voucher numbers.

[0075] In the actual implementation process, the insertion position of the accounting voucher is determined according to the set requirements before insertion.

[0076] It should be noted that those skilled in the art can set requirements according to actual circumstances, and thus determine the insertion position of accounting vouchers.

[0077] When an accounting voucher needs to be inserted, obtain the floating-point type sequence number of the two vouchers before and after the insertion position, and randomly generate an intermediate number between these two floating-point type sequence numbers as the floating-point type sequence number of the inserted accounting voucher.

[0078] like Figure 6As shown, when you need to insert accounting vouchers at positions 1.0 and 2.0 of the floating-point type sequence number, you only need to randomly select a middle number between 1.0 and 2.0, such as 1.5, and use it as the sequence number for inserting the vouchers. After insertion, the vouchers are arranged according to the sequence number [1.0, 1.5, 2.0, 3.0], and the overall order of the accounting vouchers will not change.

[0079] When an accounting voucher needs to be inserted, the corresponding floating-point number sequence number will be remapped to a consecutive integer for display according to the order in which the accounting vouchers are inserted.

[0080] like Figure 7 As shown, the storage layer stores floating-point numbers in the order of [1, 1.5, 2, 3] as sequence numbers. Following the mapping principle of keeping the order unchanged and the integers consecutive, the floating-point sequence numbers are mapped to consecutive integers for display. The interface display layer displays the accounting voucher number in the form of integers [1, 2, 3, 4].

[0081] This embodiment employs a floating-point linked list storage + integer display mechanism. Floating-point numbers are added as the sequence numbers of accounting vouchers and stored in a linked list. They are automatically converted into integer sequences according to accounting standards for display, meeting the industry requirement that accounting voucher numbers must be integers and consecutive. Through a storage / display separation architecture, the innovative use of floating-point linked list storage + integer display mechanism ensures the continuity of voucher numbers, supports the rapid insertion and deletion of accounting vouchers, and efficiently handles the voucher number changes caused by the insertion of accounting vouchers.

[0082] This embodiment reconstructs the accounting voucher management logic through floating-point sequence numbers, achieving innovation in three dimensions: data structure, precision control, and display layer conversion. It combines improved computing efficiency (hardware-friendly), compliance assurance (adaptation to accounting standards), and system scalability (unlimited insertion), possessing strong technical barriers and industry application value.

[0083] In other embodiments, an apparatus for processing accounting voucher numbers based on floating-point sequence numbers is also provided, which includes: a server and a client. The server is configured to: retrieve all accounting vouchers and sort them in a set order; Each sorted accounting voucher is associated with a floating-point number sequence number and stored accordingly. Following the mapping principle of maintaining the set order and ensuring consecutive integers, all floating-point number sequence numbers of accounting vouchers are mapped to consecutive integers for display. The client is configured to display the sequential number of the accounting voucher, which is a mapped consecutive integer.

[0084] It should be noted here that the server is configured to execute as follows: Figure 1The steps in the method for processing accounting voucher numbers based on floating-point sequence numbers shown are not repeated here.

[0085] The client here refers to a device with display capabilities, such as a display screen, used to display consecutive integer accounting voucher sequence numbers.

[0086] The server side can also use, for example... Figure 3 The electronic device shown is configured as follows. The structure of the electronic device according to an embodiment of the present invention will be described in detail below. Figure 3 This is a schematic diagram of the composition structure of an electronic device provided in an embodiment of the present invention. It can be understood that... Figure 3 The diagram shows only an exemplary structure of the electronic device, not the entire structure. Some or all of the structures shown may be implemented as needed.

[0087] The electronic device provided in this embodiment of the invention includes: at least one processor 301, a memory 302, a user interface 303, and at least one network interface 304. The various components in the apparatus for processing accounting voucher numbers based on floating-point sequence numbers are coupled together via a bus system 305. It can be understood that the bus system 305 is used to implement communication between these components. In addition to a data bus, the bus system 305 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 3 The general designated all buses as Bus System 305.

[0088] The user interface 303 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.

[0089] It is understood that memory 302 can be volatile memory or non-volatile memory, or both. In this embodiment of the invention, memory 302 is capable of storing data to support the operation of the terminal. Examples of this data include any computer programs used to operate on the terminal, such as operating systems and applications. The operating system includes various system programs, such as framework layers, core library layers, driver layers, etc., used to implement various basic services and handle hardware-based tasks. Applications can include various applications.

[0090] In some embodiments, the apparatus 300 for processing accounting voucher numbers based on floating-point sequence numbers provided in this invention can be implemented using a combination of hardware and software. For example, the apparatus 300 can be a processor in the form of a hardware decoding processor, programmed to execute the method for processing accounting voucher numbers based on floating-point sequence numbers provided in this invention. For instance, the processor in the form of a hardware decoding processor can employ one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0091] As an example, processor 301 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0092] As an example of the hardware implementation of the apparatus 300 for processing accounting voucher numbers based on floating-point sequence numbers provided in this embodiment of the invention, the apparatus provided in this embodiment of the invention can be directly executed by a processor 301 in the form of a hardware decoding processor. For example, it can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components to implement the method for processing accounting voucher numbers based on floating-point sequence numbers provided in this embodiment of the invention.

[0093] The memory 302 in this embodiment of the invention is used to store various types of data to support the operation of the device for processing accounting voucher numbers based on floating-point sequence numbers, or to store data for performing... Figure 1The program code for the method shown. Examples of this data include: any executable instructions for operating on an apparatus for processing accounting document numbers based on floating-point sequence numbers, such as executable instructions that can be included in the executable instructions to implement the method for processing accounting document numbers based on floating-point sequence numbers according to embodiments of the present invention.

[0094] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including functions for executing... Figure 1 The program code for the method shown. In such an embodiment, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by the central processing unit, it performs the various functions defined in the apparatus of this application.

[0095] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0096] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for processing accounting voucher numbers based on floating-point sequence numbers, characterized in that, include: Retrieve all accounting documents and sort them according to the set order; Each sorted accounting voucher is associated with a floating-point number sequence number and stored accordingly. Following the mapping principle of maintaining the set order and ensuring consecutive integers, the floating-point type sequence numbers of all accounting vouchers are mapped to consecutive integers for display.

2. The method for processing accounting voucher numbers based on floating-point sequence numbers as described in claim 1, characterized in that, When you need to delete an accounting voucher, simply delete that accounting voucher; the floating-point number sequence number of the remaining accounting vouchers will remain unchanged.

3. A method for processing accounting voucher numbers based on floating-point sequence numbers as described in claim 1 or 2, characterized in that, When an accounting voucher needs to be deleted, the corresponding floating-point number sequence number is remapped to a consecutive integer and displayed according to the order of the remaining accounting vouchers.

4. The method for processing accounting voucher numbers based on floating-point sequence numbers as described in claim 1, characterized in that, When the accounting voucher to be deleted is the last accounting voucher in the sorted list, delete the accounting voucher directly. The floating-point type sequence number of the remaining accounting vouchers and the consecutive integers they are mapped to will remain unchanged.

5. The method for processing accounting voucher numbers based on floating-point sequence numbers as described in claim 1, characterized in that, When an accounting voucher needs to be inserted, obtain the floating-point type sequence number of the two vouchers before and after the insertion position, and randomly generate an intermediate number between these two floating-point type sequence numbers as the floating-point type sequence number of the inserted accounting voucher.

6. The method for processing accounting voucher numbers based on floating-point sequence numbers as described in claim 1 or 4, characterized in that, When an accounting voucher needs to be inserted, the corresponding floating-point number sequence number will be remapped to a consecutive integer for display according to the order in which the accounting vouchers are inserted.

7. The method for processing accounting voucher numbers based on floating-point sequence numbers as described in claim 1, characterized in that, Each accounting voucher and its floating-point number sequence number are stored using a floating-point linked list structure.

8. An apparatus for processing accounting voucher numbers based on floating-point sequence numbers, characterized in that, include: The accounting voucher sorting module is used to retrieve all accounting vouchers and sort them according to a set order. The floating-point sequence association module is used to associate and store each sorted accounting voucher with a sequence number of a floating-point number. The integer mapping display module is used to map the sequence numbers of all floating-point numbers to consecutive integers for display, according to the mapping principle that the set order remains unchanged and the integers are consecutive.

9. An apparatus for processing accounting voucher numbers based on floating-point sequence numbers, characterized in that, include: Server-side and client-side; The server is configured to: retrieve all accounting vouchers and sort them in a set order; Each sorted accounting voucher is associated with a floating-point number sequence number and stored accordingly. Following the mapping principle of maintaining the set order and ensuring consecutive integers, all floating-point number sequence numbers of accounting vouchers are mapped to consecutive integers for display. The client is configured to display the sequential number of the accounting voucher, which is a mapped consecutive integer.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the method for processing accounting voucher numbers based on floating-point sequence numbers as described in any one of claims 1-7.