Commodity receipt printing method, device and system
By adjusting the print head temperature and using personalized receipt templates, the problems of single receipt format and lack of prominence of key information were solved, improving user experience and efficiency and reducing costs.
Patent Information
- Application Number
- CN202510748226.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-09-12
AI Technical Summary
The current receipt format is single and key information is not prominent enough, which affects user experience and service efficiency.
By dynamically adjusting the print head temperature, the receipt can be made to appear in different colors, using different colors to emphasize key information, and using personalized receipt templates based on the merchant logo.
It improves the visual experience and information recognition efficiency of receipts, meets the personalized needs of various merchants, and reduces costs.
Smart Images

Figure CN120631279A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer processing technology, and in particular to a method, device and system for printing commodity receipts. Background Art
[0002] Online shopping has become a part of daily life, especially food delivery services. As a key form of online shopping, food delivery services have greatly facilitated people's lives. After a user places an order through an online platform, the merchant prepares the corresponding meal and includes a receipt. The receipt is a paper document that records the customer's order details, typically including but not limited to the product name, quantity, price, order number, and special requests. It serves as crucial proof of transaction between the merchant and the consumer and serves as a crucial basis for delivery personnel.
[0003] The current receipt format is relatively simple, and key information is not prominent enough. Information that is crucial to customers and delivery personnel, such as order number, special notes (such as garlic with heads), estimated delivery time, etc., is often submerged in a large amount of ordinary text and is difficult to quickly identify, affecting user experience and service efficiency.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the Invention
[0005] The present disclosure provides a method, device and system for printing commodity receipts, which at least to a certain extent overcome the problems in the related art of single receipt format and insufficient prominence of key information.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.
[0007] According to one aspect of the present disclosure, a method for printing a product receipt is provided, which is executed by a first server, and the method includes: receiving order information from a second server, the order information is sent to the second server when a user places an order to purchase a product from a first merchant on a second client, and the order information includes the merchant identifier of the first merchant and the order content; obtaining a receipt template associated with the printing device of the first merchant based on the merchant identifier query, the receipt template records configuration information of multiple elements in the receipt, the multiple elements correspond to the order content, the configuration information includes the color of each element, and different colors correspond to different temperature identification codes; generating a printing instruction based on the receipt template and the order content, the printing instruction including the order content corresponding to each element in the receipt, and the temperature identification code corresponding to each element; sending the printing instruction to the printing device of the first merchant, so that the printing device of the first merchant adjusts the print head temperature based on the temperature identification code corresponding to each element to print the order content corresponding to the element.
[0008] According to another aspect of the present disclosure, a method for printing a commodity receipt is provided, which is executed by a first client, and the method includes: displaying a receipt configuration interface, the receipt configuration interface including multiple elements in the receipt and a confirmation submission control, and some of the multiple elements are associated with a first color option and a second color option; in response to a user's selection operation of the first color option or the second color option of some of the multiple elements, adjusting the receipt template corresponding to the printing device of the first merchant, the receipt template recording configuration information of multiple elements in the receipt, the multiple elements corresponding to the order content, the configuration information including the color of each element, and different colors corresponding to different print head temperatures; in response to the selection operation of the confirmation submission control, sending a template update to the first server. Request, the template update request carries the adjusted receipt template corresponding to the printing device of the first merchant, so that when the first server receives the order information from the first merchant, it generates a printing instruction based on the receipt template and the order content in the order information and sends it to the printing device of the first merchant; wherein, when the user places an order on the second client to purchase the goods of the first merchant, the order information is sent to the second server, and the second server sends the order information to the first server, and the order information includes the merchant identification and order content of the first merchant; the printing instruction includes the order content corresponding to each element in the receipt, and the print head temperature corresponding to each element; the printing device of the first merchant prints the order content corresponding to each element based on the print head temperature corresponding to each element.
[0009] According to another aspect of the present disclosure, there is provided a commodity receipt printing device, comprising:
[0010] A communication module is configured to communicate with the first server and receive a print instruction from the first server, the print instruction being generated by the first server based on the receipt template and order content, the print instruction including the order content corresponding to each element in the receipt and the temperature identification code corresponding to each element; the order content being from the order information of the second server, the order information also including the merchant identification of the first merchant, and the receipt template being obtained by the first server based on a query of the merchant identification; the receipt template recording configuration information of multiple elements in the receipt, the multiple elements corresponding to the order content, the configuration information including the color of each element, with different colors corresponding to different temperature identification codes;
[0011] a control module for adjusting the temperature of the print head based on a temperature identification code corresponding to each element;
[0012] a printing module, configured to print order content corresponding to the element based on the print head temperature adjusted by the control module;
[0013] Broadcast module, used to broadcast order content;
[0014] The interaction module is used to interact with the user, obtain the user's input information and send it to the control module for processing;
[0015] The code scanning module is used to scan the QR code and send the scanned content to the control module for processing.
[0016] According to another aspect of the present disclosure, a commodity receipt printing system is provided, comprising:
[0017] The first client is configured to send a device binding request to the first server, where the device binding request carries a merchant identifier and a device identifier of a printing device;
[0018] The first server is configured to store the binding relationship between the merchant identifier and the device identifier, and after receiving the receipt template from the first client, store the binding relationship between the merchant identifier, the device identifier, and the receipt template;
[0019] The second client is used to send order information to the second server when the user places an order to purchase goods from the first merchant, the order information including the merchant identifier of the first merchant and the order content;
[0020] The second server is used to send the order information to the first server;
[0021] The first server is configured to query, based on the merchant identifier, a receipt template associated with the first merchant's printing device, the receipt template recording configuration information of multiple elements in the receipt, the multiple elements corresponding to order content, the configuration information including the color of each element, with different colors corresponding to different print head temperatures; generate a print instruction based on the receipt template and the order content, the print instruction including the order content corresponding to each element in the receipt and the temperature identification code corresponding to each element; and send the print instruction to the first merchant's printing device;
[0022] Multiple printing devices, including a printing device of a first merchant; the printing device of the first merchant adjusts the temperature of a print head based on a temperature identification code corresponding to each element to print order content corresponding to the element.
[0023] According to another aspect of the present disclosure, an electronic device is provided, including: a memory for storing instructions; and a processor for calling the instructions stored in the memory to implement the above-mentioned commodity receipt printing method.
[0024] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the above-mentioned commodity receipt printing method is implemented.
[0025] According to another aspect of the present disclosure, a computer program product is provided. The computer program product stores instructions, and when the instructions are executed by a computer, the computer implements the above-mentioned commodity receipt printing method.
[0026] According to another aspect of the present disclosure, a chip is provided, comprising at least one processor and an interface; the interface is used to provide program instructions or data to the at least one processor; and the at least one processor is used to execute program instructions to implement the above-mentioned commodity receipt printing method.
[0027] The merchandise receipt printing method, device, and system provided by the embodiments of the present disclosure dynamically adjust the temperature of the print head so that different colors can be presented on the receipt, making the visual presentation of the receipt richer and the forms more diverse, thereby enhancing the user's visual experience; color differences can also be used to emphasize key information on the receipt, such as order numbers, special instructions, or delivery requirements, making this information more eye-catching on the receipt, allowing customers and delivery personnel to identify and locate important information more quickly, thereby helping to improve work efficiency and service quality; in addition, using different receipt templates according to different merchant logos can meet the personalized needs of each merchant for receipt format, content, and visual presentation, thereby increasing flexibility and adaptability.
[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0030] Obviously, the drawings described below are only some embodiments of the present disclosure. A person skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0031] Figure 1 A schematic diagram of an application scenario in an embodiment of the present disclosure is shown;
[0032] Figure 2 A flow chart of a method for printing a commodity receipt according to an embodiment of the present disclosure is shown;
[0033] Figure 3 A flow chart of another method for printing a commodity receipt according to an embodiment of the present disclosure is shown;
[0034] Figure 4 Shows a flowchart of updating a receipt template in an embodiment of the present disclosure;
[0035] Figure 5 A schematic diagram of a receipt configuration interface in an embodiment of the present disclosure is shown;
[0036] Figure 6 A schematic diagram of a receipt configuration interface in an embodiment of the present disclosure is shown;
[0037] Figure 7 A schematic diagram of a receipt configuration interface in an embodiment of the present disclosure is shown;
[0038] Figure 8 A flow chart of another method for printing a commodity receipt according to an embodiment of the present disclosure is shown;
[0039] Figure 9 A flow chart of another method for printing a commodity receipt according to an embodiment of the present disclosure is shown;
[0040] Figure 10 A schematic diagram of a commodity receipt printing device according to an embodiment of the present disclosure is shown;
[0041] Figure 11 A schematic diagram of a commodity receipt printing system according to an embodiment of the present disclosure is shown;
[0042] Figure 12 A schematic diagram of a commodity receipt printing system according to an embodiment of the present disclosure is shown;
[0043] Figure 13 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the disclosure for which protection is sought, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.
[0045] Figure 1 A schematic diagram of an application scenario that can be used to implement the product receipt printing method and system of the embodiment of the present disclosure is shown. The application scenario can be an Internet-based takeaway ordering application scenario.
[0046] The printing device 101 is a commodity receipt printing device, which may include a printing module and a communication module, wherein the communication module is used to connect to a network.
[0047] The user terminal 102 may have a first client, which may be used to configure relevant functions of the printing device 101. The first client may have a corresponding first server, which may be deployed on the server 103. The user terminal 102 may communicate with the server 103 via a network to implement data exchange.
[0048] User terminal 104 has a second client installed on it, through which the user can shop online. The second client can be a takeout ordering app. The second client can have a corresponding second server, which can be deployed on server 105. User terminal 104 can communicate with server 105 via a network to exchange data.
[0049] In some embodiments, the second server may also be associated with a third client, which may be a merchant client in a takeaway ordering scenario. The third client may be installed on the user terminal 106. In some embodiments, the first client and the third client may be installed on the same user terminal.
[0050] In some embodiments, the second server may also be associated with a fourth client, which may be a rider client in a takeaway ordering scenario. The fourth client may be installed on the user terminal 107.
[0051] It should be noted that the above-mentioned clients (including the first client, the second client, the third client and the fourth client) can be local applications, web applications, or lightweight applications such as mini-programs, which are not limited here.
[0052] The above-mentioned servers (including server 103 and server 105) can be integrated servers, distributed servers in a computer data center, cloud servers, or server clusters deployed in the cloud.
[0053] In some embodiments, a merchant can bind a printing device to a merchant ID through a first client. When a user places a takeout order through a second client, the order notification is first sent to the second server, then synchronized to the first server, and the order information is pushed to the printing device. The printing device then prints a receipt in response to the print instruction.
[0054] The inventors discovered that the receipts printed by the printing devices in the aforementioned scenarios are relatively simple, mostly in black and white, making important information less visible. Printing important information in other colors to achieve multi-color printing would require replacing the printer, which is costly. Through research, the inventors discovered that by changing the temperature of the printer's print head, the receipt paper can be made to appear in different colors, thus enabling at least two-color printing on receipts.
[0055] Below Figure 1 Taking the scenario as an example, various embodiments of the commodity receipt printing method involved in the present disclosure are explained.
[0056] It should be noted that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the type, scope of use, and usage scenarios of the personal information involved in this disclosure and their authorization should be obtained in accordance with relevant laws and regulations. It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of relevant laws and regulations and relevant provisions.
[0057] Figure 2 A flow chart of a method for printing a commodity receipt according to an embodiment of the present disclosure is shown. Figure 2 As shown, the commodity receipt printing method provided in the embodiment of the present disclosure includes S201-S205.
[0058] In S201, the second server sends order information to the first server.
[0059] Order information is sent to the second server when a user places an order for a product from the first merchant on the second client. This order information includes the first merchant's merchant ID and the order details. The order details include the store name, estimated delivery time, order time, order number, product name, quantity, price, address, and contact information.
[0060] In S202, the first server obtains a receipt template associated with the first merchant's printing device based on the merchant identification query.
[0061] The receipt template records the configuration information of multiple elements in the receipt. Multiple elements correspond to the order content. The configuration information includes the color of each element. Different colors correspond to different temperature identification codes.
[0062] Elements correspond to the order details described above, such as the store name, estimated delivery time, order time, order number, product name, quantity and price, address, and contact information. The configuration information specifies the color of each element when printing the receipt. Different colors can be represented by different temperature codes. The printing device uses different print head temperatures to print different colors on the receipt.
[0063] In S203, the first server generates a printing instruction based on the receipt template and the order content.
[0064] The print instruction includes the order details corresponding to each element on the receipt and the temperature identification code corresponding to each element. In some embodiments, an element may correspond to two colors, namely a first color and a second color. The first color may be a conventional color, such as black, and the second color may be a color different from the conventional color. In some embodiments, the temperature identification code corresponding to the first color may be blank, and the temperature identification code corresponding to the second color may be 1. In some embodiments, the print head temperature corresponding to the second color is higher than the print head temperature corresponding to the first color.
[0065] In S204, the first server sends the printing instruction to the printing device of the first merchant.
[0066] In S205 , the printing device of the first merchant adjusts the temperature of the print head based on the temperature identification code corresponding to each element to print the order content corresponding to the element.
[0067] In some embodiments, the printing paper of the printing device of the first merchant is thermal paper; the temperature identification code corresponding to the first color can be empty, and the temperature identification code corresponding to the second color can be 1. If the temperature identification code is empty, the print head temperature of the printing device is normal temperature, and the normal temperature is lower than or equal to the preset temperature. At this time, the color printed by the print head is the first color; when the printing device recognizes that the temperature identification code is 1, it increases the temperature of the print head to exceed the preset temperature, and then makes the color of the printed content the second color.
[0068] The disclosed embodiment can dynamically adjust the temperature of the print head to enable different colors to appear on the receipt, which is lower in cost than color printers. In addition, by using different receipt templates according to different merchant logos, it can meet the personalized needs of each merchant for receipt format, content, and visual presentation, thereby increasing flexibility and adaptability.
[0069] Figure 3 A flow chart of a method for printing a commodity receipt according to an embodiment of the present disclosure is shown. Figure 3 As shown, the commodity receipt printing method provided in the embodiment of the present disclosure includes S301-S309, wherein S305-S309 are similar to the above S201-S205 and will not be repeated here.
[0070] In S301, the first client sends a device binding request to the first server, where the device binding request carries a merchant identifier and a device identifier of a printing device;
[0071] In S302, the first server stores the binding relationship between the merchant identifier and the device identifier;
[0072] In S303, the first client sends a receipt template to the first server, carrying the merchant ID;
[0073] In S304, the binding relationship between the merchant ID, the device ID and the receipt template is stored.
[0074] In the disclosed embodiment, merchants can independently bind with the printing device and set the receipt template, so that the printed content is more in line with the merchant's needs and improve the merchant's experience.
[0075] In some embodiments, the user can also update the receipt template through the first client, thereby modifying the settings in the receipt template. Figure 4 As shown, the above method may further include S401-S402.
[0076] In S401, the first client sends a template update request to the first server, where the template update request carries a merchant identifier and a new receipt template;
[0077] In S402, the first server updates the receipt template in the binding relationship between the merchant identifier, the device identifier, and the receipt template based on the merchant identifier and the new receipt template.
[0078] In the disclosed embodiment, merchants can independently adjust the receipt template according to actual needs and update the receipt template through the first client, so that the printed receipt better meets the merchant's needs and improves the merchant's experience.
[0079] In some embodiments, when a merchant sets a receipt template through the first client, the first client displays a receipt configuration interface, which includes multiple elements in the receipt and a confirmation submission control, and some of the multiple elements are associated with a first color option and a second color option. In some embodiments, the receipt configuration interface can be as follows: Figure 5 As shown, the receipt configuration interface is used to configure elements such as store name, estimated delivery time, order time and order number. Some elements are associated with the first color option and the second color option, for example, the store name is associated with the first color option 501 and the second color option 502.
[0080] In some embodiments, the first color option and the second color option are mutually exclusive options, and the first color option is the default option; the printing paper of the first merchant's printing device is thermal paper, and the print head temperature corresponding to the second color option is higher than the print head temperature corresponding to the first color option.
[0081] In some embodiments, the first client adjusts the receipt template corresponding to the first merchant's printing device in response to the user's selection of the first color option or the second color option for some of the multiple elements. The receipt template records the configuration information of multiple elements in the receipt. The multiple elements correspond to the order content. The configuration information includes the color of each element. Different colors correspond to different print head temperatures. Figure 5 As shown, the receipt configuration interface also includes a confirmation submission control 503. The first client also sends a template update request to the first server in response to the selection operation of the confirmation submission control 503. The template update request carries the adjusted receipt template corresponding to the printing device of the first merchant, so that when the first server receives the order information from the first merchant, it generates a printing instruction based on the receipt template and the order content in the order information and sends it to the printing device of the first merchant; wherein, when the user places an order to purchase the goods of the first merchant on the second client, the order information is sent to the second server, and the second server sends the order information to the first server, and the order information includes the merchant identification and order content of the first merchant; the printing instruction includes the order content corresponding to each element in the receipt, and the print head temperature corresponding to each element; the printing device of the first merchant prints the order content corresponding to each element based on the print head temperature corresponding to each element.
[0082] In some embodiments, each element is associated with a switch control, which is used to control whether the element associated with the switch control is displayed on the receipt. When the switch control is in the on state, it means that the element associated with the switch control is displayed on the receipt, and when the switch control is in the off state, it means that the element associated with the switch control is not displayed on the receipt. In the disclosed embodiments, merchants can set the elements that need to be displayed and the elements that do not need to be displayed on the receipt by themselves, so that the printed receipt better meets the needs of the merchant and improves the user experience.
[0083] In some embodiments, the user can also adjust the position of multiple elements in the receipt template in the receipt configuration interface, for example, by dragging and dropping the elements in the receipt template. That is, the first client adjusts the position of the elements in the receipt in response to the dragging operation on the elements in the receipt configuration interface. Figure 5 As shown, each element in the receipt configuration interface corresponds to a configuration box 504, and the user can adjust the position of each element by dragging the corresponding configuration box 504. The position of each element in the receipt template corresponds to the position of the printed receipt.
[0084] In the disclosed embodiment, merchants can set the position of each element by themselves, thereby making the form of the receipt more diverse and improving the user's visual experience. In addition, the color differences of the various elements in the receipt can better emphasize the key information on the receipt, making this information more eye-catching on the receipt. Customers and delivery personnel can identify and locate important information more quickly, which helps to improve work efficiency and service quality.
[0085] In some embodiments, each element is associated with a style box 505, which includes schematic content. The color of the schematic content is associated with the option of the color option. That is, by default, the color option is the first color option. At this time, the color of the schematic content in the style box 505 is the first color. Subsequently, the first client can change the schematic content in the style box 505 associated with the element from the first color to the second color in response to the selection operation of the second color option associated with the element.
[0086] The disclosed embodiment allows users to see color changes in real time through the schematic content in the style box, reducing the probability of selecting the wrong color, making it more convenient for users to configure receipt templates, and improving user experience.
[0087] In some embodiments, each element in the receipt configuration interface may also be associated with a font size adjustment control, and the first client may adjust the text size of the schematic content in the style box associated with the element in response to an adjustment operation on the font size adjustment control. Figure 6 As shown, each element is associated with a font size adjustment control 601, and the user can adjust the font size adjustment control 601 by moving it. In some embodiments, after the user sets the font size adjustment control 601, the schematic content in the style box 602 also changes accordingly, allowing the user to see the change in font size in real time, making it easier to configure the receipt template and improving the user experience.
[0088] In some embodiments, the receipt configuration interface further includes a receipt preview control and / or a restore monochrome control; the receipt preview control is used to preview the product receipt corresponding to the adjusted receipt template; the restore monochrome control is used to set the color of all elements to the first color. Figure 7 As shown, the receipt configuration interface includes a receipt preview control 701, a restore monochrome control 702, and a confirm submission control 703. It is understandable that the restore monochrome control 702 can also be called a restore default setting control. In some embodiments, the receipt configuration interface includes a restore multicolor control 704. In other words, the disclosed embodiment can switch between monochrome and multicolor by restoring the monochrome control 702 and the restore multicolor control 704. The restore multicolor control 704 can be used to restore the multicolor color configuration set last time.
[0089] In some embodiments, after the user clicks the above-mentioned receipt preview control 701, a preview window can be displayed, which includes a main display area, a monochrome mode option and a two-color mode option; the main display area is used to display the product receipt corresponding to the current receipt template; the monochrome mode option and the two-color mode option are mutually exclusive options, the monochrome mode option is used to adjust the product receipt displayed in the main display area to monochrome mode, and the two-color mode option is used to adjust the product receipt displayed in the main display area to two-color mode.
[0090] In the embodiment of the present disclosure, users can preview the receipt template through the receipt preview control, so that users can understand their settings more intuitively and improve the user experience; in addition, users can also restore the default monochrome settings through the restore monochrome control, without the need to adjust one by one, which is more convenient.
[0091] In some embodiments, the receipt template is also associated with a platform identifier; the order information may also carry a platform identifier; the above-mentioned receipt template associated with the printing device of the first merchant obtained based on the merchant identifier query can be the first merchant's transaction platform printing configuration information associated with the platform identifier obtained based on the merchant identifier and the platform identifier query, and the printing configuration information records multiple categories of receipt templates associated with the first merchant and information on whether each category needs to be printed; from the printing configuration information, the receipt template of the category that the first merchant needs to print is obtained.
[0092] In this embodiment, the first client can also set different receipt templates for different platforms, for example, setting a first receipt template for a first food delivery platform and a second receipt template for a second food delivery platform. In other words, the first server can receive order information not only from the second server but also from a third server, where the second server is the server for the first food delivery platform and the third server is the server for the second food delivery platform.
[0093] There are multiple types of receipts associated with each food delivery platform, and users can choose the category of receipts that need to be printed, and each category can correspond to a receipt template. In the above embodiment, the first server can find the printing configuration information of the merchant based on the merchant identification, and then determine the category of receipts that the merchant needs to print and the receipt template corresponding to each category based on the printing configuration information, and then fill in each receipt template according to the order information, and send a printing instruction. In some embodiments, the categories of receipts may include merchant copy, kitchen copy, user copy and delivery copy. In the embodiment of the present disclosure, users can choose the category of receipts that need to be printed and the quantity that needs to be printed.
[0094] In some embodiments, the multiple elements in the above-mentioned receipt template may include product name, product quantity, etc., wherein it can support printing the product quantity in the second color and the product name in the first color.
[0095] In some embodiments, the multiple elements in the above-mentioned receipt template may further include a merchant logo (eg, a logo image, a merchant logo image), and the disclosed embodiment may print the logo image in a second color.
[0096] Figure 8 A method for printing a small receipt for a product according to an embodiment of the present disclosure is shown. The method for printing a small receipt for a product is executed by a first server. Figure 8 As shown, the product receipt printing method includes S801-S804.
[0097] In S801, order information is received from the second server. The order information is sent to the second server when a user places an order to purchase goods from a first merchant on a second client. The order information includes the merchant ID of the first merchant and the order content.
[0098] In S802, a receipt template associated with the first merchant's printing device is obtained based on the merchant identifier. The receipt template records configuration information of multiple elements in the receipt. The multiple elements correspond to the order content. The configuration information includes the color of each element. Different colors correspond to different temperature identification codes.
[0099] In S803, based on the receipt template and the order content, a printing instruction is generated. The printing instruction includes the order content corresponding to each element in the receipt and the temperature identification code corresponding to each element;
[0100] In S804, a printing instruction is sent to the printing device of the first merchant, so that the printing device of the first merchant adjusts the temperature of the print head based on the temperature identification code corresponding to each element to print the order content corresponding to the element.
[0101] Figure 9 A method for printing a small receipt for a product according to an embodiment of the present disclosure is shown. The method for printing a small receipt for a product is executed by a first client. Figure 9 As shown, the product receipt printing method includes S901-S903.
[0102] In S901, a receipt configuration interface is displayed, which includes multiple elements in the receipt and a confirmation submission control, and some of the multiple elements are associated with a first color option and a second color option;
[0103] In S902, in response to a user selecting a first color option or a second color option for some of the multiple elements, a receipt template corresponding to the printing device of the first merchant is adjusted, where the receipt template records configuration information of multiple elements in the receipt, the multiple elements corresponding to order content, the configuration information including the color of each element, and different colors corresponding to different print head temperatures;
[0104] In S903, in response to the selection of the confirm submit control, a template update request is sent to the first server. The template update request carries the adjusted receipt template corresponding to the first merchant's printing device, so that when the first server receives the order information from the first merchant, it generates a printing instruction based on the receipt template and the order content in the order information and sends the printing instruction to the first merchant's printing device.
[0105] Among them, when a user places an order to purchase goods from the first merchant on the second client, the order information is sent to the second server, and the second server sends the order information to the first server. The order information includes the merchant identification and order content of the first merchant; the printing instruction includes the order content corresponding to each element in the receipt, and the print head temperature corresponding to each element; the first merchant's printing device prints the order content corresponding to each element based on the print head temperature corresponding to each element.
[0106] In the embodiments of the present disclosure, the terms “first,” “second,” and “third” are used for descriptive purposes only and should not be understood as indicating or implying relative importance.
[0107] In this disclosure, the term "and / or" simply describes an association relationship between related objects, indicating that three possible relationships exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the related objects are in an "or" relationship.
[0108] Furthermore, although the steps of the methods of the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in this particular order, or that all illustrated steps must be performed to achieve desired results.
[0109] In some embodiments, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0110] Based on the same inventive concept, the present disclosure also provides a product receipt printing device, such as Figure 10 As shown, the product receipt printing device includes a communication module 1001, a control module 1002, a printing module 1003, a broadcast module 1004, an interaction module 1005 and a code scanning module 1006.
[0111] The communication module 1001 is used to connect to the network, communicate with the first server and the second server, and communicate with the first client. The control module 1002 is used to process data. The printing module 1003 is used to print the order receipt. The broadcast module 1004 is used to broadcast the order information. The interaction module 1005 is used to interact with the user. The code scanning module 1006 is used to scan the QR code and can be used in the food delivery link of the order. In some embodiments, the interaction module 1005 can be one or more buttons. In some embodiments, the interaction module 1005 can be a touch screen. In some embodiments, the interaction module 1005 can also be a voice interaction module.
[0112] In some embodiments, the communication module 1001 is used to communicate with the first server and receive a printing instruction from the first server. The printing instruction is generated by the first server based on the receipt template and the order content. The printing instruction includes the order content corresponding to each element in the receipt and the temperature identification code corresponding to each element; the order content comes from the order information of the second server, and the order information also includes the merchant identification of the first merchant. The receipt template is obtained by the first server based on the merchant identification query; the receipt template records the configuration information of multiple elements in the receipt, and the multiple elements correspond to the order content. The configuration information includes the color of each element, and different colors correspond to different temperature identification codes; the control module 1002 is used to adjust the print head temperature based on the temperature identification code corresponding to each element; the printing module 1003 is used to print the order content corresponding to the element based on the print head temperature adjusted by the control module.
[0113] In some embodiments, the announcement module 1004 is used to announce the order content.
[0114] In some embodiments, the interaction module 1005 is used to interact with the user, obtain user input information and send it to the control module for processing. The code scanning module 1006 is used to scan the QR code and send the scanned content to the control module for processing.
[0115] In some embodiments, after the rider arrives at the store, he can pick up the meal by scanning the code in the code scanning module 1006. After the code scanning module 1006 scans the rider's QR code, it sends the information to the control module 1002. The control module 1002 sends the progress information of the meal picked up to the first server and / or the second server through the communication module 1001, so that the second server synchronizes the message to the user. In some embodiments, if the user chooses to pick up the meal in the store, the user can pick up the meal by scanning the code in the code scanning module 1006 after arriving at the store. After the code scanning module 1006 scans the user's QR code, it sends the information to the control module 1002. The control module 1002 sends the progress information of the meal picked up to the first server and / or the second server through the communication module 1001, so that the second server synchronizes the message to the user.
[0116] In some embodiments, the order-taking device may further include a display module that can be used to display the order details. Regarding the merchandise receipt printing apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the merchandise receipt printing method and will not be further elaborated here.
[0117] Based on the same inventive concept, the present disclosure also provides a commodity receipt printing system, such as Figure 11 As shown, the commodity receipt printing system includes a first server 1101, a second server 1102, a printing device 1103, a second client 1104, and a first client 1105.
[0118] The first client 1105 is configured to send a device binding request to the first server, where the device binding request carries a merchant identifier and a device identifier of a printing device;
[0119] The first server 1101 is configured to store the binding relationship between the merchant identifier and the device identifier, and after receiving the receipt template from the first client, store the binding relationship between the merchant identifier, the device identifier, and the receipt template;
[0120] The second client 1104 is used to send order information to the second server when the user places an order to purchase goods from the first merchant. The order information includes the merchant identifier of the first merchant and the order content.
[0121] The second server 1102 is used to send the order information to the first server 1101.
[0122] The first server 1101 is used to obtain the receipt template associated with the first merchant's printing device 1103 based on the merchant identification query. The receipt template records the configuration information of multiple elements in the receipt. The multiple elements correspond to the order content. The configuration information includes the color of each element. Different colors correspond to different print head temperatures; based on the receipt template and the order content, a printing instruction is generated. The printing instruction includes the order content corresponding to each element in the receipt and the temperature identification code corresponding to each element; and the printing instruction is sent to the printing device of the first merchant.
[0123] The product receipt printing system may include multiple printing devices, including at least the first merchant's printing device 1103; the first merchant's printing device 1103 adjusts the print head temperature based on the temperature identification code corresponding to each element to print the order content corresponding to the element.
[0124] Figure 12 A product receipt printing system is shown, which includes a first server 1101, a second server 1202, a printing device 1203, a second client 1204, a first client 1205, a third client 1206, and a fourth client 1207. The first server 1201, the second server 1202, the printing device 1203, and the second client 1204 are similar to those described above and are not described again here.
[0125] The first client 1205 is used to send a device binding request to the first server 1201, and the device binding request carries the merchant identifier and the device identifier of the printing device; the first server 1201 stores the binding relationship between the merchant identifier, the device identifier and the receipt template; the first server is also used to store the binding relationship between the merchant identifier, the device identifier and the receipt template after receiving the receipt template from the first client.
[0126] The third client 1206 may be a merchant client in a takeaway ordering scenario, and the fourth client 1107 may be a rider client in a takeaway ordering scenario.
[0127] The concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0128] Regarding the commodity receipt printing system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the commodity receipt printing method, and will not be elaborated here.
[0129] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such division is not mandatory.
[0130] In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0131] Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0132] Refer to the following Figure 13 To describe the electronic device provided by the embodiment of the present disclosure. Figure 13 The electronic device 1300 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0133] Figure 13 FIG. 1 shows a schematic diagram of the architecture of an electronic device 1300 provided by an embodiment of the present disclosure. Figure 13 As shown, the electronic device 1300 includes but is not limited to: at least one processor 1310 and at least one memory 1320.
[0134] The memory 1320 is used to store instructions.
[0135] In some embodiments, the memory 1320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 13201 and / or a cache 13202 , and may further include a read-only memory unit (ROM) 13203 .
[0136] In some embodiments, the memory 1320 may also include a program / utility 13204 having a set (at least one) of program modules 13205, such program modules 13205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0137] In some embodiments, the memory 1320 may store an operating system, which may be a real-time operating system (RTX), LINUX, UNIX, WINDOWS, or OS X.
[0138] In some embodiments, data may also be stored in the memory 1320 .
[0139] As an example, the processor 1310 may read data stored in the memory 1320 . The data may be stored at the same storage address as the instruction, or the data may be stored at a different storage address than the instruction.
[0140] The processor 1310 is configured to call instructions stored in the memory 1320 to implement the steps of various exemplary embodiments of the present disclosure described in the "Exemplary Methods" section above. For example, the processor 1310 may execute the steps of the above-described method for printing a product receipt.
[0141] It should be noted that the processor 1310 may be a general-purpose processor or a dedicated processor. The processor 1310 may include one or more processing cores, and the processor 1310 executes various functional applications and data processing by running instructions.
[0142] In some embodiments, the processor 1310 may include a central processing unit (CPU) and / or a baseband processor.
[0143] In some embodiments, the processor 1310 may determine an instruction based on the priority identifier and / or function category information carried in each control instruction.
[0144] In the present disclosure, the processor 1310 and the memory 1320 may be provided separately or integrated together.
[0145] As an example, the processor 1310 and the memory 1320 may be integrated on a single board or a system on chip (SOC).
[0146] like Figure 13 As shown, the electronic device 1300 is in the form of a general-purpose computing device. The electronic device 1300 may further include a bus 1330 .
[0147] The bus 1330 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0148] The electronic device 1300 may also communicate with one or more external devices 1340 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1300, and / or any device that enables the electronic device 1300 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication may occur through an input / output (I / O) interface 1350.
[0149] Furthermore, the electronic device 1300 can also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through the network adapter 1360 .
[0150] like Figure 13 As shown, the network adapter 1360 communicates with other modules of the electronic device 1300 via the bus 1330 .
[0151] It should be understood that although not shown in the figures, other hardware and / or software modules may be used in conjunction with the electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0152] It is understood that the structure shown in the embodiment of the present disclosure does not constitute a specific limitation on the electronic device 1300. In other embodiments of the present disclosure, the electronic device 1300 may include Figure 13 More or fewer components may be shown, or some components may be combined or separated, or the components may be arranged differently. Figure 13 The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0153] The present disclosure also provides a computer-readable storage medium having computer instructions stored thereon. When the computer instructions are executed by a processor, the commodity receipt printing method described in the above method embodiment is implemented.
[0154] The computer-readable storage medium in the embodiments of the present disclosure is a computer instruction that can be sent, propagated or transmitted for use by or in conjunction with an instruction execution system, apparatus or device.
[0155] As an example, computer readable storage media are non-volatile storage media.
[0156] In some embodiments, more specific examples of computer-readable storage media in the present disclosure may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, a USB flash drive, a mobile hard disk, or any suitable combination of the foregoing.
[0157] In the embodiments of the present disclosure, the computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer instructions (readable program codes).
[0158] Such a propagated data signal may take any of a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof.
[0159] In some examples, computing instructions contained on a computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0160] The present disclosure also provides a computer program product that stores instructions. When the instructions are executed by a computer, the computer implements the commodity receipt printing method described in the above method embodiment.
[0161] The above instructions may be program codes. In specific implementation, the program codes may be written in any combination of one or more programming languages.
[0162] Programming languages include object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages.
[0163] The program code may execute entirely on the user's computing device, partly on the user's computing device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server.
[0164] Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0165] The embodiment of the present disclosure further provides a chip, comprising at least one processor and an interface;
[0166] An interface for providing program instructions or data to at least one processor;
[0167] At least one processor is used to execute program instructions to implement the commodity receipt printing method described in the above method embodiment.
[0168] In some embodiments, the chip may further include a memory for storing program instructions and data, and the memory may be located inside or outside the processor.
[0169] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, which may be collectively referred to herein as a "circuit," "module," or "system."
[0170] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein.
[0171] This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.
Claims
1. A method for printing a commodity receipt, characterized in that: The method is executed by the first server, and the method includes: Receiving order information from the second server, the order information is sent to the second server when a user places an order to purchase goods from the first merchant on the second client, the order information including at least the merchant identifier of the first merchant and order details; Obtaining a receipt template associated with the printing device of the first merchant based on the merchant identifier, wherein the receipt template records configuration information of multiple elements in the receipt, the multiple elements corresponding to the order content, and the configuration information including the color of each element, where different colors correspond to different temperature identification codes; Generate a printing instruction based on the receipt template and the order content, the printing instruction including the order content corresponding to each element in the receipt and the temperature identification code corresponding to each element; The printing instruction is sent to the printing device of the first merchant, so that the printing device of the first merchant adjusts the print head temperature based on the temperature identification code corresponding to each element to print the order content corresponding to the element.
2. The method according to claim 1, characterized in that Before receiving the order information from the second server, the method further includes: Receive a device binding request, the device binding request carrying a merchant identifier and a device identifier of a printing device; Storing the binding relationship between the merchant identifier and the device identifier; A receipt template is received from a first client, and a binding relationship among the merchant identifier, the device identifier, and the receipt template is stored.
3. The method according to claim 2, characterized in that The receipt template is also associated with a platform identifier; the order information also carries a platform identifier; and the query based on the merchant identifier to obtain the receipt template associated with the printing device of the first merchant includes: Obtaining printing configuration information of the first merchant for the transaction platform associated with the platform identifier based on the merchant identifier and the platform identifier, wherein the printing configuration information records multiple categories of receipt templates associated with the first merchant and information on whether each category needs to be printed; From the printing configuration information, obtain a receipt template of the category that the first merchant needs to print.
4. A method for printing a commodity receipt, characterized in that: The method is performed by a first client, and includes: Displaying a receipt configuration interface, wherein the receipt configuration interface includes multiple elements in the receipt and a confirmation submission control, wherein some of the multiple elements are associated with a first color option and a second color option; In response to a user selecting the first color option or the second color option for some of the multiple elements, adjusting a receipt template corresponding to a printing device of the first merchant, wherein the receipt template records configuration information of multiple elements in the receipt, the multiple elements corresponding to order content, the configuration information including the color of each element, and different colors corresponding to different print head temperatures; In response to a selection operation on the confirmation submit control, a template update request is sent to the first server, the template update request carrying the adjusted receipt template corresponding to the first merchant's printing device, so that when the first server receives order information from the first merchant, it generates a printing instruction based on the receipt template and order content in the order information and sends the printing instruction to the first merchant's printing device; Among them, when a user places an order to purchase goods from the first merchant on the second client, the order information is sent to the second server, and the second server sends the order information to the first server. The order information includes the merchant identification and order content of the first merchant; the printing instruction includes the order content corresponding to each element in the receipt, and the print head temperature corresponding to each element; the printing device of the first merchant prints the order content corresponding to each element based on the print head temperature corresponding to each element.
5. The method according to claim 4, characterized in that The first color option and the second color option are mutually exclusive options, and the first color option is the default option; the printing paper of the first merchant's printing device is thermal paper, and the print head temperature corresponding to the second color option is higher than the print head temperature corresponding to the first color option.
6. The method according to claim 4, characterized in that Each element is associated with a switch control, and the switch control is used to control whether the element is displayed in the receipt; the method further includes: In response to a drag operation on an element in the receipt configuration interface, the position of the element in the receipt is adjusted.
7. The method according to claim 4, characterized in that Each element is associated with a style box, wherein the style box includes schematic content; each element is also associated with a font size adjustment control; the method further includes: In response to a selection operation on a second color option associated with an element, changing the schematic content in the style box associated with the element from the first color to the second color; In response to an adjustment operation on the font size adjustment control, the text size of the schematic content in the style box associated with the element is adjusted.
8. The method according to claim 4, characterized in that The receipt configuration interface further includes a receipt preview control and / or a restore monochrome control; the receipt preview control is used to preview the product receipt corresponding to the adjusted receipt template; the restore monochrome control is used to set the color of all elements to the first color; the method further includes: In response to the selection operation of the receipt preview control, a preview window is displayed, and the preview window includes a main display area, a monochrome mode option and a two-color mode option; the main display area is used to display the product receipt corresponding to the current receipt template; the monochrome mode option and the two-color mode option are mutually exclusive options, the monochrome mode option is used to adjust the product receipt displayed in the main display area to monochrome mode, and the two-color mode option is used to adjust the product receipt displayed in the main display area to two-color mode.
9. A commodity receipt printing device, characterized in that: include: A communication module is configured to communicate with a first server and receive a print instruction from the first server, the print instruction being generated by the first server based on a receipt template and order content, the print instruction including the order content corresponding to each element in the receipt and a temperature identification code corresponding to each element; the order content is derived from order information from a second server, the order information also including a merchant identifier of the first merchant, and the receipt template is obtained by querying the first server based on the merchant identifier; the receipt template records configuration information of multiple elements in the receipt, the multiple elements corresponding to the order content, the configuration information including the color of each element, with different colors corresponding to different temperature identification codes; a control module, configured to adjust the temperature of the print head based on the temperature identification code corresponding to each element; a printing module, configured to print the order content corresponding to the element based on the print head temperature adjusted by the control module; A reporting module, used for reporting the order content; An interaction module, used to interact with the user, obtain user input information and send it to the control module for processing; The code scanning module is used to scan the QR code and send the scanned content to the control module for processing.
10. A commodity receipt printing system, characterized in that: include: The first client is configured to send a device binding request to the first server, wherein the device binding request carries a merchant identifier and a device identifier of a printing device; The first server is configured to store the binding relationship between the merchant identifier and the device identifier, and after receiving the receipt template from the first client, store the binding relationship between the merchant identifier, the device identifier, and the receipt template; The second client is configured to send order information to the second server when a user places an order to purchase goods from the first merchant, wherein the order information includes the merchant identifier of the first merchant and the order content; The second server is configured to send the order information to the first server; The first server is configured to obtain, based on the merchant identifier, a receipt template associated with the first merchant's printing device, the receipt template recording configuration information of multiple elements in the receipt, the multiple elements corresponding to the order content, the configuration information including the color of each element, and different colors corresponding to different print head temperatures; generating a printing instruction based on the receipt template and the order content, the printing instruction including the order content corresponding to each element in the receipt and the temperature identification code corresponding to each element; and sending the printing instruction to the printing device of the first merchant; Multiple printing devices, including the printing device of the first merchant; the printing device of the first merchant adjusts the print head temperature based on the temperature identification code corresponding to each element to print the order content corresponding to the element.