Product data processing device and program

The product data processing device addresses POS terminal errors by calculating and registering product codes using multiple check digit schemes, enhancing registration accuracy and reducing errors.

JP7828862B2Active Publication Date: 2026-03-12TOSHIBA TEC KK
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-09-22
Publication Date
2026-03-12

AI Technical Summary

Technical Problem

POS terminals incorrectly determine product codes as errors when using a check digit calculation method that differs from the actual code system, leading to registration failures.

Method used

A product data processing device that includes an acquisition means to input product codes, a calculation means to calculate first and second check digits based on different code schemes, and a registration means to register the product if the second check digit matches, thereby reducing errors by checking multiple code systems.

Benefits of technology

The device increases the likelihood of correctly registering product codes by inspecting check digits using multiple code systems, reducing input errors and user burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007828862000001
    Figure 0007828862000001
  • Figure 0007828862000002
    Figure 0007828862000002
  • Figure 0007828862000003
    Figure 0007828862000003
Patent Text Reader

Abstract

To reduce errors in input merchandise codes.SOLUTION: A merchandise data processing apparatus comprises acquisition means, calculation means, and registration means. The acquisition means acquires a merchandise code input through an input section. The calculation means calculates a first check digit of the merchandise code according to a first code system. When the first check digit does not match a check digit included in the merchandise code, the calculation means calculates a second check digit of the merchandise code according to a second code system. When the second check digit matches the check digit included in the merchandise code, the registration means registers an item of merchandise associated with the merchandise code.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] An embodiment of the present invention relates to a product data processing device and a program. [Background technology]

[0002] In stores, point-of-sale (POS) terminals register products purchased by customers based on product codes entered manually or via a scanner. Product codes are codes with various numbers of digits according to various coding systems, such as the Japanese Article Number (JAN) code or the Universal Product Code (UPC) code.

[0003] There are two types of JAN codes: a standard 13-digit type and an abbreviated 8-digit type. There are also source marking and in-store marking JAN codes. Source marking is a JAN code used by manufacturers to attach barcode symbols to products. The first two digits of a source marking JAN code are the country code. Japan's country code is "45" or "49". In-store marking is a JAN code used by stores to attach barcode symbols to products. In-store marking JAN codes are determined independently by each store, so the first two digits are not a country code. For this reason, the first digit of an in-store marking JAN code may sometimes be "0".

[0004] UPC codes include the 13-digit UPC-A code and the 8-digit UPC-E code. The first digit of the UPC-E code is "0." [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Japanese Patent Application Laid-Open No. 2013-186598 Summary of the Invention [Problem to be solved by the invention]

[0006] The abbreviated JAN code and UPC-E code used in in-store marking are both 8-digit codes, but the calculation method for the check digit is different. When a POS terminal calculates the check digit using a calculation method that corresponds to a code system that differs from the product code system, the check digit calculated will usually not match the check digit contained in the product code. In this case, the POS terminal will determine that the entered product code is incorrect, and will process the entered product code as an error without registering the product.

[0007] The problem to be solved by the embodiments of the present invention is to provide a technique that makes it possible to reduce errors in input product codes. [Means for solving the problem]

[0008] In one embodiment, the product data processing device includes an acquisition means, a calculation means, and a registration means. The acquisition means acquires a product code input via an input unit. The calculation means calculates a first check digit of the product code according to a first code scheme. If the first check digit does not match the check digit included in the product code, the calculation means calculates a second check digit of the product code according to a second code scheme. If the second check digit matches the check digit included in the product code, the registration means registers the product associated with the product code. [Brief explanation of the drawings]

[0009] [Figure 1] FIG. 1 is a block diagram illustrating a POS terminal according to an embodiment. [Figure 2] FIG. 2 is a flowchart illustrating a procedure of a product registration process by a processor of the POS terminal according to the embodiment. [Figure 3]FIG. 3 is a flowchart illustrating a procedure of a condition determination process performed by a processor of the POS terminal according to the embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0010] [Embodiment] Hereinafter, the embodiments will be described with reference to the drawings. In the drawings, the same components are denoted by the same reference numerals whenever possible, and duplicated explanations will be omitted.

