A kind of online method of making out an invoice of petrochemical industry
Technical field
The present invention relates to a kind of method that automatically issues invoice, specifically a kind of online method of making out an invoice of petrochemical industry.
Background technology
Current, the petrochemical industry refuelling station is by 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 issues invoice by the manual typing marketing information that repeats of tax-control cash register.Due to refuelling station business business revenue system and the separate operation of tax-control cash register billing system, do not realize the interconnected communication of information, issue invoice by tax-control cash register hand-manipulated, not only increased cashier's the workload of making out an invoice, and can't avoid the randomness of manual bill, have that invoice amount and consumption sum are not inconsistent, the manual phenomenon of disorderly drawing a bill, bring the baneful influence of managing bill confusion to petrochemical industry.
Summary of the invention
Technical assignment of the present invention is for above-mentioned the deficiencies in the prior art, provides a kind of petrochemical industry online method of making out an invoice.
technical assignment of the present invention is realized in the following manner: a kind of online method of making out an invoice of petrochemical industry, be characterized in: installation data is monitored acquisition module between business business revenue system terminal computing machine and bill printer, and the data decryptor acquisition module connects tax-control cash register by the serial port power cable, the data decryptor acquisition module is used for gathering, resolve print data, print rule according to bill data, parse the invoice project information in nominal value, the data of making out an invoice after finishing dealing with send to tax-control cash register, after tax-control cash register is received the data of making out an invoice, automatically carry out tax control and encrypt storage and printing invoice, realize online automatic invoice issuance business.
Described data decryptor acquisition module input end comprises parallel port and two interfaces of serial ports, is respectively used to receive the data that the operation system terminal sends by parallel or serial port; Output terminal comprises two serial ports, connects respectively tax-control cash register and bill printer, realizes the transmission transmission of data.
Described data decryptor acquisition module comprises the information acquisition module of making out an invoice, the information analysis module of making out an invoice, make out an invoice message processing module and the information sending module of making out an invoice, complete collection, parsing, processing and the sending function of the data of making out an invoice, for tax-control cash register provides the data of making out an invoice.
The information acquisition module of making out an invoice is used for the print data that the monitored data acquisition terminal sends to bill printer.
The information analysis module of making out an invoice is according to the bill printing rule, resolve the print data that gathers, judge that current print data is data or the report data of making out an invoice, only split ticket data and carry out dissection process, screen the data items relevant with invoice (such as trade name, unit price, quantity, the amount of money etc.), report data directly sends to bill printer to print.
Make out an invoice message processing module according to the communications protocol of tax-control cash register, resolution data is processed into the data of making out an invoice of communications protocol form.
The information sending module of making out an invoice sends to tax-control cash register by the serial ports data of making out an invoice, and after tax-control cash register is received the information of making out an invoice, generates tax-controlled invoice, preserves the electronic invoice data, prints the roll type invoice, and the return data of making out an invoice is as a result monitored acquisition module.
The online method of making out an invoice of petrochemical industry of the present invention has changed the present situation of the business business revenue systems such as refuelling station's IC-card managing and control system or the POS of convenience store sale management system or IC-card charging system and the separate operation of tax-control cash register billing system, has realized seamless connection and the interconnected communication of information between system.When the cashier of refuelling station is by business business revenue system clearing commodity, from the tax-control cash register printed invoice that is dynamically connected, reduced cashier's repetitive operation workload, avoided the randomness of manual bill, stopped the phenomenon that manual unrest is drawn a bill, standard refuelling station convenience store invoice issuing order.
Description of drawings
Accompanying drawing 1 is system's syndeton schematic diagram of realizing the inventive method;
Accompanying drawing 2 is the processing schematic flow sheets of making out an invoice of the inventive method.
Embodiment
The online method of making 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 of making out an invoice of petrochemical industry of the present invention is passed through installation data monitoring acquisition module between business business revenue system (refuelling station's IC-card managing and control system or POS sale management system or the IC-card charging system etc.) terminal computer of petrochemical industry and bill printer, acquisition module also connects tax-control cash register by the serial port power cable, has realized online automatic invoice issuance business.
Described data decryptor acquisition module is made of the information acquisition module of making out an invoice, the information analysis module of making out an invoice, make out an invoice message processing module and the information sending module of making out an invoice, be used for completing collection, parsing, processing and the sending function of the data of making out an invoice, for tax-control cash register provides the data of making out an invoice.
As shown in Figure 2, concrete performing step is as follows:
When 1, the operator was by business business revenue system terminal computer printout sales figures such as IC-card managing and control system or POS sale management system or IC-card charging systems, the information acquisition module of making out an invoice was responsible for monitoring the print data that capturing service business revenue system terminal sends to bill printer;
2, make out an invoice the information analysis module according to the bill printing rule, resolve print data, judge make out an invoice data or report data, only split ticket data and carry out dissection process, screen the data items relevant with invoice (such as trade name, unit price, quantity, the amount of money etc.), report data directly sends to bill printer to print;
3, make out an invoice message processing module according to the communications protocol of tax-control cash register, resolution data is processed into the data of making out an invoice of communications protocol form;
4, the information sending module of making out an invoice sends to tax-control cash register by the serial ports data of making out an invoice, and after tax-control cash register is received the information of making out an invoice, generates tax-controlled invoice, preserves the electronic invoice data, print the roll type invoice, and the result of making out an invoice is returned to the monitoring acquisition module.