CN104680674A - Method and system for rapidly setting invoice print format of fiscal cash register - Google Patents

Method and system for rapidly setting invoice print format of fiscal cash register Download PDF

Info

Publication number
CN104680674A
CN104680674A CN201310642283.5A CN201310642283A CN104680674A CN 104680674 A CN104680674 A CN 104680674A CN 201310642283 A CN201310642283 A CN 201310642283A CN 104680674 A CN104680674 A CN 104680674A
Authority
CN
China
Prior art keywords
invoice
printing
tax
cash register
control cash
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
CN201310642283.5A
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 CN201310642283.5A priority Critical patent/CN104680674A/en
Publication of CN104680674A publication Critical patent/CN104680674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention provides a method and a system for rapidly setting an invoice print format of a fiscal cash register. The method comprises the following steps of formulating to-be-printed items according to a specific invoice type; measuring the position of each item in an invoice and print coordinate parameters; storing each to-be-printed item and coordinate parameter data as an invoice format file. The to-be-printed items are formulated according to the invoice type, the position of each item in the invoice and the print coordinate parameters are determined, and each to-be-printed item and coordinate parameter data are stored as the invoice format file, so that invoices of different types can be conveniently and rapidly printed.

Description

A kind of tax-control cash register printing invoice form fast setting method and system thereof
Technical field
The present invention relates to tax-control cash register technical field, particularly a kind of tax-control cash register printing invoice form fast setting method and system thereof.
Background technology
Tax-control cash register is the terminal device aiming at state's land tax medium-sized and small enterprises tax source control solution design, meets the popularization needs of country's " Golden Taxes " engineering in the last few years.Particularly along with the clear and definite of requirement is opened in " Golden Taxes three phase " invoice networking, network billing machine will carry out further genralrlization as the efficient networking of one terminal of making out an invoice.
In actual applications, there is different requirements in different areas, different industries to the invoice format that tax-control cash register prints, and this just requires that tax-control cash register must guarantee to meet various application scenario.In prior art, the special script of invoice format is worked out by general employing, or scanning invoice is worked out later, is write in tax-control cash register after being made into invoice formatted file by IC-card again.The method needs measure and repeatedly adjust parameter, large, the consuming time length of operation easier, and not only operability is not strong, and cost is also higher.
Therefore, how above-mentioned technical matters is solved, be the research direction place of those skilled in the art.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of tax-control cash register printing invoice form fast setting method and system thereof, it formulates according to invoice pattern the project needing to print by having, determine each destination locations and printing coordinate parameters in invoice, and each printing project and coordinate parameters data are stored as invoice formatted file, conveniently can print the invoice of different-format.
In order to achieve the above object, the invention provides a kind of tax-control cash register printing invoice form fast setting method, it comprises the steps:
The project printed is formulated according to concrete invoice pattern;
Measure each destination locations and printing coordinate parameters in invoice;
Each printing project and coordinate parameters data are stored as invoice formatted file.
Wherein, the step that invoice formatted file to be imported tax-control cash register by is also comprised.
Wherein, formulating according to concrete invoice pattern the project printed is the project that the project printed according to project and the requirement of tax office of the printing that concrete invoice prints formulates the printing of invoice needs.
Wherein, the project that described formulation prints comprises the combination of following Arbitrary Term object: invoice number, the tax registration number, payee, date of making out an invoice, payer, payer identifier, cashier, trade name, quantity, unit price, subtotal, small letter add up to, capitalization total, tax-control code, remarks.
Wherein, the step measuring each destination locations and printing coordinate parameters in invoice is that a Chinese character accounts for two byte locations, 16*16 pixel-matrix by using grid scale to measure each destination locations and printing coordinate parameters in invoice.
Wherein, the step each printing project and coordinate parameters data being stored as invoice formatted file each printing project and coordinate parameters data is write successively according to printing invoice template style with text editor, is stored as invoice formatted file mb01.bin.
Wherein, step invoice formatted file being imported tax-control cash register is imported in tax-control cash register by invoice formatted file by USB, serial ports, Ethernet interface mode.
In order to achieve the above object, the invention provides a kind of tax-control cash register printing invoice form fast setting system, it comprises formulates printing projects module, printing index module and stores invoice format module, wherein:
Described formulation prints projects module, is formulate according to concrete invoice pattern the project printed;
Described printing index module is for measuring each destination locations and printing coordinate parameters in invoice;
Described storage invoice format module is that each printing project and coordinate parameters data are stored as invoice formatted file.
Wherein, also comprise an invoice format and import module, it is that invoice formatted file is imported tax-control cash register.
Wherein, by USB, serial ports, Ethernet interface mode, invoice formatted file is imported tax-control cash register.
Compared with prior art, beneficial effect of the present invention is:
1. the project needing to print is formulated according to different invoice pattern, measure each destination locations and printing coordinate parameters in invoice, and each printing project and coordinate parameters data are stored as invoice formatted file, and tax control machine printing invoice form can be generated fast, simple to operate, quick.
2. maintenance cost of the present invention is cheap, can generate various invoice format quickly and easily and print for tax-control cash register.
3. a kind of tax-control cash register printing invoice form fast setting method provided by the present invention, by in advance the invoice formatted file of reading being designed to text form in tax-control cash register, invoice formatted file can be modified by common text editor.Invoice formatted file inserts the project name and print position that will print after can opening with text editor.
Accompanying drawing explanation
A kind of tax-control cash register printing invoice form fast setting method flow diagram that Fig. 1 provides for the embodiment of the present invention.
A kind of tax-control cash register printing invoice form fast setting system chart that Fig. 2 provides for the embodiment of the present invention.
Description of reference numerals: 1-tax-control cash register printing invoice form fast setting system; 11-formulates and prints projects module; 12-prints index module; 13-stores invoice format module; 14-invoice format imports module.
Embodiment
Below in conjunction with accompanying drawing, to above-mentioned being described in more detail with other technical characteristic and advantage of the present invention.
As shown in Figure 1, be a kind of tax-control cash register printing invoice of the present invention form fast setting method flow diagram, the generation method of a kind of tax-control cash register invoice formatted file of the present invention, comprises the following steps:
Step S1: formulate the project printed according to concrete invoice pattern, this step is the project that the project printed according to project and the requirement of tax office of the printing that concrete invoice prints formulates the printing of invoice needs; The described project printed of formulating comprises: invoice number, the tax registration number, payee, date of making out an invoice, payer, payer identifier, cashier, trade name, quantity, unit price, subtotal, small letter add up to, capitalization totals, tax-control code, remarks, and formulating the project printed is that above Arbitrary Term object combines.
Step S2: measure each destination locations and printing coordinate parameters in invoice, this step uses grid scale to measure each destination locations and printing coordinate parameters in invoice, with the black edge of putting on of invoice for benchmark, down measure the printing paper feed distance of invoice, with the invoice left side for benchmark turn right measure this row print entry object top of form, the parameter measured is in units of print pixel point, and a Chinese character accounts for two byte locations, 16*16 pixel-matrix.
Step S3: each printing project and coordinate parameters data are stored as invoice formatted file.This step each printing project and coordinate parameters data is write successively according to printing invoice template style with text editor, is stored as invoice formatted file mb01.bin.Now enumerate a printing invoice file layout example:
1, printing invoice file layout
Printing invoice file name is mbXX.bin (XX span is from 01 to 12), uses text editor.Main contents are as follows:
BEGIN
0 ~ TEMP_TYPE#0 ~ VER#2.31 ~ DIS# Sichuan ~ DATE#20071113 ~
1~TYPE#76#128~FONT#16#16~MARK#1~END_FORWARDPOINT#160~BEGIN_FORWARDPOINT#70~BACKWARD_POINT#80~MAX_GOODS_COUNT#6~INV_76_MM#1~REPAIR#0~SKDW_MAX#30~FKDW_MAX#30~SPMC_MAX#12~SKY_MAX#10~JEDX_MAX#26~
2 ~ LN#7 ~ HEAD# ~ ROWH#30 ~ ROWBH#12 ~ LB#1# makes out an invoice the date: #2 ~ CO#KPRQ#8 ~ LB#1# cashier: #24 ~ CO#SKY#32 ~
2 ~ LN#4 ~ HEAD# ~ ROWH#30 ~ ROWBH#1 ~ EMPTY_FORWARD#13 ~ LB#1# payee: #2 ~ CO#SKDW#9 ~
2 ~ LN#6 ~ HEAD# ~ ROWH#30 ~ ROWBH#5#10 ~ LB#1# payer: #2 ~ CO#FKDW#8 ~
2 ~ LN#9 ~ HEAD# ~ ROWH#30 ~ ROWBH#10 ~ LB#1# name of an article #2 ~ LB#1# unit price #17 ~ LB#1# quantity #26 ~ LB#1# amount of money #36 ~
2~LN#7~CYCLE_BEGIN#~
2~LN#15~DATACYCLE#~ROWH#20~ROWBH#6~CO#SPMC#1~CO#SPDJ#15~CO#SPSL#24~CO#SPJE#-41~
2~LN#16~START_TAIL#~
2 ~ LN#20 ~ TAIL# ~ ROWH#40 ~ ROWBH#10 ~ LB#1# amount of money total (small letter): #2 ~ CO#JEXX#8 ~
2 ~ LN#21 ~ TAIL# ~ ROWH#40 ~ ROWBH#10 ~ LB#1# amount of money total (small letter): #2 ~ CO#JEDX#11 ~
2 ~ LN#16 ~ TAIL# ~ ROWH#40 ~ ROWBH#20 ~ LB#1# tax-control code: #2 ~ CO#SKM#4 ~
END
2, printing invoice file layout explanation
1), BEGIN-template starts
END-template terminates
Decollator between ' ~ '-every period field
' decollator between #'-field name and its numerical value
CYCLE_BEGIN-invoice detail starts circulation
2), template row 0, mainly comprise some Global Information
VER-version number
DIS-area
The DATE-date
3), template row 1-invoice integrity attribute
MARK-printing invoice looks for black mark to indicate (the black mark invoice of 0-fixed length invoice, 1-)
END_FORWARDPOINT-prints and terminates the distance of rear paper feed, if look for black mark, then for finding the distance of paper feed after black mark
The distance of paper feed before BEGIN_FORWARDPOINT-printing the first row data
BACKWARD_POINT-is only suitable for for stylus printer, represents the distance of having beaten rollback after last column
MAX_GOODS_COUNT-invoice detail print line number note: be generally 6(for 76mm invoice) or 5(for 57mm invoice) "
INV_76_MM#1-invoice width: #1 is 76mm#0 is 57mm
SKDW_MAX-payee is row maximum printing length often, prints to this numerical value with regard to folds
FKDW_MAX-payer is row maximum printing length often, prints to this numerical value with regard to folds
SPMC_MAX-trade name is row maximum printing length often, prints to this numerical value with regard to folds
SKY_MAX-cashier is row maximum printing length often, prints to this numerical value with regard to folds
The JEDX_MAX-amount of money capitalizes often row maximum printing length, prints to this numerical value with regard to folds
Above attribute relates to folds and prints, therefore specifies respective maximum length
4), template row 2, represent real print line, the every a line namely in corresponding invoice data
What ROWBH-line space (unit: pixel) representative had printed that this line printer walks counts
This attribute of ROWBH#5#10-" customer name " row distance in tickets sample is large and use when will process folds, wherein 5 represent the row distance between folds to one's own profession, the distance of paper feed after folds has been beaten in 10 representatives, and folds all will be beaten with or without content, makes a call to a null without content.
LB-label, 0 representative in LB#0 prints this label, if 1 is not beaten;
CO-content, CO# field name # position ((left-justify, unit: character), if numerical value is negative, Right Aligns)
Step S4: invoice formatted file is imported in tax-control cash register.This step is imported in tax-control cash register by modes such as USB, serial ports, Ethernet interfaces.And described invoice formatted file is modified by common text editor, simple, convenient.Tax-control cash register support of the present invention imports multiple printing invoice file simultaneously, and user can arrange the some printing invoice files of current use voluntarily and carry out printing invoice.The present invention can the various invoice formatted file of fast setting, selects corresponding invoice formatted file to perform can to control printer to perform command adapted thereto, prints invoice format up to specification.
As shown in Figure 2, for a kind of tax-control cash register printing invoice form fast setting block diagram of system that the embodiment of the present invention provides, the invention provides a kind of tax-control cash register printing invoice form fast setting system 1, comprise formulating and print projects module 11, printing index module 12, storage invoice format module 13 and invoice format importing module 14, wherein:
Described formulation prints projects module 11, is formulate according to concrete invoice pattern the project printed;
Described printing index module 12 is for measuring each destination locations and printing coordinate parameters in invoice;
Described storage invoice format module 13 is that each printing project and coordinate parameters data are stored as invoice formatted file.
Described invoice format imports module 14, is that invoice formatted file is imported tax-control cash register, wherein, by USB, serial ports, Ethernet interface mode, invoice formatted file is imported tax-control cash register.
In sum, the invention has the advantages that:
1. the project needing to print is formulated according to different invoice pattern, measure each destination locations and printing coordinate parameters in invoice, and each printing project and coordinate parameters data are stored as invoice formatted file, and tax control machine printing invoice form can be generated fast, simple to operate, quick.
2. maintenance cost of the present invention is cheap, can generate various invoice format quickly and easily and print for tax-control cash register.
3. a kind of tax-control cash register printing invoice form fast setting method provided by the present invention, by in advance the invoice formatted file of reading being designed to text form in tax-control cash register, invoice formatted file can be modified by common text editor.Invoice formatted file inserts the project name and print position that will print after can opening with text editor.
More than illustrate just illustrative for the purpose of the present invention; and nonrestrictive, those of ordinary skill in the art understand, when not departing from the spirit and scope that claim limits; many amendments, change or equivalence can be made, but all will fall within protection scope of the present invention.

