CN109934692A - A kind of method and apparatus for automatically generating the voucher that liquidates - Google Patents

A kind of method and apparatus for automatically generating the voucher that liquidates Download PDF

Info

Publication number
CN109934692A
CN109934692A CN201711373805.0A CN201711373805A CN109934692A CN 109934692 A CN109934692 A CN 109934692A CN 201711373805 A CN201711373805 A CN 201711373805A CN 109934692 A CN109934692 A CN 109934692A
Authority
CN
China
Prior art keywords
voucher
liquidates
invoice
automatically generates
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711373805.0A
Other languages
Chinese (zh)
Other versions
CN109934692B (en
Inventor
付佳
侯亚帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201711373805.0A priority Critical patent/CN109934692B/en
Publication of CN109934692A publication Critical patent/CN109934692A/en
Application granted granted Critical
Publication of CN109934692B publication Critical patent/CN109934692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses the method and apparatus for automatically generating the voucher that liquidates, and are related to field of computer technology.One specific embodiment of this method includes: that the reception voucher that liquidates is made out an invoice request, and acquisition is made out an invoice information, and the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine;The voucher that liquidates automatically generates engine and makes out an invoice according to the corresponding detail of making out an invoice of information searching, credential information and is filled out with generating to liquidate.The embodiment is able to solve the prior art and special messenger is needed to operate by hand, spends human and material resources, and manual operation inevitably will appear the problem for calculating mistake or typing mistake.

Description

A kind of method and apparatus for automatically generating the voucher that liquidates
Technical field
The present invention relates to field of computer technology more particularly to a kind of for automatically generating the method and dress of the voucher that liquidates It sets.
Background technique
After taxpayer issues VAT invoice (hereinafter referred to as blue ticket), in case of Sales return, make out an invoice it is wrong Etc. situations but do not meet calcellation condition, or because selling concession is retracted and occurred in sales part, need to issue The Scarlet Letter dedicated Invoice (hereinafter referred to as red ticket).Each red ticket requires to fill in cargo managing detailed catalogue, these cargo details derive from blue ticket, i.e., Each cargo detail on red ticket requires have corresponding detail entry in blue ticket.The cargo managing detailed catalogue of one red ticket can With from multiple blue tickets, the cargo detail of a blue ticket can correspond to multiple red tickets.
Every invoice has its limit of making out an invoice, the limit of making out an invoice of the total amount of the cargo detail of invoice no more than invoice. The invoiced amount that one taxpayer's every month is bought from the tax bureau provides in advance, and invoice needs after being finished to the tax bureau Application, process CIMS are complicated.Therefore, when issuing red ticket, it should so that the total amount of making out an invoice of every invoice is equal to or as far as possible Close to limit of making out an invoice, the purpose using the most amount of money of least invoice issuing can be only achieved in this way.In addition, in the mistake for issuing red ticket Cheng Zhong, there are one problems deserving of attention: the cargo detail belonged in a blue ticket tries not to be split in multiple red tickets, Excessive being split in different red tickets of cargo detail in blue ticket can bring all to the write-downs of the later period amount of money and artificial audit process It is mostly inconvenient.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery: in view of being described above Red ticket make out an invoice demand, it is desirable to generate that red ticket difficulty is relatively high, and issuing for red ticket generallys use manual entry according to cargo detail The mode of invoice detail, special messenger by manual calculation, by the cargo detail in need for issuing red ticket according to need recited above It asks and is divided, generate one or more red ticket, manual entry red ticket not only takes time and effort, and is also easy to that the feelings of typing mistake occur Condition.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for automatically generating the voucher that liquidates, can solve Certainly the prior art needs special messenger to operate by hand, spends human and material resources, and manual operation inevitably will appear calculating The problem of mistake or typing mistake.
To achieve the above object, according to an aspect of an embodiment of the present invention, it provides a kind of for automatically generating The Scarlet Letter The method of invoice, including receive the voucher that liquidates and make out an invoice request, obtains information of making out an invoice, the information of making out an invoice is committed to liquidate with Card automatically generates engine;The voucher that liquidates automatically generates engine and makes out an invoice according to the corresponding detail of making out an invoice of information searching, with Generation, which liquidates, credential information and fills out.
Optionally, the voucher that liquidates automatically generates engine and makes out an invoice according to the corresponding detail of making out an invoice of information searching, with Generation liquidates credential information, comprising:
Step 1: the voucher that liquidates automatically generates engine and deposits all details of making out an invoice that every voucher extracts as an entry It stores up in preset detail list;Wherein, according to make out an invoice detail of the information searching to corresponding voucher of making out an invoice;
Step 2: the voucher that liquidates automatically generates engine and extracts the maximum entry of total amount from detail list, is with judgement The no voucher that liquidates there are residual amount greater than the total amount, the voucher that then liquidates if it exists automatically generate engine and liquidate described For voucher as target red ticket, the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, by it is described it is new liquidate with Card liquidates voucher as target;
Step 3: the voucher that liquidates automatically generates engine and all details of making out an invoice of the corresponding voucher of the entry is assigned to target It liquidates in voucher;
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated entry in the detail list, if In the presence of then return step two, information of making out an invoice otherwise is generated.
Optionally, the generation is made out an invoice before information, further includes:
The voucher that liquidates automatically generates engine and obtains the voucher quantity that currently liquidates, and whether the current voucher quantity that liquidates of judgement is less than Or equal to the preset voucher threshold value that at least liquidates;
According to judging result, opened if the voucher that then directly liquidates automatically generates engine according to the voucher that liquidates currently distributed Ticket detail generates information of making out an invoice;Otherwise the voucher that liquidates automatically generates engine and splits the smallest voucher of average amount in detail list, It is stored in the detail list so that each of this voucher is made out an invoice detail as an entry, return step two.
Optionally, further includes:
Step 1: the voucher that liquidates automatically generates engine according to information searching of making out an invoice to corresponding institute's documentary, and extracts institute Detail of making out an invoice corresponding with the information of making out an invoice in documentary, and detail storage is made out an invoice into preset detail list by every;
Step 2: the voucher that liquidates automatically generates engine and obtains the maximum detail of the amount of money from detail list, judges whether to deposit Residual amount be greater than the detail amount of money the voucher that liquidates, the voucher that then liquidates if it exists automatically generate engine by it is described liquidate with Card liquidates voucher as target, and the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, and by new pair Voucher is rushed to liquidate voucher as target;
Step 3: the detail that the voucher that liquidates automatically generates engine and will acquire is assigned to target and liquidates in voucher;
Step 4: the voucher that liquidates automatically generate engine judge in the detail list with the presence or absence of it is unappropriated make out an invoice it is bright Carefully, then return step two, the voucher that otherwise liquidates automatically generate engine and obtain the voucher quantity that currently liquidates if it exists, using as minimum Liquidate voucher threshold value.
Optionally, when the information of making out an invoice being committed to the voucher that liquidates and automatically generating engine, comprising:
The information of making out an invoice of acquisition is verified;
Information checking of making out an invoice described in determination passes through, then the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine.
In addition, according to an aspect of an embodiment of the present invention, provide it is a kind of for automatically generating the device for the voucher that liquidates, Include: submission module, make out an invoice request for receiving the voucher that liquidates, obtain information of making out an invoice, the information of making out an invoice is committed to pair It rushes voucher and automatically generates engine;Generation module automatically generates engine for the voucher that liquidates and makes out an invoice according to information searching Corresponding detail of making out an invoice, to generate the credential information that liquidates;Module is filled out, is filled out for the credential information that liquidates according to.
Optionally, the generation module automatically generates engine in the voucher that liquidates and makes out an invoice that information searching is corresponding to be opened according to Ticket detail, with generate liquidate credential information when, comprising:
Step 1: the voucher that liquidates automatically generates engine and deposits all details of making out an invoice that every voucher extracts as an entry It stores up in preset detail list;Wherein, according to make out an invoice detail of the information searching to corresponding voucher of making out an invoice;
Step 2: the voucher that liquidates automatically generates engine and extracts the maximum entry of total amount from detail list, is with judgement The no voucher that liquidates there are residual amount greater than the total amount, the voucher that then liquidates if it exists automatically generate engine and liquidate described Voucher liquidates voucher as target, and the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, by new pair Voucher is rushed to liquidate voucher as target;
Step 3: the voucher that liquidates automatically generates engine and all details of making out an invoice of the corresponding voucher of the entry is assigned to target It liquidates in voucher;
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated entry in the detail list, if In the presence of then return step two, information of making out an invoice otherwise is generated.
Optionally, generation module generation is made out an invoice before information, further includes:
The voucher that liquidates automatically generates engine and obtains the voucher quantity that currently liquidates, and whether the current voucher quantity that liquidates of judgement is less than Or equal to the preset voucher threshold value that at least liquidates;
According to judging result, opened if the voucher that then directly liquidates automatically generates engine according to the voucher that liquidates currently distributed Ticket detail generates information of making out an invoice;Otherwise the voucher that liquidates automatically generates engine and splits the smallest voucher of average amount in detail list, It is stored in the detail list so that each of this voucher is made out an invoice detail as an entry, return step two.
Optionally, the generation module, is also used to:
Step 1: the voucher that liquidates automatically generates engine according to information searching of making out an invoice to corresponding institute's documentary, and extracts institute Detail of making out an invoice corresponding with the information of making out an invoice in documentary, and detail storage is made out an invoice into preset detail list by every;
Step 2: the voucher that liquidates automatically generates engine and obtains the maximum detail of the amount of money from detail list, judges whether to deposit Residual amount be greater than the detail amount of money the voucher that liquidates, the voucher that then liquidates if it exists automatically generate engine by it is described liquidate with Card liquidates voucher as target, and the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, and by new pair Voucher is rushed to liquidate voucher as target;
Step 3: the detail that the voucher that liquidates automatically generates engine and will acquire is assigned to target and liquidates in voucher;
Step 4: the voucher that liquidates automatically generate engine judge in the detail list with the presence or absence of it is unappropriated make out an invoice it is bright Carefully, then return step two, the voucher that otherwise liquidates automatically generate engine and obtain the voucher quantity that currently liquidates if it exists, using as minimum Liquidate voucher threshold value.
Optionally, when the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine by the submission module, comprising:
The information of making out an invoice of acquisition is verified;
Information checking of making out an invoice described in determination passes through, then the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device is realized any of the above-described for automatically generating method described in the embodiment of credit note.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program is realized any of the above-described for automatically generating described in the embodiment of credit note when described program is executed by processor Method.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that opens because using and receiving the voucher that liquidates Ticket request, obtains information of making out an invoice, the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine;It is described to liquidate voucher certainly The dynamic engine that generates is made out an invoice information searching corresponding detail of making out an invoice according to, is liquidated credential information and the technology hand filled out with generation Section, issues the technical effect for the voucher that liquidates automatically to realize, and the efficiency for issuing the voucher that liquidates is greatly improved.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is according to an embodiment of the present invention for automatically generating the schematic diagram of the main flow of the method for the voucher that liquidates;
Fig. 2 is showing for the main flow for the method for automatically generating the voucher that liquidates that can refer to embodiment according to the present invention It is intended to;
Fig. 3 is according to an embodiment of the present invention for automatically generating the schematic diagram of the main modular of the device for the voucher that liquidates;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the method according to an embodiment of the present invention for automatically generating the voucher that liquidates, as shown in Figure 1, described be used for The method for automatically generating the voucher that liquidates includes:
Step S101, the reception voucher that liquidates are made out an invoice request, obtain information of making out an invoice, the information that will make out an invoice is committed to the voucher that liquidates Automatically generate engine.
In embodiment, in order to improve the accuracy of the credential information that liquidates, the information that will make out an invoice be committed to liquidate with Before card automatically generates engine, need to verify the information of making out an invoice of acquisition.When information checking of making out an invoice described in the determination passes through, The information of making out an invoice is committed to the voucher that liquidates again and automatically generates engine.
Step S102, the voucher that liquidates automatically generate engine and make out an invoice according to the corresponding detail of making out an invoice of information searching, To generate the credential information that liquidates.Specifically implementation process includes:
Step 1: the voucher that liquidates automatically generates engine and deposits all details of making out an invoice that every voucher extracts as an entry It stores up in preset detail list;Wherein, according to make out an invoice detail of the information searching to corresponding voucher of making out an invoice.
Step 2: the voucher that liquidates automatically generates engine and extracts the maximum entry of total amount from detail list, is with judgement The no voucher that liquidates there are residual amount greater than the total amount, the voucher that then liquidates if it exists automatically generate engine and liquidate described Voucher liquidates voucher as target, and the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, by new pair Voucher is rushed to liquidate voucher as target.
Step 3: the voucher that liquidates automatically generates engine and all details of making out an invoice of the corresponding voucher of the entry is assigned to target It liquidates in voucher.
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated entry in the detail list, if In the presence of then return step two, information of making out an invoice otherwise is generated.
Preferably, in order to meet it is all make out an invoice information simultaneously, output and at least liquidate voucher quantity, can make out an invoice in generation Before information, the voucher that liquidates automatically generates whether the engine judgement voucher quantity that currently liquidates is less than or equal to and preset at least liquidates Voucher threshold value.At least liquidate voucher threshold value if it is less than or equal to preset, then the voucher that directly liquidates automatically generate engine according to The voucher that liquidates currently distributed is made out an invoice detail, and generation is made out an invoice information.It is if it is greater than the preset voucher threshold value that at least liquidates, then right It rushes voucher and automatically generates the smallest voucher of average amount in engine fractionation detail list, each of this voucher is made out an invoice bright Spy is that an entry is stored in the detail list, regenerates information of making out an invoice.
Preferably, the preset voucher threshold value that at least liquidates can be obtained by following process:
Step 1: the voucher that liquidates automatically generates engine according to information searching of making out an invoice to corresponding institute's documentary, and extracts institute Detail of making out an invoice corresponding with the information of making out an invoice in documentary, and detail storage is made out an invoice into preset detail list by every;
Step 2: the voucher that liquidates automatically generates engine and obtains the maximum detail of the amount of money from detail list, judges whether to deposit Residual amount be greater than the detail amount of money the voucher that liquidates, the voucher that then liquidates if it exists automatically generate engine by it is described liquidate with Card liquidates voucher as target, and the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, and by new pair Voucher is rushed to liquidate voucher as target;
Step 3: the detail that the voucher that liquidates automatically generates engine and will acquire is assigned to target and liquidates in voucher;
Step 4: the voucher that liquidates automatically generate engine judge in the detail list with the presence or absence of it is unappropriated make out an invoice it is bright Carefully, then return step two, the voucher that otherwise liquidates automatically generate engine and obtain the voucher quantity that currently liquidates if it exists, using as minimum Liquidate voucher threshold value.
Step S103 is filled out according to the credential information that liquidates.
According to various embodiments above, it can be seen that the method for automatically generating the voucher that liquidates, it can be certainly It is dynamic to generate the cargo detail for needing to issue the voucher that liquidates, and to needing all cargo details to be split automatically, generation one or Multiple vouchers that liquidate, and the detail that can reach the voucher minimum number that liquidates, and belong to a voucher merges make out an invoice as far as possible Purpose.
Fig. 2 is showing for the main flow for the method for automatically generating the voucher that liquidates that can refer to embodiment according to the present invention It is intended to, can be applied to issue credit note, the method for automatically generating the voucher that liquidates may include:
Step S201 receives credit note (hereinafter referred to as red ticket) and makes out an invoice request, obtains information of making out an invoice.
Wherein, the red ticket is that enterprise markets the goods when the business such as retracting, and eats up part of the validation certificate of income from sales.
Wherein, the information of making out an invoice may include taxpayer identification number, Business Name, making out an invoice including telephone number etc. The document informations such as qualification information, the allowance amount of money, the return of goods and blue ticket cargo detail.
Step S202, to making out an invoice, information is verified, and the information of making out an invoice that verification passes through is submitted to red ticket and is automatically generated and is drawn It holds up.
In embodiment, the allowance amount of money can be to the verification for information of making out an invoice and whether the cargo detail amount of money is equal, qualification Whether information is effective etc..
Step S203, red ticket automatically generates engine according to information searching of making out an invoice to corresponding all blue tickets, and extracts all Detail of making out an invoice corresponding with the information of making out an invoice in blue ticket.
Step S204, red ticket automatically generate engine and make out an invoice detail storage into preset detail list for every.
Step S205, red ticket automatically generate engine and obtain the maximum detail of the amount of money from detail list, judge whether there is Residual amount is greater than the red ticket of the detail amount of money, then carries out step S206 if it exists, otherwise carries out step S207.
Step S206, red ticket automatically generate engine using the red ticket as target red ticket, execute step S208.
Step S207, red ticket automatically generate engine and initialize a new red ticket, and it is limit of making out an invoice that residual amount, which is arranged, Using the new red ticket as target red ticket, step S208 is executed.
Step S208, the detail that red ticket automatically generates engine and will acquire are assigned in target red ticket, and update red ticket residue The amount of money, while the detail being deleted from detail list.
Wherein, updated red ticket residual amount is that the red ticket residual amount before updating subtracts the detail amount of money.
Step S209, red ticket automatically generate engine and judge to whether there is unappropriated detail of making out an invoice in the detail list, Otherwise then return step S205 if it exists carries out step S210.
Step S210, red ticket automatically generate engine and obtain current red ticket quantity, using as minimum red ticket threshold value.
Step S211, red ticket automatically generate engine and calculate being averaged for the amount of money of making out an invoice in the detail of making out an invoice extracted in every blue ticket The amount of money, to be ranked up to all blue tickets.
Step S212, red ticket automatically generate engine and store all details of making out an invoice that every blue tickets-raise up takes as an entry Into detail list.
Preferably, all details of making out an invoice that every blue tickets-raise up takes can be used as a whole in detail list one A entry is stored.
Step S213, red ticket automatically generate engine and extract the maximum entry of total amount from detail list, judge whether to deposit It is greater than the red ticket of the total amount in residual amount, then carries out step S214 if it exists, otherwise carry out step S215.
Step S214, red ticket automatically generate engine using the red ticket as target red ticket, execute step S216.
Step S215, red ticket automatically generate engine and initialize a new red ticket, and it is limit of making out an invoice that residual amount, which is arranged, Using the new red ticket as target red ticket, step S216 is executed.
Step S216, red ticket automatically generate engine and all details of making out an invoice of the blue ticket are assigned in target red ticket, and Red ticket residual amount is updated, while all details of making out an invoice of the blue ticket being deleted from detail list.
Wherein, updated red ticket residual amount is that red ticket residual amount before updating subtracts described blue all of ticket and makes out an invoice The total amount of detail.
Step S217, red ticket automatically generate engine and judge with the presence or absence of unappropriated entry in the detail list, if depositing In then return step S213, step S218 is otherwise carried out.
Step S218, red ticket automatically generate engine and obtain current red ticket quantity, judge current red ticket quantity whether be less than or Equal to minimum red ticket threshold value, if then directly carrying out step S220, step S219 is otherwise carried out.
Step S219, red ticket automatically generates engine and splits the smallest blue ticket of average amount in detail list, by the Zhang Lan Each of ticket detail of making out an invoice is stored in the detail list as an entry, return step S213.
Wherein, it is stored in using each of the blue ticket of this detail of making out an invoice as an entry same in the detail list When, the blue ticket of this before fractionation can be deleted from the detail list.
Step S220, red ticket automatically generate engine and are made out an invoice detail according to the red ticket currently distributed, fill out red ticket.
It is worth noting that can refer to described in embodiment in the present invention for automatically generating the tool of the method for credit note Body implementation content, it is described above to be described in detail for automatically generating in the method for credit note, therefore in being repeated at this Appearance no longer illustrates.
It should be noted that being the process of determining minimum red ticket threshold value from step S203 to step S210, can be in step (as described above) is carried out before rapid S211, can also be executed during carrying out step S211 to step S217.
Fig. 3 is according to an embodiment of the present invention for automatically generating the device for the voucher that liquidates, as shown in figure 3, described be used for The device 300 for the voucher that liquidates is automatically generated including submitting module 301, generation module 302 and filling out module 303.Wherein, mould is submitted The reception of block 301 voucher that liquidates is made out an invoice request, obtains information of making out an invoice, the information of making out an invoice is committed to the voucher that liquidates and is automatically generated Engine.Then, generation module 302 can make to liquidate voucher automatically generate engine according to information searching of making out an invoice it is corresponding make out an invoice it is bright Carefully, to generate the credential information that liquidates.It is filled out finally, filling out module 303 according to the credential information that liquidates.
Preferably, submitting module 301 in order to improve the accuracy for the credential information that liquidates, that will make out an invoice, information is committed to Before the voucher that liquidates automatically generates engine, need to verify the information of making out an invoice of acquisition.It makes out an invoice described in the determination information checking By when, then the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine.
As embodiment, generation module 302 liquidates in execution, and to automatically generate engine corresponding according to information searching of making out an invoice for voucher Detail of making out an invoice, with generate liquidate credential information when, specific implementation process includes:
Step 1: the voucher that liquidates automatically generates engine and deposits all details of making out an invoice that every voucher extracts as an entry It stores up in preset detail list;Wherein, according to make out an invoice detail of the information searching to corresponding voucher of making out an invoice.
Step 2: the voucher that liquidates automatically generates engine and extracts the maximum entry of total amount from detail list, is with judgement The no voucher that liquidates there are residual amount greater than the total amount, the voucher that then liquidates if it exists automatically generate engine and liquidate described Voucher liquidates voucher as target, and the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, by new pair Voucher is rushed to liquidate voucher as target.
Step 3: the voucher that liquidates automatically generates engine and all details of making out an invoice of the corresponding voucher of the entry is assigned to target It liquidates in voucher.
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated entry in the detail list, if In the presence of then return step two, information of making out an invoice otherwise is generated.
Further, in order to meet it is all make out an invoice information simultaneously, output and at least liquidate voucher quantity, generation module 302 Can be before information to be made out an invoice in generation, the voucher that liquidates automatically generates whether the current voucher quantity that liquidates of engine judgement is less than or equal to The preset voucher threshold value that at least liquidates.If it is less than or equal to the preset voucher threshold value that at least liquidates, then the voucher that directly liquidates is certainly The dynamic engine that generates is made out an invoice detail according to the voucher that liquidates currently distributed, generates information of making out an invoice.If it is greater than preset minimum right Voucher threshold value is rushed, then red ticket automatically generates engine and splits the smallest voucher of average amount in detail list, will be in the blue ticket of this Each of detail of making out an invoice be stored in the detail list as an entry, regenerate information of making out an invoice.
Preferably, the preset voucher threshold value that at least liquidates can be obtained by following process:
Step 1: the voucher that liquidates automatically generates engine according to information searching of making out an invoice to corresponding institute's documentary, and extracts institute Detail of making out an invoice corresponding with the information of making out an invoice in documentary, and detail storage is made out an invoice into preset detail list by every;
Step 2: the voucher that liquidates automatically generates engine and obtains the maximum detail of the amount of money from detail list, judges whether to deposit Residual amount be greater than the detail amount of money the voucher that liquidates, the voucher that then liquidates if it exists automatically generate engine by it is described liquidate with Card liquidates voucher as target, and the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, and by new pair Voucher is rushed to liquidate voucher as target;
Step 3: the detail that the voucher that liquidates automatically generates engine and will acquire is assigned to target and liquidates in voucher;
Step 4: the voucher that liquidates automatically generate engine judge in the detail list with the presence or absence of it is unappropriated make out an invoice it is bright Carefully, then return step two, the voucher that otherwise liquidates automatically generate engine and obtain the voucher quantity that currently liquidates if it exists, using as minimum Liquidate voucher threshold value.
It should be noted that of the present invention for automatically generating the specific implementation content of the device of credit note, It has been described in detail in method described above for automatically generating credit note, therefore has no longer illustrated in this duplicate contents.
Fig. 4 is shown can be using the method for being used to automatically generate the voucher that liquidates of the embodiment of the present invention or for automatically raw At the exemplary system architecture 400 of the device for the voucher that liquidates.Or Fig. 4 shows and can be used for certainly using the embodiment of the present invention The exemplary system architecture 400 of the dynamic method or the device for automatically generating the voucher that liquidates for generating the voucher that liquidates.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that for automatically generating the method for credit note generally by servicing provided by the embodiment of the present invention Device 405 executes, and correspondingly, the device for automatically generating credit note is generally positioned in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM503, also it is stored with system 500 and operates required various programs and data. CPU501, ROM 502 and RAM503 is connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to bus 504。
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet It includes submission module 301, generation module 302 and fills out module 303.Wherein, the title of these modules not structure under certain conditions The restriction of the pairs of module itself.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes The equipment includes: that the reception voucher that liquidates is made out an invoice request, obtain information of making out an invoice, the information of making out an invoice be committed to the voucher that liquidates Automatically generate engine;The voucher that liquidates automatically generates engine and makes out an invoice according to the corresponding detail of making out an invoice of information searching, with life It credential information and is filled out at liquidating.
Technical solution according to an embodiment of the present invention realizes the technical effect for issuing the voucher that liquidates automatically, significantly mentions The high efficiency for issuing the voucher that liquidates.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of method for automatically generating the voucher that liquidates characterized by comprising
The reception voucher that liquidates is made out an invoice request, and acquisition is made out an invoice information, and the information of making out an invoice is committed to the voucher that liquidates and is automatically generated Engine;
The voucher that liquidates automatically generates engine and makes out an invoice according to the corresponding detail of making out an invoice of information searching, to generate the voucher that liquidates Information is simultaneously filled out.
2. the method according to claim 1, wherein the voucher that liquidates automatically generates engine and makes out an invoice according to The corresponding detail of making out an invoice of information searching, to generate the credential information that liquidates, comprising:
Step 1: the voucher that liquidates automatically generates engine and arrives all details of making out an invoice that every voucher extracts as an entry storage In preset detail list;Wherein, according to make out an invoice detail of the information searching to corresponding voucher of making out an invoice;
Step 2: the voucher that liquidates automatically generates engine and extracts the maximum entry of total amount from detail list, to judge whether to deposit It is greater than the voucher that liquidates of the total amount in residual amount, the voucher that then liquidates if it exists automatically generates engine for the voucher that liquidates As target red ticket, the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, and the new voucher that liquidates is made It liquidates voucher for target;
Step 3: the voucher that liquidates, which automatically generates engine all details of making out an invoice of the corresponding voucher of the entry are assigned to target, to liquidate In voucher;
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated entry in the detail list, if it exists Otherwise then return step two generate information of making out an invoice.
3. according to the method described in claim 2, it is characterized in that, the generation is made out an invoice before information, further includes:
The voucher that liquidates automatically generates engine and obtains the voucher quantity that currently liquidates, and whether the current voucher quantity that liquidates of judgement is less than or waits In the preset voucher threshold value that at least liquidates;
According to judging result, if the voucher that then directly liquidates automatically generate engine made out an invoice according to the voucher that liquidates currently distributed it is bright Carefully, information of making out an invoice is generated;Otherwise the voucher that liquidates automatically generates engine and splits the smallest voucher of average amount in detail list, will Each of this voucher detail of making out an invoice is stored in the detail list as an entry, return step two.
4. according to the method described in claim 3, it is characterized by further comprising:
Step 1: the voucher that liquidates automatically generates engine according to information searching of making out an invoice to corresponding institute's documentary, and extract it is all with Detail of making out an invoice corresponding with the information of making out an invoice in card, and detail storage is made out an invoice into preset detail list by every;
Step 2: the voucher that liquidates automatically generates engine and obtains the maximum detail of the amount of money from detail list, judges whether there is surplus The remaining amount of money is greater than the voucher that liquidates of the detail amount of money, and the voucher that then liquidates if it exists automatically generates engine and makees the voucher that liquidates Liquidate voucher for target, the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, and by it is described it is new liquidate with Card liquidates voucher as target;
Step 3: the detail that the voucher that liquidates automatically generates engine and will acquire is assigned to target and liquidates in voucher;
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated detail of making out an invoice in the detail list, if In the presence of then return step two, the voucher that otherwise liquidates, which automatically generates engine and obtains, currently to liquidate voucher quantity, using as at least liquidating Voucher threshold value.
5. method according to claim 1 to 4, which is characterized in that be committed to the information of making out an invoice and liquidate voucher certainly When dynamic generation engine, comprising:
The information of making out an invoice of acquisition is verified;
Information checking of making out an invoice described in determination passes through, then the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine.
6. a kind of for automatically generating the device for the voucher that liquidates characterized by comprising
Module is submitted, is made out an invoice request for receiving the voucher that liquidates, is obtained information of making out an invoice, the information of making out an invoice is committed to and is liquidated Voucher automatically generates engine;
Generation module automatically generates engine for the voucher that liquidates and makes out an invoice according to the corresponding detail of making out an invoice of information searching, To generate the credential information that liquidates;
Module is filled out, is filled out for the credential information that liquidates according to.
7. device according to claim 6, which is characterized in that the generation module automatically generates engine root in the voucher that liquidates According to the corresponding detail of making out an invoice of the information searching of making out an invoice, liquidated with generating credential information when, comprising:
Step 1: the voucher that liquidates automatically generates engine and arrives all details of making out an invoice that every voucher extracts as an entry storage In preset detail list;Wherein, according to make out an invoice detail of the information searching to corresponding voucher of making out an invoice;
Step 2: the voucher that liquidates automatically generates engine and extracts the maximum entry of total amount from detail list, to judge whether to deposit It is greater than the voucher that liquidates of the total amount in residual amount, the voucher that then liquidates if it exists automatically generates engine for the voucher that liquidates Liquidate voucher as target, the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, by it is described it is new liquidate with Card liquidates voucher as target;
Step 3: the voucher that liquidates, which automatically generates engine all details of making out an invoice of the corresponding voucher of the entry are assigned to target, to liquidate In voucher;
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated entry in the detail list, if it exists Otherwise then return step two generate information of making out an invoice.
8. device according to claim 7, which is characterized in that the generation module generation is made out an invoice before information, further includes:
The voucher that liquidates automatically generates engine and obtains the voucher quantity that currently liquidates, and whether the current voucher quantity that liquidates of judgement is less than or waits In the preset voucher threshold value that at least liquidates;
According to judging result, if the voucher that then directly liquidates automatically generate engine made out an invoice according to the voucher that liquidates currently distributed it is bright Carefully, information of making out an invoice is generated;Otherwise the voucher that liquidates automatically generates engine and splits the smallest voucher of average amount in detail list, will Each of this voucher detail of making out an invoice is stored in the detail list as an entry, return step two.
9. device according to claim 8, which is characterized in that the generation module is also used to:
Step 1: the voucher that liquidates automatically generates engine according to information searching of making out an invoice to corresponding institute's documentary, and extract it is all with Detail of making out an invoice corresponding with the information of making out an invoice in card, and detail storage is made out an invoice into preset detail list by every;
Step 2: the voucher that liquidates automatically generates engine and obtains the maximum detail of the amount of money from detail list, judges whether there is surplus The remaining amount of money is greater than the voucher that liquidates of the detail amount of money, and the voucher that then liquidates if it exists automatically generates engine and makees the voucher that liquidates Liquidate voucher for target, the voucher that otherwise liquidates automatically generates the new voucher that liquidates of engine initialization, and by it is described it is new liquidate with Card liquidates voucher as target;
Step 3: the detail that the voucher that liquidates automatically generates engine and will acquire is assigned to target and liquidates in voucher;
Step 4: the voucher that liquidates automatically generates engine and judges with the presence or absence of unappropriated detail of making out an invoice in the detail list, if In the presence of then return step two, the voucher that otherwise liquidates, which automatically generates engine and obtains, currently to liquidate voucher quantity, using as at least liquidating Voucher threshold value.
10. according to any device of claim 6-9, which is characterized in that the submission module proposes the information of making out an invoice When friendship automatically generates engine to the voucher that liquidates, comprising:
The information of making out an invoice of acquisition is verified;
Information checking of making out an invoice described in determination passes through, then the information of making out an invoice is committed to the voucher that liquidates and automatically generates engine.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201711373805.0A 2017-12-19 2017-12-19 Method and device for automatically generating hedge certificates Active CN109934692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711373805.0A CN109934692B (en) 2017-12-19 2017-12-19 Method and device for automatically generating hedge certificates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711373805.0A CN109934692B (en) 2017-12-19 2017-12-19 Method and device for automatically generating hedge certificates

Publications (2)

Publication Number Publication Date
CN109934692A true CN109934692A (en) 2019-06-25
CN109934692B CN109934692B (en) 2022-02-01

Family

ID=66983553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711373805.0A Active CN109934692B (en) 2017-12-19 2017-12-19 Method and device for automatically generating hedge certificates

Country Status (1)

Country Link
CN (1) CN109934692B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060180657A1 (en) * 2003-10-27 2006-08-17 Cheryl Phillips Systems and methods for managing throughput of point of sale devices
CN104933605A (en) * 2015-05-28 2015-09-23 浪潮软件集团有限公司 Method for realizing remote self-service invoicing of red invoice by taxpayer
CN105550913A (en) * 2015-12-22 2016-05-04 北京握奇智能科技有限公司 Invoicing monitoring device, invoicing system and invoicing method applied to tax control
CN105678516A (en) * 2015-12-31 2016-06-15 广东金赋信息科技有限公司 Electronic form processing method
CN105740261A (en) * 2014-12-09 2016-07-06 航天信息股份有限公司 Processing method for uploading overdue added-value tax red-character invoice information table
CN106204171A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 The method and system of single tax rate VAT invoice is opened for the sales slip containing the amount of tax to be paid

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060180657A1 (en) * 2003-10-27 2006-08-17 Cheryl Phillips Systems and methods for managing throughput of point of sale devices
CN105740261A (en) * 2014-12-09 2016-07-06 航天信息股份有限公司 Processing method for uploading overdue added-value tax red-character invoice information table
CN106204171A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 The method and system of single tax rate VAT invoice is opened for the sales slip containing the amount of tax to be paid
CN104933605A (en) * 2015-05-28 2015-09-23 浪潮软件集团有限公司 Method for realizing remote self-service invoicing of red invoice by taxpayer
CN105550913A (en) * 2015-12-22 2016-05-04 北京握奇智能科技有限公司 Invoicing monitoring device, invoicing system and invoicing method applied to tax control
CN105678516A (en) * 2015-12-31 2016-06-15 广东金赋信息科技有限公司 Electronic form processing method

Also Published As

Publication number Publication date
CN109934692B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN107609890A (en) A kind of method and apparatus of order tracking
CN110473036A (en) A kind of method and apparatus generating order number
CN109634833A (en) A kind of Software Defects Predict Methods and device
CN108805632A (en) A kind of charging method and device
CN104077680A (en) Contract management system for E-business platform
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN107517251A (en) Information-pushing method and device
CN112132674A (en) Transaction processing method and device
CN111339743B (en) Account number generation method and device
CN109150929A (en) Data request processing method and apparatus under high concurrent scene
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN109002385A (en) Method for testing pressure and device for data flow system
CN109903105A (en) A kind of method and apparatus for improving end article attribute
CN111444077A (en) Method and device for generating flow node test data
CN110309142A (en) The method and apparatus of regulation management
CN110263791A (en) A kind of method and apparatus in identification function area
CN112990991A (en) Method and device for merging invoices
CN111724245A (en) Credit card financing method and system
CN109933727A (en) User's portrait generation method and system, user's portrait application method and system
CN110347654A (en) A kind of method and apparatus of online cluster features
CN110309187A (en) A kind of method and apparatus for applying streaming computing in SAAS system
CN109934692A (en) A kind of method and apparatus for automatically generating the voucher that liquidates
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN110399397A (en) A kind of data query method and system
CN110098921A (en) Verification code generation method, device, application service end and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant