CN109829001A - For generating the method and device of invoice data - Google Patents

For generating the method and device of invoice data Download PDF

Info

Publication number
CN109829001A
CN109829001A CN201711174476.7A CN201711174476A CN109829001A CN 109829001 A CN109829001 A CN 109829001A CN 201711174476 A CN201711174476 A CN 201711174476A CN 109829001 A CN109829001 A CN 109829001A
Authority
CN
China
Prior art keywords
business paper
row
invoice
detail
business
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.)
Pending
Application number
CN201711174476.7A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201711174476.7A priority Critical patent/CN109829001A/en
Publication of CN109829001A publication Critical patent/CN109829001A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the present invention provides a kind of for generating the method and device of invoice data, belongs to financial field.The described method includes: extraction business paper is free of tax volume;Read the inventory mark of business paper;Extract the detail line number amount of business paper;The business paper is split or merged without tax volume, the inventory mark and detail line number amount according to the business paper;And the business paper after the fractionation or merging is corresponded to and generates invoice data.It can be realized splits business paper or merging treatment automatically, greatly improves the working efficiency for the personnel of making out an invoice.

Description

For generating the method and device of invoice data
Technical field
The present invention relates to financial fields, and in particular, to a kind of for generating the method and device of invoice data.
Background technique
Former, it is all original document according to routine work that the personnel of making out an invoice, which issue invoice, fills in invoice number in systems According to then being issued, if original document does not meet invoice format, such as detail line number is too many, the amount of money is excessive, will lead to Failure is issued, the personnel that make out an invoice, which just need manually to calculate, to be split, and is filled in and is issued multiple invoices.Sometimes, it makes out an invoice some industry of personnel Being engaged in, the bills data amount of money is smaller and detail line number is also few, in order to save paper invoice, just may require that and these documents are merged into one It opens invoice to be issued, this personnel's manual operations that also to make out an invoice.Such case will greatly reduce the work effect for the personnel of making out an invoice Rate can also generate very big risk.As the popularization of " battalion changes increasing " is goed deep into, large enterprises are all to generate a large amount of business sheet daily According to, thus this problem embodied in large enterprises it is more prominent.
Summary of the invention
The purpose of the embodiment of the present invention is that provide it is a kind of for generating the method and device of invoice data, for solving or extremely Small part solves above-mentioned technical problem.
To achieve the goals above, the embodiment of the present invention provides a kind of method for generating invoice data, the method It include: extraction business paper without tax volume;Read the inventory mark of business paper;Extract the detail line number of business paper Amount;The business paper is carried out without tax volume, the inventory mark and detail line number amount according to the business paper It splits or merges;And the business paper after the fractionation or merging is corresponded to and generates invoice data.
Optionally, it is described according to the business paper without tax volume, the inventory mark and detail line number amount come pair It includes: to execute following steps in the case where inventory mark instruction does not generate inventory: sentencing that the business paper, which split, Whether break the business paper is greater than or equal to invoice nominal value limit without tax volume;Judge the detail row of the business paper Whether quantity is greater than restriction quantity;The business paper without tax volume be greater than or equal to the invoice nominal value limit and/ Or the detail line number amount of the business paper is greater than in limited number of situation, by the business paper according to the sequence of detail row Multiple subservice documents are successively split into, wherein each subservice document is less than the invoice nominal value limit simultaneously without tax volume And detail row is less than restriction quantity.
Optionally, it is described according to the business paper without tax volume, the inventory mark and detail line number amount come pair It includes: to execute following steps in the case where inventory mark instruction can generate inventory that the business paper, which split: Whether judge the business paper is greater than or equal to invoice nominal value limit without tax volume;Tax is free of in the business paper In the case that the amount of money is greater than or equal to the invoice nominal value limit, the business paper is successively split according to the sequence of detail row At multiple subservice documents, wherein each subservice document is less than the invoice nominal value limit without tax volume;And in son The detail line number amount of business paper is greater than in limited number of situation, generates inventory.
It is optionally, described that split to the business paper include: to judge that the detail row of the business paper is free of Whether tax volume is greater than or equal to the invoice nominal value limit;And the business paper detail row without tax volume it is big In or be equal to the invoice nominal value limit in the case where, the detail row of the business paper is split.
Optionally, it is described to the business paper carry out split include: to include discount business paper split When, if discount row corresponds to a plurality of discount detail row or if discount detail row corresponding to the discount row is free of tax Volume is greater than or equal to invoice nominal value limit, and the discount row is split;And by discount row and corresponding discount detail row It splits in same subservice document.
Optionally, it is described according to the business paper without tax volume, the inventory mark and the business paper Detail line number amount includes: the case where inventory mark instruction can generate inventory to merge to the business paper Under, execute following steps: to the summation without tax volume be less than two of the invoice nominal value limit or multiple business papers into Row merges;And the business paper after the merging detail line number amount be more than limited number of situation under, generate inventory;? In the case that inventory mark instruction does not generate inventory, to the summation without tax volume be less than the invoice nominal value limit and The summation of detail line number amount is less than described limited number of two or multiple business papers merge.
Correspondingly, the embodiment of the present invention also provides a kind of for generating the device of invoice data, and described device includes: first Extraction module, for extract business paper without tax volume;Read module, for reading the inventory mark of business paper;The Two extraction modules, for extracting the detail line number amount of business paper;Execution module, for being free of tax according to the business paper The amount of money, the inventory mark and detail line number amount are split or are merged to the business paper;And invoice data generates Module generates invoice data for corresponding to the business paper after the fractionation or merging.
Optionally, in the case where inventory mark instruction does not generate inventory, the execution module includes: the first judgement Whether unit is greater than or equal to invoice nominal value limit without tax volume for judge the business paper;Second judgment unit, For judging whether the detail line number amount of the business paper is greater than restriction quantity;And split cells, in the business The detail line number amount for being greater than or equal to the invoice nominal value limit and/or the business paper without tax volume of document is greater than limit In the case where fixed number amount, the business paper is successively split into multiple subservice documents according to the sequence of detail row, wherein often Being less than the invoice nominal value limit and detail row without tax volume and being less than for one subservice document limits quantity.
Optionally, in the case where inventory mark instruction can generate inventory, the execution module includes: that judgement is single Whether member is greater than or equal to invoice nominal value limit without tax volume for judge the business paper;Split cells is used for The business paper without tax volume be greater than or equal to the invoice nominal value limit in the case where, by the business paper according to The sequence of detail row successively splits into multiple subservice documents, wherein each subservice document is less than the hair without tax volume Ticket nominal value limit;And inventory generation unit is generated in the case where the detail line number amount of subservice document is greater than limited number of situation Inventory.
Optionally, the execution module includes: judging unit, for judge the business paper detail row without tax Whether the amount of money is greater than or equal to the invoice nominal value limit;And split cells, for the detail row in the business paper In the case where being greater than or equal to the invoice nominal value limit without tax volume, the detail row of the business paper is split.
Optionally, the execution module includes split cells, is used for: being split to the business paper for including discount When, if discount row corresponds to a plurality of discount detail row or if discount detail row corresponding to the discount row is free of tax Volume is greater than or equal to invoice nominal value limit, and the discount row is split;And by discount row and corresponding discount detail row It splits in same subservice document.
Optionally, in the case where inventory mark instruction can generate inventory, the execution module includes: to merge list Member, for being merged to the summation without tax volume less than two of the invoice nominal value limit or multiple business papers;With And inventory generation unit, it is more than life in limited number of situation for the detail line number amount in the business paper after the merging At inventory;In the case where inventory mark instruction does not generate inventory, the execution module is used for total without tax volume It is less than described limited number of two or multiple business sheets with the summation for being less than the invoice nominal value limit and detail line number amount According to merging.
Correspondingly, the embodiment of the present invention also provides a kind of machine readable storage medium, deposits on the machine readable storage medium Instruction is contained, which is used for so that machine executes the above-mentioned method for generating invoice data of root.
Through the above technical solutions, according to the detail row without tax volume, inventory mark and business paper of business paper Quantity splits the business paper or merging treatment automatically, allows what the personnel of making out an invoice can be convenient and safe to issue invoice, Eliminate it is artificial calculate to split the processes such as fill in, merge, it is very big to facilitate client.
The other feature and advantage of the embodiment of the present invention will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is to further understand for providing to the embodiment of the present invention, and constitute part of specification, under The specific embodiment in face is used to explain the present invention embodiment together, but does not constitute the limitation to the embodiment of the present invention.Attached In figure:
Fig. 1 is shown in an embodiment for generating the flow chart of the method for invoice data;
Fig. 2 shows the block diagrams of the device in an embodiment for generating invoice data.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the embodiment of the present invention.It should be understood that this Locate described specific embodiment and be merely to illustrate and explain the present invention embodiment, is not intended to restrict the invention embodiment.
Fig. 1 is shown in an embodiment for generating the flow chart of the method for invoice data.As shown in Figure 1, the present invention is real It applies example and a kind of method for generating invoice data is provided, this method may comprise steps of:
Step S11, that extracts business paper is free of tax volume.
For the business paper that needs issue invoice, the business paper is extracted not from business document information table first Volume containing tax.If there is without tax volume record in business paper information table, can directly extract.If business paper It is counted in information table without recording the Amount in Total then needed without tax volume according in business paper information table and total amount of tax to be paid Calculate business paper is free of tax volume.
Step S12 reads the inventory mark of business paper.
User can require to draw up a clear statement or do not draw up a clear statement according to the actual situation for the invoice issued.Thus, for Each business paper can have an inventory mark, be used to indicate whether to draw up a clear statement.
Step S13 extracts the detail line number amount of business paper.
Step S14 is free of tax volume, the inventory mark and detail line number amount according to the business paper come to described Business paper is split or is merged.
According to the rules, the detail line number amount of individual invoice of Chinese character anti-false enterprise is up to 7, individual hair of non-Chinese character anti-false enterprise The detail line number amount of ticket is up to 8.For being more than invoice nominal value limit or detail line number amount more than restriction number without tax volume The business paper of amount is split, for that can merge without tax volume lesser two or multiple business papers.
Step S15, by the corresponding generation invoice data of business paper after the fractionation or merging.
Method for generating invoice data can execute in value-added tax management system.Specifically, the personnel of making out an invoice can be with The selection input document information from the user interface of value-added tax management system, what value-added tax management system can be inputted according to user Document information filters out the business paper for needing to issue invoice from database.In the instruction of making out an invoice for receiving personnel's input of making out an invoice The business paper of selection is split or merged afterwards, and the business paper after fractionation or merging is corresponded to and generates invoice data.
According to the detail line number amount without tax volume, inventory mark and business paper of business paper come to the business sheet According to being split automatically or merging treatment, allows what the personnel of making out an invoice can be convenient and safe to issue invoice, eliminate artificial calculate and split The processes such as fill in, it is very big to facilitate client.
Initially below to how to business paper carry out split be specifically described.
It for a business paper, first determines whether inventory mark indicates to generate inventory, is indicated in the inventory mark In the case where not generating inventory, whether judge business paper is greater than or equal to invoice nominal value limit without tax volume, and sentences Whether the detail line number amount of disconnected business paper is greater than restriction quantity, and executes following steps according to different judging results:
It is greater than or equal to the invoice nominal value limit without tax volume in the business paper, and the business paper Detail line number amount is less than in limited number of situation, needs to split business paper.It specifically, can be according to business paper Detail row sequence split, each detail row is carried out without tax volume since first detail row of business paper It is cumulative.In cumulative process, if currently the sum of the tax volume that is free of of the cumulative amount of money and next detail row will be more than that invoice nominal value limits Detail row corresponding to the current cumulative amount of money is then formed a sub- business paper by volume, and so on, it is completed until splitting.
It is greater than or equal to the invoice nominal value limit without tax volume in the business paper, and the business paper Detail line number amount is greater than in limited number of situation, needs to split business paper.It specifically, can be according to business paper Detail row sequence split, each detail row is carried out without tax volume since first detail row of business paper It is cumulative.In cumulative process, if currently the sum of the tax volume that is free of of the cumulative amount of money and next detail row will be more than that invoice nominal value limits Volume or current detail row reach restriction quantity, then detail row corresponding to the current cumulative amount of money are formed a sub- business sheet According to, and so on, it is completed until splitting.
It is less than the invoice nominal value limit, and the detail row of the business paper without tax volume in the business paper Quantity is greater than in limited number of situation, needs to split business paper.It specifically, can be according to the detail of business paper Row sequence is extracted from business datum reaches limited number of detail row data, then separately constitutes subservice document, wherein The detail line number amount of the subservice document of last time composition can be not up to restriction quantity.For example, it is assumed that 20 row of detail behavior, And every 8 row then can be formed a sub- business paper, last time group according to detail row sequence as 8 rows by the quantity that limits At subservice document detail line number amount be 4 rows.
It is less than the invoice nominal value limit, and the detail row of the business paper without tax volume in the business paper Quantity is less than in limited number of situation, directly can generate invoice data according to business paper.
In the case where inventory mark instruction can generate inventory, the whether big without tax volume of business paper judged In or be equal to invoice nominal value limit, and following steps are executed according to different judging result:
It in the case where being greater than or equal to the invoice nominal value limit without tax volume, is needed industry in the business paper Business document is split.Specifically, it can be split according to the detail row sequence of business paper, from first of business paper Detail row starts adding up without tax volume by each detail row.In cumulative process, if currently the cumulative amount of money with it is next Detail row will be more than invoice nominal value limit without the sum of tax volume, then by detail row composition one corresponding to the current cumulative amount of money A sub- business paper, and so on, it is completed until splitting.If the detail line number amount of a certain subservice document split out is greater than In limited number of situation, then during generating invoice data according to the subservice document, by the bright of the subservice document Thin row generates inventory.
It in the case where being less than the invoice nominal value limit without tax volume, is not needed business sheet in the business paper According to being split.In this case, whether the quantity for judging the detail row of business paper is more than restriction quantity, if it does, then During generating invoice data according to the business paper, the detail row of the business paper is generated into inventory.If business paper The quantity of detail row be less than restriction quantity, then invoice data directly can be generated according to business paper.
The detail row serial number in multiple subservice documents that business paper is split out sequence can be arranged since 1.
The tax volume that is free of that above-described split process is primarily adapted for use in the single detail row of business paper is less than invoice The case where nominal value limit.In some cases, the single detail row of business paper may also be greater than or equal to without tax volume Invoice nominal value limit, at this time, it may be necessary to which the single detail row to business paper is split.
Specifically, if the single detail row of business paper is greater than or equal to invoice nominal value limit without tax volume, and Cargo price is greater than or equal to invoice nominal value limit without tax volume, in split process, a Flat Amount can be set, then Single detail row is split according to the Flat Amount, which is less than invoice nominal value limit, and limits with invoice nominal value The difference range of volume can be 0 to 0.1, it is preferable that difference can be 0.01 or 0.001.Then being free of single detail row The every Flat Amount of tax volume splits into a detail row, wherein the detail row split out for the last time without tax volume can be small In Flat Amount.In the split process, if commodity amount is integer, the quantity of commodity will be generated in the detail row split Decimal.
With invoice nominal value limit for 100,000, the cargo price of single detail row is 180000, for commodity amount is 1, table 1 List the data information after single detail row is split, the fixed value set in table 1 is 99999.99, with invoice nominal value limit phase Poor 0.01.From table 1 it follows that there is decimal in commodity amount after splitting.
Table 1
If the single detail row of business paper is greater than or equal to invoice nominal value limit, and cargo price without tax volume Be greater than or equal to invoice nominal value limit without tax volume, in split process, carried out in such a way that commodity amount is rounded as far as possible It splits.For example, the ratio without tax volume of invoice nominal value limit and cargo price can be rounded downwards, for example, ratio is 1.33, then value 1, is then that 1 pair of single detail row is split according to commodity amount, if ratio is 2.33, value is 2, then according to commodity amount be 2 pairs of single detail rows split, it will be understood that single detail row commodity amount be it is small In the case where number, the commodity amount of split last line out can not be integer.
With invoice nominal value limit for 100,000, the cargo price of single detail row is 80000, for commodity amount is 2, table 2 The data information after single detail row is split is listed, because the ratio of invoice nominal value limit and cargo price is 1.25, downwards Being rounded is 1, then is that 1 pair of single detail row is split according to commodity amount.
Table 2
With invoice nominal value limit for 100,000, the cargo price of single detail row is 80000, for commodity amount is 2.2, table 2 list the data information after single detail row is split, because the ratio of invoice nominal value limit and cargo price is 1.25, downwards Being rounded is 1, then is that 1 pair of single detail row is split according to commodity amount, because the commodity amount of single detail row is decimal, Therefore the commodity amount of the last one the detail row split out can be decimal.Optionally, it is greater than or waits for without tax volume In invoice nominal value limit, cargo price to be less than invoice nominal value limit and commodity amount without tax volume be that decimal is individually bright During thin row is split, whether what can not be split with real-time judge residue is less than invoice nominal value limit without tax volume, If it is less, splitting into a detail row without tax volume for what residue was not split, the commodity amount of the detail row can root It according to total quantity and has torn commodity amount open and has been calculated, for example, as shown in table 3, after splitting out a detail row, residue is not torn open Dividing is 96000 without tax volume, is less than invoice nominal value limit, and therefore, what which can be not split is free of tax volume Split into a detail row, difference of the quantity of the detail row between commodity total quantity 2.2 and the commodity amount 1 split 1.2。
Table 3
It, can be according to above-described after the single detail row to business paper splits into two or more detail rows Split process splits business paper.Specifically, for a certain business paper, the detail of business paper can be traversed first Row, judges whether detail row is split, and splits in the case where detail row is needed and split to detail row, then again Business paper is split.
In addition, being first determined whether possibly also with discount when being split to the business paper with discount in business paper Whether discount row corresponds to a plurality of discount detail row, if discount row corresponds to a plurality of discount detail row, needs to carry out discount row It splits, so that the corresponding detail row of a discount row, after fractionation, the discount amount of detail row is calculated according to discount rate.This Outside, it is greater than or equal to nominal value limit without tax volume if it is uniline discount row, then detail row can be carried out according to above-mentioned The step of fractionation, splits the uniline discount, the corresponding discount row of each detail row after fractionation, and according to discount rate meter Calculate the discount amount of detail row.When splitting to business paper, it should ensure that discount row and corresponding discount detail row are split Divide in same subservice document.
Specifically, for a certain business paper, the detail row of business paper can be traversed first, judges whether detail row needs It is split, detail row is split in the case where detail row is needed and split, then traverse the discount row of business paper, Judge whether discount row is split, in the case where discount row needs to split, discount row is split, then according to above The splitting step of description again splits business paper.
Next it will be specifically described to how to be merged to business paper.
It is appreciated that can with same class of service, same invoice type, same pin side, same purchaser business paper into Row merges.Under normal circumstances, it is filtered out from the database of value-added tax management system according to the document information for personnel's input of making out an invoice The business paper that the needs come issue invoice meets above-mentioned condition.It can be first for the business paper filtered out from database Fractured operation is first carried out, because the subservice document splitted out may also meet merging condition.It can be filtered out by traversal The business paper or traversal come lives through the business paper after fractured operation to determine whether to execute union operation.
Specifically, it can be filtered out by traversal business paper (including having executed the subservice document after fractured operation) It is less than one or more business papers of invoice nominal value limit without tax volume, it will be understood that if only one is free of tax Volume is less than the business paper of invoice nominal value limit, then can be without the union operation of business paper.
For the multiple business papers for being less than invoice nominal value limit without tax volume filtered out, indicated according to inventory mark Whether generation inventory executes union operation respectively.
The business paper that inventory can be generated for the instruction of inventory mark, can execute following steps: to without tax volume Summation be less than two of the invoice nominal value limit or multiple business papers merge;And the business after the merging The detail line number amount of document is more than to generate inventory in limited number of situation.Specifically, can traverse the instruction of inventory mark can The business paper for generating inventory is filtered out from remaining business paper and is free of with the business paper for each business paper The sum of tax volume is less than the business paper of invoice nominal value limit, and merges.It for example, can for the first business paper To traverse remaining business paper, the tax volume that is free of of business paper each in remaining business paper and the first business paper is carried out It is added, is screened out from it the second business paper, which is less than with the first business paper without the sum of tax volume Then first business paper and the second business paper are merged the business paper after composition merges by invoice nominal value limit.Then after The continuous business paper and remaining business paper traversed after the merging, and above-mentioned merging process is executed, until can not close again And business paper until.For the business paper formed after the completion of merging, corresponding invoice number is being generated according to business paper According to when, if the detail row of business paper be more than limit quantity, by detail row data generate inventory.
The traffic flag for not generating inventory for the instruction of inventory mark is less than the invoice ticket to the summation without tax volume The summation of face limit and detail line number amount (including discount row) be less than described limited number of two or multiple business papers into Row merges.Similarly, for example, can be taken out from business paper by the first business paper, by the every of surplus lines document It is separately summed with the first business paper without tax volume and detail line number amount in one business paper, if sum of the two is all satisfied The business paper is then taken out and is merged with the first business paper by condition.It then proceedes to traverse the business sheet after the merging According to remaining business paper, and above-mentioned merging process is executed, until the business paper that can not merge again.
It is further possible to which the detail row to identical commodity merges, here like commodity refer to general goods row In product name, specifications and models, measurement unit, unit price and tax rate commodity all the same, after merging, multiple identical commodity it is bright Thin row is merged into a commodity row.
Optionally, in addition, can also be determined whether to execute fractionation or union operation according to customer requirement, for example, if Customer requirement execute union operation, and require do not draw up a clear statement, then according to the requirement in merging process if merge after Detail row is more than to limit quantity, then can issue the prompt for merging failure.
Table 4 shows the example of business paper information table, and table 5 shows the example of the detail row information of business paper.Such as Shown in table 4 and table 5, when executing merging or fractured operation to business paper, business paper can be extracted from table 4 or table 5 Without tax volume, detail line number amount etc..
Table 4
Table 5
After the business paper after splitting or merging generates invoice data, the invoice data storage of generation can be arrived In the database of value-added tax management system.The personnel of making out an invoice can inquire business from value-added tax management system according to document information Document, and fractionation can be viewed according to the business paper or merge the invoice data generated.Then the personnel of making out an invoice can basis The invoice data that business paper generates issues invoice in value-added tax management system, and it is possible to further look into from system See the invoice information issued out.Specifically, value-added tax management system can be looked into according to the querying condition for personnel's offer of making out an invoice, execution Operation is ask, the invoice information issued corresponding to business paper is found in the database, it is alternatively possible to use SQL (structure Change query language, Structured Query Language) sentence inquiry to execute corresponding inquiry operation.
Method provided in an embodiment of the present invention for generating invoice data, can be to the business sheet for not meeting rule of making out an invoice According to being split automatically, and the business paper for meeting merging condition is merged automatically, eliminates invoice personnel's manual operations, Greatly improve the working efficiency for the personnel of making out an invoice.
Fig. 2 shows the block diagrams of the device in an embodiment for generating invoice data.As shown in Fig. 2, this law people implement Example also provides a kind of for generating the device of invoice data, and the apparatus may include first extraction modules 21, for extracting business Document is free of tax volume;Read module 22, for reading the inventory mark of business paper;Second extraction module 23, for mentioning Take the detail line number amount of business paper;Execution module 24, for being free of tax volume, the inventory mark according to the business paper Will and detail line number amount are split or are merged to the business paper;And invoice data generation module 25, it is used for institute The corresponding generation invoice data of business paper after stating fractionation or merging.According to business paper without tax volume, inventory mark and The detail line number amount of business paper splits the business paper or merging treatment automatically, and the personnel of making out an invoice can facilitate Safety issues invoice, eliminate it is artificial calculate the processes such as fill in that split, it is very big to facilitate client.
It is provided in an embodiment of the present invention for generating the concrete operating principle and benefit and above-mentioned of the device of invoice data Concrete operating principle and benefit for generating the method for invoice data is similar, will not be described in great detail here.
Correspondingly, the embodiment of the present invention also provides a kind of machine readable storage medium, deposits on the machine readable storage medium Instruction is contained, which is used for so that machine executes the above-mentioned method for generating invoice data of root.
The optional embodiment of the embodiment of the present invention is described in detail in conjunction with attached drawing above, still, the embodiment of the present invention is simultaneously The detail being not limited in above embodiment can be to of the invention real in the range of the technology design of the embodiment of the present invention The technical solution for applying example carries out a variety of simple variants, these simple variants belong to the protection scope of the embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the embodiment of the present invention pair No further explanation will be given for various combinations of possible ways.
It will be appreciated by those skilled in the art that implementing the method for the above embodiments is that can pass through Program is completed to instruct relevant hardware, which is stored in a storage medium, including some instructions are used so that single Piece machine, chip or processor (processor) execute all or part of the steps of each embodiment the method for the application.And it is preceding The storage medium stated includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk.
In addition, any combination can also be carried out between a variety of different embodiments of the embodiment of the present invention, as long as it is not The thought of the embodiment of the present invention is violated, equally should be considered as disclosure of that of the embodiment of the present invention.