Claims (10)

1. a tax-control cash register printing invoice form fast setting method, it is characterized in that, it comprises the steps:
The project printed is formulated according to concrete invoice pattern;
Measure each destination locations and printing coordinate parameters in invoice;
Each printing project and coordinate parameters data are stored as invoice formatted file.
2. a kind of tax-control cash register printing invoice form fast setting method according to claim 1, is characterized in that, also comprises the step that invoice formatted file to be imported tax-control cash register by.
3. a kind of tax-control cash register printing invoice form fast setting method according to claim 1, it is characterized in that, formulating according to concrete invoice pattern the project printed is the project that the project printed according to project and the requirement of tax office of the printing that concrete invoice prints formulates the printing of invoice needs.
4. a kind of tax-control cash register printing invoice form fast setting method according to claim 3, it is characterized in that, the project that described formulation prints comprises the combination of following Arbitrary Term object: invoice number, the tax registration number, payee, date of making out an invoice, payer, payer identifier, cashier, trade name, quantity, unit price, subtotal, small letter add up to, capitalization total, tax-control code, remarks.
5. a kind of tax-control cash register printing invoice form fast setting method according to claim 1, it is characterized in that, the step measuring each destination locations and printing coordinate parameters in invoice is that a Chinese character accounts for two byte locations, 16*16 pixel-matrix by using grid scale to measure each destination locations and printing coordinate parameters in invoice.
6. a kind of tax-control cash register printing invoice form fast setting method according to claim 1, it is characterized in that, the step each printing project and coordinate parameters data being stored as invoice formatted file each printing project and coordinate parameters data is write successively according to printing invoice template style with text editor, is stored as invoice formatted file mb01.bin.
7. a kind of tax-control cash register printing invoice form fast setting method according to claim 2, it is characterized in that, step invoice formatted file being imported tax-control cash register is imported in tax-control cash register by invoice formatted file by USB, serial ports, Ethernet interface mode.
8. a tax-control cash register printing invoice form fast setting system, is characterized in that, it comprises formulates printing projects module, printing index module and stores invoice format module, wherein:
Described formulation prints projects module, is formulate according to concrete invoice pattern the project printed;
Described printing index module is for measuring each destination locations and printing coordinate parameters in invoice;
Described storage invoice format module is that each printing project and coordinate parameters data are stored as invoice formatted file.
9. a kind of tax-control cash register printing invoice form fast setting system according to claim 8, is characterized in that, also comprise an invoice format and import module, it is that invoice formatted file is imported tax-control cash register.
10. a kind of tax-control cash register printing invoice form fast setting system according to claim 9, is characterized in that, by USB, serial ports, Ethernet interface mode, invoice formatted file is imported tax-control cash register.
CN201310642283.5A 2013-12-03 2013-12-03 Method and system for rapidly setting invoice print format of fiscal cash register Pending CN104680674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310642283.5A CN104680674A (en) 2013-12-03 2013-12-03 Method and system for rapidly setting invoice print format of fiscal cash register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310642283.5A CN104680674A (en) 2013-12-03 2013-12-03 Method and system for rapidly setting invoice print format of fiscal cash register