[0011] (Configuration example) FIG. 1 is a block diagram illustrating a POS terminal 1 according to an embodiment. The POS terminal 1 is an electronic device that performs product registration processing and transaction processing. Product registration processing is the process of registering products for each transaction. A transaction is a set of commercial transactions to complete the delivery of products between a customer and a store. Transaction processing is the process of accounting for a transaction. Transaction includes payment of the price for a transaction. Transaction includes the meaning of settlement. The POS terminal 1 is an example of a registration processing device that performs at least product registration processing. The POS terminal 1 is also an example of a product data processing device that can process product data. For example, the product data is a product code.

[0012] A product code is a code that can uniquely identify a product. A product code is a string of multiple digits. The leftmost digit in a string of numbers is the first digit of the string. The first digit is the first digit. The rightmost digit in a string of numbers is the last digit of the string. If a product code has 8 digits, the last digit of the string is the 8th digit. Product codes are codes with various numbers of digits according to various coding systems such as JAN code or UPC code. Product codes include a check digit as the last digit. The check digit is a number used to check whether there are any errors in the numeric string of the product code.

[0013] Here, we will explain an 8-digit product code as an example, using the shortened JAN code and UPC-E code from in-store marking. Hereinafter, the shortened JAN code will be referred to as the 8-digit JAN code. The 8-digit JAN code and UPC-E code from in-store marking are both 8-digit codes. When the product code is an 8-digit JAN code from in-store marking, the first digit of the product code may be "0". When the product code is a UPC-E code, the first digit of the product code is "0". The method of calculating the check digit differs between the 8-digit JAN code from in-store marking and the UPC-E code.

[0014] If either the 8-digit JAN code system or the UPC-E code system is an example of a first code system, the other is an example of a second code system. The first code system and the second code system have the same number of digits. The first code system and the second code system have different check digit calculation methods. A check digit calculated from a product code based on the calculation method in the first code system is also called the first check digit of a product code according to the first code system. The first check digit of a product code according to the first code system is sometimes abbreviated to "first check digit." A check digit calculated from a product code based on the calculation method in the second code system is also called the second check digit of a product code according to the second code system. The second check digit of a product code according to the second code system is sometimes abbreviated to "second check digit."

[0015] If the 8-digit JAN code coding system is an example of the first coding system, the UPC-E code coding system is an example of the second coding system. A check digit calculated from a product code based on the calculation method in the 8-digit JAN code coding system is an example of the first check digit. A check digit calculated from a product code based on the calculation method in the UPC-E code coding system is an example of the second check digit.

[0016] If the UPC-E code system is an example of the first code system, then the 8-digit JAN code system is an example of the second code system. A check digit calculated from a product code based on the calculation method in the UPC-E code system is an example of the first check digit. A check digit calculated from a product code based on the calculation method in the 8-digit JAN code system is an example of the second check digit.

[0017] The POS terminal 1 includes a processor 10, a main memory 11, an auxiliary storage device 12, a communication interface 13, an input / output interface 14, a scanner 15, a change dispenser 16, a printing device 17, an input device 18, and a display device 19. The components that make up the POS terminal 1 are connected to each other so that signals can be input and output. In FIG. 1, the interface is indicated as "I / F."

[0018] The processor 10 corresponds to the central part of the POS terminal 1. The processor 10 is an element that constitutes the computer of the POS terminal 1. For example, the processor 10 is a CPU (Central Processing Unit), but is not limited to this. The processor 10 may be composed of various circuits. The processor 10 is an example of a processing circuit of the POS terminal 1. The processor 10 loads a program that is pre-stored in the main memory 11 or the auxiliary storage device 12 into the main memory 11. The program is a program that can cause the processor 10 to execute the processing of each means realized by the processor 10, which will be described later. The processor 10 executes various processes by executing the program loaded into the main memory 11.

[0019] The main memory 11 corresponds to the main storage portion of the POS terminal 1. The main memory 11 is an element that constitutes the computer of the POS terminal 1. The main memory 11 includes a non-volatile memory area and a volatile memory area. The main memory 11 stores an operating system or programs in the non-volatile memory area. The main memory 11 uses the volatile memory area as a work area where data is rewritten by the processor 10 as appropriate. For example, the main memory 11 includes a ROM (Read Only Memory) as a non-volatile memory area. For example, the main memory 11 includes a RAM (Random Access Memory) as a volatile memory area. The main memory 11 is an example of a storage unit of the POS terminal 1.

