Transaction data processing device and its control program
The transaction data processing device efficiently allocates cashless payment expenses to tenants by classifying transactions and apportioning payment amounts, addressing the challenge of fee distribution in multi-tenant retail environments.
Patent Information
- Application Number
- JP2020153715
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-14
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-09-14
AI Technical Summary
Existing systems lack an efficient method to allocate expenses associated with cashless payments, such as electronic money and code payments, to individual tenants in a shopping center or retail store setting, as these payments incur fees and communication costs that need to be distributed accurately.
A transaction data processing device with summing, apportioning, and outputting means that classifies transactions by product codes, apportions payment amounts based on classification codes, and associates these with payment codes to facilitate accurate allocation of cashless payment expenses to tenants.
Enables easy acquisition and allocation of data for expenses related to cashless payments, allowing precise distribution of fees and communication costs to individual tenants based on their sales data.
Smart Images

Figure 0007566543000001 
Figure 0007566543000002 
Figure 0007566543000003
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a transaction data processing device and a control program for causing a computer to function as the transaction data processing device. [Background technology]
[0002] In recent years, cashless payments that do not use cash, such as electronic money payments and code payments using barcodes or two-dimensional codes, have been attracting attention. For this reason, many payment service providers have entered the cashless payment market. As a result, when we look at electronic money, for example, there are various types of electronic money, such as transportation electronic money, distribution electronic money, and bank electronic money. The same is true for code payments, and it is up to the consumer to decide which type of electronic money or code payment to use.
[0003] Therefore, from the perspective of customer service, an increasing number of stores are aiming to introduce multiple types of cashless payment. However, cashless payment usually incurs a fee to the payment service provider for each payment. In addition, cashless payment requires the use of communication lines such as the Internet, which incurs communication costs. Such expenses are generally borne by the store that has introduced the cashless payment system. Therefore, in shopping centers and other locations with multiple tenants, the expenses associated with the use of cashless payment must be allocated to each tenant. There is a demand for obtaining data that is effective in allocating such expenses. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 6633150 Summary of the Invention [Problem to be solved by the invention]
[0005] The problem to be solved by the embodiments of the present invention is to provide a transaction data processing device that can easily acquire data that is useful for allocating expenses associated with the use of cashless payment to each tenant, for example. [Means for solving the problem]
[0006] In one embodiment, the transaction data processing device includes an adding means, an apportioning means, an associating means, and an output means. The adding means adds up the amounts of products in one transaction by the classification code to which the products belong. The apportioning means apportions the payment amounts of the payment methods used in that one transaction by classification code in the ratio of the amounts by classification code calculated by the adding means. The associating means associates the payment amounts apportioned by classification code by the apportioning means with payment codes that identify the payment methods of those payment amounts. The output means outputs the payment amounts associated with the payment codes. [Brief description of the drawings]
[0007] [Figure 1] 1 is a schematic configuration diagram of a system including a store server which is an embodiment of a transaction data processing device. [Diagram 2] FIG. 2 is a block diagram showing a main circuit configuration of a store server. [Diagram 3] FIG. 2 is a schematic diagram showing the main data structure of a product data record stored in a product master file owned by a store server. [Figure 4] FIG. 2 is a schematic diagram showing the main data structure of a transaction data record stored in a transaction file held by a store server. [Diagram 5] FIG. 4 is a schematic diagram showing an example of a pattern table held by a store server. [Figure 6] FIG. 4 is a schematic diagram showing the main data structure of a tally record stored in a tally file owned by a store server. [Figure 7] 4 is a flowchart showing a procedure of main information processing executed by a processor of the store server. [Figure 8] 4 is a flowchart showing a procedure of main information processing executed by a processor of the store server. [Figure 9]4 is a flowchart showing a procedure of main information processing executed by a processor of the store server. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, an embodiment of a transaction data processing device will be described with reference to the drawings. 1 is a system configuration diagram of an embodiment of the present invention, in which a store server 3 of a POS (Point Of Sales) system 1 functions as a transaction data processing device.
[0009] The POS system 1 is typically installed in a retail store such as a mass merchandiser that sells food products, daily necessities, etc. In this embodiment, a retail store is exemplified in which a tenant operates each sales floor, such as a fruit and vegetable floor, a meat floor, a fresh fish floor, a prepared food floor, etc. However, accounting is not done for each tenant, but is done all at once at a dedicated accounting booth (cash register).
[0010] The POS system 1 includes one or more POS terminals 2 and a store server 3. Each POS terminal 2 and the store server 3 are connected via a LAN (Local Area Network) 4 so as to enable two-way communication.
[0011] The POS terminal 2 has a function of registering sales data of products sold as one transaction, and a function of accepting input of payment data for the price of the products registered as one transaction and settling the one transaction based on the payment data. The POS terminal 2 is installed at a checkout counter. The POS terminal 2 may be a face-to-face type in which a store clerk performs operations from registering products to inputting payment data, or a self-service type in which a customer performs operations from registering products to inputting payment data. The POS terminal 2 may be a semi-self-service type in which a store clerk registers products and a customer inputs payment data. Different types of POS terminals 2 may be mixed at a checkout counter. Since face-to-face, self-service, and semi-self-service POS terminals 2 are all well known, detailed explanations thereof will be omitted here.
[0012] The POS terminal 2 supports both cash and cashless payments. Cash payments include payments using gift certificates and other vouchers. Cashless payments include credit card payments, electronic money payments, and code payments using barcodes or two-dimensional codes. Cashless payment services are operated by payment service providers. In particular, services such as electronic money payments and code payments are operated by many payment service providers. By entering into a contract with a specific payment service provider, retail stores can use the cashless payment services operated by that payment service provider.
[0013] The store server 3 is a computer that provides services required for centralized management of information processing related to product registration, transaction settlement, etc., executed by each POS terminal 2. For example, the store server 3 has a data file in which the price of each product is preset, a so-called product master file 331 (see FIG. 2). When the store server 3 receives an inquiry about a product price from the POS terminal 2, it searches the product master file 331 and responds with the price of the corresponding product. In this way, the store server 3 provides a service that supports information processing related to product registration at the POS terminal 2.
[0014] The store server 3 is connected to a wide area network 5 such as the Internet. A headquarters server 6 is connected to the wide area network 5. The headquarters server 6 is installed in the headquarters that operates the retail store. If the retail store is a chain store, the store server 3 of each chain store is connected to the headquarters server 6 via the wide area network 5.
[0015] Although not shown, a server of a contracted payment service provider is also connected to the wide area network 5. When cashless payment is selected at the POS terminal 2, the store server 3 communicates with the server of the corresponding payment service provider via the wide area network 5. In this way, the store server 3 provides a service that supports information processing related to cashless payment at the POS terminal 2.
[0016] 2 is a block diagram showing the main circuit configuration of the store server 3. The store server 3 includes a processor 31, a main memory 32, an auxiliary storage device 33, a clock 34, a first communication interface 35, a second communication interface 36, and a device interface 37. In the store server 3, the processor 31 is connected to the main memory 32, the auxiliary storage device 33, the clock 34, the first communication interface 35, the second communication interface 36, and the device interface 37 via a system bus 38. The system bus 38 includes an address bus, a data bus, and the like. In the store server 3, the processor 31 is connected to the main memory 32, the auxiliary storage device 33, the clock 34, the first communication interface 35, the second communication interface 36, and the device interface 37 via the system bus 38, forming a computer.
[0017] The processor 31 corresponds to the central part of the computer. The processor 31 controls each part to realize various functions of the store server 3 according to an operating system or an application program. The processor 31 is, for example, a CPU (Central Processing Unit).
[0018] The main memory 32 corresponds to the main storage portion of the computer. The main memory 32 includes a nonvolatile memory area and a volatile memory area. The main memory 32 stores an operating system or an application program in the nonvolatile memory area. The main memory 32 stores data required for the processor 31 to execute processes for controlling each part in the volatile memory area. The main memory 32 also uses the volatile memory area as a work area where data is appropriately rewritten by the processor 31. The nonvolatile memory area is, for example, a ROM (Read Only Memory). The volatile memory area is, for example, a RAM (Random Access Memory).
[0019] The auxiliary storage device 33 corresponds to the auxiliary storage portion of the computer. As the auxiliary storage device 33, for example, a well-known storage device such as an EEPROM (Electric Erasable Programmable Read-Only Memory), an HDD (Hard Disc Drive), or an SSD (Solid State Drive) is used alone or in combination. The auxiliary storage device 33 stores data used by the processor 31 when performing various processes, data generated by the processes in the processor 31, etc. The auxiliary storage device 33 may also store an application program.
[0020] The application programs stored in the main memory 32 or the auxiliary storage device 33 include a control program, which will be described later. There is no particular limitation on the method for installing the control program in the main memory 32 or the auxiliary storage device 33. The control program can be recorded on a removable recording medium, or distributed by communication via a network, and installed in the main memory 32 or the auxiliary storage device 33. The recording medium may be in any form, such as a CD-ROM or memory card, as long as it can store a program and is readable by a device.
[0021] The clock functions as a time information source for the store server 3. The processor 31 obtains the current date and time based on the time information kept by the clock .
[0022] The first communication interface 35 connects to the LAN 4. The store server 3 performs data communication with the POS terminal 2 and the like connected to the LAN 4 via the first communication interface 35.
[0023] The second communication interface 36 connects to the wide area network 5. The store server 3 performs data communication via the second communication interface 36 with the head office server 6, the server of the payment service provider, and the like, which are connected to the wide area network 5.
[0024] The device interface 37 connects various devices. The devices include, for example, input devices such as a keyboard, a pointing device, and a touch sensor, and display devices such as a liquid crystal display and an organic electroluminescence display. Device memories such as a printer and a portable storage medium may also be connected to the device interface 37.
[0025] The store server 3 thus configured has the following configuration to obtain data effective for allocating fees, communication fees, and other expenses associated with the use of cashless payment to each tenant. That is, the store server 3 uses part of the memory area of the auxiliary memory device 33 as an area for a product master file 331, an area for a transaction file 332, an area for a pattern table 333, and an area for a tally file 334.
[0026] The product master file 331 is a collection of product data records Ra (see FIG. 3) created for each product sold at each sales counter. Fig. 3 is a schematic diagram showing the main data structure of a product data record Ra. As shown in Fig. 3, the product data record Ra includes items such as a product code, first to third classification codes, price, product name, and tax category. The product code is a single item code set for each product to identify each product. The first to third classification codes are codes for identifying product classifications set in stages based on the attributes of each product. The first classification code is a code of a major classification, and is called, for example, a group code. The second classification code is a code of a medium classification, and is called, for example, a department code. The third classification code is a code of a minor classification, and is called, for example, a class code.
[0027] An example of a product code and a classification code is apples sold in the produce section. There are various varieties of apples, such as Fuji, Koume, and Orin. If we assume that apples are sold at different prices depending on the variety, the code assigned to all apples of the same variety would be the product code. The code assigned to all apples regardless of variety would be the tertiary classification code (class code). The code assigned to not only apples but also other fruits such as mandarin oranges, grapes, and melons would be the secondary classification code (department code). The code assigned to all fruits, vegetables, and other products sold in the produce section would be the primary classification code (group code).
[0028] With these code settings, sales data for each apple variety can be obtained by aggregating sales by product code. Sales data for apples can be obtained by aggregating sales by tertiary classification code. Sales data for fruits can be obtained by aggregating sales by secondary classification code. Sales data for the produce section can be obtained by aggregating sales by primary classification code.
[0029] In the retail store of this embodiment, each sales floor is set up by a tenant. Therefore, the sales tallied by the first classification code are the sales by tenant. In other words, the first classification code can be said to be a code for identifying a tenant. Therefore, it is estimated that by collecting the necessary data using the first classification code as a key, it is possible to obtain data that is effective for allocating the expenses associated with the use of cashless payment to each tenant.
[0030] The number of classification code stages is not limited to three. It may be two stages, or four or more stages. In any case, by making the first classification code a common code for all products sold in one sales floor, the first classification code can become a code for identifying a tenant.
[0031] The price and product name are the price per item (unit price) and the name set for the product identified by the product code. The tax category is information for identifying whether the price is a tax-inclusive price or a tax-exclusive price. The tax category also includes information on the tax rate. The tax category also includes information for identifying non-taxable products that are not subject to tax.
[0032] The transaction file 332 is a collection of transaction data records Rb (see FIG. 4) that are generated each time a transaction is settled at the POS terminal 2. The transaction data records Rb may be generated by the POS terminal 2, or may be generated by the store server 3 based on information acquired from the POS terminal 2.
[0033] Fig. 4 is a schematic diagram showing the main data structure of a transaction data record Rb. As shown in Fig. 4, the transaction data record Rb includes items such as transaction date and time, terminal number, transaction number, number of items, product sales data for the number of items, total amount, number of payment methods, and payment data for the number of payment methods.
[0034] The transaction date and time is the date and time when the transaction was settled. The terminal number is the terminal number set to the POS terminal 2 at which the transaction was settled. A unique terminal number is preset for each POS terminal 2. The transaction number is a consecutive number that is issued each time a transaction is settled at the POS terminal 2 identified by the terminal number. The number of items is the number of merchandise items registered in that transaction.
[0035] The product sales data includes the product code, first to third classification codes, price, product name, tax classification, etc. of the product data record Ra, as well as the number of items sold and the sales amount. The number of items sold is the number of products with the same product code registered in the transaction. The sales amount is the amount calculated by multiplying the price by the number of items sold.
[0036] The total amount is the settlement amount of the transaction. The total amount is an amount including tax. The number of payment methods is the number of payment methods used to pay the total amount. In this embodiment, multiple payment methods can be used to settle one transaction.
[0037] Payment methods include a method using cash, a method using a voucher such as a gift certificate, a method using a credit card, a method using electronic money, a method using a code symbol such as a barcode or a two-dimensional code and a smartphone, and the like. A method using cash is called cash payment. A method using a voucher is called voucher payment. A method using a credit card is called credit payment. A method using electronic money is called electronic money payment. A method using a code symbol and a smartphone is called code payment. And, particularly for electronic money payment and code payment, the payment method differs depending on the payment provider.
[0038] A payment code is set for each type of payment method. The payment code consists of a main code and a sub-code. The main code is a unique code assigned to each of cash payment, voucher payment, credit payment, electronic money payment, and code payment. The sub-code is a unique code assigned to each payment provider for electronic money payment and code payment. Therefore, the main code identifies whether the payment method is cash payment, voucher payment, credit payment, electronic money payment, or code payment. Furthermore, for electronic money payment and code payment, the sub-code identifies the different payment method for each payment provider.
[0039] The payment data includes a payment code, i.e. a primary code and a secondary code, which identifies the payment method and the amount of the payment made by that payment method.
[0040] Fig. 5 is a schematic diagram showing an example of the pattern table 333. As shown in Fig. 5, the pattern table 333 has a pattern number field Fa, a main code field Fb, a sub code field Fc, and an output flag field Fd. In the field Fa, consecutive numbers from 1 to N are written as pattern numbers. The maximum value N of the pattern number is the total number of payment methods available at the retail store.
[0041] For example, in the case of a retail store that accepts three types of electronic money payments and three types of code payments in addition to cash payments, voucher payments, and credit payments, the pattern numbers would be 1 to 9. Fields Fb and Fc each contain the main code and sub-code of the payment method identified by the corresponding pattern number. For payment methods for which no sub-code is set, only the main code is written in field Fb.
[0042] The output flag of field Fd is bit data for identifying whether or not the payment method identified by the corresponding pattern number is to be output. The store server 3 outputs data that is effective for allocating expenses associated with the use of cashless payment to each tenant. Therefore, the payment methods of cashless payment are to be output. The output flag "1" is set for the payment methods to be output. The output flag "0" is set for the payment methods not to be output.
[0043] The tally file 334 is a collection of tally records Rc (see FIG. 6). The tally records Rc are used to create data that is effective for allocating expenses associated with the use of cashless payment to each tenant.
[0044] FIG. 6 is a schematic diagram showing the main data structure of the tally record Rc. As shown in FIG. 6, the tally record includes a target classification code and N pieces of pattern data with pattern numbers 1 to N. The target classification code is a code capable of identifying a tenant. Therefore, in this embodiment, the first classification code is the target classification code. Each of the N pieces of pattern data consists of a pattern number (1, 2, 3, ..., N), a total amount, and an output flag. The total amount is the total amount paid by the payment method specified by the pattern number (1, 2, 3, ..., N) during the tally period. Note that in this embodiment, the tally period is the period from opening to closing of one business day.
[0045] 7 to 9 are flow charts showing the main information processing procedures executed by the processor 31 of the store server 3 according to the control program. Below, the main operations of the store server 3 are explained using each diagram. Note that the operations explained below are merely examples. As long as the same operational effects can be obtained, the operational procedures are not particularly limited.
[0046] For example, when the time on the clock 34 reaches a specified time after closing time each business day, the processor 31 searches the transaction file 332. The transaction file 332 stores transaction data records Rb of all transactions settled at the POS terminal 2 on that business day. Each time the processor 31 reads out a transaction data record Rb with a transaction date and time for that business day from the transaction file 332, it starts information processing according to the procedure shown in the flowcharts of Figures 7 to 8. Hereinafter, the transaction data record Rb read out from the transaction file 332 is referred to as the record Rb to be processed.
[0047] The processor 31 sets the number of items in the record Rb to be processed in the register P as ACT1. The processor 31 also resets the counter C to “0” as ACT2. The register P and the counter C are both built into the processor 31.
[0048] In ACT3, processor 31 counts up counter C by "1". Then, in ACT4, processor 31 checks whether counter C is equal to or less than the value of register P, i.e., the number of items. If counter C is equal to or less than the number of items, processor 31 determines YES in ACT4 and proceeds to ACT5. In ACT5, processor 31 acquires unprocessed product sales data from record Rb to be processed. Hereinafter, the acquired product sales data will be referred to as the first data to be processed.
[0049] Processor 31 acquires a target classification code, i.e., a first classification code, from the first processing target data in ACT6. Processor 31 also acquires a tax category and a sales amount from the first processing target data in ACT7. Processor 31 checks whether the first processing target data is product sales data for a tax-exclusive product from the tax category information in ACT8. If it is product sales data for a tax-exclusive product, processor 31 judges YES in ACT8 and proceeds to ACT9. Processor 31 updates the sales amount of the first processing target data to a sales amount including tax using the tax rate included in the tax category information in ACT9. Processor 31 then proceeds to ACT10.
[0050] On the other hand, if the first processing target data is product sales data of a tax-inclusive product or a tax-exempt product, the processor 31 judges NO in ACT 8. The processor 31 skips the processing of ACT 9 and proceeds to ACT 10. Therefore, the sales amount of the first processing target data is not updated.
[0051] The processor 31 searches the first work memory as ACT10. The first work memory is formed in a volatile area of the main memory 32. The first work memory, together with the second work memory and the third work memory described below, is cleared before the time on the clock 34 reaches a predetermined time after the store closes each business day.
[0052] In ACT11, the processor 31 checks whether or not the first classification code of the first processing target data is stored in the first work memory. If the first classification code is not stored in the first work memory, the processor 31 judges NO in ACT11 and proceeds to ACT12. In ACT12, the processor 31 stores the first classification code and the sales amount of the first processing target data in the first work memory. After that, the processor 31 returns to ACT3.
[0053] On the other hand, if the first classification code is stored in the first work memory, the processor 31 determines YES in ACT 11 and proceeds to ACT 13. The processor 31 adds the sales amount of the first processing target data to the amount stored in the first work memory together with the first classification code in ACT 13. After that, the processor 31 returns to ACT 3.
[0054] Thereafter, the processor 31 repeatedly executes the processes of ACT5 to ACT13 until the counter C exceeds the value of the register P, i.e., the number of items. Therefore, the first work memory stores data that is the total of the sales amounts (tax-inclusive sales amounts in the case of tax-exclusive items) of all the commodity sales data for one transaction included in the processing target record Rb, sorted by the first classification code (target classification code) included in the commodity sales data.
[0055] Here, the processor 31 constitutes a summing means by executing the processes of ACT3 to ACT13. That is, the processor 31 sums up the amounts of the products in one transaction by the target classification code to which the products belong.
[0056] When the counter C exceeds the value of the register P, the processor 31 judges NO in ACT4 and proceeds to ACT14. The processor 31 calculates the total of the sales amounts stored in the first work memory by the first classification code in ACT14. Then, the processor 31 checks whether the total of the sales amounts matches the total amount of the record Rb to be processed in ACT15. Due to rounding when calculating the tax-inclusive sales amount, the total of the sales amounts may not match the total amount of the record Rb to be processed. If they do not match, the processor 31 judges NO in ACT15 and proceeds to ACT16. The processor 31 performs rounding so that the total of the sales amounts matches the total amount of the record Rb to be processed in ACT16. Specifically, the processor 31 sets the difference between the total of the sales amounts and the total amount of the record Rb to be processed as the fractional amount. The processor 31 then adds or subtracts the fractional amount to the largest sales amount among the sales amounts totaled by the first classification code. When there are a plurality of maximum sales amounts, the fractional amount is added to or subtracted from the sales amount of the smallest first classification code. After completing the rounding process, the processor 31 proceeds to ACT21 in FIG.
[0057] On the other hand, if the total sales amount matches the total amount in the record Rb to be processed, the processor 31 determines YES in ACT 15. The processor 31 skips the rounding process in ACT 16 and proceeds to ACT 21 in FIG.
[0058] The processor 31 sets the number of payment methods of the record Rb to be processed in register Q in ACT21. The processor 31 also resets counter D to "0" in ACT22. Both register Q and counter D are built into the processor 31. Note that counter D may be substituted by counter C.
[0059] In ACT23, processor 31 counts up counter D by "1". Then, in ACT24, processor 31 checks whether counter D is equal to or less than the value of register Q, i.e., the number of payment methods. If counter D is equal to or less than the number of payment methods, processor 31 judges YES in ACT24 and proceeds to ACT25. In ACT25, processor 31 acquires unprocessed payment data from record Rb to be processed. Hereinafter, the acquired payment data will be referred to as the second data to be processed.
[0060] The processor 31 detects, in ACT26, a pattern number m corresponding to a combination pattern of the main code and the sub code of the second processing target data from the pattern table 333. Then, in ACT27, the processor 31 obtains an output flag described in the pattern table 333 corresponding to the pattern number m.
[0061] Processor 31 acquires the first work data, i.e., the amounts stored for each first classification code in the first work memory, as ACT 28. Processor 31 apportions the payment amount of the second processing target data to each first classification code in the ratio of the amounts for each first classification code as ACT 29.
[0062] For example, if the amount for first classification code "1" is 200 yen, the amount for first classification code "2" is 400 yen, and the payment amount is 600 yen, the payment amount of 600 yen is prorated into the payment amount of 200 yen for first classification code "A" and the payment amount of 400 yen for first classification code "B." In a similar example, if the payment amount is 300 yen, the payment amount of 300 yen is prorated into the payment amount of 100 yen for first classification code "1" and the payment amount of 200 yen for first classification code "2."
[0063] Processor 31 generates apportionment data for each first classification code in ACT 30. The apportionment data includes the first classification code, the payment amount apportioned for each first classification code in the process of ACT 29, the pattern number m detected in the process of ACT 26, and the output flag acquired in the process of ACT 27. Processor 31 stores the apportionment data generated for each first classification code in ACT 31 in the second work memory.
[0064] Here, the processor 31 constitutes an apportionment means by executing the processes of ACT28 and ACT29. That is, the processor 31 apportions the payment amount of the payment method used in the one transaction for each target classification code in the ratio of the amounts by target product code calculated by the summing means.
[0065] Moreover, the processor 31 constitutes an association means by executing the process of ACT 30. That is, the processor 31 associates the payment amount apportioned for each target classification code by the apportionment means with the pattern number m, that is, the payment code that specifies the payment method of the payment amount.
[0066] In ACT32, the processor 31 calculates the apportioned data in the second work memory, that is, the total of the apportioned amounts for each first classification code. Then, in ACT33, the processor 31 checks whether the total of the apportioned amounts matches the payment amount of the second processing target data. Due to rounding processing when apportioning the payment amount, the total of the apportioned amounts may not match the payment amount. If they do not match, the processor 31 judges NO in ACT33 and proceeds to ACT34. In ACT34, the processor 31 performs rounding so that the total of the apportioned amounts matches the payment amount of the second processing target data. Specifically, the processor 31 sets the difference between the total of the apportioned amounts and the payment amount of the second processing target data as the fractional amount. Then, the processor 31 adds or subtracts the fractional amount to the largest apportioned amount among the apportioned amounts by first classification code. When there are a plurality of maximum apportioned amounts, the fractional amount is added to or subtracted from the apportioned amount of the smallest first classification code. After completing the rounding process, the processor 31 proceeds to ACT35.
[0067] On the other hand, if the total of the prorated amounts matches the payment amount of the second processing target data, the processor 31 determines YES in ACT 33. The processor 31 skips the rounding process in ACT 34 and proceeds to ACT 35.
[0068] The processor 31 stores the proportional division data in the second work memory in the third work memory in ACT 35. Then, the processor 31 clears the second work memory in ACT 36. After that, the processor 31 returns to ACT 23.
[0069] Thereafter, the processor 31 repeatedly executes the processes of ACT25 to ACT36 until the counter D exceeds the value of the register Q, i.e., the number of payment methods. Therefore, the third work memory stores the apportionment data generated for each payment method.
[0070] When the counter D exceeds the value of the register Q, the processor 31 judges NO in ACT24 and proceeds to ACT37. The processor 31 updates the tally file 334 based on the apportionment data in the third work memory in ACT37. Specifically, the processor 31 acquires the apportionment data from the third work memory. The processor 31 then adds pattern data consisting of the pattern number m of the apportionment data, the apportioned amount (total amount), and an output flag to the tally record Rc including the first classification code included in the apportionment data. At this time, if the pattern data of the pattern number m already exists in the tally record Rc, the apportioned amount of the apportionment data is added to the total amount of the pattern data, and no pattern data is added. The processor 31 executes the above-mentioned process for all the apportionment data stored in the third work memory. Thus, when the update process of the tally file 334 is completed, the processor 31 ends the process for the record Rb to be processed. Thereafter, the processor 31 sets the next transaction data record Rb as the target record Rb and executes the process steps shown in FIGS. 7 and 8 in the same manner as described above.
[0071] Here, the processor 31 constitutes a tallying means by executing ACT37 in cooperation with the tallying file 334. That is, the processor 31 tallies, for each object classification code, the payment amounts associated with the same payment code by the associating means.
[0072] Here, the operation of the store server 3 will be explained again based on a specific example of the transaction data record Rb. [Example 1] Product sales data A…First classification code: 1 Sales price: 111 yen Tax category: Excluding tax 8% Product sales data B…First classification code: 2 Sales price: 111 yen Tax category: Excluding tax 8% Total amount: 239 yen Payment data A: Payment code for pattern number 3 (output flag: 1) Payment amount: 239 yen [Example 2] Product sales data C…First classification code: 1 Sales price: 111 yen Tax category: Excluding tax 8% Product sales data D…First classification code: 2 Sales price: 111 yen Tax category: 10% tax included Total amount: 230 yen Payment data B: Payment code for pattern number 3 (output flag: 1) Payment amount: 130 yen Payment data C: Payment code for pattern number 4 (output flag: 1) Payment amount: 100 yen [Example 3] Product sales data E…First classification code: 1 Sales price: 111 yen Tax category: Excluding tax 8% Product sales data F…First classification code: 2 Sales price: 200 yen Tax category: Non-taxable Total amount: 319 yen Payment data D: Payment code for pattern number 3 (output flag: 1) Payment amount: 219 yen Payment data E: Payment code for pattern number 1 (output flag: 0) Payment amount: 100 yen In the case of [Specific Example 1], the tax category for product sales data A and product sales data B is 8% excluding tax, so the sales amount is 119 yen each. Therefore, the first work memory stores data AA with "first classification code: 1, sales amount: 119 yen" for product sales data A, and data BB with "first classification code: 2, sales amount: 119 yen" for product sales data B. Here, the sum of the sales amounts for data AA and data BB is 238 yen, which does not match the total amount of 239 yen. Therefore, due to the rounding in ACT16, the sales amount of data AA becomes 120 yen.
[0073] Next, the payment amount of 239 yen for payment data A is apportioned based on the ratio of the sales amount of data AA (120 yen) to the sales amount of data BB (119 yen). As a result, apportionment data A with "first classification code: 1, apportioned amount: 120 yen, pattern number: 3, output flag: 1" and apportionment data B with "first classification code: 2, apportioned amount: 119 yen, pattern number: 3, output flag: 1" are generated.
[0074] As a result, pattern 3 data with "Pattern number: 3, total amount 120 yen, output flag: 1" is added to tally record Rc with first classification code "1". If pattern 3 data already exists in tally record Rc with first classification code "1", the prorated amount of 120 yen is added to the total amount of that pattern 3 data. Similarly, pattern 3 data with "Pattern number: 3, total amount 119 yen, output flag: 1" is added to tally record Rc with first classification code "2". If pattern 3 data already exists in tally record Rc with first classification code "2", the prorated amount of 119 yen is added to the total amount of that pattern 3 data.
[0075] In the case of [Specific Example 2], the tax category for product sales data C is 8% exclusive tax, so the sales amount is 119 yen. The tax category for product sales data D is 10% inclusive tax, so the sales amount is 111 yen. Therefore, the first work memory stores data CC for product sales data C with "first classification code: 1, sales amount: 119 yen" and data DD for product sales data D with "first classification code: 2, sales amount: 111 yen." Here, the sum of the sales amounts for data CC and data DD is 230 yen, which matches the total amount of 230 yen. Therefore, no rounding is performed.
[0076] Next, the payment amount of 130 yen in the payment data B is apportioned in the ratio of the sales amount of 119 yen in the data CC to the sales amount of 111 yen in the data DD. As a result, apportionment data C with "first classification code: 1, apportioned amount: 67 yen, pattern number: 3, output flag: 1" and apportionment data D with "first classification code: 2, apportioned amount: 62 yen, pattern number: 3, output flag: 1" are generated. Here, the sum of the apportionment amounts of apportionment data C and apportionment data D is 129 yen, which does not match the payment amount of 130 yen. Therefore, the apportionment amount of apportionment data C becomes 68 yen due to the rounding in ACT34.
[0077] In addition, the payment amount of 100 yen in the payment data C is apportioned in the ratio of the sales amount of 119 yen in the data CC to the sales amount of 111 yen in the data DD. As a result, apportionment data E of "first classification code: 1, apportioned amount: 51 yen, pattern number: 4, output flag: 1" and apportionment data F of "first classification code: 2, apportioned amount: 48 yen, pattern number: 4, output flag: 1" are generated. In this case, the apportionment amount of the apportionment data E becomes 52 yen due to the rounding in ACT34.
[0078] As a result, pattern 3 data of "Pattern number: 3, total amount 68 yen, output flag: 1" and pattern 4 data of "Pattern number: 4, total amount 52 yen, output flag: 1" are added to the tally record Rc with the first classification code "1". If pattern 3 data or pattern 4 data already exists in the tally record Rc with the first classification code "1", the apportioned amount of 68 yen or 52 yen is added to the total amount of the pattern 3 data or pattern 4 data. Similarly, pattern 3 data of "Pattern number: 3, total amount 62 yen, output flag: 1" and pattern 4 data of "Pattern number: 4, total amount 48 yen, output flag: 1" are added to the tally record Rc with the first classification code "2". If pattern 3 data or pattern 4 data already exists in the tally record Rc with the first classification code "2", the apportioned amount of 62 yen or 48 yen is added to the total amount of the pattern 3 data or pattern 4 data.
[0079] In the case of [Specific Example 3], the tax category for product sales data E is 8% excluding tax, so the sales amount is 119 yen. The tax category for product sales data F is non-taxable, so the sales amount is 200 yen. Therefore, the first work memory stores data EE with "first classification code: 1, sales amount: 119 yen" for product sales data E, and data FF with "first classification code: 2, sales amount: 200 yen" for product sales data F. Here, the sum of the sales amounts for data EE and data FF is 319 yen, which matches the total amount of 319 yen. Therefore, no rounding is performed.
[0080] Next, the payment amount of 219 yen in the payment data D is apportioned in the ratio of the sales amount of 119 yen in the data EE to the sales amount of 200 yen in the data FF. As a result, apportionment data G of "first classification code: 1, apportioned amount: 81 yen, pattern number: 3, output flag: 1" and apportionment data H of "first classification code: 2, apportioned amount: 137 yen, pattern number: 3, output flag: 1" are generated. Here, the sum of the apportionment amounts of the apportionment data G and the apportionment data H is 218 yen, which does not match the payment amount of 219 yen. Therefore, the apportionment amount of the apportionment data H becomes 138 yen due to the rounding in ACT34.
[0081] In addition, the payment amount of 100 yen in the payment data E is apportioned in the ratio of the sales amount of 119 yen in the data EE to the sales amount of 200 yen in the data FF. As a result, apportionment data I with "first classification code: 1, apportioned amount: 37 yen, pattern number: 1, output flag: 0" and apportionment data J with "first classification code: 2, apportioned amount: 62 yen, pattern number: 1, output flag: 0" are generated. Here, the sum of the apportioned amounts of apportionment data I and apportionment data J is 99 yen, which does not match the payment amount of 100 yen. Therefore, due to the rounding in ACT34, the apportioned amount of apportionment data J becomes 63 yen.
[0082] As a result, pattern 3 data with "Pattern number: 3, total amount 81 yen, output flag: 1" and pattern 1 data with "Pattern number: 1, total amount 37 yen, output flag: 0" are added to the tally record Rc with the first classification code "1". If pattern 3 data or pattern 1 data already exists in the tally record Rc with the first classification code "1", the apportioned amount of 81 yen or 37 yen is added to the total amount of the pattern 3 data or pattern 1 data. Similarly, pattern 3 data with "Pattern number: 3, total amount 138 yen, output flag: 1" and pattern 4 data with "Pattern number: 1, total amount 63 yen, output flag: 0" are added to the tally record Rc with the first classification code "2". If pattern 3 data or pattern 1 data already exists in the tally record Rc with the first classification code "2", the apportioned amount of 138 yen or 63 yen is added to the total amount of the pattern 3 data or pattern 4 data.
[0083] Through the above process, pattern 1 data of "Pattern Number: 1, Amount: 37 yen, Output Flag: 0", pattern 3 data of "Pattern Number: 3, Amount: 269 yen, Output Flag: 1", and pattern 4 data of "Pattern Number: 4, Amount: 52 yen, Output Flag: 1" are added to the target classification code, i.e., tally record Rc with a first classification code of "1". Pattern 1 data of "Pattern Number: 1, Amount: 63 yen, Output Flag: 0", pattern 3 data of "Pattern Number: 3, Amount: 319 yen, Output Flag: 1", and pattern 4 data of "Pattern Number: 4, Amount: 48 yen, Output Flag: 1" are added to the tally record Rc with a first classification code of "2".
[0084] Here, the pattern 1 data of "Pattern number: 1, Amount: 37 yen, Output flag: 0" means that for a product with a first classification code of "1", the amount paid using the payment method with pattern number "1", i.e., a non-cashless payment method, is 37 yen. The pattern 3 data of "Pattern number: 3, Amount: 269 yen, Output flag: 1" means that for a product with a first classification code of "1", the amount paid using the payment method with pattern number "3", i.e., a cashless payment method, is 269 yen. The pattern 4 data of "Pattern number: 4, Amount: 52 yen, Output flag: 1" means that for a product with a first classification code of "1", the amount paid using the payment method with pattern number "4", i.e., a cashless payment method, is 52 yen. Similarly, pattern 1 data of "Pattern number: 1, Amount: 63 yen, Output flag: 0" means that the amount paid for a product with a first classification code of "2" using a payment method with pattern number "1", i.e., a non-cashless payment method, is 63 yen. Pattern 3 data of "Pattern number: 3, Amount: 319 yen, Output flag: 1" means that the amount paid for a product with a first classification code of "2" using a payment method with pattern number "3", i.e., a cashless payment method, is 319 yen. Pattern 4 data of "Pattern number: 4, Amount: 48 yen, Output flag: 1" means that the amount paid for a product with a first classification code of "2" using a payment method with pattern number "4", i.e., a cashless payment method, is 48 yen.
[0085] Therefore, by outputting the pattern 3 data and pattern 4 data in tally record Rc with a first classification code of "1" and the pattern 3 data and pattern 4 data in tally record Rc with a first classification code of "2", the amount paid by the cashless payment method for a product with a first classification code of "1" and the amount paid by the cashless payment method for a product with a first classification code of "2" can be obtained by each payment method. The data obtained in this way can be useful for allocating expenses associated with the use of cashless payment to each tenant, because the first classification code is a code for identifying tenants.
[0086] Next, the procedure for outputting the data of the tally record Rc stored in the tally file 334 will be described with reference to FIG. When an output request command is received from the headquarters server 6, the processor 31 starts information processing according to the procedure shown in the flow chart of Fig. 9. First, the processor 31 analyzes the output request command as ACT41 to obtain a request mode. There are a first mode, a second mode, and a third mode. The first mode is a cashless payment data request mode. The second mode is a non-cashless payment data request mode. The third mode is a full payment data request mode.
[0087] The processor 31 determines the request mode in ACT42. If the request mode is the first mode, the processor 31 proceeds to ACT43. The processor 31 selects pattern data whose output flag is "1" from all tally records Rc of the tally file 334 in ACT43. The processor 31 then proceeds to ACT45. If the request mode is the second mode, the processor 31 proceeds to ACT44. The processor 31 selects data whose output flag is "0" from all tally records Rc of the tally file 334 in ACT44. The processor 31 then proceeds to ACT45. If the request mode is the third mode, the processor 31 proceeds directly to ACT45.
[0088] The processor 31 creates an output file as ACT45. Specifically, when the request mode is the first mode, the processor 31 creates an output file including the pattern data selected in the process of ACT43. When the request mode is the second mode, the processor 31 creates an output file including the pattern data selected in the process of ACT44. When the request mode is the third mode, the processor 31 creates an output file including the pattern data included in all the tally records Rc of the tally file 334. The processor 31 controls to transmit the output file to the headquarters server 6 as ACT46. It controls the second communication interface 36. This control causes the output file to be transmitted and output to the headquarters server 6 via the wide area network 5. With this, the processor 31 ends the information processing for the output request command.
[0089] Here, the processor 31 constitutes a main means by executing the processes of ACT 45 and ACT 46. That is, the processor 31 outputs to the head office server 6 pattern data indicating the payment amount associated with the payment code.
[0090] Specifically, pattern table 333 constitutes a storage means for storing an output flag as an identifier for identifying whether each payment code is to be output or not. When the requested mode included in the output request command is the first mode, processor 31 outputs the payment amount associated with the payment code for which an identifier indicating that the payment code is to be output, i.e., the output flag of "1" is stored,
[0091] In this way, when an output request command specifying the first mode is received from the headquarters server 6, the processor 31 of the store server 3 selects pattern data whose output flag is “1” from all tally records Rc in the tally file 334, creates an output file containing the selected pattern data, and transmits and outputs it to the headquarters server 6.
[0092] Here, for example, pattern data with an output flag of "1" selected from an aggregation record Rc with a target classification code of "1" is the total amount paid by the cashless payment method for products with a first classification code of "1". In other words, it is the total amount paid by the cashless payment method for products sold by a tenant identified by the first classification code "1". Similarly, for example, pattern data with an output flag of "1" selected from an aggregation record Rc with a target classification code of "2" is the total amount paid by the cashless payment method for products with a first classification code of "2". In other words, it is the total amount paid by the cashless payment method for products sold by a tenant identified by the first classification code "2".
[0093] Therefore, the headquarters server 6 can obtain the total amount paid by the cashless payment method for the products sold by each tenant by outputting an output request command specifying the first mode to the store server 3. As a result, the headquarters server 6 can analyze the obtained data and allocate the expenses associated with the use of cashless payment to each tenant.
[0094] In addition, when an output request command specifying the second mode is received from the headquarters server 6, the processor 31 of the store server 3 selects pattern data whose output flag is “0” from all tally records Rc in the tally file 334, creates an output file containing the selected pattern data, and transmits and outputs it to the headquarters server 6.
[0095] Here, for example, pattern data with an output flag of "0" selected from an aggregation record Rc with a target classification code of "1" is the total amount paid by a non-cashless payment method for products with a first classification code of "1". In other words, it is the total amount paid by a non-cashless payment method for products sold by a tenant identified by a first classification code of "1". Similarly, for example, pattern data with an output flag of "0" selected from an aggregation record Rc with a target classification code of "2" is the total amount paid by a non-cashless payment method for products with a first classification code of "2". In other words, it is the total amount paid by a non-cashless payment method for products sold by a tenant identified by a first classification code of "2".
[0096] Therefore, by outputting an output request command specifying the second mode to the store server 3, the headquarters server 6 can obtain the total amount paid by non-cashless payment method for the products sold by each tenant.
[0097] In addition, when an output request command specifying the third mode is received from the headquarters server 6, the processor 31 of the store server 3 extracts pattern data from all tally records Rc of the tally file 334, creates an output file containing the extracted pattern data, and transmits and outputs it to the headquarters server 6.
[0098] Here, for example, pattern data with an output flag of "0" extracted from an aggregation record Rc with a target classification code of "1" is the total amount paid for products with a first classification code set to "1". In other words, it is the total amount paid for products sold by a tenant identified by the first classification code "1". Similarly, for example, pattern data with an output flag of "0" selected from an aggregation record Rc with a target classification code of "2" is the total amount paid for products with a first classification code set to "2". In other words, it is the total amount paid for products sold by a tenant identified by the first classification code "2".
[0099] Therefore, by outputting an output request command specifying the third mode to the store server 3, the headquarters server 6 can obtain the total amount paid for each tenant for the products sold by that tenant, regardless of the payment method.
[0100] Incidentally, when multiple payment methods are used in one transaction, the processor 31 of the store server 3 prorates the payment amount for each payment method according to the classification code. This is not limited to the case where one payment method is used in one transaction, but can also be used when two or more payment methods are used.
[0101] Furthermore, the processor 31 uses the tally file 334 to tally up the payment amounts for each classification code associated with the same payment code for each classification code. This eliminates the need for the head office server 6 to take the time to tally up the payment amounts for each classification code associated with the same payment code for each classification code, simplifying the time required to allocate expenses associated with the use of cashless payment to each tenant.
[0102] The store server 3 also stores an output flag in the pattern table 333 as an identifier for identifying whether or not each payment code is subject to output. The processor 31 then outputs the payment amount associated with the payment code for which an identifier indicating that the payment code is subject to output has been stored. This makes it easy to set which payment code is associated with which payment amount to output, depending on how the output flag is set. Furthermore, changes to the payment codes subject to output can be easily accommodated by simply changing the output flag.
[0103] Although one embodiment of the transaction data processing device has been described above, the embodiment is not limited to this.
[0104] In the above embodiment, the store server 3 is shown as one form of the transaction data processing device. The transaction data processing device is not limited to the store server 3. For example, the POS terminal 2 may be provided with the function of the store server 3, thereby making the POS terminal 2 one form of the transaction data processing device.
[0105] In the embodiment described above, the processor 31 of the store server 3 executes information processing according to the procedure shown in the flowchart of Fig. 9 in response to an output request command from the headquarters server 6. In another embodiment, at a predetermined date and time, the processor 31 may automatically start information processing according to the procedure shown in the flowchart of Fig. 9. In this case, the processor 31 determines that the requested mode is the first mode and proceeds with information processing, thereby making it possible to easily obtain data that is effective for allocating expenses associated with the use of cashless payment to each tenant.
[0106] In the above embodiment, the output file is output to the headquarters server, but the output file may be sent to a computer other than the headquarters server. Alternatively, the output file may be output to a device memory such as a portable storage medium connected to the device interface 37 of the store server 3. Furthermore, the data of the output file may be printed out by a printer connected to the device interface 37.
[0107] In the above embodiment, the case where sales data of products sold as one transaction is registered by the POS terminal 2 is illustrated. In another embodiment, the customer himself may register sales data of purchased products using a communication terminal such as a tablet terminal or a smartphone. Also, payment data can be entered using the above communication terminal.
[0108] The rounding described in the above embodiment is just an example. In short, as long as the total sales amount and the total amount of the record Rb to be processed match, or the total amount after pro rata division matches the payment amount of the second data to be processed, the content of the rounding does not matter.
[0109] In the above embodiment, the aggregation period for the aggregation file 334 is one business day. The aggregation period is not limited to one business day. The aggregation may be performed in units of two or more business days.
[0110] Although several other 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 implemented 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 of the invention and the scope of the invention and its equivalents described in the claims. The invention as originally claimed in the present application is set forth below. [1] A transaction data processing device comprising: an adding up means for adding up the amounts of products in one transaction by the classification code to which the products belong; an apportioning means for apportioning the payment amounts of the payment methods used in that transaction by classification code in the ratio of the amounts by classification code calculated by the adding up means; an associating means for associating the payment amounts apportioned by classification code by the apportioning means with payment codes that identify the payment methods of those payment amounts; and an output means for outputting the payment amounts associated with the payment codes. [2] A transaction data processing device as described in appendix [1], wherein when multiple types of payment methods are used in one transaction, the apportionment means apportions the payment amount for each payment method according to the classification code. [3] A transaction data processing device as described in appendix [1] or [2], further comprising a calculation means for calculating, for each classification code, payment amounts associated with the same payment code by the associating means, and wherein the output means outputs the payment amounts calculated for each classification code by the calculation means. [4] A transaction data processing device as described in any one of appendices [1] to [3], further comprising a memory means for storing an identifier for each payment code that identifies whether or not it is subject to output, wherein the output means outputs a payment amount associated with the payment code for which an identifier indicating that it is subject to output has been stored. [5] A transaction data processing device described in any one of appendices [1] to [4], wherein the classification code is a code for identifying a tenant selling a product, and the payment method identified by the payment code storing an identifier indicating that it is to be output is a cashless payment method. [6] A control program for causing a computer to function as an adding means for adding up the amounts of products in one transaction by the classification code to which the products belong, an apportioning means for apportioning the payment amounts of the payment methods used in that transaction by classification code in the ratio of the amounts by classification code calculated by the adding means, an associating means for associating the payment amounts apportioned by classification code by the apportioning means with payment codes that identify the payment methods of those payment amounts, and an output means for outputting the payment amounts associated with the payment codes. [Explanation of symbols]
[0111] 1...POS system, 2...POS terminal, 3...store server, 4...LAN, 5...wide area network, 6...headquarters server, 31...processor, 32...main memory, 33...auxiliary storage device, 34...clock, 35...first communication interface, 36...second communication interface, 37...device interface, 38...system bus, 331...product master file, 332...transaction file, 333...pattern table, 334...summary file.
Claims
1. an aggregating means for aggregating the amounts of products in one transaction by classification code to which the products belong; an apportioning means for apportioning the payment amounts for each of the payment methods according to the classification codes in proportion to the amounts for each classification code calculated by the adding means when a plurality of types of payment methods are used in the one transaction; an association means for associating each of the payment amounts apportioned by the apportionment means for each classification code with a payment code that specifies a payment method for the payment amount; an output means for outputting a payment amount associated with the payment code; A transaction data processing device comprising:
2. a counting means for counting, for each classification code, payment amounts associated with the same payment code by the associating means; Further comprising:
2. A transaction data processing apparatus according to claim 1, wherein said output means outputs the payment amount totaled for each classification code by said totaling means.
3. A storage means for storing an identifier for identifying whether or not each of the payment codes is an output target; Further comprising:
3. A transaction data processing apparatus according to claim 1, wherein said output means outputs a payment amount associated with said payment code having stored therein an identifier indicating that said payment code is to be output.
4. The classification code is a code for identifying a tenant selling a product, 4. The transaction data processing device according to claim 1, wherein the payment method specified by the payment code having an identifier indicating that it is to be output is a cashless payment method.
5. Computer, an accumulation means for accumulating the amounts of products in one transaction according to the classification code to which the products belong; a means for allocating, when a plurality of payment methods are used in the single transaction, the payment amounts for each of the payment methods according to the ratio of the amounts for each classification code calculated by the adding means; an association means for associating each of the payment amounts apportioned by the apportionment means for each classification code with a payment code that specifies a payment method for the payment amount; and an output means for outputting a payment amount associated with the payment code; A control program that functions as a
Citation Information
Patent Citations
Commodity sales data processor
JP1994004775A
Commodity sales registration data processor
JP2001076256A
Information processing device and program
JP2019204426A
Payment terminal, product sales data processing device, program, and electronic money processing method
JP6633150B2
