CN106056418A - Invoice submission method, device and system - Google Patents

Invoice submission method, device and system Download PDF

Info

Publication number
CN106056418A
CN106056418A CN201610370628.XA CN201610370628A CN106056418A CN 106056418 A CN106056418 A CN 106056418A CN 201610370628 A CN201610370628 A CN 201610370628A CN 106056418 A CN106056418 A CN 106056418A
Authority
CN
China
Prior art keywords
invoice
tax control
control tray
data
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.)
Pending
Application number
CN201610370628.XA
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.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201610370628.XA priority Critical patent/CN106056418A/en
Publication of CN106056418A publication Critical patent/CN106056418A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Abstract

The present invention provides an invoice submission method, device and system. The method comprises: obtaining target business data; sending an invoice request for a tax-controlled disk, and obtaining the tax-controlled disk data information returned by the tax-controlled disk; and generating invoice message information according to the target business data and the tax-controlled disk data information, and sending the invoice message information to the tax-controlled disk. Because the invoice message information includes invoice data information required to print, when the tax-controlled disk receives the invoice message information, the special tax-controlled disk software can be employed to require a printer for printing the invoice. The invoice submission realization process can be automatically performed with no need for recording the invoice data information, and therefore the accuracy of the invoice data information can be ensured.

Description