Publications (1)

Publication Number Publication Date
CN104680674A true CN104680674A (en) 2015-06-03

Family

ID=53315657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310642283.5A Pending CN104680674A (en) 2013-12-03 2013-12-03 Method and system for rapidly setting invoice print format of fiscal cash register

Country Status (1)

Country Link
CN (1) CN104680674A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406783A (en) * 2016-11-29 2017-02-15 北京慧眼智行科技有限公司 Label printing method and label printing plug-in
CN108319435A (en) * 2018-01-24 2018-07-24 北京三快在线科技有限公司 Method of printing, device and the electronic equipment of bill
CN110908615A (en) * 2018-09-18 2020-03-24 精工爱普生株式会社 Printing apparatus control method and printing apparatus
CN111178029A (en) * 2019-12-13 2020-05-19 航天信息股份有限公司 General invoice template setting method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406783A (en) * 2016-11-29 2017-02-15 北京慧眼智行科技有限公司 Label printing method and label printing plug-in
CN106406783B (en) * 2016-11-29 2019-06-07 北京慧眼智行科技有限公司 Label printing method and label print plug-in unit
CN108319435A (en) * 2018-01-24 2018-07-24 北京三快在线科技有限公司 Method of printing, device and the electronic equipment of bill
CN110908615A (en) * 2018-09-18 2020-03-24 精工爱普生株式会社 Printing apparatus control method and printing apparatus
CN110908615B (en) * 2018-09-18 2024-03-08 精工爱普生株式会社 Control method of printing device and printing device
CN111178029A (en) * 2019-12-13 2020-05-19 航天信息股份有限公司 General invoice template setting method and system
CN111178029B (en) * 2019-12-13 2023-12-12 航天信息股份有限公司 General invoice template setting method and system

