A kind of online method made out an invoice of petrochemical industry
Technical field
The present invention relates to a kind of method automatically issued invoice, specifically a kind of online method made out an invoice of petrochemical industry.
Background technology
Currently, petrochemical industry gas station passes through IC-card managing and control system or the business business revenue system sales commodity such as POS sale management system or IC-card charging system, and is issued invoice by the manual typing sales information that repeats of tax-control cash register. Due to gas station's business business revenue system and the separate operation of tax-control cash register billing system, it is not carried out information interconnection communication, issued invoice by manual operations tax-control cash register, not only add the workload of making out an invoice of cashier, and the randomness of manual bill cannot be avoided, there is invoice amount and consumption sum is not inconsistent, manual phenomenon of disorderly drawing a bill, bring, to petrochemical industry, the baneful influence that managing bill is chaotic.
Summary of the invention
The technical assignment of the present invention is for above-mentioned the deficiencies in the prior art, it is provided that a kind of online method made out an invoice of petrochemical industry.
The technical assignment of the present invention realizes in the following manner: a kind of online method made out an invoice of petrochemical industry, it is characterized in: between business business revenue system terminal computer and bill printer, installation data monitors acquisition module, and data decryptor acquisition module connects tax-control cash register by serial port power cable, data decryptor acquisition module is used for gathering, resolve print data, rule is printed according to bill data, parse the invoice terms information in nominal value, process data of making out an invoice after completing are sent to tax-control cash register, after tax-control cash register receives data of making out an invoice, automatically tax control encryption storage and printing invoice are carried out, realize online automatic invoice issuance business.
Described data decryptor acquisition module input comprises parallel port and two interfaces of serial ports, is respectively used to receive the data that operation system terminal is sent by parallel or serial port; Outfan comprises two serial ports, connects tax-control cash register and bill printer respectively, it is achieved the transmission transmission of data.
Described data decryptor acquisition module includes make out an invoice information acquisition module, information analysis module of making out an invoice, make out an invoice message processing module and information sending module of making out an invoice, complete the make out an invoice collection of data, parsing, process and sending function, provide, for tax-control cash register, data of making out an invoice.
Information acquisition module of making out an invoice is sent to the print data of bill printer for monitored data acquisition terminal.
Information analysis module of making out an invoice is according to bill printing rule, resolve the print data gathered, judge that current print data is as data or the report data of making out an invoice, only split ticket data and carry out dissection process, screening the data items (such as: trade name, unit price, quantity, the amount of money etc.) relevant with invoice, report data is transmitted directly to bill printer and prints.
Make out an invoice message processing module according to the communications protocol with tax-control cash register, resolution data is processed into the data of making out an invoice of communications protocol form.
Information sending module of making out an invoice is sent to tax-control cash register by serial ports data of will making out an invoice, and after tax-control cash register receives the information of making out an invoice, generates tax-controlled invoice, preserves electronic invoice data, prints roll type invoice, and result return data decryptor acquisition module of making out an invoice.
The online method made out an invoice of the petrochemical industry of the present invention changes the present situation of gas station's IC-card managing and control system or the business business revenue system such as convenience store's POS sale management system or IC-card charging system and the separate operation of tax-control cash register billing system, it is achieved that seamless connection and information between system interconnect communication. Gas station cashier by while business business revenue system settlement commodity, from the tax-control cash register printed invoice that is dynamically connected, decrease cashier's repetitive operation workload, it is to avoid the randomness of manual bill, stop the phenomenon that manual unrest is drawn a bill, specification convenience store of gas station invoice issuing order.
Accompanying drawing explanation
Accompanying drawing 1 is the system attachment structure schematic diagram realizing the inventive method;
Accompanying drawing 2 is the process schematic flow sheet of making out an invoice of the inventive method.
Detailed description of the invention
The online method made out an invoice of petrochemical industry of the present invention is described in detail below with specific embodiment with reference to Figure of description.
Embodiment:
As shown in Figure 1, the online method made out an invoice of the petrochemical industry of the present invention by the business business revenue system (gas station's IC-card managing and control system or POS sale management system or IC-card charging system etc.) of petrochemical industry between terminal computer and bill printer installation data monitor acquisition module, acquisition module also connects tax-control cash register by serial port power cable, it is achieved that online automatic invoice issuance business.
Described data decryptor acquisition module by information acquisition module of making out an invoice, information analysis module of making out an invoice, make out an invoice message processing module and information sending module of making out an invoice is constituted, for completing the make out an invoice collection of data, parsing, process and sending function, provide, for tax-control cash register, data of making out an invoice.
As shown in Figure 2, concrete implementation step is as follows:
1, when operator is by IC-card managing and control system or the business business revenue system terminal computer printout sales record such as POS sale management system or IC-card charging system, information acquisition module of making out an invoice is responsible for monitoring capturing service business revenue system terminal and is sent to the print data of bill printer;
2, information analysis module of making out an invoice is according to bill printing rule, resolve print data, judge to make out an invoice data or report data, only split ticket data and carry out dissection process, screening the data items (such as: trade name, unit price, quantity, the amount of money etc.) relevant with invoice, report data is transmitted directly to bill printer and prints;
3, make out an invoice message processing module according to the communications protocol with tax-control cash register, resolution data is processed into the data of making out an invoice of communications protocol form;
4, information sending module of making out an invoice is sent to tax-control cash register by serial ports data of will making out an invoice, and after tax-control cash register receives the information of making out an invoice, generates tax-controlled invoice, preserves electronic invoice data, prints roll type invoice, and result return monitoring acquisition module of will making out an invoice.