[0020] The auxiliary storage device 12 corresponds to the auxiliary storage portion of the POS terminal 1. The auxiliary storage device 12 is an element that constitutes the computer of the POS terminal 1. The auxiliary storage device 12 is an EEPROM (registered trademark) (Electric Erasable Programmable Read-Only Memory), an HDD (Hard Disc Drive), an SSD (Solid State Drive), or the like. The auxiliary storage device 12 stores the above-mentioned programs, data used by the processor 10 when performing various processes, and data generated by the processes in the processor 10. The auxiliary storage device 12 is an example of a storage portion of the POS terminal 1.

[0021] The auxiliary storage device 12 may include a condition storage area 121. The condition storage area 121 may store information indicating a condition for calculating a second check digit after calculating a first check digit. The reason for calculating the second check digit after calculating the first check digit is that the coding scheme for a product code may be the second coding scheme instead of the first coding scheme. The condition may also be a condition for treating the product code in the second coding scheme when treating the product code in the first coding scheme is incorrect.

[0022] The conditions include a condition related to the input mode. The input mode is the mode of inputting the product code. The input mode includes manual input of the product code via the input device 18 or input of the product code via the scanner 15. The condition related to the input mode is a condition related to the mode in which the product code was input. For example, the condition related to the input mode is that the product code was manually input via the input device 18.

[0023] If the input mode is manual input of the product code via the input device 18, the input mode satisfies the conditions regarding the input mode. If the input mode is input of the product code via the scanner 15, the input mode does not satisfy the conditions regarding the input mode.

[0024] The reason why the conditions include conditions related to the input mode is as follows. For example, when the input mode is manual input of a product code via the input device 18, a code system that is initially applied to the product code may be set. When the product code is eight digits long, the code system that is initially applied to the product code is the eight-digit JAN code code system or the UPC-E code code system. The code system of the product code may differ from the code system that is initially applied to the product code.

[0025] We will explain the case where the coding system first applied to the product code is the 8-digit JAN code system. If the product code is in the 8-digit JAN code system, the first check digit will match the check digit included in the product code. If the product code is not in the 8-digit JAN code system, the first check digit will usually not match the check digit included in the product code. The reason for the mismatch may be an input error in the product code, but it may also be because the product code is in the UPC-E code system. If the product code is in the UPC-E code system, the second check digit will match the check digit included in the product code.

[0026] This section explains the case where the coding system first applied to the product code is the UPC-E coding system. If the product code is in the UPC-E coding system, the first check digit will match the check digit contained in the product code. If the product code is not in the UPC-E coding system, the first check digit will usually not match the check digit contained in the product code. This mismatch may be due to an input error in the product code, but it may also be because the product code is in the 8-digit JAN coding system. If the product code is in the 8-digit JAN coding system, the second check digit will match the check digit contained in the product code.

[0027] The conditions include a condition regarding the numeric string, which is a condition regarding the arrangement of the numeric string of the product code.

[0028] In one example, the condition for the numeric string is that the product code has a predetermined number of digits and the value of a predetermined digit in the product code is a predetermined value. For example, the predetermined number of digits is eight, the predetermined digit is the first digit, and the predetermined value is "0," but these are not limited to these. The predetermined number of digits, the predetermined digit, and the predetermined value can be set appropriately depending on the two code systems in question.

[0029] In this example, if the product code has a predetermined number of digits and the value of the predetermined digit in the product code is a predetermined value, the numeric string satisfies the condition regarding the numeric string. If the product code has a different number of digits, the numeric string does not satisfy the condition regarding the numeric string. If the value of the predetermined digit in the product code is not a predetermined value, the numeric string does not satisfy the condition regarding the numeric string.

[0030] The reason why the conditions include the above-mentioned conditions related to the numeric string is as follows: If the product code has a predetermined number of digits and the value of the predetermined digit of the product code is a predetermined value, the product code may be in multiple code systems with the same number of digits but different ones. For example, if the product code has eight digits and the first digit of the product code is "0," the product code may be an eight-digit JAN code or a UPC-E code for in-store marking.

[0031] In another example, the condition for the numeric string is that the number of digits remaining after excluding the first digit of the product code is not a predetermined number, and that the code remaining after excluding the first digit of the product code is within a predetermined range. For example, the predetermined number of digits is eight, and the predetermined range is, but is not limited to, a range of 1,000,000 or more and 9,999,999. The predetermined number of digits and the predetermined range can be set appropriately depending on the two target code systems.