Similar Documents

Publication Publication Date Title
CN102074080B (en) Customization and management method of visual management invoice template
CA2576318C (en) Configuration control modes for mailpiece inserters
CN104680674A (en) Method and system for rapidly setting invoice print format of fiscal cash register
US20070041041A1 (en) Method and computer program product for conversion of an input document data stream with one or more documents into a structured data file, and computer program product as well as method for generation of a rule set for such a method
CN101964119B (en) Anti-fake invoice machine, verification network system and method
CN102722899B (en) Positioning printing system for report
CN103942184B (en) Collocation method, generation method and system with addition Item consolidated statement
CN107423004B (en) Method for printing bill by POS terminal and POS terminal
CN101149737A (en) Method for quickly establishing web form and automatically establishing corresponding data table in database through Microsoft Word
CN109002425B (en) Method for acquiring upstream and downstream relations of enterprise, terminal device and medium
CN105302507A (en) Certificate printing control method and certificate template setting method and system
CN110414632A (en) A kind of information identification storage method for hand-written logistics document
US7602521B2 (en) Document format and print stream modification for fabricating mailpieces
US8049940B2 (en) Reprint function for mailpiece inserters
CN100520840C (en) Method for network tax controller processing bill data
CN107562949A (en) The method for realizing consolidated accounts Excel template write into Databasce
CN202512673U (en) Invoice information automatic input system
CA2576430A1 (en) Rules engine for mailpiece content modification
CN101950456A (en) Method for generating invoice formatted file of fiscal cash register
CN100487735C (en) Method for configuring personalized function of tax controlled cash register
KR100249328B1 (en) Slip preparing method
CN104035736A (en) User-defined invoice printing method
CN108608740A (en) Bar code printer system and its method for supplier's delivery bar code printing
CN102693107A (en) Method for printing work orders in pre-printed form in workflow
CN115935938B (en) Automatic generation method and device for case report

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

Application publication date: 20150603

RJ01 Rejection of invention patent application after publication