A kind of invoice reports and submits method, Apparatus and system
Technical field
The present invention relates to field of computer technology, report and submit method, Apparatus and system particularly to a kind of invoice.
Background technology
In modernized society's evolution, all trades and professions the most all can relate to the purchase and sale of commodity, the offer of service and Receive, and other business activities.For the ease of proving the proprietorial transfer of commodity, accounting examination & verification, tax jurisdiction etc., generally need Issue invoice.
At present, when needs issue invoice, staff needs artificial typing partial invoice data message.
Owing to this partial invoice data message uses artificial typing, and typically can there is Data Enter mistake in manual operation Situation, especially when the data message quantity needing typing is bigger, this implementation is it cannot be guaranteed that invoice data information accurate Property.
Summary of the invention
The invention provides a kind of invoice and report and submit method, Apparatus and system, it is possible to the accuracy of certified invoice data message.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
First aspect, the invention provides a kind of invoice and reports and submits method, including:
Obtain target service data;
Send, to tax control tray, the request of making out an invoice, and obtain the tax control tray data message that described tax control tray returns;
According to described target service data and described tax control tray data message, generate invoice message information;
Described invoice message information is sent to described tax control tray.
Further, before described acquisition target service data, also include: receive each category information collecting device in advance The corresponding service data sent;According to predetermined data inputting rule, described business datum is stored to data base;
Described acquisition target service data, including: according to predetermined identification information, obtain in described data base and store At least one target service data corresponding to described identification information.
Further, described to the tax control tray transmission request of making out an invoice, and obtain the tax control tray data letter that described tax control tray returns Breath, including: utilize JavaScript function to call OCX (Object Linking and Embedding (OLE) Control EXtension, object type extension component) control sends, to described tax control tray, the request of making out an invoice;By receiving and parsing through described tax The first of XML (Extensible Markup Language, the extensible markup language) form returned of manipulating stock quotations returns data, obtains Tax control tray data message, wherein,
Described tax control tray data message includes: in taxpayer's information, plane No. of making out an invoice, tax control tray numbering, tax control tray identifier Any one or more;
Described according to described target service data with described tax control tray data message, generate invoice message information, including: will Described target service data and described tax control tray data message are packaged into the invoice message information of XML format;
Described described invoice message information is sent to described tax control tray, including: utilize JavaScript function to call OCX The invoice message information of described XML format is sent to described tax control tray by control.
Further, described before tax control tray sends the request of making out an invoice, also include: utilize JavaScript function to call OCX control sends condition adjudgement request to described tax control tray;By receiving and parsing through the of the XML format that described tax control tray returns Two return data, it is thus achieved that the current state of described tax control tray;When the current state judging described tax control tray is normal, continue Current process.
Further, described described invoice message information is sent to described tax control tray after, also include: utilize JavaScript function is called OCX control and is received the 3rd return data of the XML format that described tax control tray is sent;By resolving institute State the 3rd return data of XML format, it is thus achieved that status information of making out an invoice;Described status information of making out an invoice is packaged into JSON The display information of (JavaScript Object Notation, JavaScript object representation) form, and by described display Information sends to the front end jsp page to show.
Second aspect, the invention provides a kind of invoice and reports and submits device, including:
Acquiring unit, is used for obtaining target service data;
First processing unit, for sending, to tax control tray, the request of making out an invoice, and obtains the tax control tray number that described tax control tray returns It is believed that breath;And invoice message information information generating unit sent is sent to described tax control tray;
Information generating unit, for according to described target service data and described tax control tray data message, generates described sending out Ticket message information.
Further, this invoice reports and submits device also to include: data entry element;
Described data entry element, for receiving the corresponding service data that each category information collecting device is sent;According in advance The data inputting rule first determined, stores described business datum to data base;
Described acquiring unit, specifically for according to predetermined identification information, obtains the institute of storage in described data base State at least one target service data that identification information is corresponding.
Further, described first processing unit, specifically for utilizing JavaScript function to call OCX control to described Tax control tray sends the request of making out an invoice;By receiving and parsing through the first return data of the XML format that described tax control tray returns, it is thus achieved that tax Manipulate stock quotations data message;And utilize JavaScript function to call OCX control, the XML lattice that described information generating unit is sent The invoice message information of formula is sent to described tax control tray;
Described tax control tray data message includes: Taxpayer Identification Number, taxpayer's name, plane No. of making out an invoice, tax control tray numbering, tax Manipulate stock quotations any one or more in identifier;
Described information generating unit, specifically for being packaged into described target service data and described tax control tray data message The invoice message information of XML format.
Further, described first processing unit, it was additionally operable to described before tax control tray sends the request of making out an invoice, utilizes JavaScript function is called OCX control and is sent condition adjudgement request to described tax control tray;By receiving and parsing through described tax control Second return data of the XML format that dish returns, it is thus achieved that the current state of described tax control tray;Judging working as of described tax control tray When front state is normal, continue current process.
Further, this invoice reports and submits device also to include: the second processing unit;
Described first processing unit, is additionally operable to utilize JavaScript function to call OCX control, receives described tax control hair updo 3rd return data of the XML format come;By resolving the 3rd return data of described XML format, it is thus achieved that status information of making out an invoice;
Described second processing unit, for described status information of making out an invoice being packaged into the display information of JSON form, and will Described display information sends to the front end jsp page to show.
The third aspect, the invention provides a kind of invoice and reports and submits system, including: dress reported and submitted by any of the above-described described invoice Put, and tax control tray;
Described invoice reports and submits device to be connected with described tax control tray;
Described tax control tray, for when receiving the request of making out an invoice that described invoice reports and submits device to send, by tax control tray data Information is back to described invoice and reports and submits device;And receive the invoice message information that described invoice reports and submits device to send.
Further, this invoice reports and submits system also to include: printer;
Described printer reports and submits device to be connected with described invoice;
Described tax control tray, is additionally operable to store described invoice message information;Extract and described invoice message information needs printing Invoice data information;And utilize described invoice to report and submit preassembled tax-controlled invoice on device to make out an invoice software, to described printing Machine sends printing invoice request;
Described printer, for when receiving the printing invoice request that described tax control tray is sent, printing described invoice number It is believed that breath.
The invention provides a kind of invoice and report and submit method, Apparatus and system, obtain target service data;Send to tax control tray The request of making out an invoice, to obtain the tax control tray data message that tax control tray returns;Raw according to target service data and tax control tray data message Become invoice message information, and this invoice message information is sent to tax control tray.Need to print owing to invoice message information comprising Invoice data information, therefore tax control tray is when receiving invoice message information, it is possible to use special tax control software is to ask printer Carry out printing invoice.This invoice reports and submits the process of realization automatically to carry out, it is not necessary to artificial typing invoice data information, therefore, The present invention ensure that the accuracy of invoice data information.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to These accompanying drawings obtain other accompanying drawing.
Fig. 1 is the flow chart that method reported and submitted by a kind of invoice that one embodiment of the invention provides;
Fig. 2 is the flow chart that method reported and submitted by the another kind of invoice that one embodiment of the invention provides;
Fig. 3 is the schematic diagram that device reported and submitted by a kind of invoice that one embodiment of the invention provides;
Fig. 4 is the schematic diagram that device reported and submitted by the another kind of invoice that one embodiment of the invention provides;
Fig. 5 is the schematic diagram that system reported and submitted by a kind of invoice that one embodiment of the invention provides;
Fig. 6 is the schematic diagram that system reported and submitted by the another kind of invoice that one embodiment of the invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide a kind of invoice to report and submit method, may comprise steps of:
Step 101: obtain target service data.
Step 102: send, to tax control tray, the request of making out an invoice, and obtain the tax control tray data message that described tax control tray returns.
Step 103: according to described target service data and described tax control tray data message, generates invoice message information.
Step 104: described invoice message information is sent to described tax control tray.
Embodiments provide a kind of invoice and report and submit method, obtain target service data;Send to tax control tray and make out an invoice Request, to obtain the tax control tray data message that tax control tray returns;Generate according to target service data and tax control tray data message and send out Ticket message information, and this invoice message information is sent to tax control tray.Owing to invoice message information comprising the invoice that need to print Data message, therefore tax control tray is when receiving invoice message information, it is possible to use special tax control software is carried out with request printer Printing invoice.This invoice reports and submits the process of realization automatically to carry out, it is not necessary to artificial typing invoice data information, therefore, and this Bright embodiment ensure that the accuracy of invoice data information.
In one embodiment of the invention, in order to a kind of possible implementation obtaining target service data, institute are described With,
Before described acquisition target service data, farther include: receive each category information collecting device in advance and send Corresponding service data;According to predetermined data inputting rule, described business datum is stored to data base;
Described acquisition target service data, including: according to predetermined identification information, obtain in described data base and store At least one target service data corresponding to described identification information.
In one embodiment of the invention, in order to illustrate when getting target service data, carry out what invoice was reported and submitted Possible implementation, so,
Described to the tax control tray transmission request of making out an invoice, and obtain the tax control tray data message that described tax control tray returns, including: profit Call OCX control by JavaScript function and send, to described tax control tray, the request of making out an invoice;By receiving and parsing through described tax control tray First return data of the XML format returned, it is thus achieved that tax control tray data message, wherein,
Described tax control tray data message includes: in taxpayer's information, plane No. of making out an invoice, tax control tray numbering, tax control tray identifier Any one or more;
Described according to described target service data with described tax control tray data message, generate invoice message information, including: will Described target service data and described tax control tray data message are packaged into the invoice message information of XML format;
Described described invoice message information is sent to described tax control tray, including: utilize JavaScript function to call OCX The invoice message information of described XML format is sent to described tax control tray by control.
In one embodiment of the invention, in order to being smoothed out of reporting and submitting of certified invoice, so, described to tax Before transmission of the manipulating stock quotations request of making out an invoice, farther include:
Utilize JavaScript function to call OCX control and send condition adjudgement request to described tax control tray;By receiving also Resolve the second return data of the XML format that described tax control tray returns, it is thus achieved that the current state of described tax control tray;Judging State the current state of tax control tray when being normal, continue current process.
In one embodiment of the invention, in order to illustrate to utilize tax control tray to carry out may realizing of printing invoice operation Journey, so, described described invoice message information is sent to described tax control tray after, farther include:
Utilize JavaScript function to call OCX control and receive the 3rd return number of the XML format that described tax control tray is sent According to;By resolving the 3rd return data of described XML format, it is thus achieved that status information of making out an invoice;By described status information encapsulation of making out an invoice Become the display information of JSON form, and described display information is sent to the front end jsp page to show.
Method, the method is reported and submitted to utilize tax with enterprise as in figure 2 it is shown, one embodiment of the invention provides another kind of invoice Manipulate stock quotations and open as a example by machine dismisses ticket for client, specifically include following steps:
Step 201: server receives the corresponding service data that each category information collecting device is sent, and according to predetermined Data inputting rule, business datum is stored to data base.
In the present embodiment, server can report and submit device to use as invoice, and this server can respectively with tax Manipulate stock quotations and be connected with printer.In one embodiment of the invention, any one in PC, desktop computer, panel computer Planting can also report and submit device to use as invoice.
Additionally, server can also be connected with each category information collecting device, information collecting device is collecting corresponding industry During business data, server can be sent it to.In detail, information collecting device may include that weighbridge, bank card evaluator, Any one or more in bar code scanner, identity card reader, finger print information harvester, recognition of face device.
In order to the business datum sent by each information collecting device carries out in order, stores accurately, in order to permissible Calling of performance objective business datum, therefore corresponding data inputting rule can be predefined.Therefore, in the present embodiment, can To be pre-designed database table structure, being formed is correlated with builds table statement, and completes the establishment of database table.
Such as, in the present embodiment, a master meter and one can be set up in the data base of server from table, and set up Master meter can as described in Table 1, foundation can be as described in Table 2 from table.
Table 1
Field number Field name Field type Explanation
JSD_LSH Serial number Varchar(32)
JSD_KH Customer name Varchar(32)
JSD_JSRQ Settlement Date Varchar(8)
JSD_JSJE Settlement amounts Decimal(20)
JSD_FPZT Invoice status char(1)
JSD_FPLX Invoice type char(1)
JSD_FPHM Invoice number Varchar(32)
JSD_SH Duty paragraph Varchar(32)
Table 2
Field number Field name Field type Explanation
JSDMX_LSH Serial number Varchar(32)
JSDMX_ZBLSH Master meter serial number Varchar(32)
JSDMX_DJ Unit price Decimal(20)
JSDMX_SL Quantity Decimal(20)
JSDMX_JE The amount of money Decimal(20)
In detail, the settlement amounts in master meter can be the summation of the unit price from table and the product of quantity.
By on server run exploitation application software, the business datum each information collecting device can sent according to Data inputting rule, to store to the master meter of data base with from table.This implementation can not only be easy to enterprise to all Business datum comprehensively stores and manages, it is also possible to when being required for arbitrary target business datum and issuing invoice, directly from Data base calls this target service data.
Owing to being usually tax control dedicated printer for the printer of printing invoice, therefore need to utilize tax control tray and server The tax-controlled invoice of upper preassembled Tax is made out an invoice software, carries out printing invoice controlling printer.Therefore, in the present invention In embodiment, server can carry out information alternately by the exploitation application software run on server with tax control tray, tax control tray Can being made out an invoice by the tax-controlled invoice run on server, to carry out information mutual for software and printer.
Step 202: server, according to predetermined identification information, obtains this identification information of storage in data base corresponding At least one target service data.
In detail, predetermined identification information can be serial number, customer name, in Settlement Date any one or Multiple.Such as, according to a well-determined serial number from table, the related objective of record from table and master meter can be navigated to Business datum.
Additionally, due to master meter and from table the business datum of record may be used for enterprise internal management and be used, therefore this target Business datum can be the partial service data that identification information is corresponding.Such as, target service data can not include the stream from table Water number, master meter serial number etc..
The target service data got due to the exploitation application software by running on server, it is impossible to by running Tax-controlled invoice software of making out an invoice directly to print, therefore server can utilize standard interface and the tax control being pre-designed exploitation Dish connects, to send, to tax control tray, the request of making out an invoice.
Additionally, due to the internal predetermined invoiced amount of tax control tray is the most limited, simultaneously need to the connection shape of checking tax control tray The information such as state, therefore server is before sending, to tax control tray, the request of making out an invoice, and first can send condition adjudgement request to tax control tray.
Step 203: server by utilizing JavaScript function is called OCX control and sent condition adjudgement request to tax control tray.
In an embodiment of the invention, server can utilize JavaScript function to call OCX control: HenInvoiceOCX.readyState (), to send condition adjudgement request to tax control tray.
Tax control tray, when receiving the condition adjudgement request that server is sent, can carry out self-inspection to determine the state of self Information, as check whether be connected with server normally, invoice issuing assembly the most normally, whether there is available invoice etc..Such as, If every detection is all normal, in Tax, can detect that tax control tray state is 4, otherwise, illustrate that tax control tray state exists Abnormal.
Tax control tray, after determining oneself state information, can obtain the return data of XML format according to this status information, And return data are sent to server.When tax control tray state exists abnormal, these return data can carry concrete exception Information.
Step 204: server is by receiving and parsing through the second return data of the XML format that tax control tray returns, it is thus achieved that tax The current state manipulated stock quotations.
The return data of the XML format that tax control tray is returned by server resolve, it is possible to obtain the current shape of tax control tray State, as prompting is normal, or directly points out concrete abnormal information.When tax control tray current state exception, staff can basis This abnormal information carries out respective handling.
Step 205: server judges whether the current state of tax control tray is normal, if so, performs step 206.
In detail, when tax control tray current state exception, can terminate current process, tax control tray can not receive server The request of making out an invoice sent.
In the present embodiment, server may determine that the current state of tax control tray is normal, therefore after can continuing executing with Continuous step.
Step 206: server by utilizing JavaScript function is called OCX control and sent, to tax control tray, the request of making out an invoice.
In an embodiment of the invention, server can utilize JavaScript function to call OCX control: HenInvoiceOCX.FP_Skpxxcx (var dwnm), to send, to tax control tray, the request of making out an invoice.
Tax control tray, when receiving the request of making out an invoice that server sends, can carry the XML lattice of tax control tray data message The return data of formula are sent to server.In detail, tax control tray data message may include that taxpayer's information, plane No. of making out an invoice, tax Manipulate stock quotations any one or more in numbering, tax control tray identifier.
Step 207: server is by receiving and parsing through the first return data of the XML format that tax control tray returns, it is thus achieved that tax Manipulate stock quotations data message.
Step 208: the target service data got and tax control tray data message are packaged into sending out of XML format by server Ticket message information, and utilize JavaScript function to call OCX control the invoice message information of XML format is sent to tax control Dish.
Both, after getting target service data and tax control tray data message, can be packaged into tax control tray by server The invoice message information of required XML format, and send it to tax control tray.
In an embodiment of the invention, when sending invoice message information, with reference to the regulation of tax control industry, it is also possible to will Corresponding document ISN, whether print, whether preview these three parameter, be sent simultaneously to tax control tray.Wherein, document ISN is same Can be the most corresponding with invoice to be printed, and document ISN can utilize specific purpose tool to generate.
Therefore, in detail, server can utilize JavaScript function to call OCX control as follows, with by XML lattice The invoice message information of formula is sent to tax control tray.
FP_PrintYTH(djnm,fpXml,1,0)
Var dyjg=henInvoiceOCX.FP_PrintYTH (djnm, fpXml, 1,0);
Wherein, djnm can be document ISN, and fpXml can be the invoice message information of XML format, and 1 can be acquiescence Printing, 0 can be to give tacit consent to not preview.
In an embodiment of the invention, the related realization code of encapsulation invoice this operation of message information can institute as follows Show:
<?Xml version=" 1.0 " encoding=" gbk "?>
<business comment="Invoice issued"id="FPKJ">
<body yylxdm="1">
<input>
<fplxdm>invoice type code</fplxdm>
<kplx>make out an invoice type</kplx>
<tspz>special ticket kind mark<tspz>
<xhdwsbh>sales unit identifier</xhdwsbh>
<xhdwmc>sales organization</xhdwmc>
<xhdwdzdh>sales slip bit address phone</xhdwdzdh>
<xhdwyhzh>sales unit account No.</xhdwyhzh>
<ghdwsbh>purchasing unit identifier</ghdwsbh>
<ghdwmc>purchasing unit title</ghdwmc>
<ghdwdzdh>purchasing unit address phone</ghdwdzdh>
<ghdwyhzh>purchasing unit account No.</ghdwyhzh>
<fyxm count=" 1 ">
<group xh=" 1 ">
<fphxz>invoice row character</fphxz>
<spmc>trade name</spmc>
<spsm>commodity tax items</spsm>
<ggxh>specifications and models</ggxh>
<dw>unit</dw>
<spsl>commodity amount</spsl>
<dj>unit price</dj>
<je>the amount of money</je>
<sl>the tax rate</sl>
<se>the amount of tax to be paid</se>
<hsbz>containing tax mark</hsbz>
</group>
</fyxm>
<zhsl>composite tax rate</zhsl>
<hjje>amount in Total</hjje>
<hjse>add up to the amount of tax to be paid</hjse>
<jshj>valency tax adds up to</jshj>
<bz>remarks</bz>
<skr>payee</skr>
<fhr>check people</fhr>
<kpr>drawer</kpr>
<zyspmc>staple title</zyspmc>
<spsm>commodity tax items</spsm>
<qdbz>inventory mark</qdbz>
<ssyf>affiliated month</ssyf>
<tzdbh>advice note is numbered</tzdbh>
<yfpdm>original invoice code</yfpdm>
<yfphm>original invoice number</yfphm>
</input>
</body>
Step 209: tax control tray receives and store the invoice message information that server is sent.
In detail, invoice message information can comprise the invoice data information that need to print, and without being printed upon invoice On the page, but other data messages that record preserves need to be carried out.
Additionally, due to staff can utilize tax control tray periodically to send a duplicate to tax, therefore tax control tray can by receive send out Ticket message information stores.
Step 210: tax control tray extracts the invoice data information needing to print in invoice message information, and utilizes on server pre- The tax-controlled invoice first installed is made out an invoice software, sends printing invoice request to printer.
Being smoothed out for ease of invoice issuing, the tax-controlled invoice that can install tax control tray the most in advance corresponding is opened Ticket software.Tax control tray, can be by calling tax control when extracting the invoice data information that need to print from invoice message information Bill billing software, is sent to invoice data information printer, and sends printing invoice request to printer.
In an embodiment of the invention, invoice data information can also be encrypted by tax control tray, generates corresponding Ciphertext, preserves this ciphertext and sends it to printer simultaneously.Accordingly, the ciphertext of generation can be printed upon the invoice page Password area.
Step 211: printer when receiving the printing invoice request that tax control tray sends, printed invoice data message, and Status information of making out an invoice is sent to tax control tray by tax control bill billing software.
In detail, make out an invoice in software at tax-controlled invoice, can in advance to for the printer of invoice issuing, printing invoice Forms etc. are configured.Such as, the page back gauge etc. of printing invoice can be set.
The invoice data information sent, when receiving printing invoice request, can be printed, Yi Jitong by printer Cross tax-controlled invoice software of making out an invoice and status information of making out an invoice accordingly is sent to tax control tray.
In detail, when invoice successful print, status information of making out an invoice can be: document numbering+";"+invoice codes+";”+ Invoice number+";"+tax control reel number.When the unsuccessful printing of invoice, status information of making out an invoice can be: is not detected by tax control tray, note Volume code imports unsuccessfully, invoice issuing unsuccessfully in any one.
In an embodiment of the invention, the related realization code of this operation of printing invoice can be as follows:
Step 212: the status information of making out an invoice received is stored by tax control tray, and status information generation that utilization is made out an invoice XML format the 3rd return data be sent to server.
Step 213: server by utilizing JavaScript function is called OCX control and received the XML format sent of tax control tray 3rd returns data, by resolving the 3rd return data, it is thus achieved that status information of making out an invoice.
In an embodiment of the invention, server can utilize JavaScript function to call OCX control: HenInvoiceOCX.PrintState (), to receive the 3rd return data of the XML format that tax control tray is sent.
Additionally, server get make out an invoice status information time, it is also possible to status information of making out an invoice is carried out record storage.
Step 214: status information of making out an invoice is packaged into the display information of JSON form by server, and display information is sent To the front end jsp page to show.
Checking this status information of making out an invoice for ease of staff, server can be encapsulated into the display letter of JSON form Breath, and show at the front end jsp page.In an embodiment of the invention, the related realization code of this operation can be as Shown in lower:
ReJson={ " reCode ": reCode, " reMsg ": dyMsg, " fpdm ": fpdm, " fphm ": fphm, " kdsh":kdsh};
In sum, the embodiment of the present invention can obtain tax control tray data message in real time based on OCX control, such that it is able to When collecting business datum, generate invoice message information in real time, and carry out printing invoice by the printing device connected.This is real Existing mode is without artificial typing invoice data information, such that it is able to avoid the data inputting mistake being likely to result in because of manual operation Situation, is of value to guarantee enterprise and the interests of client both sides;Can be customer prints invoice in real time, accurately, it is possible to carry simultaneously High customer experience effect.
As it is shown on figure 3, one embodiment of the invention provides a kind of invoice reports and submits device 30, including:
Acquiring unit 301, is used for obtaining target service data;
First processing unit 302, for sending, to tax control tray, the request of making out an invoice, and obtains the tax control tray that described tax control tray returns Data message;And invoice message information information generating unit 303 sent is sent to described tax control tray;
Information generating unit 303, for according to described target service data and described tax control tray data message, generates described Invoice message information.
In an embodiment of the invention, refer to Fig. 4, this invoice reports and submits device 30 to include: data inputting list Unit 401;
Described data entry element 401, for receiving the corresponding service data that each category information collecting device is sent;According to Predetermined data inputting rule, stores described business datum to data base;
Described acquiring unit 301, specifically for according to predetermined identification information, obtains storage in described data base At least one target service data that described identification information is corresponding.
In an embodiment of the invention, described first processing unit 302, specifically for utilizing JavaScript function to adjust Send, to described tax control tray, the request of making out an invoice with OCX control;By receiving and parsing through the first of the XML format that described tax control tray returns Return data, it is thus achieved that tax control tray data message;And utilize JavaScript function to call OCX control, described information is generated The invoice message information of the XML format that unit 303 is sent is sent to described tax control tray;
Described tax control tray data message includes: Taxpayer Identification Number, taxpayer's name, plane No. of making out an invoice, tax control tray numbering, tax Manipulate stock quotations any one or more in identifier;
Described information generating unit 303, specifically for sealing described target service data and described tax control tray data message Dress up the invoice message information of XML format.
In an embodiment of the invention, described first processing unit 302, it is further used for sending to tax control tray described Before the request of making out an invoice, utilize JavaScript function to call OCX control and send condition adjudgement request to described tax control tray;By connecing Receive and resolve the second return data of the XML format that described tax control tray returns, it is thus achieved that the current state of described tax control tray;Judging Go out the current state of described tax control tray when being normal, continue current process.
In an embodiment of the invention, refer to Fig. 4, this invoice reports and submits device 30 to include: second processes list Unit 402;
Described first processing unit 302, is further used for utilizing JavaScript function to call OCX control, receives described 3rd return data of the XML format that tax control tray is sent;By resolving the 3rd return data of described XML format, it is thus achieved that make out an invoice Status information;
Described second processing unit 402, for described status information of making out an invoice being packaged into the display information of JSON form, and Described display information is sent to the front end jsp page to show.
As it is shown in figure 5, embodiments provide a kind of invoice to report and submit system, including: any of the above-described described invoice Report and submit device 30, and tax control tray 50;
Described invoice reports and submits device 30 to be connected with described tax control tray 50;
Described tax control tray 50, for when receiving the request of making out an invoice that described invoice reports and submits device 30 to send, by tax control tray Data message is back to described invoice and reports and submits device 30;And receive the invoice message letter that described invoice reports and submits device 30 to send Breath.
In an embodiment of the invention, refer to Fig. 6, this invoice reports and submits system to include: printer 60;
Described printer 60 reports and submits device 30 to be connected with described invoice;
Described tax control tray 50, is further used for storing described invoice message information;Extract in described invoice message information and need The invoice data information printed;And utilize described invoice to report and submit preassembled tax-controlled invoice on device 30 to make out an invoice software, to Described printer 60 sends printing invoice request;
Described printer 60, for when receiving the printing invoice request that described tax control tray 50 is sent, printing described sending out Ticket data information.
The contents such as the information between each unit in said apparatus is mutual, execution process, owing to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
In sum, each embodiment of the present invention at least has the advantages that
1, in the embodiment of the present invention, target service data are obtained;Send, to tax control tray, the request of making out an invoice, return obtaining tax control tray The tax control tray data message returned;Invoice message information is generated according to target service data and tax control tray data message, and by this Ticket message information is sent to tax control tray.Owing to comprising the invoice data information that need to print in invoice message information, therefore tax control tray exists When receiving invoice message information, it is possible to use special tax control software carries out printing invoice with request printer.This invoice report The process of realization is sent automatically to carry out, it is not necessary to artificial typing invoice data information, therefore, the embodiment of the present invention ensure that invoice The accuracy of data message.
2, in the embodiment of the present invention, tax control tray data message can be obtained in real time based on OCX control, such that it is able to gathering During to business datum, generate invoice message information in real time, and carry out printing invoice by the printing device connected.This realization side Formula is without artificial typing invoice data information, such that it is able to avoid the data inputting mistake feelings being likely to result in because of manual operation Condition, is of value to guarantee enterprise and the interests of client both sides;Can be customer prints invoice in real time, accurately simultaneously, it is possible to increase Customer experience effect.
It should be noted that in this article, the relational terms of such as first and second etc is used merely to an entity Or operation separates with another entity or operating space, and not necessarily require or imply existence between these entities or operation The relation of any this reality or order.And, term " includes ", " comprising " or its any other variant are intended to non- Comprising of exclusiveness, so that include that the process of a series of key element, method, article or equipment not only include those key elements, But also include other key elements being not expressly set out, or also include being consolidated by this process, method, article or equipment Some key elements.In the case of there is no more restriction, statement the key element " including a 〃 " and limiting, do not arrange Except there is also other same factor in including the process of described key element, method, article or equipment.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in the storage medium of embodied on computer readable, this program Upon execution, perform to include the step of said method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or light In the various medium that can store program code such as dish.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate the skill of the present invention Art scheme, is not intended to limit protection scope of the present invention.All made within the spirit and principles in the present invention any amendment, Equivalent, improvement etc., be all contained in protection scope of the present invention.