[0032] In this example, if the number of digits in the product code after excluding the first digit is not the specified number and the code after excluding the first digit is within a specified range, the numeric string satisfies the condition regarding the numeric string. If the number of digits in the product code after excluding the first digit is the specified number, the numeric string does not satisfy the condition regarding the numeric string. If the code after excluding the first digit is not within a specified range, the numeric string does not satisfy the condition regarding the numeric string.

[0033] The reason why the conditions include the above-mentioned conditions regarding the numeric string is as follows: If the number of digits in the product code after excluding the first digit is not the specified number and is within a specified range, the product code may be one of multiple code systems with the same number of digits but different numbers. For example, if the number of digits in the product code after excluding the first digit is not eight and the seven-digit code after excluding the first digit is between 1,000,000 and 9,999,999, the product code may be an eight-digit JAN code or UPC-E code used in in-store marking.

[0034] The conditions can include at least one of a condition related to the input mode and a condition related to the numeric string. A case will be described where the conditions include a condition related to the input mode and a condition related to the numeric string. If the input mode satisfies the condition related to the input mode and the numeric string satisfies the condition related to the numeric string, the product code satisfies the condition. If the input mode does not satisfy the condition related to the input mode, the product code does not satisfy the condition. If the numeric string does not satisfy the condition related to the numeric string, the product code does not satisfy the condition. A case will be described where the conditions include a condition related to the input mode but do not include a condition related to the numeric string. If the input mode satisfies the condition related to the input mode, the product code satisfies the condition. If the input mode does not satisfy the condition related to the input mode, the product code does not satisfy the condition. A case will be described where the conditions include a condition related to the numeric string but do not include a condition related to the input mode. If the numeric string satisfies the condition related to the numeric string, the product code satisfies the condition. If the numeric string does not satisfy the condition related to the numeric string, the product code does not satisfy the condition.

[0035] If the product code satisfies the condition, the processor 10 calculates the second check digit after calculating the first check digit, and if the product code does not satisfy the condition, the processor 10 does not calculate the second check digit after calculating the first check digit.

[0036] The communication interface 13 includes various interfaces that connect the POS terminal 1 to other electronic devices via a network in accordance with a predetermined communication protocol so that the POS terminal 1 can communicate with them. The communication interface 13 is an example of a communication unit of the POS terminal 1.

[0037] The input / output interface 14 includes various interfaces that connect the POS terminal 1 to other electronic devices via a direct wired or wireless connection to enable communication. For example, the input / output interface 14 connects the POS terminal 1 to a card reader. A card reader is a device that reads card data recorded on a magnetic stripe or IC (Integrated Circuit) chip of a card medium. The card medium may include a credit card.

[0038] The scanner 15 is a device that reads various code symbols and acquires data from the code symbols. The scanner 15 may include a scanner that uses an imaging element such as a CCD (Charge-Coupled Device), or may include a laser scanner. For example, the code symbol is a barcode symbol or a two-dimensional code symbol. The code symbol may include a product code symbol that records a product code associated with the product. The product code symbol is an image attached to the product. The code symbol may include a code symbol that records a store membership code. The member code symbol may be an image attached to a card or an image that can be displayed on the terminal. The scanner 15 is an example of an input unit for inputting data into the POS terminal 1.

[0039] The change dispenser 16 is a device that dispenses bills or coins equivalent to the amount of change.

[0040] The printing device 17 is a device for printing on receipts. For example, the printing device 17 is a thermal printer or an inkjet printer.

[0041] The input device 18 is a device that can input instructions to the POS terminal 1. For example, the input device 18 may include a keyboard. The input device 18 may include a touch screen configured together with the display device 19. The input device 18 is an example of an input unit for inputting data to the POS terminal 1.

[0042] The display device 19 is a device capable of displaying various images under the control of the processor 10. For example, the display device 19 is a liquid crystal display or an EL (Electroluminescence) display. The display device 19 is an example of a display unit of the POS terminal 1.

[0043] The hardware configuration of the POS terminal 1 is not limited to the above configuration, and the POS terminal 1 allows the omission or modification of the above components and the addition of new components as appropriate.