Claims (13)

1. a kind of method for generating invoice data, which is characterized in that the described method includes:
That extracts business paper is free of tax volume;
Read the inventory mark of business paper;
Extract the detail line number amount of business paper;
The business paper is carried out without tax volume, the inventory mark and detail line number amount according to the business paper It splits or merges;And
By the corresponding generation invoice data of business paper after the fractionation or merging.
2. the method according to claim 1, wherein described be free of tax volume, institute according to the business paper Inventory mark and detail line number amount, which are stated, split to the business paper includes:
In the case where inventory mark instruction does not generate inventory, following steps are executed:
Whether judge the business paper is greater than or equal to invoice nominal value limit without tax volume;
Judge whether the detail line number amount of the business paper is greater than restriction quantity;
It is greater than or equal to the bright of the invoice nominal value limit and/or the business paper without tax volume in the business paper Thin line number amount is greater than in limited number of situation, and the business paper is successively split into multiple sub- industry according to the sequence of detail row It is engaged in document, wherein being less than the invoice nominal value limit and detail row without tax volume and being less than for each subservice document limits number Amount.
3. the method according to claim 1, wherein described be free of tax volume, institute according to the business paper Inventory mark and detail line number amount, which are stated, split to the business paper includes:
In the case where inventory mark instruction can generate inventory, following steps are executed:
Whether judge the business paper is greater than or equal to invoice nominal value limit without tax volume;
In the business paper in the case where being greater than or equal to the invoice nominal value limit without tax volume, by the business sheet Multiple subservice documents are successively split into according to the sequence according to detail row, wherein each subservice document is less than without tax volume The invoice nominal value limit;And
In the case where the detail line number amount of subservice document is greater than limited number of situation, inventory is generated.
4. the method according to claim 1, wherein it is described to the business paper carry out split include:
Whether judge the detail row of the business paper is greater than or equal to the invoice nominal value limit without tax volume;And
In the detail row of the business paper in the case where being greater than or equal to the invoice nominal value limit without tax volume, to institute The detail row for stating business paper is split.
5. the method according to claim 1, wherein it is described to the business paper carry out split include:
When being split to the business paper for including discount, if discount row corresponds to a plurality of discount detail row or if described Discount detail row corresponding to discount row is greater than or equal to invoice nominal value limit without tax volume, and the discount row is torn open Point;And
Discount row and corresponding discount detail row are split in same subservice document.
6. the method according to claim 1, wherein described be free of tax volume, institute according to the business paper The detail line number amount for stating inventory mark and the business paper includes: to merge to the business paper
In the case where inventory mark instruction can generate inventory, following steps are executed:
Two of the invoice nominal value limit are less than to the summation without tax volume or multiple business papers merge;And
It is more than generation inventory in limited number of situation in the detail line number amount of the business paper after the merging;
In the case where inventory mark instruction does not generate inventory, the summation without tax volume is limited less than the invoice nominal value The summation of volume and detail line number amount is less than described limited number of two or multiple business papers merge.
7. a kind of for generating the device of invoice data, which is characterized in that described device includes:
First extraction module, for extract business paper without tax volume;
Read module, for reading the inventory mark of business paper;
Second extraction module, for extracting the detail line number amount of business paper;
Execution module, for being free of tax volume, the inventory mark and detail line number amount according to the business paper come to institute Business paper is stated to be split or merged;And
Invoice data generation module generates invoice data for corresponding to the business paper after the fractionation or merging.
8. device according to claim 7, which is characterized in that the case where inventory mark instruction does not generate inventory Under, the execution module includes:
Whether the first judging unit is greater than or equal to invoice nominal value limit without tax volume for judge the business paper;
Second judgment unit, for judging whether the detail line number amount of the business paper is greater than restriction quantity;And
Split cells, for being greater than or equal to the invoice nominal value limit and/or institute without tax volume in the business paper State business paper detail line number amount be greater than limited number of situation under, by the business paper according to detail row sequence successively Multiple subservice documents are split into, wherein each subservice document is less than the invoice nominal value limit and bright without tax volume Thin row, which is less than, limits quantity.
9. device according to claim 7, which is characterized in that the case where inventory mark instruction can generate inventory Under, the execution module includes:
Whether judging unit is greater than or equal to invoice nominal value limit without tax volume for judge the business paper;
Split cells, for being free of the case where tax volume is greater than or equal to the invoice nominal value limit in the business paper Under, the business paper is successively split into multiple subservice documents according to the sequence of detail row, wherein each subservice document Without tax volume be less than the invoice nominal value limit;And
Inventory generation unit generates inventory in the case where the detail line number amount of subservice document is greater than limited number of situation.
10. device according to claim 7, which is characterized in that the execution module includes:
Judging unit, for judging whether the detail row of the business paper is greater than or equal to the invoice ticket without tax volume Face limit;And
Split cells is greater than or equal to the invoice nominal value limit without tax volume for the detail row in the business paper In the case where, the detail row of the business paper is split.
11. device according to claim 7, which is characterized in that the execution module includes split cells, is used for:
When being split to the business paper for including discount, if discount row corresponds to a plurality of discount detail row or if described Discount detail row corresponding to discount row is greater than or equal to invoice nominal value limit without tax volume, and the discount row is torn open Point;And
Discount row and corresponding discount detail row are split in same subservice document.
12. device according to claim 7, which is characterized in that
In the case where inventory mark instruction can generate inventory, the execution module includes:
Combining unit, for the summation without tax volume be less than two of the invoice nominal value limit or multiple business papers into Row merges;And
Inventory generation unit, for the detail line number amount in the business paper after the merging be more than limited number of situation under, Generate inventory;
In the case where inventory mark instruction does not generate inventory, the execution module is used for small to the summation without tax volume In the summation of the invoice nominal value limit and detail line number amount be less than described limited number of two or multiple business papers into Row merges.
13. a kind of machine readable storage medium, it is stored with instruction on the machine readable storage medium, which is used for so that machine It executes according to claim 1 to the method described in any one of 6 claims for generating invoice data.
CN201711174476.7A 2017-11-22 2017-11-22 For generating the method and device of invoice data Pending CN109829001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711174476.7A CN109829001A (en) 2017-11-22 2017-11-22 For generating the method and device of invoice data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711174476.7A CN109829001A (en) 2017-11-22 2017-11-22 For generating the method and device of invoice data