Claims (10)

1. method reported and submitted by an invoice, it is characterised in that including:
Obtain target service data;
Send, to tax control tray, the request of making out an invoice, and obtain the tax control tray data message that described tax control tray returns;
According to described target service data and described tax control tray data message, generate invoice message information;
Described invoice message information is sent to described tax control tray.
Method the most according to claim 1, it is characterised in that
Before described acquisition target service data, farther include: receive the phase that each category information collecting device is sent in advance Answer business datum;According to predetermined data inputting rule, described business datum is stored to data base;
Described acquisition target service data, including: according to predetermined identification information, obtain the institute of storage in described data base State at least one target service data that identification information is corresponding.
Method the most according to claim 1, it is characterised in that
Described to the tax control tray transmission request of making out an invoice, and obtain the tax control tray data message that described tax control tray returns, including: utilize JavaScript function is called object type extension component OCX control and is sent, to described tax control tray, the request of making out an invoice;By receiving also Resolve the first return data of the expandable mark language XML form that described tax control tray returns, it is thus achieved that tax control tray data message, its In,
Described tax control tray data message includes: appointing in taxpayer's information, plane No. of making out an invoice, tax control tray numbering, tax control tray identifier Anticipate one or more;
Described according to described target service data with described tax control tray data message, generate invoice message information, including: by described Target service data and described tax control tray data message are packaged into the invoice message information of XML format;
Described described invoice message information is sent to described tax control tray, including: utilize JavaScript function to call OCX control The invoice message information of described XML format is sent to described tax control tray.
4. according to described method arbitrary in claims 1 to 3, it is characterised in that
Described to tax control tray send make out an invoice request before, farther include: utilize JavaScript function call OCX control to Described tax control tray sends condition adjudgement request;By receiving and parsing through the second return number of the XML format that described tax control tray returns According to, it is thus achieved that the current state of described tax control tray;When the current state judging described tax control tray is normal, continue current stream Journey;
And/or,
Described described invoice message information is sent to described tax control tray after, farther include: utilize JavaScript letter Number calls OCX control and receives the 3rd return data of the XML format that described tax control tray is sent;By resolving described XML format 3rd returns data, it is thus achieved that status information of making out an invoice;Described status information of making out an invoice is packaged into JavaScript object representation The display information of JSON form, and described display information is sent to the front end jsp page to show.
5. device reported and submitted by an invoice, it is characterised in that including:
Acquiring unit, is used for obtaining target service data;
First processing unit, for sending, to tax control tray, the request of making out an invoice, and obtains the tax control tray data letter that described tax control tray returns Breath;And invoice message information information generating unit sent is sent to described tax control tray;
Information generating unit, for according to described target service data and described tax control tray data message, generates described invoice report Literary composition information.
Device reported and submitted by invoice the most according to claim 5, it is characterised in that
Farther include: data entry element, for receiving the corresponding service data that each category information collecting device is sent;According to Predetermined data inputting rule, stores described business datum to data base;
Described acquiring unit, specifically for according to predetermined identification information, obtains the described mark of storage in described data base At least one target service data that knowledge information is corresponding.
Device reported and submitted by invoice the most according to claim 5, it is characterised in that
Described first processing unit, specifically for utilize JavaScript function call object type extension component OCX control to Described tax control tray sends the request of making out an invoice;By receiving and parsing through the expandable mark language XML form of described tax control tray return First returns data, it is thus achieved that tax control tray data message;And utilize JavaScript function to call OCX control, by described information The invoice message information of the XML format that signal generating unit is sent is sent to described tax control tray;
Described tax control tray data message includes: Taxpayer Identification Number, taxpayer's name, plane No. of making out an invoice, tax control tray numbering, tax control tray Any one or more in identifier;
Described information generating unit, specifically for being packaged into XML by described target service data and described tax control tray data message The invoice message information of form.
8. report and submit device according to described invoice arbitrary in claim 5 to 7, it is characterised in that
Described first processing unit, was further used for described before tax control tray sends the request of making out an invoice, utilizes JavaScript Function call OCX control sends condition adjudgement request to described tax control tray;By receiving and parsing through the XML that described tax control tray returns Second return data of form, it is thus achieved that the current state of described tax control tray;Judging that the current state of described tax control tray is for just Chang Shi, continues current process;
And/or,
Farther include: the second processing unit;
Described first processing unit, is further used for utilizing JavaScript function to call OCX control, receives described tax control hair updo 3rd return data of the XML format come;By resolving the 3rd return data of described XML format, it is thus achieved that status information of making out an invoice;
Described second processing unit, for being packaged into JavaScript object representation JSON form by described status information of making out an invoice Display information, and by described display information send to the front end jsp page to show.
9. system reported and submitted by an invoice, it is characterised in that including: dress reported and submitted by the invoice as described in arbitrary in claim 5 to 8 Put, and tax control tray;
Described invoice reports and submits device to be connected with described tax control tray;
Described tax control tray, for when receiving the request of making out an invoice that described invoice reports and submits device to send, by tax control tray data message It is back to described invoice and reports and submits device;And receive the invoice message information that described invoice reports and submits device to send.
System reported and submitted by invoice the most according to claim 9, it is characterised in that also include: printer;
Described printer reports and submits device to be connected with described invoice;
Described tax control tray, is further used for storing described invoice message information;Extract and described invoice message information needs printing Invoice data information;And utilize described invoice to report and submit preassembled tax-controlled invoice on device to make out an invoice software, to described printing Machine sends printing invoice request;
Described printer, for when receiving the printing invoice request that described tax control tray is sent, printing described invoice data letter Breath.
CN201610370628.XA 2016-05-30 2016-05-30 Invoice submission method, device and system Pending CN106056418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610370628.XA CN106056418A (en) 2016-05-30 2016-05-30 Invoice submission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610370628.XA CN106056418A (en) 2016-05-30 2016-05-30 Invoice submission method, device and system

