CN108389085A - Invoice management method, device and system - Google Patents

Invoice management method, device and system Download PDF

Info

Publication number
CN108389085A
CN108389085A CN201810004079.3A CN201810004079A CN108389085A CN 108389085 A CN108389085 A CN 108389085A CN 201810004079 A CN201810004079 A CN 201810004079A CN 108389085 A CN108389085 A CN 108389085A
Authority
CN
China
Prior art keywords
invoice
terminal
dutiable goods
private key
key
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
CN201810004079.3A
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 Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201810004079.3A priority Critical patent/CN108389085A/en
Publication of CN108389085A publication Critical patent/CN108389085A/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
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/10Tax strategies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/045Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0478Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload applying multiple layers of encryption, e.g. nested tunnels or encrypting the content with a first key and then with at least a second key

Abstract

The invention provides a method, a device and a system for managing invoices, wherein the method comprises the following steps: the tax declaring terminal generates a secret key when receiving transaction information sent from the outside, and generates invoice detailed information according to the transaction information, wherein the invoice detailed information comprises a private key pre-distributed by an external invoice management system; encrypting the invoice detail information by using the secret key to generate a tax control code; encrypting the tax control code and the secret key by using a private key to generate a message, and sending the message to an invoice management system; and receiving the invoice number returned by the invoice management system. The tax declaring terminal can send the transaction information to the invoice management system in real time to declare tax, so the scheme can improve the real-time performance of invoice management.

Description