Publications (1)

Publication Number Publication Date
CN109829001A true CN109829001A (en) 2019-05-31

Family

ID=66858143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711174476.7A Pending CN109829001A (en) 2017-11-22 2017-11-22 For generating the method and device of invoice data

Country Status (1)

Country Link
CN (1) CN109829001A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473029A (en) * 2019-07-01 2019-11-19 苏宁云计算有限公司 Transfinite method for splitting, device, computer equipment and the storage medium of forelock ticket
CN110659415A (en) * 2019-09-04 2020-01-07 北京三快在线科技有限公司 Method, device and system for generating business execution certificate
CN111144962A (en) * 2019-12-25 2020-05-12 珠海乐活公社网络科技有限公司 Invoice issuing method and device based on e-commerce platform and e-commerce platform
CN111815379A (en) * 2020-07-08 2020-10-23 远光软件股份有限公司 Method, device, terminal and storage medium for intelligently adjusting invoice tail difference
CN112270580A (en) * 2020-10-26 2021-01-26 浙江吉利控股集团有限公司 Invoice issuing method, device, equipment and storage medium
CN112529644A (en) * 2020-12-23 2021-03-19 安徽航天信息有限公司 Electronic invoice issuing method, device and storage medium
CN113657950A (en) * 2021-09-02 2021-11-16 中国银行股份有限公司 Bank invoice data processing method and system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809523A (en) * 2014-12-29 2016-07-27 航天信息股份有限公司 Method and system for balancing tax for invoicing
CN106204179A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 For opening the method and system of single tax rate VAT invoice without amount of tax to be paid sales slip
CN106204177A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 For opening the method and system of single tax rate VAT invoice without amount of tax to be paid sales slip
CN106204178A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 The method and system of many tax rates VAT invoice is opened for the sales slip containing the amount of tax to be paid
US20170004468A1 (en) * 2015-07-01 2017-01-05 Mastercard International Incorporated Multiple payor bill payments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809523A (en) * 2014-12-29 2016-07-27 航天信息股份有限公司 Method and system for balancing tax for invoicing
CN106204179A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 For opening the method and system of single tax rate VAT invoice without amount of tax to be paid sales slip
CN106204177A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 For opening the method and system of single tax rate VAT invoice without amount of tax to be paid sales slip
CN106204178A (en) * 2015-05-08 2016-12-07 航天信息股份有限公司 The method and system of many tax rates VAT invoice is opened for the sales slip containing the amount of tax to be paid
US20170004468A1 (en) * 2015-07-01 2017-01-05 Mastercard International Incorporated Multiple payor bill payments

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邓楠: ""营改增"对铁路运输收入管理的影响", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473029A (en) * 2019-07-01 2019-11-19 苏宁云计算有限公司 Transfinite method for splitting, device, computer equipment and the storage medium of forelock ticket
CN110659415A (en) * 2019-09-04 2020-01-07 北京三快在线科技有限公司 Method, device and system for generating business execution certificate
CN110659415B (en) * 2019-09-04 2022-05-10 北京三快在线科技有限公司 Method, device and system for generating business execution certificate
CN111144962A (en) * 2019-12-25 2020-05-12 珠海乐活公社网络科技有限公司 Invoice issuing method and device based on e-commerce platform and e-commerce platform
CN111815379A (en) * 2020-07-08 2020-10-23 远光软件股份有限公司 Method, device, terminal and storage medium for intelligently adjusting invoice tail difference
CN112270580A (en) * 2020-10-26 2021-01-26 浙江吉利控股集团有限公司 Invoice issuing method, device, equipment and storage medium
CN112270580B (en) * 2020-10-26 2024-03-29 浙江吉利控股集团有限公司 Invoice issuing method, invoice issuing device, invoice issuing equipment and storage medium
CN112529644A (en) * 2020-12-23 2021-03-19 安徽航天信息有限公司 Electronic invoice issuing method, device and storage medium
CN113657950A (en) * 2021-09-02 2021-11-16 中国银行股份有限公司 Bank invoice data processing method and system based on block chain

