Information processing device, control method thereof, and recording medium storing program thereof
Through the connection between the information processing device and the printing device, item values are extracted and converted, which solves the problem of differences in recording formats due to regional differences and achieves high-precision analysis of settlement information on printed receipts.
Patent Information
- Application Number
- CN201910848824.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-11
- Filing Date
- 2019-09-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2039-09-09
AI Technical Summary
In the prior art, the recording format of the item values in the settlement information printed on the receipt differs from region to region, resulting in the inability to accurately or accurately analyze the item values, affecting the high-precision analysis of the settlement information.
An information processing device and a control method are designed that can be connected to a printing device to ensure accurate analysis of the item values by extracting item values from text data and converting them according to the regional recording format settings. The device includes a control unit that can process different recording forms of currency symbols, decimal points and decimal places, and adapt to formats in different regions.
It realizes the accurate extraction of item values from printed text data, improves the resolution accuracy of settlement information, and is suitable for currency and date formats in different regions.
Smart Images

Figure CN110889688B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an information processing device, a method for controlling the information processing device, and a recording medium storing a program for the information processing device. Background Art
[0002] A technology has long been known for converting output data output from a checkout processing unit in a POS (Point of Sale) terminal into a form that can be interpreted by an external device, sending the converted data to the external device, and managing the sent data in the external device (for example, refer to Patent Document 1).
[0003] As described in Patent Document 1, in a POS terminal that performs a checkout process, the POS terminal itself or a printing device connected to the POS terminal issues a receipt that prints settlement information related to the settlement in the checkout process in response to the checkout process. The settlement information printed on the receipt includes item values corresponding to various items as information, and there are cases where the item values include useful item values that can be flexibly used later. In view of this situation, in the prior art, there is a method of analyzing the settlement information so as to obtain the item values from text data in which the settlement information printed on the receipt is described as text.
[0004] Among the item values included in the settlement information, some item values are recorded in different formats depending on the region where the receipt is issued. Therefore, in the prior art, there is a possibility that the item values cannot be accurately or precisely obtained from the receipt, and the settlement information cannot be analyzed with high accuracy.
[0005] Patent Document 1: Japanese Patent Application Publication No. 2012-27633 Summary of the invention
[0006] One of the objects of the present invention is to accurately or precisely obtain item values from settlement information printed on a receipt.
[0007] One embodiment of the present invention is an information processing apparatus that can be connected to a control apparatus and a printing apparatus, wherein the printing apparatus prints settlement information and issues a receipt, and the information processing apparatus includes a control unit (processor), the control unit obtaining text data related to the settlement information from the printing apparatus, and obtaining item values of items included in the settlement information from the text data, obtaining settings related to the recording format of the item values whose recording format varies depending on the region from the control apparatus, and obtaining the item values whose recording format varies depending on the region from the text data based on the settings.
[0008] In the above-mentioned embodiment, the following mode may be adopted, that is, the setting related to the recording format is at least the setting of any one symbol of the currency, decimal point, and decimal point for recording the item value representing the amount.
[0009] In one of the above embodiments, the structure may also be as follows, that is, the decimal point symbol includes at least one of a dot, a comma, an apostrophe, and a period.
[0010] In one of the above embodiments, the structure may also be as follows, that is, the symbol of the placeholder includes at least any one of a point, a comma, an apostrophe, and a space.
[0011] In the above-described embodiment, the setting related to the recording format may be a setting related to the recording format of the item value indicating the date on which the printing device issued the receipt.
[0012] Another method is a control method for an information processing device, wherein the information processing device can be connected to a printing device that prints settlement information and issues receipts. In the control method for the information processing device, text data related to the settlement information is obtained from the printing device, and item values of items included in the settlement information are obtained from the text data. When obtaining the item values, settings related to the recording format of the item values whose recording formats differ depending on the region are obtained, and based on the settings, the item values whose recording formats differ depending on the region are obtained from the text data.
[0013] Another embodiment is a storage medium storing a program of an information processing device, wherein the program of the information processing device can be executed by a control unit of the information processing device, and the information processing device can communicate with a printing device that prints settlement information and issues a receipt, and the program of the information processing device causes the control unit to perform the following operations, namely: obtaining text data related to the settlement information, obtaining item values of items included in the settlement information from the text data, and when obtaining the item values, obtaining settings related to the recording form of the item values whose recording form varies depending on the region, and obtaining the item values whose recording form varies depending on the region from the text data based on the settings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A diagram showing the structure of an information processing system.
[0015] Figure 2 A block diagram showing the functional structure of each device of the information processing system.
[0016] Figure 3 This is a flowchart showing the operations of the POS terminal, printing device, and control server.
[0017] Figure 4 This is a diagram showing an example of print data.
[0018] Figure 5 This figure shows an example of a receipt.
[0019] Figure 6 This is a diagram showing an example of printed text data.
[0020] Figure 7 A diagram representing an example of a resolver group management database.
[0021] Figure 8 A diagram showing an example of a parsing data management database.
[0022] Fig. 9 This is a flowchart showing the operation of the management device and the control server.
[0023] Fig.10 A diagram showing an example of a first setting user interface.
[0024] Fig.11 This is a flowchart showing the operation of the management device and the control server.
[0025] Fig.12 A diagram showing an example of the second setting user interface. DETAILED DESCRIPTION
[0026] Figure 1 It is a diagram showing the configuration of an information processing system 1 according to the present embodiment.
[0027] like Figure 1 As shown, the information processing system 1 includes a plurality of store systems 2. The store system 2 is a system used in stores such as supermarkets, convenience stores, department stores, and restaurants. A store can be any facility that provides goods and performs checkout by customers based on the provision of goods. In this embodiment, "goods" refers not only to goods delivered to customers as objects, but also to services provided to customers, and objects such as food and drinks provided to customers that are provided to customers in exchange for equivalent compensation.
[0028] The store system 2 has a function of executing a checkout corresponding to the merchandise purchased by the customer, a function of issuing a receipt R in accordance with the checkout, and the like.
[0029] In a store to which the store system 2 is applied, a cash register (checkout counter) L is provided for customers to check out. Figure 1 , a plurality of cash registers L are provided in one store, but the cash register L provided in one store may be one. A printing device 3 is provided in the cash register L, and the printing device 3 has a function of printing on a roll paper as a printing medium. In addition, a POS terminal 4 is provided in the cash register L, and the POS terminal 4 is connected to the printing device 3 in a wireless communication manner and controls the printing device 3. The details of the printing device 3 and the POS terminal 4 are described below.
[0030] When checking out at the cash register L, the cashier (operator who performs checkout processing) reads the barcode attached to the product or the package of the product with the barcode reader BR connected to the printer 3, and inputs corresponding to the checkout to the POS terminal 4. The printer 3 transmits the data obtained based on the reading by the barcode reader BR to the POS terminal 4. The POS terminal 4 controls the printer 3 based on the data obtained based on the reading by the barcode reader BR received from the printer 3 and the input corresponding to the checkout by the cashier, and causes the printer 3 to issue a receipt R. The receipt R issued by the printer 3 is handed over to the customer by the cashier.
[0031] The store system 2 includes a local area network LN.
[0032] The local area network LN is connected to a printing device 3 (printer) and a management device 5 (management apparatus, management computer, control computer). The management device 5 corresponds to a control device. The details of the management device 5 will be described below.
[0033] In addition, a communication device 6 is connected to the local area network LN. The communication device 6 is an interface device that connects the local area network LN and the global network GN including the Internet, the telephone network, and other communication networks. The communication device 6 has a modem, or functions related to an ONU (Optical Network Unit), a router function, a NAT (Network Address Translation) function, and a DHCP (Dynamic Host Configuration Protocol) server function. When a device connected to the local area network LN and a device connected to the global network GN communicate with each other, the communication device 6 transmits the data sent and received between the devices. In addition, although Figure 1 In FIG. 1 , the communication device 6 is expressed by one block, but the communication device 6 may be a structure having a plurality of devices corresponding to the functions.
[0034] The printing device 3 and the management device 5 can access the global network GN via the communication device 6 .
[0035] A control server 7 is connected to the global network GN. The control server 7 is equivalent to an information processing apparatus. The control server 7 is a server device that can communicate with the printing device 3 and the management device 5. That is, the control server 7 executes a predetermined operation process in response to a request from a client or the like. The control server 7 sends data based on the result of the operation process to the client as required. Figure 1 In the figure, the control server 7 is expressed by a box, but this does not mean that the control server 7 is composed of a single server device. For example, the control server 7 can also be configured to include a plurality of server devices. That is, the control server 7 is not limited in form as long as it is a structure capable of executing various processes described below.
[0036] Figure 2 It is a block diagram showing the functional configuration of each device included in the information processing system 1 .
[0037] The POS terminal 4 is, for example, a tablet-type terminal device having a touch panel 43 provided in a wide area on the front surface. Alternatively, the POS terminal 4 may be a desktop-type terminal such as a desktop-type terminal. The POS terminal 4 functions as a host computer that performs various processes related to checkout and controls the printing device 3 when checkout is performed at the cash register L.
[0038] like Figure 2 As shown, the POS terminal 4 includes a POS terminal control unit 40 , a POS terminal storage unit 41 , a POS terminal communication unit 42 , and a touch panel 43 .
[0039] As hardware, the POS terminal control unit 40 includes processors such as a CPU (Central Processing Unit) and an MPU (Micro Processor Unit), memory devices such as a ROM (Read Only Memory) and a RAM (Random Access Memory), and other peripheral circuits. The POS terminal control unit 40 performs processing by the cooperation of hardware and software in such a manner that the processor reads the control program 41A stored in the ROM or the POS terminal storage unit 41 into the RAM and executes the processing. A predetermined application program is installed in advance in the POS terminal 4. The POS terminal control unit 40 functions as an application execution unit 400 by reading the predetermined application program, the program attached to the predetermined application program, and other programs from the ROM or the POS terminal storage unit 41 and executing them. The application execution unit 400 will be described below.
[0040] The POS terminal storage unit 41 is composed of a memory device that stores the control program 41A and other various data in a non-volatile manner. The POS terminal storage unit 41 may be composed of a ROM that constitutes the POS terminal control unit 40, or may be composed of a memory device other than a ROM. In addition, the POS terminal storage unit 41 may also include a RAM that constitutes the POS terminal control unit 40.
[0041] The POS terminal communication unit 42 is composed of communication hardware in accordance with a predetermined communication standard, and communicates with the printing device 3 under the control of the POS terminal control unit 40. In addition, as communication hardware, hardware such as a communication circuit, a communication port, a communication substrate, and a communication connector can be listed as an example. The POS terminal communication unit 42 of this embodiment communicates with the printing device 3 in accordance with a predetermined wireless communication standard. The communication standard of the wireless communication implemented between the POS terminal 4 and the printing device 3 can also be any standard such as a standard related to a wireless LAN corresponding to the ad-hoc mode, a standard related to a wireless LAN corresponding to the infrastructure mode, a standard related to a short-range wireless communication such as Bluetooth, etc. Bluetooth is a registered trademark. In addition, the POS terminal communication unit 42 can also adopt a structure that communicates with the printing device 3 in accordance with a predetermined wired communication standard.
[0042] The touch panel 43 includes a display panel such as a liquid crystal display panel and a touch sensor provided in a manner overlapping or integrated with the display panel. The display panel displays various images under the control of the POS terminal control unit 40. The touch sensor detects the touch operation and outputs it to the POS terminal control unit 40. The POS terminal control unit 40 performs processing corresponding to the touch operation based on the input from the touch sensor.
[0043] The printing device 3 is a thermal printer that stores roll paper and forms dots on the stored roll paper using a line-type thermal head, thereby printing text or images. In addition, although the printing method of the printing device 3 involved in this embodiment is a thermal method, the printing method of the printing device 3 is not limited to the thermal method, and other printing methods such as an inkjet method may also be used. In addition, the printing head of the printing device 3 is not limited to a line type, and may also be a serial type.
[0044] like Figure 2 As shown, the printing device 3 includes a printing device control unit 30 , a printing device storage unit 31 , a printing unit 32 , a printing device communication unit 33 , a printing device network communication unit 34 , and a device communication unit 35 .
[0045] As hardware, the printer control unit 30 includes: a processor such as a CPU and an MPU; a memory device such as a ROM and a RAM; and other peripheral circuits. The printer control unit 30 performs processing by the cooperation of hardware and software in such a manner that the processor reads a control program 31A such as firmware stored in the ROM or the printer storage unit 31 into the RAM and executes the processing. In addition, the ROM stores glyph data corresponding to the character code.
[0046] The printer storage unit 31 is composed of a memory device that stores the control program 31A or other various data in a non-volatile manner. The printer storage unit 31 may be composed of a ROM that constitutes the printer control unit 30, or may be composed of a memory device other than a ROM. In addition, the printer storage unit 31 may also include a RAM that constitutes the printer control unit 30.
[0047] The printing unit 32 includes various mechanisms related to printing on the roll paper, such as a conveying mechanism for conveying the roll paper accommodated in the housing of the printing device 3, a printing mechanism for forming dots on the roll paper by a thermal head to print an image, and a cutting mechanism for cutting the roll paper at a predetermined position. In the printing unit 32, the roll paper is conveyed by the conveying mechanism under the control of the printing device control unit 30, and the image related to the receipt R is printed on the roll paper by the printing mechanism, and the roll paper is cut at a predetermined position by the cutting mechanism, thereby issuing the receipt R.
[0048] The printer communication unit 33 is composed of communication hardware in accordance with a predetermined communication standard, and communicates with the POS terminal 4 under the control of the printer control unit 30. In addition, as the communication hardware, there can be listed hardware such as a communication circuit, a communication port, a communication substrate, and a communication connector. The printer communication unit 33 of this embodiment communicates with the POS terminal 4 in accordance with a predetermined wireless communication standard. In addition, the printer communication unit 33 may also adopt a structure in which it communicates with the POS terminal 4 in accordance with a predetermined wired communication standard.
[0049] The printing device network communication unit 34 has communication hardware such as a network card that performs wireless communication according to a predetermined communication standard, and communicates with the devices connected to the global network GN according to the predetermined communication standard under the control of the printing device control unit 30. The devices connected to the global network GN include the management device 5 and the control server 7. The communication standard used by the printing device network communication unit 34 in communication can be HTTP (HyperText Transfer Protocol) or WebSocket.
[0050] The device communication unit 35 includes an interface board having a port in accordance with the USB standard, a port in accordance with a serial communication standard other than the USB, a port in accordance with the parallel communication standard, a port in accordance with the communication standard related to the wired LAN, and other ports. A device can be connected to each port. The device communication unit 35 communicates with the device connected to the printing device 3 via the port under the control of the printing device control unit 30. In addition, the device communication unit 35 may also have a wireless communication function and wirelessly communicate with the device.
[0051] A barcode reader BR, a customer display CD, and an automatic change machine JT are connected to the printing device 3 as devices.
[0052] The barcode reader BR reads a barcode attached to a product or a package of the product, and outputs data indicating the reading result to the device communication unit 35. The device communication unit 35 outputs the data input from the barcode reader BR to the printing apparatus control unit 30.
[0053] The customer display CD displays information related to the checkout under the control of the printing device control unit 30. The information displayed on the customer display CD can be visually confirmed by the customer who is checking out at the cash register L.
[0054] The automatic change machine JT has a money receiving port for inserting money collected from customers, and a change discharge port for dispensing money related to change. When money is inserted through the money receiving port, the corresponding change is discharged from the change discharge port under the control of the printing device control unit 30.
[0055] The management device 5 is a device that is managed by the entity that operates the store to which the store system 2 is applied. The management device 5 may be a desktop device, a tablet device, or a notebook device. The management device 5 is operated by a person who has operation authority, such as a store staff or a staff of a company that operates the store. Figure 1 As shown in the figure, a management device 5 is installed in a store. The management device 5 communicates with the control server 7, receives the provision of a predetermined service from the control server 7, and performs actions corresponding to the service. For example, the management device 5 receives the provision of a predetermined service from the control server 7, and manages the sales status in the store, the work status of the store staff, etc.
[0056] The management device 5 includes a management device control unit 50 , a management device storage unit 51 , a management device communication unit 52 , a management device display unit 53 , and a management device input unit 54 .
[0057] As hardware, the management device control unit 50 includes: a processor such as a CPU or an MPU, a memory device such as a ROM or a RAM, and other peripheral circuits. The management device control unit 50 performs processing through the cooperation of hardware and software in such a way that the processor reads the control program 51A stored in the ROM or the management device storage unit 51 into the RAM and executes the processing. In the management device 5, a browsing program is installed in advance. The management device control unit 50 functions as a browser execution unit 500 by reading the browsing program and other accompanying programs from the ROM or the management device storage unit 51 and executing them. The browser execution unit 500 is described below.
[0058] The management device storage unit 51 is composed of a memory device that stores the control program 51A or other various data in a non-volatile manner. The management device storage unit 51 can be composed of a ROM that constitutes the management device control unit 50, or a memory device other than a ROM. In addition, the management device storage unit 51 can also include a RAM that constitutes the management device control unit 50.
[0059] The management device communication unit 52 has communication hardware such as a network card for wireless communication in accordance with a predetermined communication standard, and communicates with devices connected to the global network GN in accordance with a predetermined communication standard under the control of the management device control unit 50. The devices connected to the global network GN include the control server 7. Examples of the communication standard used by the management device communication unit 52 for communication include HTTP, WebSocket, etc.
[0060] The management device display unit 53 includes a display panel such as a liquid crystal display panel, and displays various information under the control of the management device control unit 50 .
[0061] The management device input unit 54 includes an operation switch provided on the management device 5, a keyboard connected to the management device 5, a touch panel, and other input units, and detects the operation of the input unit by the user (operator) who operates the management device, and outputs it to the management device control unit 50. The management device control unit 50 performs processing corresponding to the operation of the input unit based on the input from the management device input unit 54.
[0062] The control server 7 includes a server control unit 70, a server storage unit 71, a server communication unit 72, a server display unit 73, and a server input unit 74. The server control unit 70 corresponds to a control unit, and the server communication unit 72 corresponds to a communication unit.
[0063] As hardware, the server control unit 70 includes a processor such as a CPU or an MPU, a memory device such as a ROM or a RAM, and other peripheral circuits. The server control unit 70 performs processing through the cooperation of hardware and software in such a way that the processor includes reads the control program 71A stored in the ROM or the server storage unit 71 into the RAM and executes the processing. The control program 71A is equivalent to a program.
[0064] The server storage unit 71 is composed of a memory device that stores the control program 71A or other various data in a non-volatile manner. The server storage unit 71 can be composed of a ROM that constitutes the server control unit 70, or a memory device other than the ROM. In addition, the server storage unit 71 can also include a RAM that constitutes the server control unit 70. In addition to the control program 71A, the server control unit 70 also stores an analysis program group management database 71B and an analysis data management database 71C. These databases are described below.
[0065] The server communication unit 72 includes communication hardware such as a network card for wireless communication in accordance with a predetermined communication standard, and communicates with devices connected to the global network GN in accordance with the predetermined communication standard under the control of the server control unit 70. The devices connected to the global network GN include the printing device 3 and the management device 5. Examples of the communication standard used by the server communication unit 72 for communication include HTTP and WebSocket.
[0066] The server display unit 73 includes a display panel, and displays various information on the display panel under the control of the server control unit 70 .
[0067] The server input unit 74 includes a keyboard, a mouse, and other input means, and detects user operations on the input means and outputs the results to the server control unit 70. Based on the input from the server input unit 74, the server control unit 70 executes processing corresponding to the user operations on the input means.
[0068] Next, the operations of the POS terminal 4 , the printing device 3 , and the control server 7 when a customer settles a transaction at the cash register L will be described.
[0069] Figure 3 This is a flowchart showing the operations of the POS terminal 4 , the printing device 3 , and the control server 7 when a checkout is performed at the cash register L. Figure 3 Flowchart FA shows the operation of the POS terminal 4 , flowchart FB shows the operation of the printing device 3 , and flowchart FC shows the operation of the control server 7 .
[0070] like Figure 3 As shown in the flowchart FA of FIG. 1 , the application execution unit 400 of the POS terminal control unit 40 of the POS terminal 4 executes a transaction process in response to a customer's transaction, and generates a print data ID based on the transaction process (step SA1 ).
[0071] If the processing of step SA1 is described in detail, the application execution unit 400 causes the touch panel 43 to display a user interface that allows input corresponding to checkout. The application execution unit 400 generates settlement information related to settlement obtained by checkout based on the input of the cashier on the touch panel 43 or the input from the printing device 3 accompanying the customer's checkout. The specific content of the settlement information will be described later with examples. Next, the application execution unit 400 generates a print data ID based on the generated settlement information. The print data ID is data that prints the settlement information in a predetermined layout and instructs the issuance as a receipt R. The print data ID is configured to include a plurality of control instructions in accordance with the instruction system of the printing device 3.
[0072] Figure 4 This is a diagram showing an example of print data ID.
[0073] like Figure 4 As shown, the print data ID includes: a graphic image printing instruction command CM1, a character string printing related command group GM, a line feed command LF, and a cutting command CM4. In addition, the character string printing related command group GM includes a character string decoration command CM2 and a character string printing instruction command CM3.
[0074] The graphic image printing instruction command CM1 is a control command that includes a dedicated command code and graphic data such as bitmap data, and instructs the printing of a graphic image based on the graphic data. Graphic data refers to data that stores information related to the color of each dot arranged in a dot matrix. The graphic image is not an image printed based on font data, but an image printed based on graphic data received from a device that functions as a host computer such as a POS terminal 4. The logo information J1 described below is equivalent to the graphic image.
[0075] The string printing instruction CM3 included in the string printing associated instruction group GM is a control instruction for instructing the printing of a string of one line. The string printing instruction CM3 includes a dedicated command code and information indicating the string to be printed. The information indicating the string to be printed refers to a combination of character codes of one or more characters constituting the string. The character code is represented by, for example, the so-called American Standard Code for Information Interchange of one byte. The string decoration instruction CM2 included in the string printing associated instruction group GM is a control instruction for specifying the decoration to be applied to the string instructed to be printed by the string printing instruction CM3. Examples of the decoration applied to the string include right alignment, center alignment, left alignment, bolding, adding underline, adding emphasis, black and white inversion, rotation, enlargement, reduction, etc.
[0076] The printer storage unit 31 of the printer 3 stores font data of each printable character. The printer control unit 30 of the printer 3 executes the following processing when printing a character string based on one character string printing related command group GM.
[0077] First, the printer control unit 30 uses a predetermined method to read the corresponding glyph data for each character code included in the character string printing instruction command CM3 included in the one character string printing related command group GM by referring to the ROM, converts and stores it in the RAM. Next, the printer control unit 30 sets each glyph data read from the RAM as the glyph data obtained by implementing the decoration specified by the character string decoration command CM2 included in the one character string printing related command group GM, and expands (stores) it in the image buffer configured as the RAM in the printing order of the line unit based on the line feed command LF. Next, the printer control unit 30 reads each glyph data expanded in the image buffer, and controls the printing unit 32 to print one line of character strings.
[0078] The line feed command LF is a command for instructing a line feed, and the cutting command CM4 is a command for instructing the cutting of the roll paper.
[0079] like Figure 3 As shown in flowchart FA of FIG. 1 , after the print data ID is generated in step SA1 , the application execution unit 400 controls the POS terminal communication unit 42 to transmit the generated print data ID to the printing device 3 (step SA2 ).
[0080] like Figure 3As shown in the flowchart FB, the printer control unit 30 of the printer 3 controls the printer communication unit 33 to receive the print data ID (step SB1). Next, the printer control unit 30 controls the printer unit 32 based on the print data ID received in step SB1 to issue a receipt R (step SB2). The issued receipt R is handed over to the customer.
[0081] Figure 5 FIG. 4 shows an example of a receipt R issued by the printing device 3 based on the print data ID.
[0082] In the present embodiment, an object to which a character code is assigned is expressed as a “symbol.” The symbol includes at least characters such as a sign or mark to which a character code is assigned, or a space character to which a character code is assigned.
[0083] exist Figure 5 In the receipt R shown in FIG. 1 , logo information J1 in which the store name is pictorially represented is printed at the top. The logo information J1 is printed based on the graphic image print instruction command CM1 described above.
[0084] On the receipt R, store address information J2 indicating the store address in a character string is printed in one line below the logo information J1. The store address information J2 is printed based on a character string printing-related command group GM including a character string decoration command CM2 that specifies decoration related to center alignment and a character string printing instruction command CM3 that instructs printing of a character string indicating the store address.
[0085] In the receipt R, store phone number information J3 indicating the store phone number as a character string is printed in a line below the store address information J2. The store phone number information J3 is printed based on the character string printing related command group GM including the character string decoration command CM2 that specifies the decoration related to center alignment and the character string printing instruction command CM3 that instructs printing of the character string indicating the store phone number.
[0086] In the receipt R, the first partition division information BK1 is printed on the line below the store phone number information J3. The first partition division information BK1 is a character string composed of a predetermined number of consecutive "-" characters in one line. The receipt R is divided into a printing area by the first first partition division information BK1, and the area is divided above the first first partition division information BK1. Hereinafter, in the receipt R, the area above the first partition division information BK1 is referred to as "area AA1". The area AA1 includes the logo information J1, the store address information J2, and the store phone number information J3.
[0087] In the receipt R, receipt identification related information J4 is printed in the line below the first first partition division information BK1. The receipt identification related information J4 includes receipt identification information J42, which is a character string indicating identification information for identifying the receipt. The value of the receipt identification information J42 is different for each receipt R. In addition, the receipt identification related information J4 includes receipt identification explicit information J41, which is printed in front of the receipt identification information J42 in the same line as the receipt identification information J42 and is a character string indicating information that the receipt identification information J42 is identification information for identifying the receipt. Figure 5 As shown, the receipt identification explicit information J41 related to the receipt R is information composed of a character string of "Check#:". The receipt identification related information J4 is printed based on the character string printing related command group GM including the character string decoration command CM2 that specifies the decoration related to the center alignment and the following character string printing instruction command CM3. The character string printing instruction command CM3 is a control command that instructs the printing of a character string that is a series of a character string representing the receipt identification explicit information J41, a space character, and a character string representing the receipt identification information J42.
[0088] On the receipt R, the next line after the receipt identification related information J4 is printed with the issued date and time information J5, which is a character string indicating the date and time when the receipt R was issued. The issued date and time information J5 includes date information J51, which is a character string indicating the date when the printer 3 issued the receipt R, and time information J52, which is a character string indicating the time when the printer 3 issued the receipt R. The issued date and time information J5 is printed based on the character string printing related command group GM including the character string decoration command CM2 that specifies the decoration related to center alignment and the character string printing instruction command CM3 that instructs the printing of the character string indicating the date and time when the receipt R was issued. The character string printing instruction command CM3 here is a control command that instructs the printing of a character string that is a series of a character string indicating the date information J51, a space character, and a character string indicating the time information J52.
[0089] The first partition division information BK1 is printed on the line below the issue date and time information J5. The receipt R is divided into a printing area by the first first partition division information BK1 and the second first partition division information BK1, and the area surrounded by these information is divided into partitions. Hereinafter, in the receipt R, the partition surrounded by the first first partition division information BK1 and the second first partition division information BK1 is referred to as "partition AA2".
[0090] In the receipt R, product information J6 is printed on the next line of the second first partition division information BK1. Product information J6 is information related to the product purchased by the customer. Product information J6 is printed on the receipt R for each type of product purchased by the customer. Therefore, for example, if the customer purchases three types of products, three product information J6 corresponding to the three types of products are printed. When a plurality of product information J6 is printed on the receipt R, the plurality of product information J6 is printed continuously one by one in different lines.
[0091] The commodity information J6 includes purchase quantity information J61, commodity name information J62, and unit price information J63. The purchase quantity information J61, commodity name information J62, and unit price information J63 are printed in the same row. The purchase quantity information J61 is information indicating the purchase quantity of the corresponding commodity using a character string. The commodity name information J62 is information indicating the name of the corresponding commodity using a character string. The unit price information J63 is information indicating the unit price of the corresponding commodity using a character string.
[0092] The product information J6 is printed based on the character string printing related instruction group GM including the character string decoration instruction CM2 that specifies the decoration related to the left alignment and the following character string printing instruction instruction CM3. The character string printing instruction instruction CM3 is a control instruction that instructs the printing of a character string that continuously includes a character string representing the purchase quantity information J61, a blank character, a character string representing the product name information J62, one or more blank characters, and a character string representing the unit price information J63. The number of blank characters inserted between the character string representing the product name information J62 and the character string representing the unit price information J63 is adjusted so that the position of the unit price information J63 is located at the end of the "row".
[0093] In the receipt R, the second partition division information BK2 is printed in the next line after the product information J6 printed at the bottom. The second partition division information BK2 is a character string composed of a predetermined number of characters "~" in a row. The receipt R divides the printing area by the second first partition division information BK1 and the first second partition division information BK2, and the area surrounded by these information is divided into zones. Hereinafter, in the receipt R, the zone surrounded by the second first partition division information BK1 and the first second partition division information BK2 is referred to as "zone AA3".
[0094] In the receipt R, subtotal amount related information J7 is printed in the next line of the first second partition segmentation information BK2. Subtotal amount related information J7 has subtotal amount information J72 which indicates the subtotal amount using a character string. In addition, subtotal amount related information J7 has subtotal amount explicit information J71 which is printed on the left side of subtotal amount information J72 in the same line as subtotal amount information J72 and indicates information which explicitly indicates that subtotal amount information J72 is information indicating the subtotal amount using a character string. Figure 5 As shown, the subtotal amount explicit information J71 related to the receipt R is a character string consisting of eight uppercase letters "SUBTOTAL".
[0095] The subtotal amount related information J7 is printed based on the character string printing related instruction group GM including the character string decoration instruction CM2 that specifies the decoration related to the left alignment and the following character string printing instruction instruction CM3. The character string printing instruction instruction CM3 is a control instruction that instructs the printing of a character string that is a series of a character string representing the subtotal amount explicit information J71, one or more blank characters, and a character string representing the subtotal amount information J72. The number of blank characters inserted between the character string representing the subtotal amount explicit information J71 and the character string representing the subtotal amount information J72 is adjusted so that the position of the subtotal amount information J72 is located at the end of the "row".
[0096] In the receipt R, tax-related information J8 is printed on the line below the subtotal amount-related information J7. The tax-related information J8 includes tax amount information J82 that indicates the tax amount using a character string. In addition, the tax-related information J8 includes tax-explicit information J81 that is printed on the left side of the tax amount information J82 in the same line as the tax amount information J82 and indicates information that the tax amount information J82 is information indicating the tax amount using a character string. Figure 5 As shown, the tax information J81 related to the receipt R is a character string consisting of three capital letters "TAX".
[0097] The tax-related information J8 is printed based on the character string printing-related instruction group GM including the character string decoration instruction CM2 that specifies the decoration related to left alignment and the following character string printing instruction instruction CM3. The character string printing instruction instruction CM3 is a control instruction that instructs printing of a character string that is a series of a character string representing the tax-indicated information J81, one or more blank characters, and a character string representing the tax amount information J82. The number of blank characters inserted between the character string representing the tax-indicated information J81 and the character string representing the tax amount information J82 is adjusted so that the position of the tax amount information J82 is located at the end of the "row".
[0098] In the receipt R, the total amount related information J9 is printed on the line below the tax related information J8. The total amount related information J9 includes total amount information J92 which indicates the total amount using a character string. In addition, the total amount related information J9 includes total amount explicit information J91 which is printed on the left side of the total amount information J92 in the same line as the total amount information J92 and indicates information that the total amount information J92 is information indicating the total amount using a character string. Figure 5 As shown, the total amount explicit information J91 related to the receipt R is a character string consisting of five capital letters "TOTAL".
[0099] The total amount related information J9 is printed based on the string printing related instruction group GM including the string decoration instruction CM2 that specifies the decoration related to the left alignment and the following string printing instruction instruction CM3. The string printing instruction instruction CM3 is a control instruction that instructs the printing of a string of continuous total amount explicit information J91, one or more blank characters, and a string representing the total amount information J92. The number of blank characters inserted between the string representing the total amount explicit information J91 and the string representing the total amount information J92 is adjusted in such a way that the position of the total amount information J92 is located at the end of the "row". In the following, in the receipt R, the partition below the second partition division information BK2 is set as "partition AA4". Partition AA4 includes subtotal amount related information J7, tax related information J8, and total amount related information J9.
[0100] In this way, the receipt R prints the settlement information in the following layout. That is, in the partition AA1, the logo information J1, the store address information J2, and the store phone number information J3 are printed in this order. In the partition AA2, the receipt identification related information J4 and the issue date and time information J5 are printed in this order. In the partition AA3, one or more product information J6 are printed. In addition, the product information J6 is printed in a row, in the order of the purchase quantity information J61, the product name information J62, and the unit price information J63 to the right. In the partition AA4, the subtotal amount related information J7, the tax related information J8, and the total amount related information J9 are printed in this order.
[0101] Back to Figure 3As shown in the flowchart FB of FIG. 3 , after the receipt R is issued in step SB2, the printing device control unit 30 generates printing text data ITD based on the printing data ID (step SB3). The printing text data ITD is equivalent to text data. The printing text data ITD is text data in which the settlement information printed as characters in the settlement information printed on the roll paper based on the printing data ID is described as text. The processing of step SB3 is described in detail below.
[0102] In step SB3, the printer control unit 30 extracts the control instructions related to the printing of the character string, namely, the character string printing instruction instruction CM3, and the line feed instruction LF from the print data ID. Next, the printer control unit 30 generates the print text data ITD that describes the settlement information to be printed in the form of characters on the receipt R as text based on the extracted control instructions. Here, the printer control unit 30 describes the settlement information in the print text data ITD in a state reflecting the line feed implemented during printing. In addition, the printer control unit 30 describes the settlement information in the print text data ITD in a state that does not reflect the decoration specified by the character string decoration instruction CM2. Therefore, even if the character string decoration instruction CM2 indicates center alignment or right alignment as the decoration implemented on the character string, these decorations are not reflected when the text is described in the print text data ITD.
[0103] Figure 6 To express based on Figure 5 The contents of the printed text data ITD generated by the printed data ID related to the receipt R shown in FIG. Figure 6 and Figure 5 As can be seen from the comparison, in the printed text data ITD, the settlement information printed as characters on the receipt R is described as text in a state that reflects the order in which it is printed and the line breaks in which it is printed.
[0104] In addition, since the mark information J1 is a graphic image, it is not described in the print text data ITD. In other words, information other than characters printed based on the glyph data corresponding to the character code is not described in the print text data ITD.
[0105] like Figure 3 As shown in the flowchart FB, after the print text data ITD is generated in step SB3, the printing device control unit 30 sends the serial number J11, the store identification information J12, the print data ID received in step SB1, and the print text data ITD generated in step SB3 to the control server 7 (step SB4).
[0106] The serial number J11 is identification information uniquely assigned to the printing device 3 at the manufacturing stage of the printing device 3, and is pre-stored in a predetermined storage area of the printing device storage unit 31. In step SB4, the printing device control unit 30 obtains the serial number J11 stored in the predetermined storage area of the printing device storage unit 31. The store identification information J12 is identification information for identifying a store where the printing device 3 is installed, and is pre-stored in a predetermined storage area of the printing device storage unit 31. In step SB4, the printing device control unit 30 obtains the store identification information J12 stored in the predetermined storage area of the printing device storage unit 31.
[0107] In addition, although the present embodiment illustrates a configuration in which the printing device 3 generates the print text data ITD based on the print data ID, the POS terminal 4 may generate the print text data ITD. In this case, the printing device 3 skips the process of step SB3 and transmits the print text data ITD received from the POS terminal 4 together with the serial number J11, the store identification information J12, and the print data ID to the control server 7. In addition, the control server 7 may acquire the print data ID from the printing device 3 and generate the print text data ITD.
[0108] like Figure 3 As shown in flowchart FC, the server control unit 70 of the control server 7 controls the server communication unit 72 and receives the serial number J11, store identification information J12, print data ID, and print text data ITD transmitted from the printing device 3 (step SC1).
[0109] Next, the server control unit 70 refers to the analysis program group management database 71B, and acquires the analysis program group KPG associated with the serial number J11 having the same value as the serial number J11 received in step SC1 (step SC2 ).
[0110] Figure 7 This is a diagram schematically showing information contained in one record of the analysis program group management database 71B.
[0111] like Figure 7 As shown, one record of the analysis program group management database 71B has a serial number J11 and an analysis program group KPG.
[0112] exist Figure 7 The analysis program group KPG includes fifteen analysis programs KP, namely, a first analysis program KP1 to a fifteenth analysis program KP15. Each analysis program KP will be described below.
[0113] Back to Figure 3 As described in the flowchart FC, the server control unit 70 executes the text data analysis process based on the acquired analysis program group KPG (step SC3).
[0114] In the text data analysis process, based on the printed text data ITD, a process of obtaining a text representing an item value corresponding to an item included in the settlement information from the printed text data ITD is performed. In the following, the case of obtaining the item value text from the printed text data ITD is simply expressed as obtaining the item value from the printed text data ITD. In the text data analysis process, the item value is obtained from the printed text data ITD by extracting the item value from the printed text data ITD and converting the recording form of the extracted item value into a recording form that can be flexibly used by the user as needed. In addition, depending on the item value, there are item values that have not been converted in the recording form and item values that have been converted in the recording form. Therefore, in the text data analysis process, depending on the item, there are cases where the recording form of the item value finally obtained is the recording form at the time point when it was extracted from the printed text data ITD, and there are cases where the recording form of the item value finally obtained is the recording form that has been converted.
[0115] In this embodiment, as items included in the settlement information, there are fifteen items as follows, namely, a customer identification information item, a checkout discount information item, a customer number information item, a refund information item, a cancellation information item, a member information item, a payment method information item, an issue date and time information item, a product information item, a receipt identification information item, a sales method information item, a staff information item, a subtotal amount information item, a tax information item, and a total amount information item. These items are described in detail below.
[0116] As described above, the parsing program group KPG of this embodiment has a plurality of parsing programs KP. The parsing program KP is a program described in a predetermined scripting language and has the following function: the function is to obtain the corresponding item value from the printed text data ITD for one item according to the parsing rule shown in the described processing flow. The parsing rule is a rule until the corresponding item value is obtained from the printed text data ITD for one item, and at least includes an extraction rule until the item value is extracted from the printed text data ITD. In addition, according to the parsing program KP, in addition to the extraction rule, there is also a parsing rule including a conversion rule for converting the recording format of the extracted item value.
[0117] The analysis program group KPG obtains item values for items corresponding to the number of analysis programs KP from one printed text data ITD. Figure 7 In the example, the analysis program group KPG is composed of the first analysis program KP1 to the fifteenth analysis program KP15. Figure 7 In this case, the analysis program group KPG has a function of obtaining the item values for each of the fifteen items mentioned above.
[0118] In the present embodiment, the analysis program group KPG includes a first analysis program KP1 having a function of acquiring an item value for a customer identification information item.
[0119] Furthermore, the analysis program group KPG includes a second analysis program KP2 having a function of acquiring an item value for a checkout discount information item.
[0120] Furthermore, the analysis program group KPG includes a third analysis program KP3 having a function of acquiring an item value for a customer number information item.
[0121] Furthermore, the analysis program group KPG includes a fourth analysis program KP4 having a function of acquiring an item value for the presence or absence of a refund information item.
[0122] Furthermore, the analysis program group KPG includes a fifth analysis program KP5 having a function of acquiring an item value for the presence or absence of a cancellation information item.
[0123] Furthermore, the analysis program group KPG includes a sixth analysis program KP6 having a function of acquiring an item value for a member information item.
[0124] Furthermore, the analysis program group KPG includes a seventh analysis program KP7 having a function of acquiring an item value for a payment method information item.
[0125] Furthermore, the analysis program group KPG includes an eighth analysis program KP8 having a function of acquiring an item value for a release date and time information item.
[0126] Furthermore, the analysis program group KPG includes a ninth analysis program KP9 having a function of acquiring an item value for a product information item.
[0127] Furthermore, the analysis program group KPG includes a tenth analysis program KP10 having a function of acquiring an item value for a receipt identification information item.
[0128] Furthermore, the analysis program group KPG includes an eleventh analysis program KP11 having a function of acquiring an item value for a sales method information item.
[0129] Furthermore, the analysis program group KPG includes a twelfth analysis program KP12 having a function of acquiring an item value for a staff information item.
[0130] Furthermore, the analysis program group KPG includes a thirteenth analysis program KP13 having a function of acquiring an item value for a subtotal amount information item.
[0131] Furthermore, the analysis program group KPG includes a fourteenth analysis program KP14 having a function of acquiring an item value for a tax information item.
[0132] Furthermore, the analysis program group KPG includes a fifteenth analysis program KP15 having a function of acquiring an item value for a total amount information item.
[0133] The text data analysis process is executed by the control program 71A installed in the control server 7 and the functions of the programs accompanying the control program 71A.
[0134] For example, the fifteenth analysis program KP15 is a program for extracting the item value of the total amount information item according to the following extraction rule, the extraction rule is to perform a keyword search on the character string "TOTAL" included in the partition AA4 of the printed text data ITD, and in the line having the character string "TOTAL", remove blank characters and extract the character string located on the right side of the character string "TOTAL" as the item value of the total amount information item. In addition, the fifteenth analysis program KP15 is a program for converting the recording form of the item value of the total amount information item according to the following conversion rule, the conversion rule is a rule that, when the extracted item value contains a symbol indicating a place separator, the recording form of the extracted item value is converted to a recording form in which the symbol indicating the place separator is removed.
[0135] In addition, although the first to fifteenth identifiers are added to the analysis program KP, the identifiers indicate that the items for which the item values are to be obtained are different. Therefore, for example, the analysis rules for obtaining the item values of the first analysis program KP1 of a certain analysis program group KPG and the first analysis program KP1 of an analysis program group KPG different from the certain analysis program group KPG are not necessarily the same.
[0136] Back to Figure 3As described in the flowchart FC of FIG. 1 , the server control unit 70 generates analysis data KD based on the processing result of the text data analysis processing in step SC3 (step SC4 ).
[0137] The parsed data KD is data in the JSON (JavaScript Object Notation) format in which each of the above-mentioned items, the general identification information item, the serial number item, and the store identification information item and the item value are associated and recorded. In addition, in the parsed data KD, information indicating that the item value cannot be obtained from the printed text data ITD is recorded for each item as needed. In addition, as an example of information indicating that the item value cannot be obtained from the printed text data ITD, a null value (empty value) is listed.
[0138] The general identification information item is an item to which the general identification information J13 for uniquely identifying the analyzed data KD is set as an item value. The serial number item is an item to which the serial number J11 is set as an item value. The store identification information item is an item to which the store identification information J12 for uniquely identifying the store is set as an item value.
[0139] The customer identification information item is an item to which identification information for identifying the customer who has made a payment (hereinafter referred to as "customer identification information") is set as an item value. When making a payment, a customer card on which the customer identification information is recorded may be read and the customer identification information may be printed on the receipt R. In this case, the settlement information includes the customer identification information, and a character string representing the customer identification information is described in the printed text data ITD.
[0140] The checkout discount information items include a checkout discount name information item and a checkout discount amount information item.
[0141] The checkout discount name information item is an item to which information indicating the name of a discount applied during checkout (hereinafter referred to as "checkout discount name information") is set as an item value. The checkout discount amount information item is an item to which information indicating the amount of a discount applied during checkout (hereinafter referred to as "checkout discount amount information") is set as an item value. In checkout, a predetermined discount may be applied. In this case, checkout discount name information and checkout discount amount information corresponding to the predetermined discount applied during checkout are printed on receipt R. In this case, the checkout discount name information and the checkout discount amount information are included in the settlement information, and the character string indicating the checkout discount name information and the character string indicating the checkout discount amount information are recorded as text in the printed text data ITD.
[0142] The customer number information item is an item to which information indicating the number of customers who have made a checkout is provided as an item value.
[0143] The refund information item is an item to which information indicating whether a refund has been made during checkout is set as an item value. During checkout, a refund may be made. In this case, information indicating that a refund has been made is printed on the receipt R. In this case, a character string indicating information indicating that a refund has been made is recorded as text in the printed text data ITD.
[0144] The cancellation information item is an item to which information indicating whether the transaction is canceled is set as an item value. The transaction may be canceled. In this case, information indicating that the transaction is canceled is printed on the receipt R. In this case, a character string indicating the information indicating that the transaction is canceled is recorded in the printed text data ITD.
[0145] The member information items include member affiliation information items and member identification information items.
[0146] The member affiliation information item is information indicating, as an item value, the name of the service program to which the customer belongs. The member identification information item is, as an item value, identification information for identifying the customer in the service program to which the customer belongs.
[0147] The payment method information item includes a payment method name information item and a payment amount information item.
[0148] The payment method name information item is an item to which information indicating the name of the payment method is provided as an item value. The payment amount information item is information indicating the amount paid by the customer using the payment method related to the payment method name information as an item value.
[0149] The release date and time information item is an item to which the release date and time information J5 is set as an item value. The release date and time information item includes a release date item and a release time item.
[0150] The issue date item is an item to which date information J51 is provided as an item value.
[0151] The issuance time item is an item to which time information J52 is correspondingly set as an item value.
[0152] The issue date and time information J5 is a combination of the date information J51 and the time information J52, and indicates the date when the receipt R was issued.
[0153] The commodity information items include a commodity name information item, a purchase quantity information item, and a unit price information item.
[0154] The product name information item is an item to which the product name information J62 is correspondingly set as an item value.
[0155] The purchase quantity information item is an item to which the purchase quantity information J61 is correspondingly set as an item value.
[0156] The unit price information item is an item to which the unit price information J63 is correspondingly set as an item value.
[0157] The receipt identification information item is an item to which the receipt identification information J42 is set as an item value. Detailed description of the receipt identification information item will be omitted.
[0158] The sales method information item is an item to which information indicating how the sale of the product is carried out is provided as an item value. Detailed description of the sales method information item is omitted.
[0159] The staff information item is, as an item value, information indicating the name of a staff member in the store, or identification information for identifying the staff member. The staff member refers to the staff member in charge of checkout, or the staff member in charge of providing services to customers in the store. Detailed description of the staff information item is omitted.
[0160] The subtotal amount information item is an item to which the subtotal amount information J72 is provided as an item value. Detailed description of the subtotal amount information item is omitted.
[0161] The tax information item is an item to which the tax amount information J82 is provided as an item value. Detailed description of the tax information item is omitted.
[0162] The total amount information item is an item to which the total amount information J92 is provided as an item value. Detailed description of the total amount information item is omitted.
[0163] In addition, although the above-mentioned item values include information expressed as character strings rather than actual numerical values, they are handled as item values in the present embodiment.
[0164] like Figure 3 As shown in the flowchart FC of FIG. 1 , when the server control unit 70 generates the analysis data KD, it registers the generated analysis data KD as one record in the analysis data management database 71C (step SC5 ).
[0165] Figure 8This is a diagram schematically showing information included in one record of the analysis data management database 71C.
[0166] like Figure 8 As shown, one record of the analysis data management database 71C includes universal identification information J13, serial number J11, store identification information J12, issue date and time information J5, print data ID, print text data ITD, and analysis data KD.
[0167] In step SC5, the server control unit 70 registers the following record in the analysis data management database 71C, wherein the record is a record that makes the general identification information J13, serial number J11, store identification information J12 and release date and time information J5 recorded in correspondence with the corresponding items, and the received printing data ID and printing text data ITD correspond to the analysis data KD.
[0168] A plurality of WebAPIs (Application Programming Interfaces) are registered in the control server 7. The control server 7 processes the registered WebAPIs based on the request from the browser of the external device and the parsed data management database 71C, thereby providing the information required by the user. The user referred to here is, for example, the owner of the store, the management company or the staff of the management company, the person in charge of the store, etc.
[0169] For example, the user starts the browser of the management device 5 and instructs access to a predetermined URL (Uniform Resource Locator) of the control server 7 for displaying a user interface for obtaining item values from the control server 7. The URL is notified to the user in advance by a predetermined method. The browser execution unit 500 of the management device control unit 50 of the management device 5 accesses the predetermined URL of the control server 7 according to the user's instruction. In addition, the server control unit 70 of the control server 7 sends an HTML (HyperText Markup Language) file for displaying the above-mentioned user interface to the management device 5 in response to the access to the predetermined URL. The management device 5 displays the above-mentioned user interface through the management device display unit 53 based on the received HTML file. It is assumed here that the total amount information J92 is specified in the user interface displayed by the management device 5. Then, the browser execution unit 500 requests the total amount information J92 related to the specific receipt R from the control server 7 as an HTTP request. The server control unit 70 of the control server 7 uses the analysis data KD of the data management database 71C to send the total amount information J92 related to the specific receipt R to the management device 5 as an HTTP response. Thus, the user can use the total amount information J92 printed on the specific receipt R.
[0170] However, among the item values of the items included in the settlement information printed on the receipt R, there are item values whose recording forms differ depending on the region where the receipt R is issued. The region mentioned here includes continents, countries, administrative regions, and regions of narrow regions. In this embodiment, the item values whose recording forms differ depending on the region are item values indicating the amount and item values indicating the date. The item values indicating the amount are the item values corresponding to the unit price information item, the subtotal amount information item, the tax information item, and the total amount information item of the commodity information item. That is, the item values indicating the amount are the unit price information J63, the subtotal amount information J72, the tax amount information J82, and the total amount information J92. The item value indicating the date is the date information J51.
[0171] For example, in the recording of money, depending on the customs of different regions, some regions use the symbol "," which is a comma as the symbol of the decimal point, while others use the symbol "." as the symbol of the decimal point. In addition, for example, in the recording of money, depending on the region, some regions use the symbol "." as the symbol of the decimal point, while others use the symbol "," as the symbol of the decimal point. In addition, for example, in the recording of money, depending on the region, the symbol "¥(Japanese Yen)" or the symbol "$(US Dollar)" is used as the currency symbol.
[0172] Here, it is assumed that there is a fifteenth analysis program KP15 having a conversion rule that, when the extracted item value includes the symbol "," indicating a decimal point, the recording format of the extracted item value is converted into a recording format in which the symbol "," is removed. When the fifteenth analysis program KP15 is applied to the item value "1,00" in which the symbol "," is used as a decimal point, the item value finally obtained is converted into a recording format such as "100", and thus the obtained item value becomes an incorrect value.
[0173] Furthermore, it is assumed that there is a fifteenth analysis program KP15 having a conversion rule that, when the extracted item value includes the symbol "$", the symbol "," indicating a decimal point, and the symbol "." indicating a decimal point, the recorded form of the extracted item value is converted into a recorded form in which the symbol "$" and the symbol "," are removed, and the symbol "." and the character string following the symbol "." are removed. When the item value "$10,000.00" is applied to the fifteenth analysis program KP15, the item value finally obtained becomes an item value of a simple and appropriate recorded form such as "10000". However, for example, it is assumed that the item value "¥10.000,00" in which the currency symbol is the symbol "¥", the symbol indicating a decimal point is the symbol ".", and the symbol indicating a decimal point is the symbol "," is applied to the fifteenth analysis program KP15. Then, the item value finally obtained becomes "¥10", which is an incorrect value and the item value in which the currency symbol is not removed.
[0174] In addition, the item value representing the date is recorded in a format in which the year, month, and day are separated by a symbol representing a dash, that is, a symbol "-", or in a format in which the day, month, and year are separated by a symbol "-", and thus the recording format differs depending on the region. In addition, the item value representing the date may be, for example, "Oct" or "Okt" even when a character string representing the same October is used, and thus the character string itself is recorded differently depending on the region.
[0175] Here, it is assumed that there is an eighth analysis program KP8 having an extraction rule that removes blank characters from a line having a character string "Okt" in the printed text data ITD and extracts a character string containing the character string "Okt" as an item value of the release date item. Figure 6 When printing the text data ITD shown in FIG. 1 , since the character string “Okt” does not exist in the date information J51, the server control unit 70 cannot use the date information J51 of “2-Oct-2015” as the item value. Figure 6 The printed text data shown is extracted from ITD.
[0176] Furthermore, it is assumed that there is an eighth parsing program KP8 having an extraction rule such as "extracting a series of character strings consisting of four character strings indicating the year, the symbol "-", two character strings indicating the month, the symbol "-", and two character strings indicating the day as the item value of the release date item from the printed text data ITD." However, in the eighth parsing program KP8, when the date information J51 is recorded as a character string consisting of the day, the symbol "-", the month, the symbol "-", and the year, such as "DD-MM-YYYY", the item value indicating the date cannot be obtained from the printed text data ITD.
[0177] Thus, for the item values whose recording format differs depending on the region where the receipt R is issued, the following situation may occur, that is, the item values cannot be accurately or precisely obtained from the receipt R, and the settlement information cannot be parsed with high accuracy. Therefore, the control server 7 can accurately or precisely obtain the item values whose recording format differs depending on the region from the printed text data ITD by performing the following operation, thereby improving the parsing accuracy of the settlement information printed on the receipt R.
[0178] Hereinafter, the operation of the control server 7 will be described by dividing it into an operation related to an item value indicating an amount and an operation related to an item value indicating a date.
[0179] Item value indicating the amount
[0180] Fig. 9 FIG. 4 is a flowchart showing the operation of the management device 5 and the control server 7. Fig. 9 Flowchart FD shows the operation of the management device 5 , and flowchart FE shows the operation of the control server 7 .
[0181] exist Fig. 9In order to facilitate understanding, the flowchart shown starts with the process of sending the HTML file for displaying the first setting user interface UI1 for setting the recording format of the item indicating the amount of money to the management device 5. However, until the control server 7 sends the HTML file, the management device 5 and the control server 7 implement the process for sending the HTML file. First, in the control of Fig. 9 Before describing the flowchart of FIG. 1 , the process until the HTML file for displaying the first setting user interface UI1 is sent to the management device 5 will be described.
[0182] The user starts the browser of the management device 5 and instructs access to a predetermined URL of the control server 7 related to the display of the first setting user interface UI1. The URL is notified to the user in advance by a predetermined method.
[0183] The browser execution unit 500 of the management device control unit 50 of the management device 5 accesses a predetermined URL of the control server 7 related to the display of the first setting user interface UI1 in accordance with the user's instruction.
[0184] In response to an access to a predetermined URL by the browser execution unit 500, the server control unit 70 of the control server 7 sends an HTML file for displaying a first input user interface to the management device 5 through the server communication unit 72. The first input user interface is a user interface for inputting a user ID and a password corresponding to the user ID in order to display the first setting user interface UI1.
[0185] When the management device communication unit 52 receives the HTML file for displaying the first input user interface, the browser execution unit 500 displays the first input user interface on the management device display unit 53 based on the received HTML file. The first input user interface has an input field for inputting a user ID, an input field for inputting a password corresponding to the user ID, and a confirmation button for confirming the input to the input field. When the user ID and password are input into the corresponding input fields and the confirmation button is operated, the browser execution unit 500 transmits the input user ID and password to the control server 7 through the management device communication unit 52.
[0186] When the combination of the user ID and password received through the server communication unit 72 matches the pre-registered combination, the server control unit 70 of the control server 7 sends an HTML file for displaying the second input user interface to the management device 5. The second input user interface is a user interface that displays the store-related information related to one store in a selectable manner according to the number of stores associated with the user ID input to the first input user interface. The store-related information is information including the store's brand name, store name, store location, store identification information J12, and the serial number J11 of the printing device 3 introduced into the store. The store-related information is appropriately generated and pre-associated with the appropriate user ID.
[0187] When the management device communication unit 52 receives the HTML file for displaying the second input user interface, the browser execution unit 500 of the management device 5 displays the second input user interface on the management device display unit 53 based on the received HTML file. When a store-related information is selected in the second input user interface, the browser execution unit 500 transmits the store identification information J12 included in the selected store-related information to the control server 7.
[0188] When receiving the store identification information J12, the server control unit 70 of the control server 7 transmits an HTML file for displaying the first setting user interface UI1 related to one or more printing devices 3 installed in the store indicated by the store identification information J12 to the management device 5 (step SE1).
[0189] When receiving the HTML file for displaying the first setting user interface UI1 (step SD1 ), the browser execution unit 500 of the management device 5 displays the first setting user interface UI1 on the management device display unit 53 based on the received HTML file (step SD2 ).
[0190] Fig.10 1 is a diagram showing an example of the first setting user interface UI1.
[0191] like Fig.10 As shown, the first setting user interface UI1 includes a currency symbol area A1 for setting a currency symbol, a decimal point area A2 for setting a symbol indicating a decimal point, and a decimal separator area A3 for setting a symbol indicating a decimal separator.
[0192] The currency symbol area A1 includes a display area A11 and a list display button AB1 .
[0193] The overview display button AB1 is a button for displaying at a glance the names of the currency symbols that are candidates for setting. When the overview display button AB1 is selected by the user, the name information representing the names of the currency symbols that are candidates for setting is displayed at a glance in a selectable manner in the first setting user interface UI1. The names of the currency symbols shown in the name information displayed at a glance include Yen, US Dollar, Euro, Pound Sterling, etc. In addition, the names of the currency symbols displayed at a glance by the overview display button AB1 are not limited to being recorded in English, and can also be recorded using currency codes such as JPY and EUR. In addition, the overview display button AB1 can also display the currency symbol corresponding to the name in a manner corresponding to the name information of the currency symbol.
[0194] The display area A11 is an area for displaying the selected name information among the name information displayed by the list display button AB1. Fig.10 , the display area A11 is shown when the name information indicating the name "Euro" is selected.
[0195] The decimal point area A2 includes a display area A21 and a list display button AB2 .
[0196] The overview display button AB2 is a button for displaying at a glance the candidates of the symbol set as the decimal point. When the overview display button AB2 is selected by the user, the candidates of the symbol set as the decimal point are displayed at a glance in the first setting user interface UI1 in a selectable state. The candidates of the symbol set as the decimal point include at least the symbol "," representing the symbol of the comma, the symbol "." representing the symbol of the dot, the symbol "'" representing the symbol of the apostrophe, and the symbol "·" representing the symbol of the center dot. In addition, the overview display button AB2 can also display a character string representing the name of the symbol in a manner corresponding to the symbol.
[0197] The display area A21 is an area for displaying a selected symbol from among the symbols displayed in a list by the list display button AB2. Fig.10 , the display area A21 is shown when the symbol “,” is selected.
[0198] The placeholder area A3 includes a display area A31 and a list display button AB3.
[0199] The overview display button AB3 is a button for displaying at a glance candidates for symbols set as place separators. When the overview display button AB3 is selected by the user, the candidates for symbols set as place separators are displayed at a glance in a selectable state in the first setting user interface UI1. Candidates for symbols set as place separators include the symbol "," for a comma, the symbol "." for a dot, the symbol "'" for an apostrophe, the symbol "·" for a center dot, and the like. In addition, the overview display button AB3 may also display a character string representing the name of the symbol in a manner corresponding to the symbol.
[0200] The display area A31 is an area for displaying a selected symbol from among the symbols displayed in a list by the list display button AB3. Fig.10 , the display area A31 is shown when the symbol "." is selected.
[0201] The first setting user interface UI1 has a confirmation button B1 in addition to the currency symbol area A1, the decimal point area A2, and the place mark area A3. The confirmation button B1 is a button for confirming the symbol selected and set in each of the currency symbol area A1, the decimal point area A2, and the place mark area A3 as the symbol used in the recording form of the item value representing the amount. The confirmation button B1 becomes operable as long as the symbol is selected at least in the decimal point area A2 and the place mark area A3. This is because, depending on the receipt R, there is a case where the amount is recorded without a currency symbol. In addition, the confirmation button B1 preferably adopts a structure that cannot be operated if different symbols are not selected in the decimal point area A2 and the place mark area A3. This is because, under normal circumstances, in order to accurately distinguish the decimal point and the place mark in the recording of the amount, different symbols are used. This is also because, based on this premise, the control server 7 may convert the description format of the item value indicating the amount in the text data analysis process.
[0202] Reference Fig. 9 According to the flowchart shown in FIG. 1 , the browser execution unit 500 of the management device 5 determines whether to complete the setting of the recording format of the item value representing the amount (step SD3). For example, when the confirmation button B1 is operated in the first setting user interface UI1, the browser execution unit 500 determines that the setting is completed, and when the confirmation button B1 is not operated, the browser execution unit 500 determines that the setting is not completed.
[0203] When the browser execution unit 500 determines that the setting of the recording form of the item value indicating the amount is not to be completed (step SD3: No), the browser execution unit 500 executes the processing of step SD3 again. On the other hand, when the setting of the recording form of the item value indicating the amount is to be completed (step SD3: Yes), the browser execution unit 500 associates the symbol setting information indicating the symbols set in each area of the first setting user interface UI1 with the store identification information J12 and transmits the same to the control server 7.
[0204] When receiving the symbol setting information and the store identification information J12 from the management device 5 (step SE2), the server control unit 70 of the control server 7 generates a conversion rule based on the received symbol setting information (step SE3). Receiving the symbol setting information corresponds to acquiring the setting related to the description format.
[0205] Here, step SE3 is described.
[0206] When explaining, in step SE2, it is assumed that the server control unit 70 receives the following symbol setting information from the management device 5, and the symbol setting information indicates that the symbol "$" representing the U.S. dollar is set in the currency symbol area A1, the symbol "." is set in the decimal point area A2, and the symbol "," is set in the place mark area A3.
[0207] In this case, for example, the server control unit 70 generates a conversion rule such as "convert the recorded form of the extracted item value into a recorded form in which the symbol "$", the symbol "," and the symbol "." and the character string following the symbol "." are removed." Based on this conversion rule, the server control unit 70 can convert the recorded form of the item value "$10,000.00", for example, into a simple and appropriate recorded form such as "10000" in which the numerical value does not change before and after the conversion.
[0208] The conversion rule is ultimately an example, and may be generated based on the received symbol setting information from the viewpoint of being able to convert into an appropriate recording format.
[0209] When generating the conversion rule based on the received symbol setting information, the server control unit 70 of the control server 7 applies the generated conversion rule to the analysis program group KPG based on the store identification information J12 received in step SE2 (step SE4 ).
[0210] The analysis program group KPG to be applied in step SE4 is the analysis program group KPG corresponding to the serial number J11 associated with the store identification information J12 received in step SE2. The server control unit 70 uses the store identification information J12 received in step SE2 as a key to identify one or more records having the store identification information J12 from the analysis data management database 71C. Next, the server control unit 70 obtains the serial number J11 of the printing device 3 from the determined one or more records. Moreover, the server control unit 70 uses each of the obtained one or more serial numbers J11 as a key to identify the record having the serial number J11 as a key from the analysis program group management database 71B. The server control unit 70 applies the conversion rule to the analysis program group KPG of the determined record. The server control unit 70 changes the conversion rule of the analysis program KP for obtaining the item value representing the amount among the fifteen analysis programs KP of the analysis program group KPG to the generated conversion rule. That is, the server control unit 70 changes the conversion rules of the ninth analysis program KP9, the tenth analysis program KP10, the thirteenth analysis program KP13, the fourteenth analysis program KP14, and the fifteenth analysis program KP15 to the generated conversion rules for one analysis program group KPG.
[0211] When the generated conversion rule is applied to the analysis program group KPG, the server control unit 70 performs text data analysis processing on the received printed text data ITD according to the applied analysis program group KPG. That is, the server control unit 70 obtains the item value representing the amount from the printed text data ITD based on the setting of the recording format of the item value representing the amount implemented by the management device 5.
[0212] In this way, the server control unit 70 generates a conversion rule based on the symbol setting information received from the management device 5, and applies the generated conversion rule to the parsing program group KPG, so that after the application, the item value representing the amount in an appropriate recording format can be obtained from the printed text data ITD. Therefore, the server control unit 70 can obtain the item representing the amount in an appropriate recording format from the printed text data ITD, which has a different recording format depending on the region, thereby improving the parsing accuracy of the settlement information printed on the receipt R.
[0213] like Figure 5As shown, in one receipt R, the item values indicating the amount are likely to be recorded in the same format. Therefore, the server control unit 70 does not need to generate conversion rules for each of the ninth analysis program KP9, the tenth analysis program KP10, the thirteenth analysis program KP13, the fourteenth analysis program KP14, and the fifteenth analysis program KP15, but only needs to generate a common conversion rule. Therefore, the server control unit 70 can quickly change the analysis program group KPG while reducing the processing load related to the change of the analysis program group KPG based on the symbol setting information.
[0214] In addition, the symbol of the decimal point is at least any one of the symbol "." as a dot symbol, the symbol "," as a comma symbol, the symbol "'" as an apostrophe symbol, and the symbol "·" as a center dot symbol. The server control unit 70 can obtain the symbol of the decimal point from the printed text data ITD in an appropriate recording format, and the item value representing the amount table is recorded by at least any one of these symbols. In addition, regarding the symbol of the decimal point, similarly to the symbol of the decimal point, the server control unit 70 can obtain the symbol of the decimal point from the printed text data ITD in an appropriate recording format, and the item value representing the amount is recorded by at least any one of these symbols.
[0215] In addition, the processing of step SE3 and step SE4 is to generate and apply the conversion rules in the analysis rules of one analysis program KP. However, the processing of step SE3 and step SE4 is also to generate the analysis rules themselves including the conversion rules and apply them to the analysis program group KPG. However, in the case of this processing, the server control unit 70 needs to generate the respective analysis rules of the ninth analysis program KP9, the tenth analysis program KP10, the thirteenth analysis program KP13, the fourteenth analysis program KP14, and the fifteenth analysis program KP15 for one analysis program KP. This is because even if the conversion rules are the same, the possibility of extracting different rules depending on the project is very high. In this case, the server control unit 70 can also generate extraction rules based on the symbol setting information. Here, as the generated extraction rules, the following rules are listed as an example.
[0216] For example, it is assumed that the following symbol setting information is received from the management device 5, and the symbol setting information indicates that the symbol "$" representing the dollar currency symbol is set in the currency symbol area A1, the symbol "." representing the dot symbol is set in the decimal point area A2, and the symbol "," representing the comma symbol is set in the place mark area A3. In this case, the server control unit 70 generates the following extraction rule for the extraction rule of the fifteenth analysis program KP15, that is, "keyword search for the character string "TOTAL" contained in the partition AA4 of the printed text data ITD, and in the row with the character string "TOTAL", extract the character string located to the right of the symbol "$" as the item value of the total amount information item." When "TOTAL$10,000.00" is written in one line in the printed text data ITD, the fifteenth analysis program KP15 may extract "$" as the item value and "10,000.00" as the item value in the extraction rule of "extracting the character string located to the right of the character string "TOTAL"". Therefore, according to the extraction rule based on the symbol setting information as described above, even in the case where a blank character is inserted between the numerical value and the currency symbol such as "$10,000.00", the server control unit 70 can accurately extract the item value of the total amount information item.
[0217] Item value representing a date
[0218] Next, the processing of the control server 7 related to the item value indicating the date will be described.
[0219] Fig.11 FIG. 2 is a flowchart showing the operation of the management device 5 and the control server 7. Fig.11 In the flowchart FF, the operation of the management device 5 is shown, and the flowchart FG shows the operation of the control server 7.
[0220] In such Fig.11 In the flowchart shown, the process starts from the following (step SG1), in which the control server 7 sends an HTML file for displaying the second setting user interface UI2 for setting the recording format of the item value representing the date to the management device 5. Before the control server 7 sends the HTML file, the management device 5 and the control server 7 perform the same process as the process related to the item value representing the amount.
[0221] When receiving the store identification information J12 from the management device 5, the server control unit 70 of the control server sends an HTML file for displaying the second setting user interface UI2 related to one or more printing devices 3 introduced in the store indicated by the store identification information J12 to the management device 5 (step SG1).
[0222] When receiving the HTML file for displaying the second setting user interface UI2 (step SF1 ), the browser execution unit 500 of the management device 5 displays the second setting user interface UI2 on the management device display unit 53 based on the received HTML file (step SF2 ).
[0223] Fig.12 2 is a diagram showing an example of the second setting user interface UI2.
[0224] like Fig.12 As shown, the second setting user interface UI2 has a combination area A4 for setting a combination of a language and a country where the language is mainly used (hereinafter referred to as a "corresponding language country").
[0225] The combining area A4 includes a display area A41 and a list display button AB4.
[0226] The overview display button AB4 is a button for displaying at a glance the combinations of languages and corresponding language countries that are candidates for setting. When the overview display button AB4 is selected by the user, the combination information representing the combinations of languages and corresponding language countries that are candidates for setting is displayed at a glance in a selectable manner in the second setting user interface UI2. The combination of languages and corresponding language countries becomes an appropriate combination through a prior investigation or the like. For example, the combination of languages and corresponding language countries can be listed as examples, such as German-Austria, German-Switzerland, English-United States, Japanese-Japan, etc.
[0227] The display area A41 is an area for displaying the selected combination information among the combination information displayed by the list display button AB4. Fig.10 FIG. 4 shows a display area A41 when the combination information of Germany-Austria is selected.
[0228] The second setting user interface UI2 has a confirmation button B2 in addition to the combination area A4. The confirmation button B2 is a button for confirming the combination of the language and the corresponding language country selected and set in the combination area A4 as a combination related to the description format of the item value representing the date.
[0229] Reference Fig.11 According to the flowchart shown in FIG. 1 , the browser execution unit 500 of the management device 5 determines whether to complete the setting of the recording format of the item value representing the date (step SF3). For example, when the confirmation button B2 is operated in the second setting user interface UI2, the browser execution unit 500 determines that the setting is completed, and when the confirmation button B2 is not operated, the setting is not completed.
[0230] If it is determined that the setting of the recording format of the item value indicating the date is not to be completed (step SF3: No), the browser execution unit 500 executes the process of step SF3 again. On the other hand, if it is determined that the setting of the recording format of the item value indicating the date is to be completed (step SF3: Yes), the browser execution unit 500 associates the combination setting information of the combination of the display language and the corresponding language country set in the second setting user interface UI2 with the store identification information J12 and transmits the result to the control server 7 (step SF4).
[0231] When the server control unit 70 of the control server 7 receives the combination setting information and the store identification information J12 from the management device 5 (step SG2), it obtains the extraction rule suitable for the combination based on the received combination setting information (step SG3). In addition, the case of receiving the combination setting information is equivalent to the case of obtaining the setting related to the recording format.
[0232] Here, step SG3 is explained.
[0233] When receiving the combination setting information, the server control unit 70 refers to a predetermined database and obtains an extraction rule suitable for the combination of the language and the corresponding language country indicated in the received combination setting information. The predetermined database stores a plurality of records that correspond to the combination of the language and the corresponding language country and the extraction rule suitable for the combination as information. For example, the predetermined database stores a record that corresponds to the combination of English-United States and the following extraction rule as information, wherein the extraction rule is a rule such as "in a row having any one of the character strings of Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec, remove blank characters and extract the character string containing any one of these character strings as the item value of the release date item". The correspondence between the combination and the extraction rule is appropriately determined in advance by prior testing or simulation, etc. In addition, the control server 7 can either store the predetermined database through the server storage unit 71 and obtain the extraction rule from the server storage unit 71, or access the predetermined database through the server communication unit 72 and obtain the extraction rule.
[0234] In addition, for example, when receiving English-UK combination information, the server control unit 70 obtains the following extraction rule from a predetermined database, the extraction rule being a rule that "a series of character strings consisting of two character strings representing dates, a symbol "-", two character strings representing months, a symbol "-", and four character strings representing years are extracted as the item value of the release date item." Based on this extraction rule, the server control unit 70 can, for example, obtain an item value in the recording format of "DD-MM-YYYY" from the printed text data ITD.
[0235] When the server control unit 70 of the control server 7 obtains the extraction rule based on the received combination information, it applies the obtained extraction rule to the analysis program group KPG based on the store identification information J12 received in step SA2 (step SG4). The analysis program group KPG to be applied in step SG4 is the analysis program group KPG corresponding to the serial number J11 associated with the store identification information J12 received in step SG2. Fig. 9As described in step SE4 of , the server control unit 70 determines one or more analysis program groups KPG to be applied based on the store identification information J12 received in step SG2, and applies the extraction rule to the analysis program group KPG of the determined record. The server control unit 70 changes the extraction rule of the eighth analysis program KP8 for obtaining the item value representing the date among the fifteen analysis programs KP of the analysis program group KPG to the obtained extraction rule. In addition, the analysis rule of the eighth analysis program KP8 includes a rule for extracting the item value representing the date and an extraction rule for extracting the time information J52 as the item value from the printed text data ITD. The server control unit 70 changes the extraction rule for extracting the item value representing the date as the change object.
[0236] When the server control unit 70 applies the obtained extraction rule to the analysis program group KPG, the server control unit 70 performs text data analysis processing on the received printed text data ITD by using the applied analysis program group KPG. That is, the server control unit 70 obtains the item value indicating the date from the printed text data ITD based on the setting of the recording format of the item value indicating the date implemented by the management device 5.
[0237] In this way, the server control unit 70 acquires the extraction rule based on the combination setting information received from the management device 5, and applies the acquired extraction rule to the analysis program group KPG, so that after the application, the item value indicating the date can be accurately acquired from the printed text data ITD. Therefore, the server control unit 70 can accurately acquire the item indicating the date whose recording form varies depending on the region from the printed text data ITD, thereby improving the analysis accuracy of the settlement information printed on the receipt R.
[0238] In addition, although the processing of step SG3 shows the processing of obtaining the extraction rule from the predetermined database, the extraction rule may be generated based on the combination setting information. In addition, the processing of step SG3 and step SG4 is the processing of obtaining and applying the extraction rule among the analysis rules of one analysis program KP. However, the processing of step SG3 and step SG4 may also be the processing of obtaining the analysis rules themselves including the extraction rule from the predetermined database and applying them to the analysis program group KPG.
[0239] Although in use Fig. 9 as well as Fig.11 In the description of the flowchart of , the case where the analysis program group KPG is changed in units of stores is illustrated, but it can also be changed in units of printing devices 3.
[0240] In addition, although the above description has been given of a configuration in which the management device 5 displays the first setting user interface UI1, a configuration in which a user interface including the first setting user interface UI1 is displayed may be adopted. In this case, the management device 5 receives an HTML file for displaying a user interface including the first setting user interface UI1. The same configuration may be adopted for the second setting user interface UI2.
[0241] As described above, the control server 7 includes: a server communication unit 72 that can connect the management device 5 and the printing device 3, and the printing device 3 prints the settlement information and issues the receipt R; and a server control unit 70 that obtains the printed text data ITD related to the settlement information from the printing device 3 via the server communication unit 72, and obtains the item value of the item included in the settlement information from the printed text data ITD. The server control unit 70 obtains the setting related to the recording format of the item value whose recording format varies depending on the region from the management device 5 via the server communication unit 72, and obtains the item value whose recording format varies depending on the region from the printed text data ITD based on the obtained setting.
[0242] According to this configuration, the server control unit 70 obtains the item values whose recording formats differ according to regions from the printed text data ITD based on the settings related to the recording formats obtained from the management device 5, and thus can obtain the item values whose recording formats differ according to regions from the printed text data ITD in an appropriate recording format or accurately. Therefore, the server control unit 70 can improve the parsing accuracy of the settlement information printed on the receipt R.
[0243] The setting related to the description format is at least the setting of any one of the currency, decimal point, and decimal point symbol for describing the item value representing the amount of money.
[0244] According to this configuration, the item value indicating the amount can be obtained from the printed text data ITD in an appropriate description format. Therefore, the server control unit 70 improves the accuracy of analyzing the settlement information printed on the receipt R.
[0245] The decimal point symbol includes at least one of the following symbols: point, comma, apostrophe, and period.
[0246] According to this configuration, the item value indicating the amount of money described using at least one of these symbols as the decimal point symbol can be acquired from the printed text data ITD in an appropriate description format.
[0247] The symbols of the place separator include at least one of the following symbols: point, comma, apostrophe, and space.
[0248] According to this configuration, the server control unit 70 can obtain the item value indicating the amount of money described by at least one of these symbols as the place mark from the printed document data ITD in an appropriate description format.
[0249] The setting related to the recording format is a setting related to the recording format of the item value indicating the date when the receipt R was issued by the printing device 3.
[0250] According to this configuration, it is possible to accurately obtain the item value indicating the date from the printed text data ITD. Therefore, the server control unit 70 improves the accuracy of analyzing the settlement information printed on the receipt R.
[0251] Modification 1
[0252] Next, Modification Example 1 will be described.
[0253] In the modification 1, the main body displaying the first setting user interface UI1 and the second setting user interface UI2 is different from the above-mentioned embodiment.
[0254] In the first modification, the server control unit 70 displays the first setting user interface UI1 and the second setting user interface UI2 via the server display unit 73 .
[0255] Even with this structure, the same effects as those of the above-described embodiment can be obtained.
[0256] Modification 2
[0257] Next, Modification Example 2 will be described.
[0258] In the modification example 2, the main body displaying the first setting user interface UI1 and the second setting user interface UI2 is different from the above-mentioned embodiment and the modification example 1.
[0259] In Modification 2, the POS terminal 4 displays the first setting user interface UI1 and the second setting user interface UI2 on the touch panel 43. In Modification 2, the POS terminal 4 corresponds to the control device. In this case, a browser is installed in the POS terminal 4, and the POS terminal control unit 40 has the function of the browser execution unit 500.
[0260] Even with this configuration, the same effects as those of the above-described embodiment and modification 1 can be obtained.
[0261] In addition, the above-described embodiment and each modified example are merely examples showing one mode of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
[0262] For example, the functions of the POS terminal control unit 40 , the printing device control unit 30 , the management device control unit 50 , and the server control unit 70 may be implemented by a plurality of processors or semiconductor chips.
[0263] In addition, for example, in the case where the control method of the control server 7 as a method in the information processing device described above is implemented using a computer possessed by the control server 7, or an external device connected to the control server 7, the present invention can also be constituted by a program executed by a processor of the computer in order to implement the method, a storage medium recording the program in a manner that can be read by a processor of the computer, or a transmission medium that transmits the program.
[0264] In addition, the function of the server control unit 70 can also be implemented in the form of a storage medium for storing the control program 71A, a server device for sending the control program 71A, a transmission medium for transmitting the control program 71A, a data signal that embodies the control program 71A in a carrier wave, etc. As a storage medium, various media that can be read by a computer processor can be used, and any one of magnetic, optical storage media or semiconductor memory devices can be used, and other types of storage media can also be used. In addition, it can also be a removable storage medium such as a memory card. In addition, the storage medium can also be a storage medium possessed by a device connected to the above-mentioned device via a communication line. The control program 71A can be installed as a single application that operates on the operating system in a device that operates by installing an operating system. In addition, it is not limited to a single application, and can also be installed as an operating system, a device driver, and multiple functions in an application.
[0265] In addition, for example, Figure 3 , Fig. 9 as well as Fig.11 The processing units are divided according to the main processing contents in order to facilitate the understanding of the processing of the POS terminal 4, the printing device 3, the control server 7 and the management device 5. The present invention is not limited by the division method or name of the processing units. It can also be divided into more processing units according to the processing contents. In addition, it can also be set as a method in which one processing unit contains more processing. In addition, the order of the processing can also be appropriately changed within the range without obstacles.
[0266] also, Figure 2The functional units shown are parts of the functional structure and do not particularly limit the specific implementation. In other words, it is not necessary to install individually corresponding hardware on each functional unit. Of course, it can also be set as the following structure, that is, by executing a program by a processor, the functions of multiple functional units are realized. In addition, in the above-mentioned implementation, part of the function realized by software can be set as hardware, or part of the function realized by hardware can be realized by software. In addition, the specific detailed structures of the other parts of the POS terminal 4, the printing device 3, the management device 5, and the control server 7 can be arbitrarily changed within the scope of the main purpose of the present invention.
Claims
1. An information processing device capable of connecting a control device and a printing device, wherein the printing device prints settlement information and issues a receipt, The information processing device includes a control unit. The control unit acquiring text data related to the settlement information from the printing device, and sending an HTML file for displaying a setting user interface for setting a different description format for item values of items included in the settlement information according to regions to the control device; Acquiring settings related to the recording format of the item value through the setting user interface, acquiring, from the text data, item values of items included in the settlement information based on the acquired settings, The setting user interface includes an area for currency symbols, an area for decimal points, and an area for placeholders. The currency symbol area, the decimal point area, and the place mark area are each configured to receive a setting related to a description format of an item value input from a user. When the description formats of the item values are completely the same, a common conversion rule is generated, and otherwise, the conversion rule is generated for each item value. The conversion rule is that, when the acquired item value includes a symbol indicating a place separator, the description format of the acquired item value is converted into a description format in which the symbol indicating the place separator is removed.
2. The information processing device according to claim 1, wherein: The setting related to the description format is at least the setting of a symbol of any one of a currency, a decimal point, and a decimal point for describing the item value representing the amount of money.
3. The information processing device according to claim 2, wherein: The decimal point symbol includes at least one of a dot, a comma, an apostrophe, and a period.
4. The information processing device according to claim 2, wherein: The symbols of the placeholders include at least one of a dot, a comma, an apostrophe, and a space.
5. The information processing device according to claim 1, wherein: The setting related to the recording format is a setting related to the recording format of the item value indicating the date when the printing device issued the receipt.
6. A method for controlling an information processing device, wherein: The information processing device can be connected to the control device and the printing device, and the printing device prints the settlement information and issues a receipt. In the control method of the information processing device, acquiring text data related to the settlement information from the printing device, sending an HTML file for displaying a setting user interface for setting a different description format for item values of items included in the settlement information according to regions to the control device; Acquiring settings related to the recording format of the item value through the setting user interface, acquiring, from the text data, item values of items included in the settlement information based on the acquired settings, The setting user interface includes an area for currency symbols, an area for decimal points, and an area for placeholders. The currency symbol area, the decimal point area, and the place mark area are each configured to receive a setting related to a description format of an item value input from a user. When the description formats of the item values are completely the same, a common conversion rule is generated, and otherwise, the conversion rule is generated for each item value. The conversion rule is that, when the acquired item value includes a symbol indicating a place separator, the description format of the acquired item value is converted into a description format in which the symbol indicating the place separator is removed.
7. The control method of the information processing device according to claim 6, wherein: The setting related to the description format is at least the setting of a symbol of any one of a currency, a decimal point, and a decimal point for describing the item value representing the amount of money.
8. The control method of the information processing device according to claim 7, wherein: The decimal point symbol includes at least one of a dot, a comma, an apostrophe, and a period.
9. The control method of the information processing device according to claim 7, wherein: The symbols of the placeholders include at least one of a dot, a comma, an apostrophe, and a space.
10. The control method of the information processing device according to claim 6, wherein: The setting related to the recording format is a setting related to the recording format of the item value indicating the date when the printing device issued the receipt.
11. A storage medium storing a program of an information processing device, wherein the program of the information processing device can be executed by a control unit of the information processing device, the information processing device can be connected to a control device and a printing device, and the printing device prints settlement information and issues a receipt, The program of the information processing device causes the control unit to perform the following operations, namely: obtaining text data related to the settlement information, sending an HTML file for displaying a setting user interface for setting a different description format for item values of items included in the settlement information according to regions to the control device; Acquiring settings related to the recording format of the item value through the setting user interface, acquiring, from the text data, item values of items included in the settlement information based on the acquired settings, The setting user interface includes an area for currency symbols, an area for decimal points, and an area for placeholders. The currency symbol area, the decimal point area, and the place mark area are each configured to receive a setting related to a description format of an item value input from a user. When the description formats of the item values are completely the same, a common conversion rule is generated, and otherwise, the conversion rule is generated for each item value. The conversion rule is that, when the acquired item value includes a symbol indicating a place separator, the description format of the acquired item value is converted into a description format in which the symbol indicating the place separator is removed.
12. The storage medium storing the program for an information processing device according to claim 11, wherein: The setting related to the description format is at least the setting of a symbol of any one of a currency, a decimal point, and a decimal point for describing the item value representing the amount of money.
13. The storage medium storing the program for an information processing device according to claim 12, wherein: The decimal point symbol includes at least one of a dot, a comma, an apostrophe, and a period.
14. The storage medium storing the program for an information processing device according to claim 12, wherein: The symbols of the placeholders include at least one of a dot, a comma, an apostrophe, and a space.
15. The storage medium storing the program for an information processing device according to claim 11, wherein: The setting related to the recording format is a setting related to the recording format of the item value indicating the date when the printing device issued the receipt.