[0044] Each unit realized by the processor 10 will be described. The processor 10 realizes an acquisition means 101, a calculation means 102, a determination means 103, a registration means 104, and an accounting means 105. Each means realized by the processor 10 can also be referred to as each function or each unit. Each means realized by the processor 10 can also be referred to as being realized in a control means or control unit including the processor 10 and the main memory 11.

[0045] The acquisition means 101 acquires a product code input via the input device 18 or the scanner 15 . The calculation means 102 calculates the check digit from the product code. The determination means 103 executes various determination processes. The registration means 104 registers the product associated with the product code. The accounting means 105 processes the accounting of one transaction based on the registration of each product in one transaction.

[0046] (Example of operation) An example of the operation of the POS terminal 1 configured as above will now be described. The processing procedures described below are merely examples, and each process may be modified as much as possible. Furthermore, steps may be omitted, replaced, or added as appropriate depending on the embodiment.

[0047] FIG. 2 is a flowchart illustrating the procedure of the product registration process performed by the processor 10 of the POS terminal 1.

[0048] The acquisition means 101 acquires a product code input via the input device 18 or the scanner 15 (ACT1). When a store clerk who is the user of the POS terminal 1 manually inputs a product code using the input device 18, the acquisition means 101 acquires the product code input via the input device 18. When a user of the POS terminal 1 causes the scanner 15 to read a code symbol attached to a product, the acquisition means 101 acquires the product code input via the scanner 15. If the acquisition means 101 does not acquire a product code (ACT1, NO), the acquisition means 101 continues the processing of ACT1. If the acquisition means 101 acquires a product code (ACT1, YES), the processing transitions from ACT1 to ACT2.

[0049] The calculation means 102 calculates a first check digit of the product code according to the first code scheme based on the product code acquired by the acquisition means 101 (ACT2). In ACT2, for example, the calculation means 102 handles the product code using the 8-digit JAN code scheme or the UPC-E code scheme, which serves as the first code scheme. The first code scheme may be a code scheme set as the code scheme initially applied to the product code. The first code scheme may also be a code scheme set according to the sequence of the first two digits of the product code.

[0050] The determination means 103 determines whether the first check digit calculated by the calculation means 102 matches the check digit included in the product code (ACT3). If the first check digit matches the check digit included in the product code (ACT3, YES), the process transitions from ACT3 to ACT4. If the first check digit does not match the check digit included in the product code (ACT3, NO), the process transitions from ACT3 to ACT5.

[0051] If the first check digit matches the check digit included in the product code, the registration means 104 registers the product associated with the product code (ACT4). In ACT4, for example, the registration means 104 registers the product by storing product information based on the product code in the main memory 21 or the auxiliary storage device 22. The product information is information unique to the product. For example, the product information includes information such as price and name. The registration means 104 may acquire the product information from the auxiliary storage device 22. The registration means 104 may acquire the product information from an electronic device different from the POS terminal 1 via a network.

[0052] If the first check digit does not match the check digit included in the product code, the determination means 103 determines whether the product code satisfies the condition (ACT5). If the product code satisfies the condition (ACT5, YES), the process transitions from ACT5 to ACT6. If the product code does not satisfy the condition (ACT5, NO), the process transitions from ACT5 to ACT9.

[0053] If the first check digit does not match the check digit included in the product code and the product code satisfies the condition, the calculation means 102 calculates a second check digit of the product code according to the second code system (ACT6). In ACT6, for example, the calculation means 102 handles the product code using the 8-digit JAN code system or the UPC-E code system, which is the second code system. If the 8-digit JAN code system is the first code system, the calculation means 102 handles the product code using the UPC-E code system. If the UPC-E code system is the first code system, the calculation means 102 handles the product code using the 8-digit JAN code system.

[0054] The determination means 103 determines whether the second check digit calculated by the calculation means 102 matches the check digit included in the product code (ACT7). If the second check digit matches the check digit included in the product code (ACT7, YES), the process transitions from ACT7 to ACT8. If the second check digit does not match the check digit included in the product code (ACT7, NO), the process transitions from ACT7 to ACT9.

[0055] If the second check digit matches the check digit included in the product code, the registration means 104 registers the product associated with the product code (ACT8). The processing of ACT8 may be the same as the processing of ACT4.