Publications (1)

Publication Number Publication Date
CN106056418A true CN106056418A (en) 2016-10-26

Family

ID=57171423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610370628.XA Pending CN106056418A (en) 2016-05-30 2016-05-30 Invoice submission method, device and system

Country Status (1)

Country Link
CN (1) CN106056418A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106384234A (en) * 2016-10-31 2017-02-08 济南浪潮高新科技投资发展有限公司 Method of realizing fund payment risk management based on POS machine
CN108053272A (en) * 2018-01-09 2018-05-18 西安艾润物联网技术服务有限责任公司 Obtain the method, apparatus and computer readable storage medium of parking fee invoice
CN108241999A (en) * 2016-12-27 2018-07-03 航天信息股份有限公司 A kind of generation method of invoice information, apparatus and system
CN110930204A (en) * 2018-09-20 2020-03-27 北京国双科技有限公司 Invoice issuing method and system
CN111161002A (en) * 2019-12-26 2020-05-15 航天信息股份有限公司 Cloud platform billing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202904768U (en) * 2012-10-10 2013-04-24 深圳桑达商用机器有限公司 Self-service invoice generation device
CN105550913A (en) * 2015-12-22 2016-05-04 北京握奇智能科技有限公司 Invoicing monitoring device, invoicing system and invoicing method applied to tax control

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202904768U (en) * 2012-10-10 2013-04-24 深圳桑达商用机器有限公司 Self-service invoice generation device
CN105550913A (en) * 2015-12-22 2016-05-04 北京握奇智能科技有限公司 Invoicing monitoring device, invoicing system and invoicing method applied to tax control

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106384234A (en) * 2016-10-31 2017-02-08 济南浪潮高新科技投资发展有限公司 Method of realizing fund payment risk management based on POS machine
CN108241999A (en) * 2016-12-27 2018-07-03 航天信息股份有限公司 A kind of generation method of invoice information, apparatus and system
CN108053272A (en) * 2018-01-09 2018-05-18 西安艾润物联网技术服务有限责任公司 Obtain the method, apparatus and computer readable storage medium of parking fee invoice
CN110930204A (en) * 2018-09-20 2020-03-27 北京国双科技有限公司 Invoice issuing method and system
CN111161002A (en) * 2019-12-26 2020-05-15 航天信息股份有限公司 Cloud platform billing method and device