Similar Documents

Publication Publication Date Title
CN109829001A (en) For generating the method and device of invoice data
CN109447769A (en) A kind for the treatment of method and apparatus of financial data
CN103903082A (en) Method for generating accounting documents by means of receipt data in ERP system
CN110069561A (en) Account acquisition methods, system, electronic equipment and computer-readable medium
WO2005116885A2 (en) Database for accounting purposes
JP2022016658A (en) Account management system, account management method, program, and information provision system
RU2007130710A (en) VISUAL SIGNS FOR IDENTIFICATION OF FINANCIAL ACCOUNTS
CN106204175A (en) For opening the method and system of many tax rates VAT invoice without amount of tax to be paid sales slip
KR20110093398A (en) Device and method for managing mobile terminated service
KR20200006338A (en) System for accounting process based on blockchain
CN110148049A (en) A kind of risk control method, device, computer equipment and readable storage medium storing program for executing
US20200082474A1 (en) Management information system, method, and program
CN114139975A (en) Life cycle data processing method, device, equipment and medium for metering materials
Fleuriet Fleuriet's Rebuttal to'Questioning Fleuriet's Model of Working Capital Management on Empirical Grounds'
CN106204177A (en) For opening the method and system of single tax rate VAT invoice without amount of tax to be paid sales slip
CN109636275A (en) A kind of intelligent transport charging method and device
JP4372768B2 (en) Claims liquidation management method, claims liquidation management system, and claims
CN109685442A (en) Method and device for business data processing
CN110310159A (en) A kind of patent portfolios management method
Hartanto Perancangan dan Pembuatan Sistem Informasi Akuntansi Pada Kedai Kopi Mitra Bersama
CN109872198A (en) The generation method and device of credit note
Diakonova et al. New approaches to banking business models in the digital economy
Leonov et al. Development of a Model for Identifying High-Risk Operations for AML/CFT Purposes
KR100960297B1 (en) Accounting method having a function for automatic classification, and computer readable media storing program for method thereof
CN106156958A (en) A kind of information-based business management system for power communication

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190531