A kind of method, apparatus and system of management invoice
Technical field
The present invention relates to field of computer technology, more particularly to a kind of the method, apparatus and system of management invoice.
Background technology
Some sides of declaring dutiable goods, such as enterprise, group, market, supermarket, it will usually generate a large amount of transaction data.Based on these Transaction data can carry out managing bill relevant operation, and then based on invoice to declare dutiable goods.
Currently, respectively the All Activity data within the scope of certain time periodically can be carried out induction-arrangement by the side of declaring dutiable goods, concurrently It send to data center.Data center can according to the transaction data for terminal of respectively declaring dutiable goods, by its financial statement be supplied to tax office with into Row is declared dutiable goods.
But the real-time of existing realization method is poor.
Invention content
The present invention provides a kind of method, apparatus and system of management invoice, can improve the real-time of managing bill.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
In a first aspect, the present invention provides a kind of methods of management invoice, applied to terminal of declaring dutiable goods, in the terminal of declaring dutiable goods It is stored with the private key that external managing bill system is distributed in advance, including:
S1:When receiving the external Transaction Information sent, S2 is executed;
S2:Key is generated, and according to the Transaction Information, generation includes the invoice details of the private key;
S3:The invoice details are encrypted using the key, to generate tax-control code;
S4:Using tax-control code described in the private key encryption and the key, to generate message;
S5:The message is sent to the managing bill system, and receives the hair that the managing bill system returns Ticket number.
Further, the terminal of declaring dutiable goods is connected at least one cashier, and each described cashier includes Receipt printer;
The S1 includes:The Transaction Information that either objective cashier in receiving at least one cashier is sent When, execute S2;
Described according to the Transaction Information in the S2, generation includes the invoice details of the private key, including: According to the call format that the managing bill system is provided previously, it is packaged the Transaction Information and the private key, to generate invoice Details;
Wherein, the Transaction Information includes:It is arbitrary in invoice amount, invoice new line, Taxpayer Identification Number, current time It is one or more;
This method further includes:The invoice number is sent to the target cashier, so that the target cashier control Receipt printer inside system, prints the corresponding invoice of the invoice number.
Further, in the S2, the generation key includes:Generate 64 random codes;
The S3 includes:Using DES (Data Encryption Standard, data encryption standards) algorithm, institute is utilized Invoice details described in random code encryption are stated, to generate tax-control code;
The S4 includes:Using RSA Algorithm (RSA algorithm, RSA cryptographic algorithms), the private key encryption institute is utilized Tax-control code and the random code are stated, to generate message.
Second aspect, the present invention provides a kind of methods of management invoice, are applied to managing bill system, the invoice pipe Reason system is connected at least one terminal of declaring dutiable goods;Terminal unique of declaring dutiable goods is stored with described in each in the managing bill system Terminal iidentification, public key and private key;Including:
When the either objective in receiving at least one terminal of declaring dutiable goods declares dutiable goods the message that terminal sends, according to described Target is declared dutiable goods the unique end mark of terminal, determines that the target is declared dutiable goods the public key and private key of terminal;
It is declared dutiable goods message described in the public key decryptions of terminal using the target, to obtain tax-control code and key;
Using tax-control code described in the secret key decryption, to obtain invoice details;
Judge the private key that the invoice details include, if the private key for terminal of declaring dutiable goods with the target determined It is identical, if so, generating the corresponding invoice number of the invoice details;
The invoice number is sent to the target to declare dutiable goods terminal.
The third aspect is declared dutiable goods terminal the present invention provides one kind, and external managing bill is stored in the terminal of declaring dutiable goods The private key that system is distributed in advance, including:
First communication unit, for when receiving the external Transaction Information sent, triggering processing unit;
The processing unit, for generating key, and according to the Transaction Information, generation includes the hair of the private key Ticket details;The invoice details are encrypted using the key, to generate tax-control code;Described in the private key encryption Tax-control code and the key, to generate message;
Second communication unit, for the message to be sent to the managing bill system, and the reception invoice pipe The invoice number that reason system returns.
Further, the terminal of declaring dutiable goods is connected at least one cashier, and each described cashier includes Receipt printer;
First communication unit, specifically for the either objective cashier in receiving at least one cashier When the Transaction Information sent, the processing unit is triggered;It is additionally operable to the invoice number being sent to the target cashier, with Make the receipt printer inside the target cashier control, prints the corresponding invoice of the invoice number;
The processing unit, specifically for the call format being provided previously according to the managing bill system, described in packing Transaction Information and the private key, to generate invoice details;
Wherein, the Transaction Information includes:It is arbitrary in invoice amount, invoice new line, Taxpayer Identification Number, current time It is one or more.
Further, the processing unit is specifically used for generating 64 random codes;Using DES algorithms, using it is described with Invoice details described in machine code encryption, to generate tax-control code;Using RSA Algorithm, tax-control code described in the private key encryption is utilized With the random code, to generate message.
Fourth aspect, the present invention provides a kind of managing bill systems, which is characterized in that the managing bill system with extremely Few one terminal of declaring dutiable goods is connected;Be stored in the managing bill system terminal of declaring dutiable goods described in each unique end mark, Public key and private key;Including:
Communication unit is declared dutiable goods the report that terminal sends for the either objective in receiving at least one terminal of declaring dutiable goods Wen Shi triggers processing unit;The invoice number that the authentication unit is sent is sent to the target to declare dutiable goods terminal;
The processing unit determines that the target is declared dutiable goods for the unique end mark for terminal of declaring dutiable goods according to the target The public key and private key of terminal;
Decryption unit, for being declared dutiable goods message described in the public key decryptions of terminal using the target, to obtain tax-control code and close Key;Using tax-control code described in the secret key decryption, to obtain invoice details;
Authentication unit, the private key for including for judging the invoice details, if with the target determined The private key for terminal of declaring dutiable goods is identical, if so, generating the corresponding invoice number of the invoice details, and the invoice number is sent out Give the communication unit.
5th aspect, the present invention provides a kind of systems of management invoice, including:
At least one any of the above-described declare dutiable goods terminal and the above-mentioned managing bill system.
Further, the system of the management invoice further includes:At least one receipts that terminal of declaring dutiable goods described in each is connected Silver-colored platform, and each described cashier includes receipt printer;
Each described cashier is used to receiving the externally input invoice issuing request for being directed to a Transaction Information When, the Transaction Information is sent to the terminal of declaring dutiable goods of connection;When receiving the invoice number that the terminal of declaring dutiable goods is sent, control Internal receipt printer, prints the corresponding invoice of the invoice number.
Further, the terminal of declaring dutiable goods includes:The central server that Zambia large size quotient surpasses;
The managing bill system includes:The managing bill system of tax office of Zambia.
The present invention provides a kind of method, apparatus and system of management invoice, this method includes:Terminal of declaring dutiable goods is receiving When the Transaction Information that outside is sent, key is generated, and invoice details are generated according to Transaction Information, in the invoice details It include the private key that external managing bill system is distributed in advance;Invoice details are encrypted to generate tax-control code using key;Profit With private key encryption tax-control code and key to generate message, and message is sent to managing bill system;Receive managing bill system The invoice number of return.Transaction Information can be sent to managing bill system to declare dutiable goods by terminal of declaring dutiable goods in real time, therefore of the invention The real-time of managing bill can be improved.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow chart of the method for management invoice that one embodiment of the invention provides;
Fig. 2 is the flow chart of the method for another management invoice that one embodiment of the invention provides;
Fig. 3 is the flow chart of the method for another management invoice that one embodiment of the invention provides;
Fig. 4 is a kind of schematic diagram for terminal of declaring dutiable goods that one embodiment of the invention provides;
Fig. 5 is a kind of schematic diagram for managing bill system that one embodiment of the invention provides;
Fig. 6 is a kind of schematic diagram of the system for management invoice that one embodiment of the invention provides;
Fig. 7 is the schematic diagram of the system for another management invoice that one embodiment of the invention provides.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of methods of management invoice, and applied to terminal of declaring dutiable goods, the report It is stored with the private key that external managing bill system is distributed in advance in tax terminal, may comprise steps of:
Step 101:When receiving the external Transaction Information sent, step 102 is executed.
Step 102:Key is generated, and according to the Transaction Information, generation includes that the invoice of the private key is believed in detail Breath.
Step 103:The invoice details are encrypted using the key, to generate tax-control code.
Step 104:Using tax-control code described in the private key encryption and the key, to generate message.
Step 105:The message is sent to the managing bill system, and receives the managing bill system and returns Invoice number.
An embodiment of the present invention provides a kind of method of management invoice, terminal of declaring dutiable goods is receiving the external transaction letter sent When breath, key is generated, and invoice details are generated according to Transaction Information, include external invoice pipe in the invoice details The private key that reason system is distributed in advance;Invoice details are encrypted to generate tax-control code using key;Utilize private key encryption tax-control code With key to generate message, and message is sent to managing bill system;Receive the invoice number that managing bill system returns.Report Transaction Information can be sent to managing bill system to declare dutiable goods by tax terminal in real time, therefore the embodiment of the present invention can improve invoice The real-time of management.
In detail, the managing bill system of tax office can be that each terminal of declaring dutiable goods generates unique terminal (terminal) ID, and a pair of of public key and private key are generated for each terminal of declaring dutiable goods, and each private key is sent to corresponding terminal of declaring dutiable goods.
In this way, when any terminal of declaring dutiable goods is with managing bill system communication, since managing bill system can recognize it only One terminal iidentification, therefore can further correspond to and determine its public and private key.
In an embodiment of the invention, above-mentioned terminal of declaring dutiable goods can be genuinely convinced in enterprise, group, market, supermarket etc. Business device.By taking large-scale quotient is super as an example, a software of making out an invoice can be installed on the central server that each large-scale quotient surpasses, be made out an invoice based on this The operation of software, to execute above-mentioned steps 101 to step 105, to realize invoice real-time management.
In one embodiment of the invention, the terminal of declaring dutiable goods is connected at least one cashier, and described in each Cashier includes receipt printer;
The step 101 includes:The friendship that either objective cashier in receiving at least one cashier is sent When easy information, step 102 is executed;
Described according to the Transaction Information in the step 102, generation includes the invoice details of the private key, Including:According to the call format that the managing bill system is provided previously, it is packaged the Transaction Information and the private key, to generate Invoice details;
Wherein, the Transaction Information includes:It is arbitrary in invoice amount, invoice new line, Taxpayer Identification Number, current time It is one or more;
Further comprise:The invoice number is sent to the target cashier, so that the target cashier controls Internal receipt printer, prints the corresponding invoice of the invoice number.
In detail, the central server for terminal of declaring dutiable goods can be connected with each relevant cashier, and real-time reception is every The Transaction Information that one cashier is sent.Wherein, Transaction Information may include invoice amount, invoice new line, Taxpayer Identification Number, Current time, and may include tradable commodity detail, serial number etc..
It is managed for convenience of tax office, the call format that terminal of declaring dutiable goods can be provided according to managing bill system, to Transaction Information Carry out arrangement packing.Wherein, it is verified for convenience of tax office execution information, it, can be by managing bill system when being packaged to Transaction Information It is pre-assigned to the private key of itself, the verification as uniqueness is identified while being packaged.In this way, being wrapped in the invoice details generated Include the own private key that terminal of declaring dutiable goods prestores.
In detail, after managing bill system executes the sequence of operations such as decryption, verification, a corresponding invoice number can be returned Code.In this way, the invoice number can be sent to corresponding cashier by terminal of declaring dutiable goods.Accordingly, cashier is receiving the invoice When number, you can internal receipt printer is controlled, with for customer prints invoice.
In an alternative embodiment of the invention, based on different practical application requests, receipt printer can be equally located on receipts The outside of silver-colored platform.
In one embodiment of the invention, in the step 102, the generation key includes:Generate 64 random Code;
The step 103 includes:Using DES algorithms, using invoice details described in the random code encryption, to generate Tax-control code;
The step 104 includes:Using RSA Algorithm, using tax-control code described in the private key encryption and the random code, with Generate message.
In detail, terminal of declaring dutiable goods can generate key of 64 random codes as des encryption, and invoice details are made With DES algorithm for encryption, to generate tax-control code.And RSA Algorithm is used, with own private key 64 keys of tax-control code and DES It is encrypted to generate message, and then sends managing bill system to.
In an embodiment of the invention, the method for above-mentioned management invoice can be adapted for Zambia, in this way, above-mentioned declare dutiable goods Terminal can be each terminal of declaring dutiable goods of Zambia, for example can be the central server that Zambia large size quotient surpasses, above-mentioned invoice Management system can be the managing bill system of tax office of Zambia.
In an embodiment of the invention, when above-mentioned terminal of declaring dutiable goods is the central server that Zambia large size quotient surpasses, at this Installation is made out an invoice software on central server, with managing bill system interaction and while real-time management invoice, can not influence Other business normal operations of central server system.For example, central server still can periodically arrange transaction data, and will The transaction data put in order is sent to the data center in South Africa.
Corresponding to the above, as shown in Fig. 2, an embodiment of the present invention provides a kind of method of management invoice, it is applied to Managing bill system, the managing bill system are connected at least one terminal of declaring dutiable goods;It is stored in the managing bill system Unique end mark, public key and the private key for terminal of declaring dutiable goods described in each;Include the following steps:
Step 201:When the either objective in receiving at least one terminal of declaring dutiable goods declares dutiable goods the message that terminal sends, The unique end mark for terminal of being declared dutiable goods according to the target determines that the target is declared dutiable goods the public key and private key of terminal.
Step 202:It is declared dutiable goods message described in the public key decryptions of terminal using the target, to obtain tax-control code and key.
Step 203:Using tax-control code described in the secret key decryption, to obtain invoice details.
Step 204:Judge the private key that the invoice details include, if declare dutiable goods end with the target determined The private key at end is identical, if so, generating the corresponding invoice number of the invoice details, otherwise, executes abnormality processing and terminates Current process.
Step 205:The invoice number is sent to the target to declare dutiable goods terminal.
In detail, managing bill system can be identified according to the unique end for the terminal of declaring dutiable goods for sending message, unique with this The corresponding public key decryptions message of terminal iidentification is to take key, then with secret key decryption tax-control code to obtain invoice details.
In this way, can further verify the private key in invoice details, that is, the own private key that terminal of declaring dutiable goods side preserves, It is whether consistent with the private key of the terminal of declaring dutiable goods that internal system preserves.If consistent, it is believed that it is legal to be transmitted through the invoice come Invoice, and then an invoice number is generated, the invoice number is on the one hand saved in managing bill system, is on the other hand passed Return tax terminal.Wherein, when passing invoice number back, the information such as the legitimacy of invoice can also be passed back terminal of declaring dutiable goods simultaneously.
As shown in figure 3, the method that one embodiment of the invention provides another management invoice, this method are sent out with Zambia For ticket management mode, following steps are specifically included:
Step 301:The managing bill system of tax office of Zambia is the central server life that each Zambia large size quotient surpasses Corresponding central server is given at unique terminal ID, public key and private key, and by each Private key distribution, wherein each Central server is connected with large-scale super each interior cashier of quotient where itself, and each cashier is each equipped with printing invoice Machine.
Step 302:Cashier 1 will merchandise when receiving the externally input invoice issuing for Transaction Information and asking Information is sent to the central server 1 of connection.
Step 303:Central server 1 generates 64 random codes when receiving the Transaction Information that cashier 1 is sent.
Step 304:The call format that central server 1 is provided previously according to managing bill system, be packaged Transaction Information and The private key that managing bill system is distributed in advance, to generate invoice details.
Step 305:Central server 1 uses DES algorithms, using random code encryption invoice details, to generate tax control Code.
Step 306:Central server 1 uses RSA Algorithm, the private key encryption tax control distributed in advance using managing bill system Code and random code, to generate message.
Step 307:Message is sent to managing bill system by central server 1.
Step 308:Managing bill system is when receiving the message that central server 1 is sent, according to central server 1 Terminal ID determine the private key and public key of the central server 1 of storage inside.
Step 309:Managing bill system utilizes the public key decryptions message for the central server 1 determined, to obtain tax control Code and random code.
Step 310:Managing bill system decrypts tax-control code using random code, to obtain invoice details.
Step 311:Managing bill system judges the private key that invoice details include, if with determine in it is genuinely convinced The private key of business device 1 is identical, if so, generating invoice number, otherwise, executes abnormality processing and simultaneously terminates current process.
Step 312:Invoice number is sent to central server 1 by managing bill system.
Step 313:Invoice number is sent to cashier 1 by central server 1.
Step 314:Cashier 1 controls internal printing invoice when receiving the invoice number that central server 1 is sent Machine prints the corresponding invoice of the invoice number.
In the embodiment of the present invention, this is suitable for the low cost of Zambia's tax, implements the super real-time pipe of simple large-scale quotient Get a haircut the method for ticket, reduce the difficulty that Zambia Tax Informatization is promoted, save large-scale quotient it is super declare dutiable goods, tax office of Zambia system The human cost and time cost of meter and inspection are super to large-scale quotient and the two-win of tax office solutions.
It declares dutiable goods terminal as shown in figure 4, one embodiment of the invention provides one kind, outside is stored in the terminal of declaring dutiable goods The private key distributed in advance of managing bill system, including:
First communication unit 401, for when receiving the external Transaction Information sent, triggering processing unit 402;
The processing unit 402, for generating key, and according to the Transaction Information, generation includes the private key Invoice details;The invoice details are encrypted using the key, to generate tax-control code;Utilize the private key encryption The tax-control code and the key, to generate message;
Second communication unit 403, for the message to be sent to the managing bill system, and the reception invoice The invoice number that management system returns.
In an embodiment of the invention, the terminal of declaring dutiable goods is connected at least one cashier, and each described receipts Silver-colored platform includes receipt printer;
First communication unit 401 is received specifically for the either objective in receiving at least one cashier When the Transaction Information that silver-colored platform is sent, the processing unit 402 is triggered;It is additionally operable to the invoice number being sent to the target receipts Silver-colored platform, so that the receipt printer inside target cashier control, prints the corresponding invoice of the invoice number;
The processing unit 402 is packaged institute specifically for the call format being provided previously according to the managing bill system Transaction Information and the private key are stated, to generate invoice details;
Wherein, the Transaction Information includes:It is arbitrary in invoice amount, invoice new line, Taxpayer Identification Number, current time It is one or more.
In an embodiment of the invention, the processing unit 402 is specifically used for generating 64 random codes;Use DES Algorithm, using invoice details described in the random code encryption, to generate tax-control code;Using RSA Algorithm, the private key is utilized The tax-control code and the random code are encrypted, to generate message.
In the embodiment of the present invention, terminal of declaring dutiable goods can receive and believe per transaction with the cashier terminal real-time, interactive being connected Breath, and be packaged, after encryption according to the requirement format of local managing bill system, it is sent to managing bill system, and send and beat Print order is to receipt printer.
As shown in figure 5, one embodiment of the invention provides a kind of managing bill system, the managing bill system with extremely Few one terminal of declaring dutiable goods is connected;Be stored in the managing bill system terminal of declaring dutiable goods described in each unique end mark, Public key and private key;Further include:
Communication unit 501 is sent for the terminal of declaring dutiable goods of the either objective in receiving at least one terminal of declaring dutiable goods Message when, trigger processing unit 502;The invoice number that the authentication unit 504 is sent is sent to the target to declare dutiable goods end End;
The processing unit 502 determines the target report for the unique end mark for terminal of declaring dutiable goods according to the target The public key and private key of tax terminal;
Decryption unit 503, for being declared dutiable goods message described in the public key decryptions of terminal using the target, with obtain tax-control code and Key;Using tax-control code described in the secret key decryption, to obtain invoice details;
Authentication unit 504, the private key for including for judging the invoice details, if with the mesh determined Mark declare dutiable goods terminal private key it is identical, if so, generate the corresponding invoice number of the invoice details, and by the invoice number It is sent to the communication unit 501.
As shown in fig. 6, an embodiment of the present invention provides a kind of systems of management invoice, including:It is at least one any of the above-described Declare dutiable goods terminal 601 and the above-mentioned managing bill system 602.
In an embodiment of the invention, referring to FIG. 7, the system of the management invoice further includes:It declares dutiable goods described in each At least one cashier 701 that terminal 601 is connected, and each described cashier 701 includes receipt printer 7011;
Each described cashier 701 is used to receiving the externally input invoice issuing for being directed to a Transaction Information When request, the Transaction Information is sent to the terminal 601 of declaring dutiable goods of connection;In the invoice for receiving the terminal 601 of declaring dutiable goods and sending When number, internal receipt printer 7011 is controlled, the corresponding invoice of the invoice number is printed.
In the embodiment of the present invention, receipt printer may be mounted at each Cash register, and major function can be according to hair The request printed invoice of buying a ticket of ticket software.
In an embodiment of the invention, the terminal 601 of declaring dutiable goods includes:The central server that Zambia large size quotient surpasses;
The managing bill system 602 includes:The managing bill system of tax office of Zambia.
In conclusion by an invoice software, realizes the transaction data that large-scale quotient surpasses and upload to tax office in real time Managing bill system can then print legal invoice, contribute to tax office that big taxpayer is allowed to receive managing bill system, help In reducing the super number of transaction that do not make out an invoice of not large-scale quotient, be conducive to improve Zambia's state tax revenue.Super for large-scale quotient, this is one The very low method for adapting to tax office managing bill system of kind cost, realizes that difficulty is relatively low, improves its legal compliance paid taxes.
The contents such as the information exchange between each unit, implementation procedure in above-mentioned apparatus, due to implementing with the method for the present invention Example is based on same design, and particular content can be found in the narration in the method for the present invention embodiment, and details are not described herein again.
In conclusion each embodiment of the present invention at least has the advantages that:
1, in the embodiment of the present invention, terminal of declaring dutiable goods is when receiving the external Transaction Information sent, generation key, and according to Transaction Information generates invoice details, includes the private that external managing bill system is distributed in advance in the invoice details Key;Invoice details are encrypted to generate tax-control code using key;Using private key encryption tax-control code and key to generate message, and Message is sent to managing bill system;Receive the invoice number that managing bill system returns.Terminal of declaring dutiable goods will can be handed in real time Easy information is sent to managing bill system to declare dutiable goods, therefore the embodiment of the present invention can improve the real-time of managing bill.
2, it is super real suitable for the low cost of Zambia's tax, the simple large-scale quotient of implementation that an embodiment of the present invention provides a kind of The method of Shi Guanli invoices reduces the difficulty that Zambia Tax Informatization is promoted, save large-scale quotient it is super declare dutiable goods, Zambia's tax The human cost and time cost of office's statistics and inspection are super to large-scale quotient and the two-win of tax office solutions.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non- It is exclusive to include, so that the process, method, article or equipment including a series of elements includes not only those elements, But also include other elements that are not explicitly listed, or further include solid by this process, method, article or equipment Some elements.In the absence of more restrictions, the element limited by sentence " including a 〃 〃 ", it is not excluded that There is also other identical factors in the process, method, article or apparatus that includes the element.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in computer-readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light In the various media that can store program code such as disk.
Finally, it should be noted that:The foregoing is merely presently preferred embodiments of the present invention, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention, Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.

