Disclosure of Invention
The invention aims to provide a code scanning invoicing electronic invoice method based on cloud service, and aims to solve the common problem caused by the defects of two-dimensional codes in the process of scanning invoicing.
In order to achieve the above object, the present invention provides a code scanning and electronic invoice issuing method based on cloud services, which includes:
the seller transmits pre-stored information including sales transaction information to a cloud platform, and the cloud platform returns storage address information, a transaction order number and a seller tax number based on the received pre-stored information;
the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and generates two-dimensional code image information according to the seller data information;
the user side scans and analyzes the two-dimensional code image information, obtains the storage address information, the transaction order number and the seller tax number, and sends request information to the cloud platform;
the cloud platform extracts the pre-stored information based on request information sent by a user side and returns the pre-stored information to the invoicing terminal selected by the user side;
and the invoicing terminal reads the prestored information returned by the cloud platform and invoices.
Optionally, the pre-stored information includes user side information, seller side information and transaction information.
Optionally, the seller transmits pre-stored information including sales transaction information to a cloud platform, and the cloud platform returns storage address information, a transaction order number, and a seller tax number based on the received pre-stored information, including:
the cloud platform determines whether the user side information is an enterprise or an individual, preprocesses whether the user side information transmitted by the seller is complete, if the user side information is complete, carries out the next step, and if the user side information is incomplete, returns information that the transmission of the information fails to the seller;
the cloud platform determines the seller information, preprocesses whether the seller information transmitted by the seller is complete or not, if the seller information is complete, carries out the next step, and if the seller information is incomplete, returns information of failed transmission of information to the seller;
the cloud platform determines the transaction information, preprocesses whether the transaction information transmitted by seller information is complete or not, if the transaction information is complete, carries out the next step, and if the transaction information is incomplete, transmits information of failed transmission to the seller;
and the cloud platform returns the storage address information, the transaction order number and the seller tax number to the seller.
Optionally, the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and generates two-dimensional code image information according to the seller data information:
the seller receives the transaction order number returned by the cloud platform;
the seller receives the seller tax number returned by the cloud platform;
the seller receives the storage address information returned by the cloud platform;
the seller processes the received transaction order number, the seller tax number and the storage address information returned by the cloud platform to form seller data information;
and generating two-dimensional code image information according to the seller data information.
Optionally, after generating the two-dimensional code image information according to the seller data information, the method includes:
and sending the two-dimensional code image information to the user side through an e-mail or printing the two-dimensional code image information on a shopping list and delivering the two-dimensional code image information to the user side.
Optionally, the scanning and analyzing the two-dimensional code image information by the user side to obtain the storage address information, the transaction order number and the seller tax number, and sending request information to the cloud platform includes:
and the user side sequentially analyzes character information in the two-dimensional code image information, wherein the character information comprises the transaction order number, the seller tax number, the storage address information and the invoicing terminal information.
Optionally, the extracting, by the cloud platform, the pre-stored information based on the request information sent by the user side and returning the pre-stored information to the billing terminal selected by the user side includes:
the cloud platform receives the request information and extracts and returns the transaction order number;
the cloud platform receives the request information and extracts and returns the seller tax number;
and the cloud platform returns the pre-stored information to the billing terminal.
Optionally, the invoicing terminal reads the pre-stored information returned by the cloud platform, and invoicing includes:
and the billing terminal reads the prestored information returned by the cloud platform and sends a billing instruction to a billing server or a single-machine tax control device to bill.
Optionally, the billing terminal includes an electronic device or a software system.
A code scanning and issuing electronic invoice system based on cloud services, comprising:
the seller device is used for acquiring the pre-stored information including the sales transaction information, transmitting the pre-stored information to the cloud platform, forming seller data information from the information returned by the cloud platform and generating the two-dimensional code image information;
the user side equipment is used for scanning and analyzing the two-dimensional code image information and sending the request information for extracting the pre-stored information to the cloud platform;
the cloud platform is used for storing the transmitted pre-stored information, returning the storage address information, the transaction order number and the seller tax number to the seller equipment, and extracting and returning the pre-stored information according to the request information of the client equipment;
and the invoicing terminal is used for reading the prestored information returned by the cloud platform and invoicing.
The invention has the beneficial effects that:
designing a seller, a user and a cloud platform three-party framework, wherein the seller transmits pre-stored information including sales transaction information to the cloud platform, the cloud platform returns storage address information, a transaction order number and a seller tax number based on the received pre-stored information, the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and two-dimensional code image information is generated according to the seller data information; the user side obtains storage address information, a transaction order number and a seller tax number by scanning the two-dimensional code image information, and sends request information to the cloud platform; the cloud platform extracts pre-stored information based on request information sent by the user side and returns the pre-stored information to the invoicing terminal selected by the user side; finally, the invoicing terminal reads prestored information returned by the cloud platform and invoices; the cloud platform is introduced, the pre-stored information of the sales transaction information is stored in the database of the cloud platform, the two-dimensional code image information only comprises returned storage address information, a transaction order number and a seller tax number, the information only occupies one part of the storage capacity of the two-dimensional code image information, the two-dimensional code image is clearer and easy to identify due to less stored information amount, and the common problem in the process of scanning and issuing invoices due to the defects of the two-dimensional code in the prior art is effectively solved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Detailed Description
Preferred embodiments of the present invention will be described in more detail below. While the following describes preferred embodiments of the present invention, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The code scanning and electronic invoice issuing method based on the cloud service comprises the following steps:
the seller transmits pre-stored information including sales transaction information to the cloud platform, and the cloud platform returns storage address information, a transaction order number and a seller tax number based on the received pre-stored information;
the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and generates two-dimensional code image information according to the seller data information;
the user side scans and analyzes the two-dimensional code image information, obtains storage address information, a transaction order number and a seller tax number, and sends request information to the cloud platform;
the cloud platform extracts pre-stored information based on request information sent by the user side and returns the pre-stored information to the invoicing terminal selected by the user side;
and the billing terminal reads the prestored information returned by the cloud platform and issues an invoice.
Specifically, a seller, a user and a cloud platform are designed to form a three-party framework, the seller transmits pre-stored information including sales transaction information to the cloud platform, the cloud platform returns storage address information, a transaction order number and a seller tax number based on the received pre-stored information, the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and two-dimensional code image information is generated according to the seller data information; the user side obtains storage address information, a transaction order number and a seller tax number by scanning the two-dimensional code image information, and sends request information to the cloud platform; the cloud platform extracts pre-stored information based on request information sent by the user side and returns the pre-stored information to the invoicing terminal selected by the user side; finally, the invoicing terminal reads prestored information returned by the cloud platform and invoices; the cloud platform is introduced, the pre-stored information of the sales transaction information is stored in the database of the cloud platform, the two-dimensional code image information only comprises returned storage address information, a transaction order number and a seller tax number, the information only occupies a part of the storage capacity of the two-dimensional code image information, and the two-dimensional code image is clearer and is easy to identify due to less stored information amount.
Optionally, the pre-stored information includes user side information, vendor side information and transaction information.
Specifically, the user side information comprises a user side tax number, a user side name, a user side code number, a user side account opening bank, a user side bank account, a user side address and a user side telephone; the seller information comprises a seller tax number, a seller name, a seller code number, a seller account number, a seller address and a seller telephone; the transaction information includes a transaction order number, a commodity name, a specification model, a metering unit, a unit price, a quantity, a total price, a tax-containing amount, a tax-free amount, a rechecker and a sponsor.
Optionally, the seller transmits pre-stored information including sales transaction information to the cloud platform, and the cloud platform returns storage address information, a transaction order number, and a seller tax number based on the received pre-stored information, including:
the cloud platform determines whether the user side information is enterprise or personal, whether the user side information transmitted by the seller is complete or not is preprocessed, if the user side information is complete, the next step is carried out, and if the user side information is incomplete, information that the transmitted information fails is returned to the seller;
the cloud platform determines seller information, whether the seller information transmitted by the seller is complete or not is preprocessed, if the seller information is complete, the next step is carried out, and if the seller information is incomplete, information that the transmitted information fails is returned to the seller;
the cloud platform determines transaction information, whether the transaction information transmitted by preprocessing seller information is complete or not is preprocessed, if the transaction information is complete, the next step is carried out, and if the transaction information is incomplete, information that the transmitted information fails is returned to the seller;
and the cloud platform returns the storage address information, the transaction order number and the seller tax number to the seller.
Optionally, the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and generates two-dimensional code image information according to the seller data information:
a seller receives a transaction order number returned by the cloud platform;
a seller receives a seller tax number returned by the cloud platform;
a seller receives storage address information returned by the cloud platform;
the seller processes the received transaction order number, seller tax number and storage address information returned by the cloud platform to form seller data information;
and generating two-dimensional code image information according to the seller data information.
Optionally, generating the two-dimensional code image information according to the seller data information includes:
and sending the two-dimensional code image information to the user side through an e-mail or printing the two-dimensional code image information on a shopping list and delivering the two-dimensional code image information to the user side.
Optionally, the scanning and analyzing of the two-dimensional code image information by the user side, obtaining of the storage address information, the transaction order number and the seller tax number, and sending of the request information to the cloud platform includes:
and the user side sequentially analyzes character information in the two-dimensional code image information, wherein the character information comprises a transaction order number, a seller tax number, storage address information and invoicing terminal information.
Specifically, character information of a two-dimensional code image information center is analyzed, whether the analyzed character information is complete or not is judged, the complete character information comprises a transaction order number, a seller tax number, storage address information and billing terminal information, if the character information is complete, the next operation is carried out, and if the character information is incomplete, the information is returned and the information is failed.
Optionally, the extracting, by the cloud platform, pre-stored information based on the request information sent by the user side and returning the pre-stored information to the billing terminal selected by the user side includes:
the cloud platform receives the request information and extracts and returns a transaction order number;
the cloud platform receives the request information and extracts and returns the seller tax number;
and the cloud platform returns prestored information to the billing terminal.
Optionally, the invoicing terminal reads pre-stored information returned by the cloud platform, and invoicing includes:
the invoicing terminal reads the prestored information returned by the cloud platform and sends an invoicing instruction to an invoicing server or a single-machine tax control device to invoice;
the billing terminal comprises electronic equipment or a software system.
A code scanning and issuing electronic invoice system based on cloud services, comprising:
the sales-side equipment is used for acquiring pre-stored information including sales transaction information, transmitting the pre-stored information to the cloud platform, and forming seller data information from information returned from the cloud platform and generating two-dimensional code image information;
the user side equipment is used for scanning and analyzing the two-dimensional code image information and sending request information for extracting prestored information to the cloud platform;
the cloud platform is used for storing the transmitted pre-stored information, returning storage address information, a transaction order number and a seller tax number to the seller equipment, and extracting and returning the pre-stored information according to the request information of the client equipment;
and the invoicing terminal is used for reading the prestored information returned by the cloud platform and invoicing.
Examples
As shown in fig. 1, the invention provides a code scanning and electronic invoice issuing method based on cloud service, which includes:
and step S1, the seller transmits the pre-stored information including the sales transaction information to the cloud platform, and the cloud platform returns the storage address information, the transaction order number and the seller tax number based on the received pre-stored information.
The cloud platform determines whether the user side information is enterprise or personal, whether the user side information transmitted by the seller is complete or not is preprocessed, if the user side information is complete, the next step is carried out, and if the user side information is incomplete, information that the transmitted information fails is returned to the seller;
the cloud platform determines seller information, whether the seller information transmitted by the seller is complete or not is preprocessed, if the seller information is complete, the next step is carried out, and if the seller information is incomplete, information that the transmitted information fails is returned to the seller;
the cloud platform determines transaction information, whether the transaction information transmitted by preprocessing seller information is complete or not is preprocessed, if the transaction information is complete, the next step is carried out, and if the transaction information is incomplete, information that the transmitted information fails is returned to the seller;
and the cloud platform returns the storage address information, the transaction order number and the seller tax number to the seller.
And step S2, the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and two-dimensional code image information is generated according to the seller data information.
The seller receives a transaction order number returned by the cloud platform;
a seller receives a seller tax number returned by the cloud platform;
a seller receives storage address information returned by the cloud platform;
the seller processes the received transaction order number, seller tax number and storage address information returned by the cloud platform to form seller data information;
generating two-dimensional code image information according to seller data information;
generating two-dimensional code image information according to seller data information, and then:
and sending the two-dimensional code image information to the user side through an e-mail or printing the two-dimensional code image information on a shopping list and delivering the two-dimensional code image information to the user side.
And step S3, the user side scans and analyzes the two-dimensional code image information, obtains the storage address information, the transaction order number and the seller tax number, and sends request information to the cloud platform.
The user side sequentially analyzes character information in the two-dimensional code image information, wherein the character information comprises a transaction order number, a seller tax number, storage address information and invoicing terminal information.
And step S4, the cloud platform extracts pre-stored information based on the request information sent by the user side and returns the pre-stored information to the billing terminal selected by the user side.
The cloud platform receives the request information and extracts and returns a transaction order number;
the cloud platform receives the request information and extracts and returns the seller tax number;
and the cloud platform returns prestored information to the billing terminal.
And step S5, the invoicing terminal reads the prestored information returned by the cloud platform and invoices.
The billing terminal reads the prestored information returned by the cloud platform and sends a billing instruction to a billing server or a single-machine tax control device to bill;
the billing terminal comprises electronic equipment or a software system.
As shown in fig. 2, the present invention further provides a code scanning and issuing electronic invoice system based on cloud service, including: the sales-side equipment is used for acquiring pre-stored information including sales transaction information, transmitting the pre-stored information to the cloud platform, and forming seller data information from information returned from the cloud platform and generating two-dimensional code image information; the user side equipment is used for scanning and analyzing the two-dimensional code image information and sending request information for extracting prestored information to the cloud platform; the cloud platform is used for storing the transmitted pre-stored information, returning storage address information, a transaction order number and a seller tax number to the seller equipment, and extracting and returning the pre-stored information according to the request information of the client equipment; and the invoicing terminal is used for reading the prestored information returned by the cloud platform and invoicing.
In conclusion, a seller, a user and a cloud platform are designed to form a three-party framework, the seller transmits pre-stored information including sales transaction information to the cloud platform, the cloud platform returns storage address information, a transaction order number and a seller tax number based on the received pre-stored information, the seller forms seller data information according to the information returned by the cloud platform and the pre-stored information, and two-dimensional code image information is generated according to the seller data information; the user side obtains storage address information, a transaction order number and a seller tax number by scanning the two-dimensional code image information, and sends request information to the cloud platform; the cloud platform extracts pre-stored information based on request information sent by the user side and returns the pre-stored information to the invoicing terminal selected by the user side; finally, the invoicing terminal reads prestored information returned by the cloud platform and invoices; the cloud platform is introduced, the pre-stored information of the sales transaction information is stored in the database of the cloud platform, the two-dimensional code image information only comprises returned storage address information, a transaction order number and a seller tax number, the information only occupies a part of the storage capacity of the two-dimensional code image information, and the two-dimensional code image is clearer and is easy to identify due to less stored information amount.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.