[0056] If the second check digit does not match the check digit included in the product code, the processor 10 executes a process different from the product registration process (ACT9). In ACT9, for example, the processor 10 determines that the input product code is incorrect and processes the input product code as an error without registering the product. The processor 10 may display an image indicating an error in the input product code on the display device 19. The processor 10 may also output an alert as audio from the speaker.

[0057] The determination means 103 determines whether the registration of the products for one transaction is complete (ACT10). In ACT10, for example, if the user of the POS terminal 1 presses the subtotal key using the input device 18, the determination means 103 determines that the registration of the products for one transaction is complete. The subtotal key is a key for inputting an instruction regarding the completion of the registration of the products for one transaction in order to calculate the billing amount for that transaction. Pressing the subtotal key is an example of inputting an instruction regarding the completion of the registration of the products for one transaction. If the registration of the products for one transaction is complete (ACT10, YES), the process transitions from ACT10 to ACT11. If the registration of the products for one transaction is not complete (ACT10, NO), the process transitions from ACT10 to ACT1.

[0058] The accounting means 105 processes the accounting for one transaction based on the registration of each product in one transaction (ACT11). In ACT11, for example, the accounting means 105 processes the accounting for one transaction according to the selected accounting method. Accounting methods include offline accounting and online accounting. Offline accounting is a payment method in which the POS terminal 1 does not require cooperation with other electronic devices via a network such as the Internet. For example, offline accounting is a payment method performed by cash. Online accounting is a payment method in which the POS terminal 1 cooperates with other electronic devices via a network such as the Internet. For example, online accounting is a payment method such as credit card payment, electronic money payment, debit card payment, and code payment.

[0059] The processor 10 may omit the processing of ACT5. In this example, the determination means 103 does not determine whether the product code satisfies the condition. If the first check digit does not match the check digit included in the product code, the calculation means 102 calculates a second check digit of the product code according to the second code system.

[0060] An example of the condition determination process by the determination means 103 in ACT5 above to determine whether or not the product code satisfies the condition will be described. FIG. 3 is a flowchart illustrating the procedure of the condition determination process performed by the processor 10 of the POS terminal 1. Here, a case will be described in which the conditions include a condition regarding the input mode and a condition regarding the number string.

[0061] The determination means 103 determines whether the input mode satisfies the conditions regarding the input mode (ACT21). If the input mode satisfies the conditions regarding the input mode (ACT21, YES), the process proceeds from ACT21 to ACT22. If the input mode does not satisfy the conditions regarding the input mode (ACT21, NO), the process proceeds from ACT21 to ACT24.

[0062] The determination means 103 determines whether the number string satisfies the condition regarding the number string (ACT22). If the number string satisfies the condition regarding the number string (ACT22, YES), the process proceeds from ACT22 to ACT23. If the number string does not satisfy the condition regarding the number string (ACT22, NO), the process proceeds from ACT22 to ACT24.

[0063] If the input mode satisfies the condition regarding the input mode and the numeric string satisfies the condition regarding the numeric string, the determination means 103 determines that the product code satisfies the condition (ACT23).

[0064] If the input mode does not satisfy the condition regarding the input mode, or if the numeric string does not satisfy the condition regarding the numeric string, the determining means 103 determines that the product code does not satisfy the condition (ACT24).

[0065] If the conditions include a condition related to the input mode but do not include a condition related to the number string, the determination means 103 omits the processing of ACT 22. In this example, if the input mode satisfies the condition related to the input mode in ACT 23, the determination means 103 determines that the product code satisfies the condition. If the input mode does not satisfy the condition related to the input mode in ACT 24, the determination means 103 determines that the product code does not satisfy the condition.

[0066] If the conditions include a condition related to the numeric string but do not include a condition related to the input mode, the determination means 103 omits the processing of ACT 21. In this example, in ACT 23, if the numeric string satisfies the condition related to the numeric string, the determination means 103 determines that the product code satisfies the condition. If the numeric string does not satisfy the condition related to the numeric string, the determination means 103 determines that the product code does not satisfy the condition.