Claims (10)

1. a kind of method of management invoice, which is characterized in that applied to terminal of declaring dutiable goods, outside is stored in the terminal of declaring dutiable goods The private key that managing bill system is distributed in advance, including:
S1:When receiving the external Transaction Information sent, S2 is executed;
S2:Key is generated, and according to the Transaction Information, generation includes the invoice details of the private key;
S3:The invoice details are encrypted using the key, to generate tax-control code;
S4:Using tax-control code described in the private key encryption and the key, to generate message;
S5:The message is sent to the managing bill system, and receives the invoice number that the managing bill system returns Code.
2. according to the method described in claim 1, it is characterized in that,
The terminal of declaring dutiable goods is connected at least one cashier, and each described cashier includes receipt printer;
The S1 includes:In the Transaction Information that the either objective cashier in receiving at least one cashier is sent, Execute S2;
Described according to the Transaction Information in the S2, generation includes the invoice details of the private key, including:According to The call format that the managing bill system is provided previously, is packaged the Transaction Information and the private key, detailed to generate invoice Information;
Wherein, the Transaction Information includes:Any one in invoice amount, invoice new line, Taxpayer Identification Number, current time Or it is a variety of;
Further comprise:The invoice number is sent to the target cashier, so that target cashier control is internal Receipt printer, print the corresponding invoice of the invoice number.
3. method according to claim 1 or 2, which is characterized in that
In the S2, the generation key includes:Generate 64 random codes;
The S3 includes:Using DES Cipher algorithm, using invoice details described in the random code encryption, with Generate tax-control code;
The S4 includes:Using RSA Algorithm, using tax-control code described in the private key encryption and the random code, to generate message.
4. it is a kind of management invoice method, which is characterized in that be applied to managing bill system, the managing bill system at least One terminal of declaring dutiable goods is connected;The unique end mark, public for terminal of declaring dutiable goods described in each is stored in the managing bill system Key and private key;Including:
When the either objective in receiving at least one terminal of declaring dutiable goods declares dutiable goods the message that terminal sends, according to the target The unique end of terminal of declaring dutiable goods identifies, and determines that the target is declared dutiable goods the public key and private key of terminal;
It is declared dutiable goods message described in the public key decryptions of terminal using the target, to obtain tax-control code and key;
Using tax-control code described in the secret key decryption, to obtain invoice details;
Judge the private key that the invoice details include, if the private key phase for terminal of declaring dutiable goods with the target determined Together, if so, generating the corresponding invoice number of the invoice details;
The invoice number is sent to the target to declare dutiable goods terminal.
The terminal 5. one kind is declared dutiable goods, which is characterized in that be stored with external managing bill system in the terminal of declaring dutiable goods and distribute in advance Private key, including:
First communication unit, for when receiving the external Transaction Information sent, triggering processing unit;
The processing unit, for generating key, and according to the Transaction Information, generation includes that the invoice of the private key is detailed Thin information;The invoice details are encrypted using the key, to generate tax-control code;Utilize tax control described in the private key encryption Code and the key, to generate message;
Second communication unit, for the message to be sent to the managing bill system, and the reception managing bill system The invoice number that system returns.
6. terminal according to claim 5 of declaring dutiable goods, which is characterized in that
The terminal of declaring dutiable goods is connected at least one cashier, and each described cashier includes receipt printer;
First communication unit is sent specifically for the either objective cashier in receiving at least one cashier Transaction Information when, trigger the processing unit;It is additionally operable to the invoice number being sent to the target cashier, so that institute The receipt printer inside the control of target cashier is stated, the corresponding invoice of the invoice number is printed;
The processing unit is packaged the transaction specifically for the call format being provided previously according to the managing bill system Information and the private key, to generate invoice details;
Wherein, the Transaction Information includes:Any one in invoice amount, invoice new line, Taxpayer Identification Number, current time Or it is a variety of;
And/or
The processing unit is specifically used for generating 64 random codes;Using DES Cipher algorithm, using it is described with Invoice details described in machine code encryption, to generate tax-control code;Using RSA Algorithm, tax-control code described in the private key encryption is utilized With the random code, to generate message.
7. a kind of managing bill system, which is characterized in that the managing bill system is connected at least one terminal of declaring dutiable goods;It is described Unique end mark, public key and the private key of terminal of declaring dutiable goods described in each are stored in managing bill system;Including:
Communication unit is declared dutiable goods the message that terminal sends for the either objective in receiving at least one terminal of declaring dutiable goods When, trigger processing unit;The invoice number that the authentication unit is sent is sent to the target to declare dutiable goods terminal;
The processing unit determines that the target is declared dutiable goods terminal for being identified according to the declare dutiable goods unique end of terminal of the target Public key and private key;
Decryption unit, for being declared dutiable goods message described in the public key decryptions of terminal using the target, to obtain tax-control code and key;Profit The tax-control code described in the secret key decryption, to obtain invoice details;
Authentication unit, the private key for including for judging the invoice details, if declare dutiable goods with the target determined The private key of terminal is identical, if so, generating the corresponding invoice number of the invoice details, and the invoice number is sent to The communication unit.
8. a kind of system of management invoice, which is characterized in that including:
At least one such as terminal described in claim 5 or 6 of declaring dutiable goods, and managing bill system as claimed in claim 7.
9. the system of management invoice according to claim 8, which is characterized in that
Further include:At least one cashier that terminal of declaring dutiable goods described in each is connected, and each described cashier includes There is receipt printer;
Each described cashier is used to when receiving the externally input invoice issuing request for being directed to a Transaction Information, The Transaction Information is sent to the terminal of declaring dutiable goods of connection;When receiving the invoice number that the terminal of declaring dutiable goods is sent, in control The receipt printer in portion prints the corresponding invoice of the invoice number.
10. managing bill system according to claim 8 or claim 9, which is characterized in that
The terminal of declaring dutiable goods includes:The central server that Zambia large size quotient surpasses;
The managing bill system includes:The managing bill system of tax office of Zambia.
CN201810004079.3A 2018-01-03 2018-01-03 Invoice management method, device and system Pending CN108389085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810004079.3A CN108389085A (en) 2018-01-03 2018-01-03 Invoice management method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810004079.3A CN108389085A (en) 2018-01-03 2018-01-03 Invoice management method, device and system

