This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2020-179116, filed on Oct. 26, 2020, the entire contents of which are incorporated herein by reference.
An embodiment to be described here generally relates to a payment apparatus and a receipt data creation method for a payment apparatus.
The price of the product purchased by a consumer, the total amount, and the like as well as payment information for the total amount, i.e., the price of products, are recorded on a receipt issued to the consumer from a payment apparatus such as a POS (Point Of Sales) terminal. In this case, in the case where the consumer pays the price by a method other than cash, such as a credit card and electronic money, the amount actually paid is recorded on the receipt as payment information. Meanwhile, in the case where the consumer pays the price by cash, the deposit amount and the change amount are recorded on the receipt as payment information. For this reason, there are cases where the payment amount by cash cannot be grasped simply by glancing at the receipt.
According to an embodiment, a payment apparatus includes an input device, a transaction memory, an interface, and a processor. The input device inputs information regarding a product to be purchased by a customer in a transaction. The transaction memory stores information regarding the transaction. The interface communicates with a cash handling equipment. The processor stores product sales data in the transaction memory on the basis of the input information regarding the product. The processor acquires a total amount of the transaction on the basis of the product sales data stored in the transaction memory, and stores total data including the acquired total amount in the transaction memory. The processor stores, where a deposit amount of cash from a customer is acquired via the interface, deposit data including the deposit amount in the transaction memory. The processor acquires a payment amount to be paid by the customer for the total amount, and stores payment data including the payment amount in the transaction memory. The processor acquires, where the deposit data is stored in the transaction memory, a cash payment amount used to pay the total amount, of the deposit amount included in the deposit data, and stores cash payment data including the cash payment amount in the transaction memory. The processor creates, on the basis of the information regarding the transaction stored in the transaction memory, receipt data including information regarding the total amount and the cash payment amount. Further, the processor outputs the created receipt data.
Hereinafter, an embodiment of a payment apparatus will be described with reference to the drawings. The same reference symbols in the drawings will denote the same or similar portions. This embodiment exemplifies, as a payment apparatus, a face-to-face POS terminal in which a sales clerk performs a process from sales registration of a product to be purchased by a consumer to payment of the price of the product. Note that the payment apparatus is not limited to a face-to-face POS terminal. The payment apparatus may be a self-service POS terminal in which the consumer himself/herself performs the process of sales registration of a product to payment of the price of the product. The payment apparatus may be a registration machine or an accounting machine of a semi-self-service checkout system in which sales registration of a product is performed by a sales clerk and payment of the price is performed by a consumer.
The processor 1 corresponds to the central part of the computer descried above. The processor 1 controls, in accordance with an operating system or an application program, the respective units to realize various functions as the POS terminal 15. The processor 1 is, for example, a CPU (Central Processing Unit).
The main memory 2 corresponds to the main storage section of the computer described above. The main memory 2 includes a non-volatile memory area and a volatile memory area. The memory area of the main memory 2 stores an operating system or an application program. The main memory 2 stores, in the non-volatile or volatile memory area, data necessary for the processor 1 to execute processing for controlling the respective units in some cases. The volatile memory area of the main memory 2 is used as a work area in which data is appropriately rewritten by the processor 1. In the volatile memory area of the main memory 2, for example, a transaction memory, a balance memory, a cash-payment-amount memory, and a change memory, which will be described below, are formed. The non-volatile memory area is, for example, a ROM (Read Only Memory). The volatile memory area is, for example, a RAM (Random Access Memory).
The auxiliary storage device 3 corresponds to an auxiliary storage section of the computer described above. For example, an EEPROM (Electric Erasable Programmable Read-Only Memory), an HDD (Hard Disk Drive), an SSD (Solid State Drive), or the like can be used as the auxiliary storage device 3. The auxiliary storage device 3 stores data used by the processor 1 to perform various types of processing, data created by the processing in the processor 1, and the like. The auxiliary storage device 3 stores the application program described above in some cases.
The application program stored in the main memory 2 or the auxiliary storage device 3 includes a control program in which information processing executed by the POS terminal 15 is described. The method of installing the control program in the main memory 2 or the auxiliary storage device 3 is not particularly limited. The control program may be installed in the main memory 2 or the auxiliary storage device 3 by being recorded on a removable recording medium or distributed through communication via a network. The recording medium may have any form such as a CD-ROM and a memory card, as long as the recording medium is capable of storing a program and can be read by an apparatus.
The clock 4 functions as a time information source of the POS terminal 15. The processor 1 acquires the present date and time on the basis of the time information clocked by the clock 4.
The communication interface 5 performs data communication via a network such as a wired LAN (Local Area Network) and a wireless LAN. A store server, a credit card server, an electronic money server, and the like are connected to the network. The store server centrally manages operations of a plurality of POS terminals 15 installed in one store. The credit server supports payment by a credit card. The electronic money server supports payment by electronic money.
The keyboard 6 is an input device of the POS terminal 15. The keyboard 6 is a keyboard dedicated for the POS terminal 15 in which various function keys such as a multiplication key, a subtotal key, and a closing key are disposed in addition to a numeric key for inputting a numerical value such as the number and the amount. The closing key instructs the end of the registration of the product(s) sold as one transaction. The keyboard 6 may be one obtained by assigning a function required by the POS terminal 15 to an arbitrary key of a general-purpose keyboard.
The scanner 7 is an input device of the POS terminal 15. The scanner 7 reads a code symbol such as a bar code and a two-dimensional code. The scanner 7 may be of a type that reads a code symbol by scanning with a laser beam, or may be of a type that reads a code symbol from an image captured by an imaging device. Further, the scanner 7 may be a handy scanner or a stationary scanner.
The display 8 is a display device of the POS terminal 15. The display 8 includes a first display for displaying image information to a sales clerk who is an operator, and a second display for displaying image information to a consumer who is a customer. As this type of display 8, for example, a liquid crystal display, an organic EL (Electroluminescence) display, or the like can be used. The display 8 may be a touch panel.
The printer 9 is a printing device of the POS terminal 15. The printer 9 prints information on a receipt paper to issue a receipt. As this type of printer 9, for example, a thermal printer, a dot-impact printer, or the like can be used.
The reader 10 is an input device of the POS terminal 15. The reader 10 reads data recorded on a recording medium such as a credit card and electronic money. In the case where the recording medium is an IC card, the reader 10 is an IC card reader. In the case where the recording medium is an RFID (Radio Frequency Identification) tag, the reader 10 is an RFID reader. The reader 10 is not limited to one type. The POS terminal 15 may include a plurality of types of readers 10.
The change machine interface 11 performs data communication with an automatic change machine of a cash handling equipment. The change machine interface 11 receives data of the input amount, data of the number of stored coins and bills, and the like from the automatic change machine. The change machine interface 11 transmits the change data to the automatic change machine. The automatic change machine automatically pays out the cash corresponding to the change in accordance with the change data.
The sales clerk who is the operator of the POS terminal 15 checks whether or not a bar code is attached to a product to be purchased by a consumer who is a customer, i.e., a product to be purchased. The barcode is one obtained by bar-coding a product code unique to a product. In the case where a bar code is attached to a product to be purchased, the sales clerk operates the scanner 7 and causes the scanner 7 to read the bar code. In the case where no bar code is attached to the product, the sales clerk operates the keyboard 6 and inputs the product code of the product to be purchased.
In ACT1, the processor 1 stands by for product registration by determining whether or not a product to be purchased, which is sold as one transaction, has been registered. Specifically, the processor 1 determines whether or not a product to be purchased has been registered by determining whether or not the product code has been input via the keyboard 6 or the scanner 7. When whether or not a product code has been input via the keyboard 6 or the scanner 7 is determined and thus it is determined that the product to be purchased has been registered (YES in ACT1), the processing of the processor 1 proceeds to ACT2.
In ACT2, the processor 1 processes product sales data. That is, the processor 1 acquires product data of the product specified by the input product code described above. For example, the auxiliary storage device 3 stores a product data file storing product data such as product names and prices in association with the product codes of the respective products. The processor 1 searches the product data file and acquires the product data associated with the input product code described above. The processor 1 multiplies the price included in the product data by the number of sales to calculate the sales amount. The number of sales represents a multiplier in the case where the multiplier is input by the numeric key and the multiplication key before the product code is input. In the case where no multiplier is input, the number of sales is “1”. The processor 1 displays, on the display 8, the product name, the price, the number of sales, the sales amount, and the like.
In ACT3, the processor 1 stores the product sales data. That is, the processor 1 writes product sales data including a product code, a product name, a price, the number of sales, the sales amount, and the like in the transaction memory. The transaction memory is formed in a volatile region of the main memory 2.
In ACT4, the processor 1 determines whether or not the closing key of the keyboard 6 has been operated. In the case where it is determined that the closing key has not been operated (No in ACT4), the processing of the processor 1 returns to ACT1. In ACT1, the processor 1 stands by for the next product registration.
The sales clerk inputs a product code of a product to be purchased to the POS terminal 15 by operating the keyboard 6 or the scanner 7. When the product codes of all the products to be purchased have been input, the sales clerk operates the closing key.
The processor 1 executes the above-mentioned processing of ACT2 and ACT3 each time the registration of a product to be purchased has been determined. Meanwhile, in the case where it is determined in ACT4 that the closing key has been operated by the signal from the keyboard 6 (YES in ACT4), the processing of the processor 1 proceeds to ACT5. In ACT5, the processor 1 displays, on the display 8, the total amount “A” in one transaction. That is, the processor 1 calculates the total amount “A” in one transaction by summing up the sales amount of the products (product price on the receipt) of the sales data stored in the transaction memory (main memory 2) and adding the tax amount thereto as necessary. The processor 1 then displays the total amount “A” on the display 8.
In ACT6, the processor 1 stores the total data. That is, the processor 1 writes the total data including the total amount, the total number of sales, and the like to the transaction memory (main memory 2). The total number of sales represents a value obtained by summing up the number of sales of the product sales data stored in the transaction memory. In ACTT, the processor 1 writes the total amount “A” to the balance memory. That is, the processor 1 rewrites the balance “B” of the balance memory (value stored in the balance memory) to the total amount “A”. The balance memory is formed in a volatile region of the main memory 2.
The sales clerk who has operated and input the closing key receives payment of the price from the consumer. The consumer pays the total amount “A” displayed on the display 8 by a payment method such as cash, a credit card, electronic money, and a gift certificate. At this time, the consumer may select one of the payment methods to pay the price, or may pay the price by two or more types of payment methods.
In the case where the consumer pays the price by cash, the sales clerk puts the cash in the automated change machine. In the case where the consumer pays the price by a credit card, the sales clerk causes the reader 10 to read the data of the credit card. In the case where the consumer pays the price by electronic money, the sales clerk causes the reader to read the data relating to the electronic money. Alternatively, the sales clerk causes the scanner 7 to read the data relating to the electronic money.
In ACT8, the processor 1 stands by for selection of a payment method by determining whether or not a payment method has been selected. For example, in the case where cash is put in the automatic change machine, the processor 1 determines that cash has been selected as the payment method. For example, in the case where data of a credit card is read by the reader 10, the processor 1 determines that a credit card has been selected as the payment method. For example, in the case where data relating to electronic money is read by the reader 10 or the scanner 7, the processor 1 determines that electronic money has been selected as the payment method.
For example, in the case where a bar code printed on a gift certificate is read by the scanner 7, the processor 1 determines that a gift certificate has been selected as the payment method.
When it is determined that one of the above-mentioned payment methods has been selected (YES in ACT8), the processing of the processor 1 proceeds to ACT9. In ACT9, the processor 1 determines whether or not a payment method other than cash has been selected. In the case where it is determined that a payment method other than cash, i.e., a payment method such as a credit card, electronic money, and a gift certificate has been selected (YES in ACT9), the processing of the processor 1 proceeds to ACT10. In ACT10, the processor 1 executes non-cash payment processing. Details of the non-cash payment processing will be described below.
Meanwhile, in the case where it is determined in ACT9 that cash has been selected as the payment method (NO in ACT9), the processing of the processor 1 proceeds to ACT11. In ACT11, the processor 1 determines whether or not a flag Fa is set to “1”. The flag Fa has been reset to “0” in the initial state, and is 1-bit data to be set to “1” in the cash payment processing described below. In the case where it is determined that the flag Fa is not set to “1”, i.e., the flag Fa is reset to “0” (NO in ACT11), the processing of the processor 1 proceeds to ACT12. In ACT12, the processor 1 executes cash payment processing. Details of the cash payment processing will be described below.
Meanwhile, in the case where it is determined in ACT11 that the flag Fa is reset to “1” (YES in ACT11), the processing of the processor 1 returns to ACT8. As described above, the processor 1 does not execute the cash payment processing (processing of ACT11) while the flag Fa is set to “1”, i.e., in the case where cash is selected again as the payment method after the cash payment processing is executed. The processor 1 stands by for the payment of the price by a payment method other than cash.
When acquiring the payment amount “C”, the processor 1 stores the payment data in ACT22. That is, the processor 1 writes the payment data including the name code and the payment amount “C” to the transaction memory (main memory 2). The name code is a unique code set for each name that indicates the payment method. In advance, a name and a name code are set for each payment method such as cash, a credit card, electronic money, and a gift certificate.
In ACT23, the processor 1 subtracts the payment amount “C” from the balance “B” of the balance memory (main memory 2). The processor 1 then determines whether or not the balance “B” is 0 yen or less, i.e., the balance “B” runs out in ACT24. The balance “B” (the value stored in the balance memory) in this case is the total amount “A” (see ACTT). In the case where it is determined that the balance B is larger than 0 yen (NO in ACT24), the payment of the price has not been completed. In the case where it is determined that the balance B is larger than 0 yen, the processing of the processor 1 proceeds to ACT25. In ACT25, the processor 1 displays the balance B on the display 8. That is, an amount obtained by subtracting the payment amount “C” from the total amount “A” is displayed on the display 8. The processing of the processor 1 then returns to ACT8 in
Meanwhile, in the case where it is determined in ACT24 that the balance “B” is 0 yen or less (YES in ACT24), the processing of the processor 1 proceeds to ACT26. In ACT26, the processor 1 determines whether or not the flag Fa is reset to “0”.
In the case where it is determined that the flag Fa is set to “1” (NO in ACT26), the processing of the processor 1 proceeds to ACT27. In ACT27, the processor 1 resets the flag Fa to “0”.
Meanwhile, in the case where it is determined in ACT26 that the flag Fa is reset to “0” (YES in ACT26), the processing of the processor 1 proceeds to ACT28. In ACT28, the processor 1 stores text data indicating that the cash payment is 0 yen. That is, the processor 1 writes the text data indicating that, for example, “cash payment is 0 yen” to the transaction memory (main memory 2).
After the processing of ACT27 or ACT28, the processing of the processor 1 proceeds to ACT29. In ACT29, the processor 1 creates receipt data on the basis of the data of the transaction memory (main memory 2). The processor 1 then outputs the receipt data to the printer 9 and controls the printer 9 to print the receipt data on a receipt paper in ACT30. The printer 9 issues, for example, a receipt 20b described below shown in
In the case where it is determined that the deposit amount “D” is less than the balance “B” (NO in ACT32), the payment of the price is not completed with the put cash. In this case, the processing of the processor 1 proceeds to ACT33. In ACT33, the processor 1 rewrites a cash payment amount “E” of the cash-payment-amount memory (the value stored in the cash-payment-amount memory) to the deposit amount “D”. The cash-payment-amount memory is formed in a volatile region of the main memory 2.
In ACT34, the processor 1 stores cash payment data. That is, the processor 1 writes cash payment data including a name code indicating cash payment and the cash payment amount “E” to the transaction memory (main memory 2). The processor 1 then subtracts the deposit amount “D” from the balance “B” of the balance memory (main memory 2) in ACT35. The balance “B” (the value stored in the balance memory) in this case is the total amount “A” (see ACTT). The processor 1 then displays the balance “B” on the display 8 in ACT36. That is, an amount obtained by subtracting the deposit amount “D” from the total amount “A” is displayed on the display 8.
In ACT37, the processor 1 sets the flag Fa to “1”. The processing of the processor 1 then returns to ACT8 in
Meanwhile, in the case where it is determined in ACT32 that the deposit amount D is equal to larger than the balance B, i.e., in the case where it is determined that the payment of the price has been completed (YES in ACT32), the processing of the processor 1 proceeds to ACT38. In ACT38, the processor 1 stores the deposit amount data. That is, the processor 1 writes the name code indicating the deposit amount and the deposit amount D to the transaction memory (main memory 2).
The processor 1 then rewrites the cash payment amount “E” of the cash-payment-amount memory (main memory 2) to the balance “B” In ACT39. The processor 1 then stores the cash payment data in ACT40. That is, the processor 1 writes the name code indicating cash payment and the cash payment amount “E” to the transaction memory (main memory 2).
The processor 1 then rewrites a change amount “F” of the change memory (the value stored in the change memory) to an amount obtained by subtracting the balance “B” from the deposit amount “D” in ACT41. The balance “B” (the value stored in the balance memory) in this case is the total amount “A” (see ACTT). Therefore, the change amount “F” of the change memory is written to the amount obtained by subtracting the total amount “A” from the deposit amount “D”. Note that the change memory is formed in a volatile region of the main memory 2. In ACT42, the processor 1 stores the change data. That is, the processor 1 writes the name code indicating the change and the change amount F to the transaction memory (main memory 2).
In ACT43, the processor 1 determines whether or not the change amount “F” is larger than 0 yen. In the case where it is determined that the change amount “F” is larger than 0 yen, i.e., in the case where it is determined that the change needs to be paid out (YES in ACT43), the processing of the processor 1 proceeds to ACT44. In ACT44, the processor 1 outputs change data to the automatic change machine via the change machine interface 11. The change data includes data of the change amount “F”. As a result, cash corresponding to the change amount “F” is paid out from the automatic change machine.
Meanwhile, in the case where it is determined that the change amount “F” is 0 yen (NO in ACT43), the processing of the processor 1 skips the processing of ACT44. When finishing or skipping the processing of ACT44, the processor creates receipt data on the basis of the data of the transaction memory (main memory 2) in ACT45. The processor 1 then outputs the receipt data to the printer 9 and controls the printer 9 to print the receipt data on a receipt paper in ACT46. The printer 9 issues, for example, a receipt 20a described below shown in
Note that the processor 1 functions as a total acquisition unit by the processing of ACT6 in
The processor 1 functions as a cash payment acquisition unit by the processing of ACT34 and ACT39 in
The processor 1 functions as a creation unit by the processing of ACT45 in
The processor 1 functions as an output unit by the processing of ACT30 in
As described above, in accordance with this embodiment, it is possible to provide a POS terminal capable of issuing a receipt from which the payment amount by cash can be easily grasped. Further, it is possible to provide a control program capable of causing a computer to function as a POS terminal capable of issuing a receipt from which the payment amount by cash can be easily grasped. Further, it is possible to provide a receipt data creation method of creating a receipt from which the payment amount by cash can be easily grasped.
Although an embodiment has been described above, the embodiment is not limited thereto. The above-mentioned embodiment has exemplified a case where receipt data is printed out by the printer 9. In this regard, the receipt data may be directly transmitted and output to a receipt server as electronic receipt data. In this case, a consumer can browse, by accessing the receipt server using a communication terminal such as a smartphone, the receipt image on a display of the communication terminal. Therefore, the consumer can easily know the payment amount by cash from the receipt image.
In ACT39 in
In the above-mentioned embodiment has exemplified a case where receipt data including information indicating that the cash payment amount is 0 yen is created in the case where the deposit amount of cash is not included as the payment data. In this regard, the receipt data does not necessarily need to include information indicating that the cash payment amount is 0 yen.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2020-179116 | Oct 2020 | JP | national |