Similar Documents

Publication Publication Date Title
US8626702B2 (en) Method and system for validation of data extraction
CN110599276B (en) Bill reimbursement method, device and equipment and computer storage medium
CN106056418A (en) Invoice submission method, device and system
CN101625686A (en) Method and system for monitoring data consistency between plurality of databases
CN105046550A (en) Income tax declaration method, self-service tax handling terminal and system
JP2013041388A (en) Receipt definition data generation device and program therefor
CN111028072A (en) Supply chain financial pre-loan tone data processing method and system
KR102437026B1 (en) Advanced method, system and device for registering information in a database
CN113362025A (en) Data accounting system, method, computer readable storage medium, electronic device
CN112288402A (en) Data processing method, device, equipment and storage medium
CN117094764A (en) Bank integral processing method and device
JP2021536639A (en) Advanced methods, systems and devices for registering information in databases
US20220405859A1 (en) Recommendation system for recording a transaction
JP2023090237A (en) Device, method, and program for supporting purchase fraud detection work
CN114511318A (en) Account accounting method and device and electronic equipment
KR101851256B1 (en) Method of testing contract, server performing the same and storage medium storing the same
CN112597165A (en) Supervision data quality verification method and device, electronic equipment and storage medium
CN112053217A (en) Financial valuation statement generation method and device
CN111768547A (en) Method, device and system for automatically verifying authenticity and verifying weight of invoice
JP6224669B2 (en) Payment application system, payment application method, and program
CN206178965U (en) A information -based management system for power communication
JP7473900B2 (en) FORMAT CREATION DEVICE, FORMAT CREATION METHOD, AND FORMAT CREATION PROGRAM
JP6848134B1 (en) Data processing equipment, data processing methods and programs
JP7241362B2 (en) Accounting processing system, accounting processing method and accounting processing program
CN108153725A (en) A kind of office work management method that operation is carried out by node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20161026