Publications (1)

Publication Number Publication Date
CN108389085A true CN108389085A (en) 2018-08-10

Family

ID=63076807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810004079.3A Pending CN108389085A (en) 2018-01-03 2018-01-03 Invoice management method, device and system

Country Status (1)

Country Link
CN (1) CN108389085A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109872201A (en) * 2019-02-28 2019-06-11 浪潮软件集团有限公司 It is a kind of to support make out an invoice invoice management method, system and the invoice system at end more
WO2020057002A1 (en) * 2018-09-18 2020-03-26 深圳壹账通智能科技有限公司 Invoice data sharing system and method based on blockchain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120290418A1 (en) * 2011-05-11 2012-11-15 Mark Itwaru Merchant ordering system using optical machine readable image representation of invoice information
CN102855587A (en) * 2012-08-20 2013-01-02 清华大学 Electronic invoice generating system for electronic commerce website
CN103164810A (en) * 2013-04-12 2013-06-19 重庆市远大印务有限公司 Electronic invoice service system based on cloud computing technology and big data technology
CN106127537A (en) * 2016-06-29 2016-11-16 国网浙江省电力公司杭州供电公司 Electric power invoice issuing system and method for work thereof
CN106504040A (en) * 2016-10-31 2017-03-15 青岛瑞宏科技有限公司 A kind of electronic invoice billing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120290418A1 (en) * 2011-05-11 2012-11-15 Mark Itwaru Merchant ordering system using optical machine readable image representation of invoice information
CN102855587A (en) * 2012-08-20 2013-01-02 清华大学 Electronic invoice generating system for electronic commerce website
CN103164810A (en) * 2013-04-12 2013-06-19 重庆市远大印务有限公司 Electronic invoice service system based on cloud computing technology and big data technology
CN106127537A (en) * 2016-06-29 2016-11-16 国网浙江省电力公司杭州供电公司 Electric power invoice issuing system and method for work thereof
CN106504040A (en) * 2016-10-31 2017-03-15 青岛瑞宏科技有限公司 A kind of electronic invoice billing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020057002A1 (en) * 2018-09-18 2020-03-26 深圳壹账通智能科技有限公司 Invoice data sharing system and method based on blockchain
CN109872201A (en) * 2019-02-28 2019-06-11 浪潮软件集团有限公司 It is a kind of to support make out an invoice invoice management method, system and the invoice system at end more

