Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide an automatic invoice splitting method, an automatic invoice splitting system, automatic invoice splitting equipment and a storage medium, which can automatically realize invoice splitting based on configuration information and improve invoice issuing efficiency and accuracy.
The embodiment of the invention provides an automatic invoice splitting method, which comprises the following steps:
Providing an information configuration page;
Acquiring billing configuration information input in the information configuration page, and establishing billing splitting rules;
Acquiring order information to be billed;
and automatically splitting the invoice according to the order information and a preset billing splitting rule.
In some embodiments, the billing splitting rule includes an invoice head-up allocation rule;
According to the order information and a pre-established billing splitting rule, automatically splitting the invoice, wherein the method comprises the following steps of:
and attributing each order to be billed to a corresponding invoice head according to the order information and a pre-established billing splitting rule.
In some embodiments, the automatically splitting the invoice further comprises calculating an invoicing amount for each invoice.
In some embodiments, the calculating the invocable amount includes the steps of:
Calculating the amount of an order to be issued corresponding to each invoice head-up;
and calculating the invoice quantity corresponding to the invoice head and the invocable amount of each invoice according to the preset invoice amount.
In some embodiments, the invoice head-up allocation rule includes a first field type and a first field value corresponding to each invoice head-up;
According to the order information and a pre-established billing splitting rule, attributing each order to be billed to a corresponding invoice head, comprising the following steps:
and acquiring a second field value corresponding to the first field type from the order information to be invoiced, and attributing each order to be invoiced to a corresponding invoice head according to a matching result of the second field value and the first field value in the allocation rule.
In some embodiments, the first field type is department or cost center, obtains billing configuration information input in the information configuration page, and establishes billing splitting rules, including the following steps:
newly creating an billing combination;
Acquiring a first field value of a department or a cost center, and configuring a newly built billing combination to correspond to the first field value;
acquiring information of all members in a department or a cost center and storing the corresponding relation between the department or the cost center and the members;
and acquiring a configured invoice head, configuring a newly-built billing combination to correspond to the configured invoice head, and establishing billing splitting rules.
In some embodiments, obtaining a second field value corresponding to the first field type from the order information to be invoiced includes the steps of:
judging whether department or cost center information exists in the order information;
If yes, determining a second field value of the first field type according to the department or cost center information;
If not, member information is acquired from the order information, and a second field value of the first field type is determined according to the corresponding relation between the member information and a pre-stored department or cost center and the member.
In some embodiments, after calculating the amount of each invoice, the method further comprises the following steps:
billing is carried out according to the invoice head and the billing amount of each split invoice;
and adding the issued invoice information into the order information according to the corresponding relation between each invoice and the order after splitting.
The embodiment of the invention also provides an automatic invoice splitting system for realizing the automatic invoice splitting method, which comprises the following steps:
the page interaction module is used for providing an information configuration page;
The rule configuration module is used for acquiring billing configuration information input in the information configuration page and establishing billing splitting rules;
the information acquisition module is used for acquiring order information to be billed;
And the invoice splitting module is used for automatically splitting the invoice according to the order information and the pre-established invoice splitting rule and calculating the invoicing amount.
The embodiment of the invention also provides automatic invoice splitting equipment, which comprises the following steps:
A processor;
A memory having stored therein executable instructions of the processor;
Wherein the processor is configured to perform the steps of the automated invoice splitting method via execution of the executable instructions.
The embodiment of the invention also provides a computer readable storage medium for storing a program which, when executed by a processor, implements the steps of the automatic invoice splitting method.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
The automatic invoice splitting method, system, equipment and storage medium have the following beneficial effects:
The invention firstly provides configuration of the billing splitting rule, specifically, when in configuration, an information configuration page is provided and is displayed on a user terminal, then billing configuration information input by a user in the information configuration page is acquired, the billing splitting rule is pre-established based on the information configuration page, then the corresponding billing splitting rule is matched automatically according to order information, automatic invoice splitting is realized, manual splitting and calculation are not needed, and invoice billing efficiency and accuracy are improved.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein, but rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only and not necessarily all steps are included. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
As shown in fig. 1, an embodiment of the present invention provides an automatic invoice splitting method, including the following steps:
S100, providing an information configuration page, wherein the information configuration page is used for acquiring billing configuration information input by a user, and can comprise a plurality of input boxes, each input box corresponds to one type of configuration information, and the user can input customized billing requirements in the corresponding input box;
S200, acquiring billing configuration information input in the information configuration page, and establishing billing splitting rules, wherein the billing configuration information can be input by staff in charge of billing, and customized billing configuration information aiming at different clients can be input according to the requirements of the different clients;
s300, acquiring order information to be billed, wherein the order information generally comprises an order number, order commodity category, customer information and the like;
and S400, automatically splitting the invoice according to the order information and a preset billing splitting rule, thereby realizing automatic invoice splitting.
In the automatic invoice splitting method, firstly, the steps S100 and S200 are adopted to configure the invoice splitting rule, specifically, when in configuration, an information configuration page is provided and displayed on a user terminal, the user terminal can be a mobile phone, a computer and other terminal equipment used by a user, then the invoice configuration information input by the user in the information configuration page is acquired, the invoice splitting rule is pre-established based on the information configuration page, and then the corresponding invoice splitting rule is automatically matched according to order information by adopting the steps S300 and S400, so that automatic invoice splitting is realized, manual splitting and calculation are not needed, invoice issuing efficiency and accuracy are improved, and the input of offline manpower resources is reduced.
The automatic invoice splitting method can be deployed on a server of an invoicing system, and when invoicing is carried out, the automatic invoice splitting method is called, and after the automatic invoice is split, the subsequent invoicing process is automatically docked, so that the labor investment of staff is greatly saved. The advantage is especially pronounced when the billing system requires multiple customers, each customer having multiple departments/cost centers, with multiple invoices raised.
In this embodiment, the invoice splitting rule includes an invoice head-up allocation rule. Step S400, according to the order information and the pre-established billing splitting rule, automatically splitting the invoice, wherein the method comprises the following steps:
and attributing each order to be billed to a corresponding invoice head according to the order information and a pre-established billing splitting rule.
In this embodiment, after the invoice splitting is automatically performed in the step S400, the method further includes calculating an invoicing amount of each invoice. Specifically, the calculating of the invocable amount includes the steps of:
Calculating the amount of an order to be issued corresponding to each invoice head-up;
And calculating the invoice quantity corresponding to the invoice head and the invocable amount of each invoice according to the preset invoice amount. The predetermined invoice amount refers to the agreed maximum invoicing amount of each invoice. After the number of the invoices is calculated, the sum of the invocable amount of each invoice is ensured to be equal to the sum value of all the attributive orders under the head of the invoice.
In practical applications, the billing rules required by different customers may vary greatly. For example, where a customer has multiple invoices raised, it may be specified that different departments correspond to different invoice raised, or that different sub-departments correspond to different invoice raised, different cost centers correspond to different invoice raised, and so on. In this embodiment, the invoice head-up allocation rule includes a first field type and a first field value corresponding to each invoice head-up. The first field type may be, for example, department, sub-department, cost center, job level, etc. The first field value is a field value of a first field type corresponding to each invoice head-up.
In step S400, according to the order information and the pre-established billing splitting rule, each order to be billed is attributed to a corresponding invoice head, which includes the following steps:
and acquiring a second field value corresponding to the first field type from the order information to be invoiced, and attributing each order to be invoiced to a corresponding invoice head according to a matching result of the second field value and the first field value in the allocation rule.
For example, the first field type is department, and the allocation rule of the invoice head comprises that department 1 corresponds to invoice head A, department 2 corresponds to invoice head B, department 3 corresponds to invoice head C and the like. When the invoice is split, all orders of the department 1 are attributed to the invoice head A, all orders of the department 2 are attributed to the invoice head B, and all orders of the department 3 are attributed to the invoice head C. For another example, the first field type is a cost center, and the allocation rule of the invoice head comprises that the cost center 1 corresponds to the invoice head A, the cost center 2 corresponds to the invoice head B, the cost center 3 corresponds to the invoice head C and the like. When the invoice is split, all orders in the cost center 1 are attributed to the invoice head A, all orders in the cost center 2 are attributed to the invoice head B, and all orders in the cost center 3 are attributed to the invoice head C.
As shown in fig. 2, taking the first field type as a department or a cost center as an example, the step S200 of obtaining billing configuration information input in the information configuration page and establishing billing splitting rules includes the following steps:
S210, newly creating an billing combination;
s220, acquiring a first field value of a department or a cost center, and configuring a newly-built billing combination to correspond to the first field value;
S230, acquiring information of all members in the department or the cost center and storing the corresponding relation between the department or the cost center and the members;
S240, acquiring configured invoice heads, configuring newly-built billing combinations to correspond to the configured invoice heads, and establishing billing splitting rules, so that a plurality of billing combinations are obtained, each billing combination corresponds to one department or cost center, and each billing combination corresponds to one invoice head, so that the departments or cost centers are associated with the invoice heads.
As shown in fig. 2, after the step S240, the following steps may be further included:
S250, acquiring customer account checking information;
S260, checking whether the newly-built billing splitting rule is compliant, judging whether the newly-built billing splitting rule is compliant or not, and judging whether a preset compliance condition is adopted, for example, judging whether a department corresponds to the condition of two invoice heads, whether a non-existing department or a non-entered invoice head-up condition is set, and the like;
If yes, the new creation is successful, the billing splitting rule is saved for the automatic splitting of the follow-up invoice, otherwise, the new creation failure can be used for feeding back a notice of the rule creation failure to the user, and the reason of the creation failure is fed back to ask the user to modify.
In this embodiment, the obtaining of the second field value corresponding to the first field type from the order information to be invoiced includes the following steps:
judging whether department or cost center information exists in the order information;
If yes, determining a second field value of the first field type according to the department or cost center information;
If not, member information is acquired from the order information, and a second field value of the first field type is determined according to the corresponding relation between the member information and a pre-stored department or cost center and the member.
In one embodiment, the flow of automatic invoicing is shown in figure 3.
Firstly, providing an operation page of billing to a user terminal, clicking an automatic billing button in the operation page of billing by a user, judging whether to manually bill, if so, manually billing, and not continuing the automatic billing process, and if not, judging whether to open an automatic billing switch. If the automatic billing switch is not opened, manual billing is performed, and the automatic billing process is not continued.
After the automatic billing switch confirms to be opened, judging whether the bill state corresponding to the order is confirmed, wherein the bill state confirmation can be the confirmation of the customer to the bill, if the bill state is not confirmed, the billing interception is carried out, and the bill state is prompted to be not confirmed. If the billing state is confirmed, judging whether the main account has the invocable amount, if not, intercepting the invocable, prompting that the main account has no invocable amount, if so, distributing an invoice head for the order according to an invocable splitting rule, and carrying out automatic invoice splitting. After the invoice is split, judging whether any order is not assigned to any rule, namely judging whether any order is not attributed to any invoice head, if so, continuing to make an invoice by using a bullet frame and checking the unassigned order for the user to select. When the user selects the 'view unassigned order' button, the user jumps to the assign order list page, and the invoice is manually assigned by the user. After the user selects the 'continue to issue an invoice' button or all orders are attributed to the corresponding invoice head, calculating the issue amount of each invoice, and issuing the invoice according to the invoice head and the issue amount.
In this embodiment, as shown in fig. 3, after calculating the amount of each invoice, the method further includes the following steps:
billing is carried out according to the invoice head and the billing amount of each split invoice;
And adding the issued invoice information into the order information according to the corresponding relation between each invoice and the order after splitting. The invoice information is backfilled in the order, and then sent to the user through mail, and the billing information is prompted.
As shown in fig. 4, an embodiment of the present invention further provides an automatic invoice splitting system, configured to implement the automatic invoice splitting method, where the system includes:
the page interaction module M100 is configured to provide an information configuration page, where the information configuration page is configured to obtain billing configuration information input by a user, and may include a plurality of input boxes, where each input box corresponds to one type of configuration information, and the user may input a customized billing requirement in the corresponding input box;
The rule configuration module M200 is used for acquiring billing configuration information input in the information configuration page and establishing billing splitting rules, wherein the billing configuration information can be input by a staff responsible for billing and can be input into customized billing configuration information aiming at different clients according to the requirements of the different clients;
The information acquisition module M300 is configured to acquire order information to be billed, where the order information generally includes an order number, an order commodity category, customer information, and the like;
and the invoice splitting module M400 is used for automatically splitting the invoice according to the order information and the pre-established invoice splitting rule and calculating the invoicing amount.
In the automatic invoice splitting system, firstly, the page interaction module M100 and the rule configuration module M200 are adopted to configure the invoice splitting rule, specifically, when the invoice splitting system is configured, an information configuration page is provided and displayed on a user terminal, the user terminal can be a mobile phone, a computer and other terminal equipment used by a user, then the invoice configuration information input by the user in the information configuration page is acquired, the invoice splitting rule is established in advance based on the invoice configuration information, and then the corresponding invoice splitting rule is automatically matched according to order information by adopting the information acquisition module M300 and the invoice splitting module M400, so that automatic invoice splitting is realized, manual splitting and calculation are not needed, invoice issuing efficiency and accuracy are improved, and the input of offline manpower resources is reduced.
The automatic invoice splitting system can be deployed on a server of the invoicing system, and when invoicing is carried out, the automatic invoice splitting method is called, and after the automatic invoice is split, the subsequent invoicing process is automatically docked, so that the labor input of staff is greatly saved. The advantage is especially pronounced when the billing system requires multiple customers, each customer having multiple departments/cost centers, with multiple invoices raised.
In this embodiment, the billing splitting rule includes an invoice head-up allocation rule, and specifically, the invoice head-up allocation rule includes a first field type and a first field value corresponding to each invoice head-up. The first field type may be, for example, department, sub-department, cost center, job level, etc. The first field value is a field value of a first field type corresponding to each invoice head-up. Taking the first field type as a department or a cost center as an example, the rule configuration module M200 establishes an invoicing splitting rule by adopting the steps of creating an invoicing combination, obtaining a first field value of the department or the cost center, configuring the newly created invoicing combination to correspond to the first field value, obtaining all member information in the department or the cost center and storing the corresponding relation between the department or the cost center and the members, obtaining a configured invoice head, configuring the newly created invoicing combination to correspond to the configured invoice head, and establishing the invoicing splitting rule, thereby obtaining a plurality of invoicing combinations, wherein each invoicing combination corresponds to one department or cost center, and each invoicing combination corresponds to one invoice head, so that the department or the cost center is related to the invoice head.
In this embodiment, the automatic invoice splitting system further includes an amount calculating module, configured to calculate an amount of an order to be invoiced corresponding to each invoice head, and specifically calculate, according to a predetermined invoice amount, an amount of invoices corresponding to the invoice head and an invocable amount of each invoice. The predetermined invoice amount refers to the agreed maximum invoicing amount of each invoice. After the number of the invoices is calculated, the sum of the invocable amount of each invoice is ensured to be equal to the sum value of all the attributive orders under the head of the invoice.
The embodiment of the invention also provides automatic invoice splitting equipment, which comprises a processor, a memory, and a storage, wherein executable instructions of the processor are stored in the memory, and the processor is configured to execute the steps of the automatic invoice splitting method by executing the executable instructions.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects that may be referred to herein collectively as a "circuit," module, "or" platform.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 600 shown in fig. 5 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 600 is embodied in the form of a general purpose computing device. The components of electronic device 600 may include, but are not limited to, at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including memory unit 620 and processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs steps according to various exemplary embodiments of the present invention described in the above-described automated invoice splitting method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In the automatic invoice splitting device, the steps of the automatic invoice splitting method are realized when the program in the memory is executed by the processor, so that the device can also obtain the technical effects of the automatic invoice splitting method.
The embodiment of the invention also provides a computer readable storage medium for storing a program which, when executed by a processor, implements the steps of the automatic invoice splitting method. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the above description of the automatic invoice splitting method section, when said program product is executed on the terminal device.
Referring to fig. 6, a program product 800 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be executed on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of a readable storage medium include an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The steps of the automatic invoice splitting method are realized when the program in the computer storage medium is executed by the processor, so that the computer storage medium can also obtain the technical effects of the automatic invoice splitting method.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.