[0067] (effect) A product data processing device according to an embodiment includes an acquisition unit that acquires a product code input via an input unit. The product data processing device includes a calculation unit that calculates a first check digit of a product code according to a first code scheme, and, if the first check digit does not match the check digit included in the product code, calculates a second check digit of a product code according to a second code scheme. The product data processing device also includes a registration unit that registers a product associated with the product code if the second check digit matches the check digit included in the product code. Because various code schemes exist, even if treating a product code in a first code scheme is incorrect, treating the product code in a second code scheme may be correct. The product data processing device can increase the likelihood of treating the product code in the correct code scheme by checking the check digit of the product code in multiple different code schemes. This reduces the likelihood that the product data processing device will determine that the input product code is incorrect, thereby reducing errors in the input product code. The product data processing device can reduce the burden on users who register products for accounting.

[0068] In the product data processing device according to the embodiment, the first code system and the second code system are code systems in which the product codes have the same number of digits, but the check digit calculation methods are different. Even if the code systems have the same number of digits, such as the 8-digit JAN code and the UPC-E code, there are code systems that use different methods to calculate the check digit. By inspecting the check digit of a product code using multiple code systems with the same number of digits but different methods, the product data processing device can increase the likelihood that the product code will be handled using the correct code system.

[0069] In the product data processing device according to the embodiment, the calculation means calculates a second check digit if the first check digit does not match the check digit included in the product code and the product code satisfies a condition. The product data processing device can decide whether to calculate the second check digit depending on whether the product code satisfies a condition. The product data processing device can calculate the second check digit when it is highly likely that treating the product code in the first code scheme is incorrect and treating the product code in the second code scheme is correct. The product data processing device calculates the second check digit only when it is highly necessary, thereby reducing the processing load.

[0070] In the product data processing device according to the embodiment, the conditions include that the number of digits in the product code is a predetermined number, and the value of the predetermined digit in the product code is a predetermined value. For example, in the case of the 8-digit JAN code and UPC-E code used in in-store marking, the product code has a predetermined number of digits, and the value of a predetermined digit in the product code is also a predetermined value. Even if it is incorrect to treat the product code using either the 8-digit JAN code system or the UPC-E code system, it may be correct to treat it using the other system. By inspecting the check digit of the product code using multiple different code systems, the product data processing device can increase the likelihood of treating the product code using the correct code system.

[0071] In the product data processing device of the embodiment, the conditions include that the number of digits after excluding the first digit of the product code is not a predetermined number of digits, and the code after excluding the first digit of the product code is within a predetermined range. For example, in the case of the 8-digit JAN code and UPC-E code used in in-store marking, the number of digits remaining after excluding the first digit of the product code is not the specified number, and the code remaining after excluding the first digit falls within a specified range. Even if it would be incorrect to treat the product code as either the 8-digit JAN code system or the UPC-E code system, it may be correct to treat it as either the 8-digit JAN code system or the UPC-E code system. By inspecting the check digit of the product code using multiple different code systems, the product data processing device can increase the likelihood of treating the product code as the correct code system.

[0072] [Other embodiments] In the above embodiment, an example has been described in which the calculation means 102 calculates the second check digit if the first check digit does not match the check digit included in the product code, but this is not limiting. The calculation means 102 may calculate the first check digit and the second check digit based on the product code acquired by the acquisition means 101. In this example, the registration means 104 registers the product associated with the product code if the first check digit or the second check digit matches the check digit included in the product code. The calculation means 102 may change processing depending on whether the product code acquired by the acquisition means 101 satisfies a condition. In this example, if the product code satisfies the condition, the calculation means 102 calculates the first check digit and the second check digit. If the first check digit or the second check digit matches the check digit included in the product code, the registration means 104 registers the product associated with the product code. If the product code does not satisfy the condition, the calculation means 102 calculates the first check digit but does not calculate the second check digit.

[0073] In the above embodiment, the POS terminal 1 used by a store clerk has been described as an example of a product data processing device, but the product data processing device is not limited to this. The product data processing device may be an electronic device that at least performs product registration processing. The product data processing device may also be an electronic device for a semi-self-checkout system. In this example, the product data processing device performs product registration processing, and another electronic device different from the product data processing device performs checkout processing. The product data processing device may also be an electronic device for a full-self-checkout system. In this example, the product data processing device is an electronic device used by a customer that performs product registration processing and checkout processing. The product data processing device may also be a so-called cart POS for a cart-type self-checkout or a so-called cart POS for a smartphone-type self-checkout.