Similar Documents

Publication Publication Date Title
CN107240017B (en) Block chain transaction management system and method
US7938320B2 (en) Systems and methods for encrypted bar code generation
CN102819809B (en) A kind of acquisition method of tax-control data and system
CN109255084A (en) Electronic bill querying method, device, storage medium and computer equipment
EP0833285A2 (en) Method and product for generating electronic tokens
CN104969245A (en) Apparatus and methods for secure element transactions and management of assets
JP2019525326A (en) Digital asset distribution with transaction devices
CN103077462A (en) Electronic receipt system based on terminal
WO2000019387A1 (en) Verifiable electronic journal for a point of sale device and methods for using the same
CN101576983A (en) Electronic payment method and system based on mobile terminal
EP1150227A1 (en) Anonymous and secure electronic commerce
RU182704U1 (en) CASH CONTROL UNIT
CN104348610A (en) Method and system for securely transmitting transaction sensitive data based on cloud POS
CN102693597B (en) Local printing method based on remote bill information and apparatus thereof
JPH11328269A (en) Electronic coupon system and method for issuing and verifying electronic coupon
US20090076923A1 (en) Secure Customer Relationship Marketing System and Method
CN108389085A (en) Invoice management method, device and system
CN113841144A (en) Credential management in a distributed computing system
CN112513904B (en) Digital asset transaction control method, device, terminal equipment and storage medium
JP2020052761A (en) Payment processing method and payment processing system
CN102831517A (en) Electronic consumption card system based on mobile terminal
CN103530927B (en) A kind of lottery ticket choosing and selling system based on POS and method
RU2586603C2 (en) Method of processing data on cash calculations and/or calculations with use of payment cards on operator server of fiscal data when operating multiple control-teller machines with function of transmitting information
CN113841206A (en) Event management in a distributed computing system
CN105303236A (en) Method supporting offline generation and cancel-after-verification of electronic sales order

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180810

RJ01 Rejection of invention patent application after publication