[0074] In the above embodiment, an eight-digit product code is described using the abbreviated JAN code and UPC-E code for in-store marking, but the present invention is not limited to this. The above embodiment can also be applied to product codes with numbers of digits other than eight when there are multiple code systems with the same number of digits but different lengths.

[0075] In the above embodiment, the product data processing device is implemented by a single electronic device, but the present invention is not limited to this. The product data processing device may be implemented by a system in which functions are distributed among multiple electronic devices.

[0076] The above-described embodiments may be applied not only to electronic devices such as product data processing devices, but also to methods executed by electronic devices, and may also be applied to programs that can cause a computer in an electronic device to execute various functions.

[0077] The program may be transferred in a state where it is stored in an electronic device, or in a state where it is not stored in an electronic device. In the latter case, the program may be transferred via a network, or in a state where it is recorded on a recording medium. The recording medium is a non-transitory tangible medium. The recording medium is an electronic device-readable medium. The recording medium may be in any form, such as a CD-ROM or memory card, as long as it can store the program and be readable by an electronic device.

[0078] Although several embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be embodied in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included within the scope and spirit of the invention, and are also included in the scope of the invention and its equivalents as defined in the claims. The following is the scope of the claims as originally filed. (1) an acquisition means for acquiring a product code input via an input unit; a calculation means for calculating a first check digit of the product code according to a first code scheme, and, if the first check digit does not match the check digit included in the product code, calculating a second check digit of the product code according to a second code scheme; a registration means for registering a product associated with the product code if the second check digit matches a check digit included in the product code; A product data processing device comprising: (2) The product data processing device according to (1), wherein the first code system and the second code system are code systems in which the product codes have the same number of digits but different methods for calculating check digits. (3) The product data processing device according to (1) or (2), wherein the calculation means calculates the second check digit if the first check digit does not match the check digit included in the product code and the product code satisfies a condition. (4) The product data processing device according to (3), wherein the conditions include that the number of digits in the product code is a predetermined number, and the value of a predetermined digit in the product code is a predetermined value. (5) The product data processing device according to (3), wherein the conditions include that the number of digits of the product code after excluding the first digit is not a predetermined number of digits, and the code after excluding the first digit of the product code is within a predetermined range. (6) The computer of the product data processing device A function of acquiring a product code input via an input unit; a function for calculating a first check digit of the product code according to a first code scheme; a function for calculating a second check digit of the product code according to a second code system if the first check digit does not match the check digit included in the product code; registering a product associated with the product code if the second check digit matches a check digit included in the product code; A program that executes the following. [Explanation of symbols]

[0079] 1...POS terminal, 10...processor, 11...main memory, 12...auxiliary storage device, 13...communication interface, 14...input / output interface, 15...scanner, 16...change dispenser, 17...printing device, 18...input device, 19...display device, 101...acquisition means, 102...calculation means, 103...determination means, 104...registration means, 105...accounting means, 121...condition storage area.

Claims

1. an acquisition means for acquiring a product code input via an input unit; a calculation means for calculating a first check digit of the product code according to a first code scheme, and, if the first check digit does not match the check digit included in the product code and the product code satisfies a condition, calculating a second check digit of the product code according to a second code scheme; a registration means for registering a product associated with the product code if the second check digit matches a check digit included in the product code; A product data processing device comprising:

2. The product data processing device according to claim 1 , wherein the first code system and the second code system are code systems in which the product codes have the same number of digits but have different check digit calculation methods.

3. The product data processing device according to claim 1 , wherein the condition includes that the product code has a predetermined number of digits and that a value of a predetermined digit of the product code is a predetermined value.

4. 2. The product data processing device according to claim 1, wherein the conditions include that the number of digits of the product code excluding the first digit is not a predetermined number of digits, and the code excluding the first digit of the product code is within a predetermined range.

5. The computer of the product data processing device A function of acquiring a product code input via an input unit; a function of calculating a first check digit of the product code according to a first code system; a function of calculating a second check digit of the product code according to a second code system when the first check digit does not match the check digit included in the product code and the product code satisfies a condition; registering a product associated with the product code if the second check digit matches a check digit included in the product code; A program that executes the following.

Citation Information

Patent Citations

  • Data processor

    JP1996167078A

  • Information processor and program

    JP2013186598A

  • reader

    JP2021117819A