JP2014032513A - Unit price setting device, unit price setting method, and unit price setting program - Google Patents

Unit price setting device, unit price setting method, and unit price setting program Download PDF

Info

Publication number
JP2014032513A
JP2014032513A JP2012172178A JP2012172178A JP2014032513A JP 2014032513 A JP2014032513 A JP 2014032513A JP 2012172178 A JP2012172178 A JP 2012172178A JP 2012172178 A JP2012172178 A JP 2012172178A JP 2014032513 A JP2014032513 A JP 2014032513A
Authority
JP
Japan
Prior art keywords
unit price
unit
application period
master
product
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2012172178A
Other languages
Japanese (ja)
Other versions
JP5941366B2 (en
Inventor
Takashi Katsumi
孝司 勝見
Yasuo Suzuki
康生 鈴木
Akiyuki Nakase
暁之 中瀬
Motokazu Kunimoto
基和 国本
Toshihisa Kinoshita
稔久 木下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Fujitsu Marketing Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Marketing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd, Fujitsu Marketing Ltd filed Critical Fujitsu Ltd
Priority to JP2012172178A priority Critical patent/JP5941366B2/en
Publication of JP2014032513A publication Critical patent/JP2014032513A/en
Application granted granted Critical
Publication of JP5941366B2 publication Critical patent/JP5941366B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To set an appropriate unit price for a commercial article.SOLUTION: A selling management device 10 accepts an application period and unit price specification to be newly inserted into a range of the application period of a unit price master to which the unit price of a commercial article is made to correspond for every application period in which the unit price of the commercial article is applied. With respect to the application period in which the application period that has accepted specification in the application period defined in the unit price master, the selling management device carries out update for segmentation of the inserted application period, having the border between the start date and the end date of the application period that has accepted the specification, and also carries out update such that the application period that has accepted the specification is made to corresponds to a unit price that has accepted specification. The device accepts resetting instruction to reset a unit price of a commercial article on a voucher, for vouchers used for the transactions of corresponding commercial articles during the application period in which a base date subjected to the application of a unit price is accepted. When a resetting instruction is accepted, the unit price of a commercial article corresponding to the application period including the base date among the unit prices of the commercial products defined in the unit price master is set on a voucher.

Description

本発明は、単価設定装置、単価設定方法及び単価設定プログラムに関する。   The present invention relates to a unit price setting device, a unit price setting method, and a unit price setting program.

卸売業において基幹となる販売管理のシステム化が進んでいる。かかる卸売業の販売管理は、受注、出荷、売上、発注、入荷、仕入といったように多岐にわたるが、とりわけ商品の単価設定が重要視されている。   Systematization of sales management, which is the core of wholesale business, is progressing. The sales management of such a wholesale business is diverse, such as orders, shipments, sales, orders, receipts, and purchases. Especially, the unit price setting of products is regarded as important.

一般に、商品の単価設定には、商品の単価と当該単価の有効期間とが対応付けられたマスタデータが使用される。例えば、伝票を作成する場合には、商品が出荷される出荷日や商品が検収される検収日などを会計の基準日とし、マスタデータに含まれる商品の単価のうち基準日が該当する有効期間における商品の単価が受注金額や売上金額の算出に用いられる。   In general, for setting the unit price of a product, master data in which the unit price of the product is associated with the effective period of the unit price is used. For example, when creating a voucher, the shipping date when the product is shipped or the date when the product is accepted is set as the accounting base date, and the effective date corresponding to the base date of the unit price of the product included in the master data The unit price of the product is used for calculating the order amount and the sales amount.

特開平10−149247号公報Japanese Patent Laid-Open No. 10-149247 特開2003−228651号公報JP 2003-228651 A

しかしながら、上記の従来技術には、以下に説明するように、商品に不適切な単価が設定される場合があるという問題がある。   However, as described below, the conventional technology has a problem that an inappropriate unit price may be set for a product.

すなわち、上記のマスタデータには、最後に設定された有効期間の後ろの期間にしか商品の単価を設定することができない。このため、上記のマスタデータに既に有効期間が設定された期間の商品の単価は固定されて変更できない。それゆえ、上記のマスタデータに商品の単価が設定された時には適切であっても、その後に商品の単価が不適切なものになっても変更することができず、商品に不適切な単価が設定されてしまう場合がある。   In other words, the unit price of the product can be set in the master data only during the period after the last set effective period. For this reason, the unit price of the product in the period in which the validity period is already set in the master data is fixed and cannot be changed. Therefore, even if the product unit price is set in the above master data, it cannot be changed even if the product unit price becomes inappropriate after that. It may be set.

開示の技術は、上記に鑑みてなされたものであって、商品に適切な単価を設定できる単価設定装置、単価設定方法及び単価設定プログラムを提供することを目的とする。   The disclosed technology has been made in view of the above, and an object thereof is to provide a unit price setting device, a unit price setting method, and a unit price setting program capable of setting an appropriate unit price for a product.

本願の開示する単価設定装置は、商品の単価が適用される適用期間ごとに当該商品の単価が対応付けられた単価マスタの適用期間の範囲内に新たに挿入する適用期間及び単価の指定を受け付ける指定受付部と、前記単価マスタに定義された適用期間のうち前記指定を受け付けた適用期間が挿入される適用期間に対し、前記指定を受け付けた適用期間の開始日及び終了日を境界に当該挿入される適用期間を分断する更新を実行するとともに、前記指定を受け付けた適用期間に前記指定を受け付けた単価を対応付ける更新を実行するマスタ更新部と、単価の適用を受ける基準日が前記指定を受け付けた適用期間に該当する商品を取引の対象とする伝票を対象に、前記伝票に商品の単価を再設定する再設定指示を受け付ける再設定指示受付部と、前記再設定指示を受け付けた場合に、前記単価マスタに定義された商品の単価のうち前記基準日が含まれる適用期間に対応付けられた商品の単価を前記伝票に設定する単価設定部とを有する。   The unit price setting device disclosed in the present application accepts designation of an application period and a unit price to be newly inserted within the range of the application period of the unit price master associated with the unit price of the product for each application period in which the unit price of the product is applied. For the application period in which the application period in which the designation is accepted is inserted among the application period defined in the unit price master and the designation reception unit, the insertion is performed with the start date and the end date of the application period in which the designation is accepted as a boundary. A master update unit that executes an update that divides the applied period and performs an update that associates the unit price that received the designation with the application period that received the designation, and a reference date that receives the unit price accepts the designation A reset instruction accepting unit that accepts a reset instruction for resetting the unit price of the product in the slip for a slip that deals with a product corresponding to the applied period, When accepting the re-setting instruction, and a bidding unit the unit price associated with the application period included the reference date is the unit price of the bid item master defined to set the slip.

本願の開示する単価設定装置の一つの態様によれば、商品に適切な単価を設定できるという効果を奏する。   According to one aspect of the unit price setting device disclosed in the present application, it is possible to set an appropriate unit price for a product.

図1は、実施例1に係る販売管理装置の機能的構成を示すブロック図である。FIG. 1 is a block diagram illustrating a functional configuration of the sales management apparatus according to the first embodiment. 図2は、商品マスタの構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a product master. 図3は、得意先マスタの構成例を示す図である。FIG. 3 is a diagram illustrating a configuration example of a customer master. 図4は、仕入先マスタの構成例を示す図である。FIG. 4 is a diagram illustrating a configuration example of the supplier master. 図5は、システムマスタの構成例を示す図である。FIG. 5 is a diagram illustrating a configuration example of the system master. 図6は、取引先単価グループ別及び商品別の単価マスタの構成例を示す図である。FIG. 6 is a diagram illustrating a configuration example of a unit price master for each business unit price group and each product. 図7は、取引先別及び商品別の単価マスタの構成例を示す図である。FIG. 7 is a diagram illustrating a configuration example of a unit price master for each supplier and each product. 図8は、取引先別、納入先別及び商品別の単価マスタの構成例を示す図である。FIG. 8 is a diagram illustrating a configuration example of a unit price master for each business partner, each delivery destination, and each product. 図9は、取引先単価グループ別、商品別及び数量別の単価マスタの構成例を示す図である。FIG. 9 is a diagram illustrating a configuration example of a unit price master by supplier unit price group, product, and quantity. 図10は、取引先別、商品別及び数量別の単価マスタの構成例を示す図である。FIG. 10 is a diagram illustrating a configuration example of the unit price master for each supplier, each product, and each quantity. 図11は、取引先別、納入先別及び商品別の履歴単価マスタの構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of a historical unit price master for each business partner, each delivery destination, and each product. 図12は、単価マスタの更新方法の一例を示す図である。FIG. 12 is a diagram illustrating an example of a unit price master update method. 図13は、伝票画面の一例を示す図である。FIG. 13 is a diagram illustrating an example of a slip screen. 図14は、実施例1に係る販売管理処理の手順を示すフローチャートである。FIG. 14 is a flowchart illustrating the procedure of the sales management process according to the first embodiment. 図15は、実施例1に係る単価設定処理の手順を示すフローチャートである。FIG. 15 is a flowchart illustrating the procedure of the unit price setting process according to the first embodiment. 図16は、実施例1に係る単価設定処理の手順を示すフローチャートである。FIG. 16 is a flowchart illustrating the procedure of the unit price setting process according to the first embodiment. 図17は、実施例1及び実施例2に係る単価設定プログラムを実行するコンピュータの一例について説明するための図である。FIG. 17 is a schematic diagram illustrating an example of a computer that executes a unit price setting program according to the first and second embodiments.

以下に、本願の開示する単価設定装置、単価設定方法及び単価設定プログラムの実施例を図面に基づいて詳細に説明する。なお、この実施例は開示の技術を限定するものではない。そして、各実施例は、処理内容を矛盾させない範囲で適宜組み合わせることが可能である。   Embodiments of a unit price setting device, a unit price setting method, and a unit price setting program disclosed in the present application will be described below in detail with reference to the drawings. Note that this embodiment does not limit the disclosed technology. Each embodiment can be appropriately combined within a range in which processing contents are not contradictory.

[販売管理装置の構成]
図1は、実施例1に係る販売管理装置の機能的構成を示すブロック図である。図1に示す販売管理装置10は、商品の受注、出荷、売上、発注、入荷や仕入といった販売管理を行うものである。とりわけ、販売管理装置10は、単価マスタ16に既に定義された適用期間へ新たに単価が指定された適用期間を挿入する更新を実行した上で、単価の適用を受ける基準日が当該更新された適用期間に該当する商品を取引の対象とする伝票に商品の単価を再設定させる単価設定サービスを提供する。
[Configuration of sales management device]
FIG. 1 is a block diagram illustrating a functional configuration of the sales management apparatus according to the first embodiment. The sales management apparatus 10 shown in FIG. 1 performs sales management such as ordering, shipping, sales, ordering, receipt and purchase of goods. In particular, the sales management apparatus 10 executes the update for inserting the application period in which the unit price is newly specified in the application period already defined in the unit price master 16, and then the reference date for receiving the application of the unit price is updated. Provide a unit price setting service that resets the unit price of a product in a voucher in which a product corresponding to an application period is a transaction target.

かかる販売管理装置10の一態様としては、上記の単価設定サービスを提供するWebサーバとして実装することとしてもよいし、また、アウトソーシングによって上記の単価設定サービスを提供するクラウドとして実装することもできる。他の一態様としては、パッケージソフトウェアやオンラインソフトウェアとして提供される単価設定プログラムを所望のコンピュータにプリインストール又はインストールさせることによっても実装できる。なお、本実施例では、食品店や青果店等から仕入れた商品をスーパーマーケット等の小売店へ販売する卸売業者が有するサーバ装置上で上記の単価設定プログラムを動作させる場合を想定して以下の説明を行う。   As one aspect of the sales management apparatus 10, it may be implemented as a Web server that provides the unit price setting service, or may be implemented as a cloud that provides the unit price setting service by outsourcing. As another aspect, it can also be implemented by preinstalling or installing a unit price setting program provided as package software or online software on a desired computer. In this embodiment, it is assumed that the unit price setting program described above is operated on a server device of a wholesaler that sells products purchased from food stores, fruit and vegetable stores, etc. to retail stores such as supermarkets. I do.

図1に示す販売管理装置10は、所望のネットワークを介して、クライアント端末30と相互に通信可能に接続される。かかるネットワークには、有線または無線を問わず、インターネット(Internet)、LAN(Local Area Network)やVPN(Virtual Private Network)などの任意の種類の通信網を採用できる。   The sales management apparatus 10 shown in FIG. 1 is connected to a client terminal 30 through a desired network so that they can communicate with each other. Any type of communication network such as the Internet (Internet), LAN (Local Area Network), or VPN (Virtual Private Network) can be adopted as such a network, regardless of whether it is wired or wireless.

クライアント端末30は、上記の単価設定サービスの提供を受けるコンピュータである。例えば、クライアント端末30は、卸売業に携わる関係者によって使用される。かかるクライアント端末30の一態様としては、パーソナルコンピュータを始めとする固定端末の他、携帯電話機、PHS(Personal Handyphone System)やPDA(Personal Digital Assistants)などの移動体端末も採用できる。   The client terminal 30 is a computer that receives the unit price setting service. For example, the client terminal 30 is used by a person involved in a wholesale business. As an aspect of the client terminal 30, a mobile terminal such as a mobile phone, a PHS (Personal Handyphone System), and a PDA (Personal Digital Assistants) can be employed in addition to a fixed terminal such as a personal computer.

図1に示すように、販売管理装置10は、通信I/F(interface)部11と、記憶部13と、制御部17とを有する。なお、販売管理装置10は、図1に示した機能部以外にも既知のコンピュータが有する各種の機能部、例えば各種の入出力デバイスなどを有することとしてもかまわない。   As shown in FIG. 1, the sales management device 10 includes a communication I / F (interface) unit 11, a storage unit 13, and a control unit 17. Note that the sales management apparatus 10 may include various functional units included in a known computer, for example, various input / output devices, in addition to the functional units illustrated in FIG.

通信I/F部11は、他の装置、例えばクライアント端末30との間で通信制御を行うインタフェースである。かかる通信I/F部11の一態様としては、LANカードなどのネットワークインタフェースカードを採用できる。例えば、通信I/F部11は、クライアント端末30から各種伝票の閲覧要求や単価マスタの更新要求を受け付けたり、伝票画面や商品の単価設定の結果をクライアント端末30へ通知したりする。   The communication I / F unit 11 is an interface that performs communication control with another device, for example, the client terminal 30. As an aspect of the communication I / F unit 11, a network interface card such as a LAN card can be employed. For example, the communication I / F unit 11 receives a request for browsing various slips and a request for updating the unit price master from the client terminal 30, and notifies the client terminal 30 of the result of the slip screen and the unit price setting for the product.

記憶部13は、制御部17で実行されるOS(Operating System)や単価設定プログラムなどの各種プログラムを記憶する記憶デバイスである。記憶部13の一態様としては、フラッシュメモリなどの半導体メモリ素子、ハードディスク、光ディスクなどの記憶装置が挙げられる。また、記憶部13は、上記の種類の記憶装置に限定されるものではなく、RAM(Random Access Memory)、ROM(Read Only Memory)であってもよい。   The storage unit 13 is a storage device that stores various programs such as an OS (Operating System) executed by the control unit 17 and a unit price setting program. As one aspect of the storage unit 13, a storage device such as a semiconductor memory element such as a flash memory, a hard disk, or an optical disk can be cited. The storage unit 13 is not limited to the above-mentioned types of storage devices, and may be a RAM (Random Access Memory) or a ROM (Read Only Memory).

記憶部13は、制御部17で実行されるプログラムに用いられるデータの一例として、更新履歴情報13a、伝票情報13b及びマスタデータ14などを記憶する。なお、上記の更新履歴情報13a、伝票情報13b及びマスタデータ14以外にも、販売管理に関する電子データ、例えば在庫、入出庫や棚卸などに関するデータを併せて記憶することもできる。   The storage unit 13 stores update history information 13a, slip information 13b, master data 14, and the like as an example of data used in a program executed by the control unit 17. In addition to the update history information 13a, the slip information 13b, and the master data 14, electronic data related to sales management, for example, data related to inventory, loading / unloading, inventory, and the like can be stored together.

このうち、更新履歴情報13aは、単価マスタ16の更新に関する履歴データである。一例として、更新履歴情報13aには、マスタ更新部17bによって単価マスタ16が更新された場合に、当該更新に関する履歴がマスタ更新部17bによって登録される。他の一例として、更新履歴情報13aは、伝票に設定された商品の単価が単価マスタ16の更新前の単価を用いて設定されたものであるのか否かを判別するために、後述の再設定指示受付部17dによって参照される。   Among these, the update history information 13 a is history data regarding the update of the unit price master 16. As an example, in the update history information 13a, when the unit price master 16 is updated by the master update unit 17b, a history related to the update is registered by the master update unit 17b. As another example, the update history information 13a is reset to be described later in order to determine whether the unit price of the product set in the slip is set using the unit price before the update of the unit price master 16 or not. Referenced by the instruction receiving unit 17d.

かかる更新履歴情報13aの一態様としては、履歴ID(identification)、マスタ種別コード、取引先コード、取引先単価グループ、納入先コード、商品コード、適用期間や単価などの項目が対応付けられたデータを採用できる。ここで言う「履歴ID」は、更新履歴を識別する識別子を指す。また、「マスタ種別コード」は、単価マスタの種別を識別するコードを指し、ここでは、複数の単価マスタのうち更新が実行された単価マスタを意味する。また、「取引先コード」は、販売先または仕入先などの取引先を識別するコードを指す。また、「商品単価グループ」は、一定の共通性を持つ品目の商品をシリーズにまとめた品目のグループを指し、シリーズ品目とも呼ばれる。また、「納入先コード」は、取引先へ納入する納入先を識別するコードを指す。また、「商品コード」は、商品を識別するコードを指す。また、「数量」は、取引の対象とする商品の数量を指し、例えば、販売する商品の数量や仕入する商品の数量を意味する。また、「適用期間」は、単価マスタ16に定義された単価が適用される期間を指し、ここでは、単価マスタ16への挿入が指定された適用期間を意味する。例えば、適用期間は、単価の適用を開始する開始日および単価の適用を終了する終了日によって規定することができる。なお、上記の項目以外にも、単価マスタ16が更新された日時などの他の項目を設けることとしてもよい。また、上記の各種の項目は、全ての項目が必須のものではない。例えば、伝票へ商品の単価設定に1つの単価マスタが使用される場合には、必ずしもマスタ種別コードは必要ない。また、取引先コード、取引先単価グループ、納入先コード及び商品コード等の項目のうちマスタ種別コードに対応する単価マスタ16に存在しない項目には、必ずしも値が登録されているとは限らない。   As one aspect of the update history information 13a, data associated with items such as history ID (identification), master type code, supplier code, supplier unit price group, delivery destination code, product code, application period, unit price, etc. Can be adopted. “History ID” here refers to an identifier for identifying an update history. The “master type code” refers to a code for identifying the type of the unit price master, and here, means a unit price master that has been updated among a plurality of unit price masters. Further, the “business partner code” refers to a code for identifying a business partner such as a seller or a supplier. The “product unit price group” refers to a group of items in which products of items having a certain commonality are grouped into a series, and is also referred to as a series item. The “delivery destination code” refers to a code for identifying a delivery destination to be delivered to a business partner. “Product code” refers to a code for identifying a product. “Quantity” refers to the quantity of products to be traded, and means, for example, the quantity of products to be sold or the quantity of products to be purchased. The “application period” refers to a period during which the unit price defined in the unit price master 16 is applied. Here, it means an application period in which insertion into the unit price master 16 is designated. For example, the application period can be defined by a start date for starting application of the unit price and an end date for ending application of the unit price. In addition to the above items, other items such as the date and time when the unit price master 16 is updated may be provided. In addition, not all items described above are essential. For example, when one unit price master is used for setting the unit price of a product in a slip, the master type code is not necessarily required. Further, items that do not exist in the unit price master 16 corresponding to the master type code among items such as a supplier code, a supplier unit price group, a delivery destination code, and a product code are not necessarily registered.

伝票情報13bは、各種の伝票に関するデータである。かかる伝票の一例としては、見積、受注、出荷や売上などの販売業務に関する伝票の他、発注、入荷や仕入などの購買業務に関する伝票が挙げられる。   The slip information 13b is data relating to various slips. Examples of such slips include slips related to sales operations such as quotation, order receipt, shipment, and sales, as well as slips related to purchase operations such as ordering, receipt and purchase.

上記の伝票情報13bの一態様としては、伝票番号、取引先コード、納入先コード、商品コード、数量、基準日やマスタ種別コードなどの項目が対応付けられたデータを採用できる。ここで言う「伝票番号」は、伝票を識別する番号を指し、例えば、販売業務に含まれる一連のプロセス、すなわち見積、受注、出荷や売上などの間で共通して使用される。また、「基準日」は、会計の基準とする日付を指し、例えば、商品を受注した受注日、商品を出荷する出荷日、商品を納入する納入日や納入した商品が検収される検収日、商品の売上が確定する売上日などの業務日が挙げられる。ここでは、上記の基準日は、単価マスタ16に定義された商品の単価のうちいずれの適用期間に対応付けられた単価の適用を受けるのかを特定するために用いられる。なお、上記の「基準日」は、伝票、商品、取引先、納入先、数量などの違いによって上述した受注日、出荷日、納入日、検収日や売上日などの業務日のうちいずれを採用するかを任意に設定することができ、また、任意の契機で日付を変更したり、業務日の種別を変更したりすることもできる。   As an aspect of the slip information 13b, data in which items such as a slip number, a supplier code, a delivery destination code, a product code, a quantity, a reference date, and a master type code are associated can be employed. The “slip number” here refers to a number for identifying a slip, and is used in common among a series of processes included in sales operations, that is, quotation, order receipt, shipment, sales, and the like. In addition, “reference date” refers to a date that is the basis of accounting. For example, an order date when an order is received for a product, a shipment date when the product is shipped, a delivery date when the product is delivered, and an acceptance date when the delivered product is accepted, Business days such as the sales date on which the sales of the product are finalized. Here, the reference date is used to specify which of the unit prices of the product defined in the unit price master 16 is to be applied with the unit price associated with which application period. The above “reference date” is any of the above-mentioned order date, shipping date, delivery date, inspection date, sales date, etc., depending on the slip, product, business partner, delivery destination, quantity, etc. The date can be changed at any time, or the type of business day can be changed.

マスタデータ14は、卸売業の販売管理で用いられる各種のマスタデータである。例えば、図1に示すように、上記のマスタデータ14には、商品マスタ15a、得意先マスタ15b、仕入先マスタ15c、システムマスタ15dの他、単価マスタ16が含まれる。なお、以下では、伝票に販売単価を設定する場合を例示するが、以降に例示する単価マスタ16に定義されている得意先である取引先を仕入先としたときの値に他の項目の値を変更することによって仕入単価を伝票に設定する場合にも同様に適用できる。   The master data 14 is various kinds of master data used in sales management of wholesale trade. For example, as shown in FIG. 1, the master data 14 includes a unit price master 16 in addition to a product master 15a, a customer master 15b, a supplier master 15c, and a system master 15d. In the following, the case where the sales unit price is set in the voucher will be exemplified. However, the value when other supplier is the customer defined in the unit price master 16 to be exemplified later is the value of other items. The same applies to the case where the purchase unit price is set in the slip by changing the value.

このうち、商品マスタ15aは、商品が定義されたマスタデータである。かかる商品マスタ15aの一態様としては、商品コード、商品単価グループ及び単価設定が対応付けられたデータを採用できる。図2は、商品マスタ15aの構成例を示す図である。図2の例では、商品コード「101010」及び商品コード「101015」の商品は、いずれもお菓子に分類され、単価マスタ16に定義された単価に掛率を乗じることなく、単価がそのまま採用されることを意味する。また、図2に示す商品コード「101020」の商品は、冷食に分類され、単価マスタ16に定義された単価に掛率を乗じることなく、単価がそのまま採用されることを意味する。さらに、図2に示す商品コード「101030」の商品は、その他に分類され、単価マスタ16に定義された単価をそのまま採用せずに、掛率を乗算してから採用することを意味する。   Among these items, the product master 15a is master data in which products are defined. As an aspect of the product master 15a, data in which product codes, product unit price groups, and unit price settings are associated can be employed. FIG. 2 is a diagram illustrating a configuration example of the product master 15a. In the example of FIG. 2, the products with the product code “101010” and the product code “101015” are both classified as sweets, and the unit price is adopted as it is without multiplying the unit price defined in the unit price master 16 by the multiplication rate. Means that. Further, the product with the product code “101020” shown in FIG. 2 is classified as cold food, which means that the unit price is adopted as it is without multiplying the unit price defined in the unit price master 16 by the multiplication rate. Further, the product with the product code “101030” shown in FIG. 2 is classified as other and means that the unit price defined in the unit price master 16 is not used as it is, but is applied after multiplying the multiplication rate.

得意先マスタ15bは、卸売業者から販売する商品を購買する取引先、いわゆる得意先が定義されたマスタデータである。かかる得意先マスタ15bの一態様としては、取引先コード、取引先単価グループ及び単価決定情報が対応付けられたデータを採用できる。ここで言う「取引先単価グループ」は、一定の共通性を持つ取引先をまとめたグループを指し、ここでは、得意先のグループを意味する。また、「単価決定情報」は、商品の単価を決定する場合に使用される各種の情報を指す。かかる「単価決定情報」には、単価の決定方法が区分された「単価決定区分」が含まれる。例えば、単価決定区分は、卸売業者の関係者による手入力で単価が取得される区分「1」と、単価マスタ16に対する検索を実行することによって単価が取得される区分「9」とに大別される。また、「単価決定情報」には、得意先の単価に掛率を適用する場合の「単価掛率」が含まれる。さらに、「単価決定情報」には、取引先別に単価が区別された「取引先別単価」、商品別および数量別に単価が区別された「商品別数量別単価」及び前回に商品を納入した時の単価である「前回納入単価」のうちいずれの単価種別に対応する単価マスタ16から検索を開始するかの順序が定められた「単価検索順」などが含まれる。   The customer master 15b is master data in which a customer who purchases a product to be sold from a wholesaler, that is, a so-called customer is defined. As one aspect of the customer master 15b, data in which a supplier code, a supplier unit price group, and unit price determination information are associated can be employed. The “customer unit price group” here refers to a group of business partners having a certain commonality, and here means a group of customers. “Unit price determination information” refers to various types of information used when determining the unit price of a product. The “unit price determination information” includes a “unit price determination category” in which a unit price determination method is classified. For example, the unit price determination category is roughly divided into a category “1” in which the unit price is acquired by manual input by a wholesaler, and a category “9” in which the unit price is acquired by performing a search on the unit price master 16. Is done. Further, the “unit price determination information” includes “unit price multiplication rate” in the case of applying the rate to the unit price of the customer. Furthermore, “Unit Price Determination Information” includes “Unit Price by Business Partner” in which the unit price is distinguished by business partner, “Unit Price by Product by Product Unit” in which the unit price is classified by product and quantity, and when the product was delivered last time. “Unit price search order” in which the order of starting the search from the unit price master 16 corresponding to which unit price type is included in the “previous delivery unit price”, which is the unit price of.

図3は、得意先マスタ15bの構成例を示す図である。図3の例では、取引先コード「10101」および取引先コード「10201」の得意先は、いずれも取引先単価グループ「スーパー○○」に分類されていることを示す。また、図3の例では、取引先コード「20101」および取引先コード「30101」の得意先は、いずれも取引先単価グループが未設定であることを示す。さらに、図3の例では、取引先コード「10101」、取引先コード「10201」及び取引先コード「30101」の得意先に単価決定区分「9」が適用されることを示す。この場合には、単価マスタ16に対する検索を実行することによって単価が取得される。一方、図3の例では、取引先コード「20101」の得意先に単価決定区分「1」が適用されることを示す。この場合には、単価マスタ16に対する検索を実行せずに、クライアント端末30を使用する関係者によって単価が手入力で設定されることになる。なお、図3に示す単価検索順の説明については、図5に示すシステムマスタ15dに説明をあずける。   FIG. 3 is a diagram illustrating a configuration example of the customer master 15b. In the example of FIG. 3, it is shown that the customers of the supplier code “10101” and the supplier code “10201” are all classified into the supplier unit price group “Super OO”. Further, in the example of FIG. 3, the customers with the supplier code “20101” and the supplier code “30101” both indicate that the supplier unit price group is not set. Further, the example of FIG. 3 shows that the unit price determination category “9” is applied to the customers of the supplier code “10101”, the supplier code “10201”, and the supplier code “30101”. In this case, the unit price is acquired by executing a search for the unit price master 16. On the other hand, in the example of FIG. 3, the unit price determination category “1” is applied to the customer with the supplier code “20101”. In this case, the unit price is set manually by the parties using the client terminal 30 without executing the search for the unit price master 16. The description of the unit price search order shown in FIG. 3 is given in the system master 15d shown in FIG.

仕入先マスタ15cは、卸売業者に商品を販売する取引先、いわゆる仕入先が定義されたマスタデータである。かかる仕入先マスタ15cの一態様としては、取引先コード、取引先単価グループ及び単価決定情報が対応付けられたデータを採用できる。図4は、仕入先マスタ15cの構成例を示す図である。図4の例では、取引先コード「50101」および取引先コード「60201」の仕入先は、いずれも取引先単価グループ「○○食品」に分類されていることを示す。また、図4の例では、取引先コード「70101」および取引先コード「80101」の仕入先は、いずれも取引先単価グループ「○△青果」に分類されていることを示す。さらに、図4の例では、取引先コード「50101」、取引先コード「60201」及び取引先コード「70101」の仕入先に単価決定区分「9」が適用されることを示す。この場合には、単価マスタ16に対する検索を実行することによって単価が取得される。一方、図4の例では、取引先コード「80101」の得意先に単価決定区分「1」が適用されることを示す。この場合には、単価マスタ16に対する検索を実行せずに、クライアント端末30を使用する関係者によって単価が手入力で設定されることになる。なお、図4に示す単価検索順の説明についても、図5に示すシステムマスタ15dに説明をあずける。   The supplier master 15c is master data in which a supplier who sells products to wholesalers, that is, a so-called supplier is defined. As one aspect of the supplier master 15c, data in which a supplier code, a supplier unit price group, and unit price determination information are associated can be employed. FIG. 4 is a diagram illustrating a configuration example of the supplier master 15c. In the example of FIG. 4, the suppliers with the supplier code “50101” and the supplier code “60201” are both classified into the supplier unit price group “XX food”. Further, in the example of FIG. 4, it is shown that the suppliers with the supplier code “70101” and the supplier code “80101” are all classified into the supplier unit price group “◯ Δ fruits and vegetables”. Further, the example of FIG. 4 shows that the unit price determination category “9” is applied to the suppliers of the supplier code “50101”, the supplier code “60201”, and the supplier code “70101”. In this case, the unit price is acquired by executing a search for the unit price master 16. On the other hand, the example of FIG. 4 shows that the unit price determination category “1” is applied to the customer with the supplier code “80101”. In this case, the unit price is set manually by the parties using the client terminal 30 without executing the search for the unit price master 16. The description of the unit price search order shown in FIG. 4 is also given in the system master 15d shown in FIG.

システムマスタ15dは、単価設定システムが実行する単価マスタ16の検索によって取得される単価種別が定義されたマスタデータである。かかるシステムマスタ15dの一態様としては、単価種別及び単価優先順位が対応付けられたデータを採用できる。ここで言う「単価種別」は、単価を区別する基準とする項目の種別を指し、例えば、取引先別に単価が区別された「取引先別単価」、商品別および数量別に単価が区別された「商品別数量別単価」、さらには、前回に商品を納入した履歴別に単価が区別された「前回納入単価」などが含まれる。また、「単価優先順位」は、単価検索順序が優先される順位を指す。   The system master 15d is master data in which a unit price type acquired by searching the unit price master 16 executed by the unit price setting system is defined. As an aspect of the system master 15d, data in which the unit price type and the unit price priority are associated can be employed. “Unit price type” here refers to the type of item used as a criterion for distinguishing unit prices, for example, “unit price by business partner” in which unit prices are distinguished by business partners, and unit prices by product and quantity. “Unit price by quantity by product”, and “Unit price by previous delivery” in which the unit price is distinguished according to the history of the previous product delivery. The “unit price priority” refers to the order in which the unit price search order is prioritized.

図5は、システムマスタ15dの構成例を示す図である。図5に示すように、単価優先順位が「取引先別単価」、「商品別数量別単価」、「前回納入単価」の順に設定されている。これは、単価検索順が「50」である場合には、「取引先別単価」に対応する単価マスタ16から検索が開始され、単価の取得に失敗した場合には「商品別数量別単価」に対応する単価マスタ16への検索が実行され、それでも単価の取得に失敗した場合には「前回納入単価」に対応する単価マスタ16への検索が実行されることを意味する。また、単価検索順が「60」である場合には、「取引先別単価」に対応する単価マスタ16には検索が実行されず、「商品別数量別単価」に対応する単価マスタ16から検索が開始され、単価の取得に失敗した場合には「前回納入単価」に対応する単価マスタ16への検索が実行されることを意味する。さらに、単価検索順が「70」である場合には、「取引先別単価」及び「商品別数量別単価」に対応する単価マスタ16には検索が実行されず、「前回納入単価」に対応する単価マスタ16への検索だけが実行されることを示す。   FIG. 5 is a diagram illustrating a configuration example of the system master 15d. As shown in FIG. 5, the unit price priority order is set in the order of “unit price by supplier”, “unit price by product quantity”, and “previous delivery unit price”. When the unit price search order is “50”, the search is started from the unit price master 16 corresponding to the “unit price by business partner”, and when the unit price acquisition fails, the “unit price by product quantity” This means that if the search for the unit price master 16 corresponding to is executed and the acquisition of the unit price still fails, the search for the unit price master 16 corresponding to the “previous delivery unit price” is executed. If the unit price search order is “60”, the search is not performed for the unit price master 16 corresponding to “unit price by business partner”, and the search is performed from the unit price master 16 corresponding to “unit price by quantity by product”. This means that if the acquisition of the unit price fails, the search to the unit price master 16 corresponding to the “previous delivery unit price” is executed. Further, when the unit price search order is “70”, the search is not executed in the unit price master 16 corresponding to “unit price by business partner” and “unit price by product quantity”, and corresponds to “previous delivery unit price”. Only the search to the unit price master 16 to be executed is executed.

単価マスタ16は、単価が定義されたマスタデータである。例えば、上記の単価マスタ16には、取引先別に単価が区別された単価種別「取引先別単価」に対応する単価マスタ16として、第1グループの単価マスタ16a〜16cが含まれる。   The unit price master 16 is master data in which unit prices are defined. For example, the unit price master 16 includes the unit price masters 16a to 16c of the first group as the unit price master 16 corresponding to the unit price type “unit price by business partner” in which the unit price is distinguished by business partner.

このうち、単価マスタ16aは、取引先単価グループ別及び商品別に単価が定義されたマスタデータである。かかる単価マスタ16aの一態様としては、取引先単価グループ、商品コード、適用期間、契約単価および契約掛率が対応付けられたデータを採用できる。図6は、取引先単価グループ別及び商品別の単価マスタ16aの構成例を示す図である。図6の例では、伝票に設定された取引先単価グループが「スーパー○○」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/3/1〜2012/3/31」内である場合には、1100円が単価として検索される。一方、伝票に設定された取引先単価グループが「スーパー○○」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/4/1〜9999/99/99」内である場合には、900円が単価として検索される。   Among these, the unit price master 16a is master data in which a unit price is defined for each business unit price group and each product. As an aspect of the unit price master 16a, data in which a supplier unit price group, a product code, an application period, a contract unit price, and a contract rate are associated can be employed. FIG. 6 is a diagram illustrating a configuration example of the unit price master 16a for each business unit price group and each product. In the example of FIG. 6, the supplier unit price group set in the slip is “Super XX”, the product code is “101010”, and the base date is the application period “2012/3/1 to 2012/3 / In the case of “31”, 1100 yen is searched as the unit price. On the other hand, the supplier unit price group set in the slip is “Super XX”, the product code is “101010”, and the base date is within the applicable period “2012/4/1 to 9999/99/99” In some cases, 900 yen is searched as the unit price.

単価マスタ16bは、取引先別及び商品別に単価が定義されたマスタデータである。かかる単価マスタ16bの一態様としては、取引先コード、商品コード、適用期間、契約単価および契約掛率が対応付けられたデータを採用できる。図7は、取引先別及び商品別の単価マスタ16bの構成例を示す図である。図7の例では、伝票に設定された取引先コードが「10101」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/3/1〜2012/3/31」内である場合には、1100円が単価として検索される。一方、伝票に設定された取引先コードが「10101」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/4/1〜9999/99/99」内である場合には、1000円が単価として検索される。   The unit price master 16b is master data in which a unit price is defined for each supplier and each product. As an aspect of the unit price master 16b, data in which a supplier code, a product code, an application period, a contract unit price, and a contract rate are associated can be employed. FIG. 7 is a diagram illustrating a configuration example of the unit price master 16b for each supplier and each product. In the example of FIG. 7, the supplier code set in the slip is “10101”, the product code is “101010”, and the base date is within the applicable period “2012/3/1 to 2012/3/31” In this case, 1100 yen is searched as a unit price. On the other hand, when the supplier code set in the slip is “10101”, the product code is “101010”, and the base date is within the applicable period “2012/4/1 to 9999/99/99” Is searched for 1000 yen as a unit price.

単価マスタ16cは、取引先別、納入先別及び商品別に単価が定義されたマスタデータである。かかる単価マスタ16cの一態様としては、取引先コード、納入先コード、商品コード、適用期間、契約単価および契約掛率が対応付けられたデータを採用できる。図8は、取引先別、納入先別及び商品別の単価マスタ16cの構成例を示す図である。図8の例では、伝票に設定された取引先コードが「10101」であり、納入先コードが「A店」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/3/1〜2012/3/31」内である場合には、1100円が単価として検索される。一方、伝票に設定された取引先コードが「10101」であり、納入先コードが「A店」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/4/1〜9999/99/99」内である場合には、900円が単価として検索される。   The unit price master 16c is master data in which unit prices are defined for each supplier, each delivery destination, and each product. As one aspect of the unit price master 16c, data in which a supplier code, a delivery destination code, a product code, an application period, a contract unit price, and a contract rate are associated can be employed. FIG. 8 is a diagram illustrating a configuration example of the unit price master 16c for each business partner, each delivery destination, and each product. In the example of FIG. 8, the supplier code set in the slip is “10101”, the delivery destination code is “Store A”, the product code is “101010”, and the reference date is the application period “2012 / In the case of “3/1 to 2012/3/31”, 1100 yen is searched as the unit price. On the other hand, the supplier code set in the slip is “10101”, the delivery destination code is “Store A”, the product code is “101010”, and the base date is the applicable period “Apr. In the case of “9999/99/99”, 900 yen is searched as the unit price.

また、上記の単価マスタ16には、商品別および数量別に単価が区別された単価種別「商品別数量別単価」に対応する単価マスタ16として、第2グループの単価マスタ16d〜16eが含まれる。   The unit price master 16 includes unit price masters 16d to 16e of the second group as unit price masters 16 corresponding to the unit price type "unit price by product quantity" in which unit prices are distinguished by product and quantity.

このうち、単価マスタ16dは、取引先単価グループ別、商品別及び数量別に単価が定義されたマスタデータである。かかる単価マスタ16dの一態様としては、取引先単価グループ、商品コード、適用期間、数量下限、数量上限、契約単価および契約掛率が対応付けられたデータを採用できる。図9は、取引先単価グループ別、商品別及び数量別の単価マスタ16dの構成例を示す図である。図9の例では、伝票に設定された取引先単価グループが「スーパー○○」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/4/1〜9999/99/99」内である場合には、各々異なる単価が検索される。すなわち、伝票に設定された商品の数量、例えば受注数量、出荷数量、納品数量や検収数量が999個以下であるか、1000個以上4999個以下であるか、あるいは5000個以上9999個以下であるのかによって検索結果が変わる。例えば、伝票に設定された商品の数量が999個以下である場合には、1100円が単価として検索される。また、伝票に設定された商品の数量が1000個以上4999個以下である場合には、1050円が単価として検索される。また、伝票に設定された商品の数量が5000個以上9999個以下である場合には、1000円が単価として検索される。   Of these, the unit price master 16d is master data in which unit prices are defined by supplier unit price groups, products, and quantities. As one aspect of the unit price master 16d, data in which a customer unit price group, a product code, an application period, a quantity lower limit, a quantity upper limit, a contract unit price, and a contract charge rate are associated can be employed. FIG. 9 is a diagram illustrating a configuration example of the unit price master 16d for each business unit price group, each product, and each quantity. In the example of FIG. 9, the supplier unit price group set in the slip is “Super XX”, the product code is “101010”, and the reference date is the application period “2012/4/1 to 9999/99 / In the case of “99”, different unit prices are searched. That is, the quantity of the product set in the slip, for example, the order quantity, the shipment quantity, the delivery quantity and the inspection quantity is 999 or less, 1000 or more and 4999 or less, or 5000 or more and 9999 or less. Search results vary depending on whether For example, when the number of products set in the slip is 999 or less, 1100 yen is searched as the unit price. Further, when the number of products set in the slip is 1000 or more and 4999 or less, 1050 yen is searched as the unit price. Further, when the quantity of products set in the slip is 5000 or more and 9999 or less, 1000 yen is searched as the unit price.

単価マスタ16eは、取引先別、商品別及び数量別に単価が定義されたマスタデータである。かかる単価マスタ16eの一態様としては、取引先コード、商品コード、適用期間、数量下限、数量上限、契約単価および契約掛率が対応付けられたデータを採用できる。図10は、取引先別、商品別及び数量別の単価マスタ16eの構成例を示す図である。図10の例では、伝票に設定された取引先コードが「10101」であり、商品コードが「101010」であり、かつ基準日が適用期間「2012/4/1〜9999/99/99」内である場合には、各々異なる単価が検索される。すなわち、上記の図9の例と同様に、伝票に設定された商品の数量が999個以下である場合には、1100円が単価として検索される。また、伝票に設定された商品の数量が1000個以上4999個以下である場合には、1050円が単価として検索される。また、伝票に設定された商品の数量が5000個以上9999個以下である場合には、1000円が単価として検索される。   The unit price master 16e is master data in which a unit price is defined for each supplier, each product, and each quantity. As one aspect of the unit price master 16e, data in which a supplier code, a product code, an application period, a quantity lower limit, a quantity upper limit, a contract unit price, and a contract rate are associated can be employed. FIG. 10 is a diagram illustrating a configuration example of the unit price master 16e for each supplier, each product, and each quantity. In the example of FIG. 10, the supplier code set in the slip is “10101”, the product code is “101010”, and the reference date is within the applicable period “2012/4/1 to 9999/99/99”. In the case of, different unit prices are searched. That is, similarly to the example of FIG. 9 described above, when the quantity of products set in the slip is 999 or less, 1100 yen is searched as the unit price. Further, when the number of products set in the slip is 1000 or more and 4999 or less, 1050 yen is searched as the unit price. Further, when the quantity of products set in the slip is 5000 or more and 9999 or less, 1000 yen is searched as the unit price.

また、上記の単価マスタ16には、前回に商品を納入した履歴別に単価が区別された単価種別「前回納入単価」に対応する単価マスタ16として、第3グループの履歴単価マスタ16fが含まれる。   In addition, the unit price master 16 includes a historical unit price master 16 f of the third group as the unit price master 16 corresponding to the unit price type “previous delivery unit price” in which the unit price is distinguished according to the history of the previous product delivery.

履歴単価マスタ16fは、商品を納入した時の履歴が採取されたマスタデータである。かかる履歴単価マスタ16fの一態様としては、取引先コード、納入先コード、商品コード、伝票日付、販売単価、仕入単価および発生日時が対応付けられたデータを採用できる。図11は、取引先別、納入先別及び商品別の履歴単価マスタ16fの構成例を示す図である。図11の例では、上から1番目のレコードと上から2番目のレコードとの間で取引先コード、納入先コードおよび商品コードの値が共通する。ここで、上から2番目のレコードの方が上から1番目のレコードよりも伝票日付が新しい。このため、販売単価の場合には1050円が検索される一方で、仕入単価の場合には1000円が検索される。   The historical unit price master 16f is master data in which a history when a product is delivered is collected. As one aspect of the historical unit price master 16f, data in which a supplier code, a delivery destination code, a product code, a slip date, a sales unit price, a purchase unit price, and an occurrence date and time are associated can be employed. FIG. 11 is a diagram illustrating a configuration example of the historical unit price master 16f for each business partner, each delivery destination, and each product. In the example of FIG. 11, the values of the supplier code, the delivery destination code, and the product code are common between the first record from the top and the second record from the top. Here, the slip date of the second record from the top is newer than the first record from the top. Therefore, 1050 yen is searched for the sales unit price, whereas 1000 yen is searched for the purchase unit price.

制御部17は、各種の処理手順を規定したプログラムや制御データを格納するための内部メモリを有し、これらによって種々の処理を実行する。制御部17は、図1に示すように、指定受付部17aと、マスタ更新部17bと、伝票処理部17cと、再設定指示受付部17dと、単価設定部17eとを有する。   The control unit 17 has an internal memory for storing programs defining various processing procedures and control data, and executes various processes using these. As shown in FIG. 1, the control unit 17 includes a designation receiving unit 17a, a master updating unit 17b, a slip processing unit 17c, a reset instruction receiving unit 17d, and a unit price setting unit 17e.

指定受付部17aは、単価マスタ16の適用期間の範囲内に新たに挿入する適用期間及び単価の指定を受け付ける処理部である。一態様としては、指定受付部17aは、クライアント端末30から単価マスタ16の更新要求を受け付けた場合に、複数の単価マスタ16a〜16fのうち更新対象とする単価マスタ16のマスタ種別コードの指定を受け付ける。その後、指定受付部17aは、更新対象とする単価マスタ16のマスタ種別コードを受け付けると、当該マスタ種別コードに対応する単価マスタ16とともに、適用期間及び単価の指定可能な画面をクライアント端末30に表示させる。例えば、指定受付部17aは、クライアント端末30の表示部上に指定の単価マスタ16をテーブル形式等で表示させるとともに、単価マスタ16の適用期間の範囲内に新たに挿入する適用期間の開始日及び終了日と単価とを入力可能なフォームまたはこれらを選択可能なプルダウンメニュー等を表示させる。このとき、指定受付部17aは、単価マスタ16に含まれるレコードのうちいずれのレコードを更新対象とするのかを一意に特定するために必要な事項を入力可能または選択可能なGUIを併せて表示させる。例えば、図7に示した取引先別及び商品別の単価マスタ16bの場合には、適用期間の他にも、取引先コードや商品コードを併せて受け付ける必要がある。この場合には、指定受付部17aは、取引先コード及び商品コードを入力可能なフォームまたはこれらを選択可能なプルダウンメニュー等をクライアント端末30に表示させる。かかる表示によって、クライアント端末30から適用期間の開始日及び終了日の指定と単価の指定とを受け付ける。   The designation receiving unit 17 a is a processing unit that receives designation of an application period and a unit price to be newly inserted within the range of the application period of the unit price master 16. As one aspect, when receiving an update request for the unit price master 16 from the client terminal 30, the specification receiving unit 17a specifies the master type code of the unit price master 16 to be updated among the plurality of unit price masters 16a to 16f. Accept. After that, when receiving the master type code of the unit price master 16 to be updated, the designation receiving unit 17a displays on the client terminal 30 a screen on which the application period and unit price can be specified together with the unit price master 16 corresponding to the master type code. Let For example, the designation receiving unit 17a displays the designated unit price master 16 on the display unit of the client terminal 30 in a table format or the like, and the start date of the application period newly inserted within the range of the application period of the unit price master 16 and A form in which the end date and unit price can be input or a pull-down menu in which these can be selected is displayed. At this time, the designation receiving unit 17a also displays a GUI that can input or select items necessary for uniquely specifying which record of the records included in the unit price master 16 is to be updated. . For example, in the case of the unit price master 16b for each supplier and each product shown in FIG. 7, it is necessary to accept a supplier code and a product code in addition to the application period. In this case, the designation receiving unit 17a causes the client terminal 30 to display a form in which the supplier code and the product code can be input or a pull-down menu in which these can be selected. With this display, the start date and end date of the application period and the unit price are accepted from the client terminal 30.

マスタ更新部17bは、単価マスタ16の更新制御を実行する処理部である。一態様としては、マスタ更新部17bは、適用期間を始め、必要事項を検索キーとし、単価マスタ16に定義された適用期間のうち指定を受け付けた適用期間が挿入されるレコードを検索する。そして、マスタ更新部17bは、検索結果として得られたレコードの適用期間に対し、指定を受け付けた適用期間の開始日及び終了日を境界に当該挿入される適用期間を分断する更新を実行する。すなわち、マスタ更新部17bは、指定を受け付けた適用期間の挿入によって分断される適用期間の開始日と、指定を受け付けた適用期間の開始日の前日とによって区切られる期間を適用期間とする新たなレコードを生成する。さらに、マスタ更新部17bは、指定を受け付けた適用期間の終了日の翌日と、指定を受け付けた適用期間の挿入によって分断される適用期間の終了日とによって区切られる期間を適用期間とする新たなレコードを生成する。その上で、マスタ更新部17bは、先の分断によって新たに生成された2つのレコードには分断前に定義されていた単価を対応付けるとともに、指定を受け付けた適用期間に指定を受け付けた単価を対応付けたレコードを生成する。このとき、新たなに生成された3つのレコード間では、適用期間は互いに異なるものの、それ以外の単価を除く項目は元のレコードの値がコピーされる。   The master update unit 17 b is a processing unit that executes update control of the unit price master 16. As one aspect, the master update unit 17b searches for a record in which an application period that has received a designation is inserted among application periods defined in the unit price master 16, using an application period and necessary items as search keys. Then, the master update unit 17b performs an update for dividing the application period to be inserted with respect to the application period of the record obtained as a search result, with the start date and the end date of the application period for which the designation is accepted as a boundary. That is, the master update unit 17b sets a new period in which the period divided by the start date of the application period divided by the insertion of the application period for which the designation has been received and the day before the start date of the application period for which the designation has been accepted is set as the application period. Generate a record. Further, the master update unit 17b sets a new period in which the period divided by the next day of the end date of the application period for which the designation is accepted and the end date of the application period that is divided by the insertion of the application period for which the designation is accepted as the application period. Generate a record. In addition, the master update unit 17b associates the unit price defined before the division with the two records newly generated by the previous division, and also supports the unit price accepted for the designation in the application period for which the designation was accepted. Generate the attached record. At this time, although the application periods are different among the three newly generated records, the values of the original record are copied for the items other than the unit price.

図12は、単価マスタ16の更新方法の一例を示す図である。図12の例では、図7に示した単価マスタ16b、すなわち取引先別及び商品別の単価マスタ16bが更新される場合を想定している。例えば、クライアント端末30から取引先コード「20101」、商品コード「101020」、適用期間「2011/4/1〜2012/3/31」、契約単価「1000」を受け付けたこととする。   FIG. 12 is a diagram illustrating an example of a method for updating the unit price master 16. In the example of FIG. 12, it is assumed that the unit price master 16b shown in FIG. 7, that is, the unit price master 16b for each supplier and each product is updated. For example, it is assumed that the supplier code “20101”, the product code “101020”, the application period “2011/4/1 to 2012/3/31”, and the contract unit price “1000” are received from the client terminal 30.

この場合には、適用期間「2011/4/1〜2012/3/31」を始め、取引先コード「20101」、商品コード「101020」及び契約単価「1000」を検索キーとし、単価マスタ16bを検索する。この結果、図12の上段に示す単価マスタ16bのうち上から3番目のレコードが指定を受け付けた適用期間が挿入されるレコードとして特定される。すると、指定を受け付けた適用期間「2011/4/1〜2012/3/31」の挿入によって分断される適用期間の開始日「1999/1/1」と、指定を受け付けた適用期間の開始日の前日「2011/3/31」とによって区切られる期間を適用期間とする新たなレコード、すなわち図12の下段に示す単価マスタ16bのうち上から3番目のレコード(濃い塗り潰し)が生成される。さらに、指定を受け付けた適用期間の終了日の翌日「2012/4/1」と、指定を受け付けた適用期間の挿入によって分断される適用期間の終了日「9999/99/99」とによって区切られる期間を適用期間とする新たなレコード、すなわち図12の下段に示す単価マスタ16bのうち上から5番目のレコード(濃い塗りつぶし)を生成する。その上で、先の分断によって新たに生成された2つのレコードには分断前に定義されていた単価「900」を対応付けるとともに、指定を受け付けた適用期間に指定を受け付けた単価を対応付けたレコード、すなわち図12の下段に示す単価マスタ16bのうち上から4番目のレコード(薄い塗りつぶし)を生成する。このとき、新たなに生成された3つのレコード間では、適用期間は互いに異なるものの、それ以外の単価を除く取引先コード及び商品コードは元のレコードの値「20101」及び「101020」がコピーされて引き継がれる。これによって、既に適用期間が定義された期間の商品の単価であっても動的に更新することが可能になる。   In this case, the application period “2011/4/1 to 2012/3/31”, the supplier code “20101”, the product code “101020” and the contract unit price “1000” are used as search keys, and the unit price master 16b is set. Search for. As a result, in the unit price master 16b shown in the upper part of FIG. 12, the third record from the top is specified as the record into which the application period in which the designation is accepted is inserted. Then, the start date “1999/1/1” of the application period divided by the insertion of the application period “2011/4/1 to 2012/3/31” that received the specification, and the start date of the application period that received the specification A new record having a period divided by “2011/3/31” the previous day as the application period, that is, the third record from the top of the unit price master 16b shown in the lower part of FIG. Furthermore, it is separated by “2012/4/1” the day after the end date of the application period that accepted the designation and the end date “9999/99/99” of the application period that is divided by the insertion of the application period that accepted the designation. A new record having the period as the application period, that is, the fifth record from the top of the unit price master 16b shown in the lower part of FIG. In addition, the two records newly generated by the previous division are associated with the unit price “900” defined before the division, and the unit price accepted for the designation in the application period for which the designation was accepted. That is, the fourth record (thin fill) from the top of the unit price master 16b shown in the lower part of FIG. 12 is generated. At this time, although the application period is different between the three newly generated records, the values of the original records “20101” and “101020” are copied for the supplier code and product code excluding the unit price. Is taken over. As a result, it is possible to dynamically update the unit price of the product during the period for which the application period has already been defined.

単価マスタ16bを更新後には、履歴IDが採番され、先に生成された3つのレコードのうち更新要求を受け付けて生成したレコード、すなわち上から4番目のレコード(薄い塗りつぶし)に含まれる適用期間「2011/4/1〜2012/3/31」、取引先コード「20101」、商品コード「101020」及び契約単価「1000」とともに、単価マスタ16bを示すマスタ種別コードを対応付けた更新履歴情報13aが生成された上で記憶部13へ登録される。このように、単価マスタ13bが更新された場合には、更新履歴情報13aに取引先単価グループ、納入先コード、商品単価グループ及び数量などの項目には値が設定されない。   After updating the unit price master 16b, the history ID is numbered and the application period included in the record generated by accepting the update request among the three records generated earlier, that is, the fourth record from the top (thin fill) "2011/4/1 to 2012/3/31", supplier code "20101", product code "101020", contract unit price "1000", and update history information 13a in association with a master type code indicating the unit price master 16b Is registered in the storage unit 13. In this way, when the unit price master 13b is updated, values are not set in the update history information 13a for items such as the supplier unit price group, the delivery destination code, the product unit price group, and the quantity.

伝票処理部17cは、伝票に関する各種の処理を実行する処理部である。一態様としては、伝票処理部17cは、クライアント端末30から伝票番号を含む伝票の検索要求を受け付けた場合に、伝票情報13bに含まれる伝票のうち検索要求を受け付けた伝票番号と同一の伝票番号を持つ伝票を検索する。そして、伝票処理部17cは、検索結果として得られた伝票を編集可能な伝票画面をクライアント端末30に表示させる。このようにして伝票画面が表示されると、クライアント端末30で表示された伝票画面上で記入事項、例えば取引先コードや納入先コードなどの得意先情報、商品コードや数量などの取引内容情報の他、基準日情報が受け付けられる。かかる基準日情報の一例としては、受注日、出荷日、納品日や検収日などの業務日の他、いずれの業務日を基準日に採用するのかを示す基準日設定などが挙げられる。   The slip processing unit 17c is a processing unit that executes various processes related to slips. As one aspect, when the slip processing unit 17c receives a search request for a slip including a slip number from the client terminal 30, the same slip number as the slip number that has received the search request among the slips included in the slip information 13b. Search for vouchers with Then, the slip processing unit 17c causes the client terminal 30 to display a slip screen on which the slip obtained as a search result can be edited. When the slip screen is displayed in this manner, items on the slip screen displayed on the client terminal 30 such as customer information such as a supplier code and a delivery destination code, and transaction content information such as a product code and a quantity are displayed. In addition, reference date information is accepted. As an example of the reference date information, there is a reference date setting indicating which business date is adopted as well as a business date such as an order date, a shipping date, a delivery date, and an inspection date.

図13は、伝票画面の一例を示す図である。図13には、一例として、受注伝票画面200を図示している。かかる受注伝票画面200の上部にレイアウトされたテキストボックス210に伝票番号が入力された状態で照会ボタン220が押下されると、その下部に「得意先情報」及び「基準日情報」を表示する表示領域230が表示される。この表示領域230に表示された「得意先情報」のタブ230Aが選択された状態では、取引先コードや納入先コードを入力可能なフォームが表示される。また、「基準日情報」のタブ230Bが選択された状態では、受注日、出荷予定日、納品予定日や検収予定日などの業務日を入力可能なフォームが表示される他、いずれの業務日を基準日に採用するのかを示すラジオボタン等の選択肢が表示される。さらに、表示領域230の下部には、商品コードや受注数量などを入力可能なテーブルが表示される。また、受注伝票画面200の右上に表示された伝票種別のプルダウンメニュー240から他の伝票、例えば見積伝票、出荷伝票、検収伝票や売上伝票などの他の種別の伝票画面を呼び出すことができる。このような受注伝票画面200上で記入事項、例えば取引先コードや納入先コードなどの得意先情報、商品コードや数量などの取引内容情報の他、基準日情報が受け付けられる。その後、受注伝票画面200に表示された登録ボタン250が押下されると、受注伝票画面200に入力されていた各種の情報が伝票情報13bとして記憶部13へ登録される。   FIG. 13 is a diagram illustrating an example of a slip screen. FIG. 13 shows an order slip screen 200 as an example. When the inquiry button 220 is pressed in a state where the slip number is entered in the text box 210 laid out at the top of the order slip screen 200, a display for displaying “customer information” and “reference date information” at the bottom thereof. Area 230 is displayed. When the “customer information” tab 230A displayed in the display area 230 is selected, a form in which the supplier code and the delivery destination code can be input is displayed. In addition, when the “reference date information” tab 230B is selected, a form in which business days such as an order date, a planned shipping date, a scheduled delivery date, and a planned inspection date can be entered is displayed. Option such as a radio button indicating whether or not to be adopted on the reference date is displayed. Further, a table in which product codes, order quantities, etc. can be input is displayed at the bottom of the display area 230. Further, other slips such as an estimate slip, a shipping slip, an inspection slip, and a sales slip can be called from the slip type pull-down menu 240 displayed on the upper right of the order slip screen 200. On such an order slip screen 200, entry date, for example, customer information such as supplier code and delivery destination code, transaction content information such as product code and quantity, and reference date information are accepted. Thereafter, when the registration button 250 displayed on the order slip screen 200 is pressed, various information input to the order slip screen 200 is registered in the storage unit 13 as slip information 13b.

その後、伝票処理部17cは、クライアント端末30に表示された伝票画面上で伝票の登録操作が実行された場合に、基準日が変更されたか否か、例えば伝票画面上で日付の再変更や業務日の再選択が行われたか否かを判定する。このとき、基準日が変更されていない場合には、伝票処理部17cは、当該伝票に単価が未設定であるか否かを判定する。このとき、単価が設定済みである場合には、伝票画面上での入力によって単価が変動しないことが判別できる。この場合には、単価マスタ16の更新によって単価が変動しているか否かを判別するために、伝票処理部17cは、当該伝票に設定されている基準日を始め、取引先コード、納入先コード、商品コード、商品単価グループおよび数量などの伝票情報を再取得指示受付部17dへ出力する。   Thereafter, when the slip registration operation is executed on the slip screen displayed on the client terminal 30, the slip processing unit 17c determines whether or not the reference date has been changed, for example, the date change or operation on the slip screen. It is determined whether or not the day has been reselected. At this time, if the reference date has not been changed, the slip processing unit 17c determines whether or not a unit price has been set for the slip. At this time, if the unit price has already been set, it can be determined that the unit price does not fluctuate due to input on the slip screen. In this case, in order to determine whether the unit price has fluctuated due to the update of the unit price master 16, the slip processing unit 17c starts with the reference date set in the slip, the supplier code, the delivery destination code. The slip information such as the product code, the product unit price group, and the quantity is output to the reacquisition instruction receiving unit 17d.

また、基準日が変更された場合には、単価の適用を受ける適用範囲が変化するのに伴って商品の単価も変動する可能性がある。この場合には、伝票処理部17cは、登録操作がなされた伝票が単価の設定条件を満たすか否かを判定する。一例としては、伝票処理部17cは、基準日が「受注日」に設定されている場合には、受注の業務が完了しているか否かを判定する。他の一例としては、伝票処理部17cは、基準日が「出荷日」に設定されている場合には、出荷の業務が完了しているか否かを判定する。このように、基準日として設定された販売業務のプロセスが完了している場合には、伝票処理部17cは、当該伝票に商品の単価を設定する指示を単価設定部17eへ出力する。   In addition, when the reference date is changed, the unit price of the product may change as the application range to which the unit price is applied changes. In this case, the slip processing unit 17c determines whether or not the slip for which the registration operation has been performed satisfies the unit price setting condition. As an example, when the reference date is set to “order received date”, the slip processing unit 17c determines whether or not the order receiving work has been completed. As another example, when the reference date is set to “shipping date”, the slip processing unit 17c determines whether or not the shipping operation has been completed. As described above, when the sales operation process set as the reference date is completed, the slip processing unit 17c outputs an instruction to set the unit price of the product to the slip to the unit price setting unit 17e.

一方、伝票処理部17cは、単価が未設定である場合には、当該伝票の基準日が空欄、すなわちブランクであるか否かを判定する。このとき、伝票処理部17cは、基準日がブランクである場合には、基準日の入力を促す画面表示を行って基準日の設定を受け付ける。このように基準日の設定を受け付けた場合にも、伝票処理部17cは、登録操作がなされた伝票が単価の設定条件を満たすか否かを判定する。このとき、伝票情報が単価の設定条件を満たしている場合には、伝票処理部17cは、当該伝票に商品の単価を設定する指示を単価設定部17eへ出力する。   On the other hand, when the unit price is not set, the slip processing unit 17c determines whether or not the reference date of the slip is blank, that is, blank. At this time, when the reference date is blank, the slip processing unit 17c displays a screen for prompting the input of the reference date and accepts the setting of the reference date. Even when the setting of the reference date is received in this way, the slip processing unit 17c determines whether or not the slip for which the registration operation has been performed satisfies the unit price setting condition. At this time, when the slip information satisfies the unit price setting condition, the slip processing unit 17c outputs an instruction to set the unit price of the product to the slip to the unit price setting unit 17e.

再設定指示受付部17dは、更新履歴情報13aを用いて、伝票に商品の単価を再設定する再設定指示を受け付ける処理部である。一態様としては、再設定指示受付部17dは、更新履歴情報13aに含まれるレコードのうち、伝票に単価が設定されたマスタ種別コード、すなわち単価設定時に使用された単価マスタ16を表すコードと一致するレコードを抽出する。そして、再設定指示受付部17dは、マスタ種別コードに対応する単価マスタ16が有する項目を対象に、先に抽出した更新履歴情報13aのレコードのうち伝票処理部17cによって出力された伝票情報の各項目との間で値が一致するレコードを抽出する。その上で、再設定指示受付部17dは、伝票処理部17cによって出力された基準日が更新履歴情報13aのレコードに含まれる適用期間の範囲内であるか否かを判定する。このとき、基準日が適用期間の範囲内である場合には、伝票に設定された単価が単価マスタ16の更新前の単価を用いて設定されたものであると判別できる。よって、再設定指示受付部17dは、伝票への単価の再設定を促す通知を行って再設定指示を受け付ける。このとき、再設定指示を受け付けた場合には、再設定指示受付部17dは、伝票に単価を再設定する指示を単価設定部17eへ出力する。なお、ここでは、再設定指示を受け付けることを条件に、単価の再設定を実行させる場合を例示したが、基準日が適用期間の範囲内である場合に、単価の再設定を自動的に実行させることとしてもかまわない。   The resetting instruction receiving unit 17d is a processing unit that receives a resetting instruction for resetting the unit price of the product in the slip using the update history information 13a. As one aspect, the resetting instruction receiving unit 17d matches the master type code in which the unit price is set in the slip among the records included in the update history information 13a, that is, the code representing the unit price master 16 used when setting the unit price. The records to be extracted. Then, the resetting instruction receiving unit 17d targets each item of the unit price master 16 corresponding to the master type code, and records each piece of slip information output by the slip processing unit 17c among the records of the update history information 13a extracted previously. Extract records whose values match with items. After that, the resetting instruction receiving unit 17d determines whether or not the reference date output by the slip processing unit 17c is within the range of the application period included in the record of the update history information 13a. At this time, if the reference date is within the range of the application period, it can be determined that the unit price set in the slip is set using the unit price before the update of the unit price master 16. Therefore, the resetting instruction receiving unit 17d receives a notification for prompting resetting of the unit price on the slip and receives the resetting instruction. At this time, when a reset instruction is received, the reset instruction receiving unit 17d outputs an instruction to reset the unit price to the slip to the unit price setting unit 17e. Here, the case where the unit price resetting is executed on condition that the resetting instruction is accepted is illustrated, but when the reference date is within the applicable period, the unit price resetting is automatically executed. It doesn't matter if you let them.

単価設定部17eは、伝票に単価を設定する処理部である。一態様としては、単価設定部17eは、基準日として設定された販売業務のプロセスが完了している場合には、伝票に単価を設定する。また、単価設定部17eは、伝票処理部17cによって出力された基準日が先に抽出した更新履歴情報13aのレコード情報に含まれる適用期間の範囲内である場合に、伝票に単価を再設定する。なお、単価の設定も単価の再設定も処理が起動される条件が異なるだけで処理の内容は同様である。   The unit price setting unit 17e is a processing unit that sets a unit price for a slip. As one aspect, the unit price setting unit 17e sets the unit price for the slip when the sales business process set as the reference date is completed. The unit price setting unit 17e resets the unit price for the slip when the reference date output by the slip processing unit 17c is within the range of the application period included in the record information of the update history information 13a previously extracted. . It should be noted that the content of the process is the same except that the unit price setting and the unit price resetting are different in conditions for starting the process.

かかる単価の設定方法について説明すると、単価設定部17eは、得意先マスタ15bに含まれるレコードのうち、伝票に設定されている取引先コードに対応するレコードを取得する。そして、単価設定部17eは、先に取得した得意先マスタ15bのレコードに含まれる単価決定区分の値が「9」であるか否かを判定する。このとき、単価設定部17eは、単価決定区分の値が「9」でない場合、すなわち単価決定区分の値が「1」である場合には、伝票に単価を手入力で設定させる。   The unit price setting unit 17e acquires a record corresponding to the supplier code set in the slip among the records included in the customer master 15b. Then, the unit price setting unit 17e determines whether or not the value of the unit price determination section included in the previously acquired record of the customer master 15b is “9”. At this time, when the value of the unit price determination section is not “9”, that is, when the value of the unit price determination section is “1”, the unit price setting unit 17e manually sets the unit price in the slip.

一方、単価設定部17eは、単価決定区分の値が「9」である場合には、先に取得した得意先マスタ15bのレコードに含まれる単価検索順の値が「70」であるか否かを判定する。このとき、単価設定部17eは、単価検索順の値が「70」でない場合には、単価検索順の値が「60」であるか否かをさらに判定する。   On the other hand, if the value of the unit price determination section is “9”, the unit price setting unit 17e determines whether the value of the unit price search order included in the previously acquired record of the customer master 15b is “70”. Determine. At this time, if the value of the unit price search order is not “70”, the unit price setting unit 17e further determines whether or not the value of the unit price search order is “60”.

ここで、単価設定部17eは、単価検索順の値が「70」及び「60」のいずれでもない場合には、取引先別に単価が区別された単価種別「取引先別単価」に対応する第1グループの単価マスタ16a〜16cの検索を開始する。このとき、単価設定部17eは、取引先別、納入先別及び商品別の単価マスタ16c、取引先別及び商品別の単価マスタ16b、取引先単価グループ別及び商品別の単価マスタ16aの順に単価の検索を実行する。   Here, when the value of the unit price search order is neither “70” nor “60”, the unit price setting unit 17e corresponds to the unit price type “unit price by business partner” in which the unit price is distinguished by business partner. The search for one group of unit price masters 16a to 16c is started. At this time, the unit price setting unit 17e is configured in the order of the unit price master 16c for each business partner, each delivery destination and each product, the unit price master 16b for each business partner and each product, each unit price group for each business partner, and the unit price master 16a for each product. Perform a search for.

これを具体的に説明すると、単価設定部17eは、取引先別、納入先別及び商品別の単価マスタ16cから、伝票に設定された取引先コード、納入先コード及び商品コードと値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードを検索する。このとき、単価マスタ16cからのレコードの取得に失敗した場合には、単価設定部17eは、取引先別及び商品別の単価マスタ16bから、伝票に設定された取引先コード及び商品コードと値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードをさらに検索する。そして、単価マスタ16bからのレコードの取得に失敗した場合には、単価設定部17eは、取引先単価グループ別及び商品別の単価マスタ16aから、伝票に設定された取引先単価グループ及び商品コードと値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードをさらに検索する。   Specifically, the unit price setting unit 17e has the same value as the business partner code, delivery destination code, and product code set in the slip from the unit price master 16c for each business partner, each delivery destination, and each product. Search for records that have a reference date within the applicable period. At this time, when acquisition of the record from the unit price master 16c fails, the unit price setting unit 17e receives the supplier code, the product code and the value set in the slip from the unit price master 16b for each supplier and each product. Further search is made for records that are identical and whose reference date falls within the range of the application period. And when acquisition of the record from the unit price master 16b fails, the unit price setting unit 17e reads the supplier unit price group and the product code set in the slip from the unit price master 16a for each supplier unit price group and each product. Further search is made for records having the same value and the reference date within the applicable period.

ここで、単価マスタ16c、単価マスタ16bまたは単価マスタ16aのいずれかの単価マスタ16からのレコードの取得に成功した場合には、当該単価マスタ16から取得されたレコードに含まれる契約単価が伝票に設定される。例えば、伝票に取引先コード「10101」、取引先単価グループ「スーパー○○」、納入先コード「A店」及び商品コード「101010」及び基準日「2012/4/23」が設定されている場合を想定する。このとき、図8に示した単価マスタ16cを検索した場合には、上から2番目のレコードが取得されるので、伝票には、単価「900円」が設定されることになる。また、図7に示した単価マスタ16bを検索した場合には、上から2番目のレコードが取得されるので、伝票には、単価「1000円」が設定されることになる。また、図6に示した単価マスタ16aを検索した場合には、上から2番目のレコードが取得されるので、伝票には、単価「900円」が設定されることになる。   Here, when acquisition of the record from the unit price master 16 of any of the unit price master 16c, the unit price master 16b, or the unit price master 16a is successful, the contract unit price included in the record acquired from the unit price master 16 is included in the slip. Is set. For example, when the supplier code “10101”, supplier unit price group “Super XX”, supplier code “Store A”, product code “101010” and base date “2012/4/23” are set in the slip Is assumed. At this time, when the unit price master 16c shown in FIG. 8 is searched, since the second record from the top is acquired, the unit price “900 yen” is set in the slip. Further, when the unit price master 16b shown in FIG. 7 is searched, the second record from the top is acquired, so the unit price “1000 yen” is set in the slip. Further, when the unit price master 16a shown in FIG. 6 is searched, the second record from the top is acquired, so the unit price “900 yen” is set in the slip.

一方、単価設定部17eは、単価マスタ16c、単価マスタ16b及び単価マスタ16aのいずれの単価マスタ16からもレコードの取得に失敗した場合には、商品別および数量別に単価が区別された単価種別「商品別数量別単価」に対応する第2グループの単価マスタ16d〜16eの検索を開始する。このとき、単価設定部17eは、取引先別、商品別及び数量別の単価マスタ16e、取引先単価グループ別、商品別及び数量別の単価マスタ16dの順に単価の検索を実行する。なお、単価検索順の値が「60」であった場合には、第1グループの単価マスタ16a〜16cへの検索は実行されず、第2グループの単価マスタ16d〜16eの検索から開始される。   On the other hand, when the unit price setting unit 17e fails to acquire a record from any of the unit price masters 16c, the unit price master 16b, and the unit price master 16a, the unit price type “ The search of the unit price masters 16d to 16e of the second group corresponding to “unit price by product quantity” is started. At this time, the unit price setting unit 17e searches for the unit price in the order of the unit price master 16e for each supplier, each product, and each quantity, and each unit price master 16d for each supplier unit price group, each product, and each quantity. If the value of the unit price search order is “60”, the search to the unit price masters 16a to 16c of the first group is not executed, and the search starts from the unit price masters 16d to 16e of the second group. .

これを具体的に説明すると、単価設定部17eは、取引先別、商品別及び数量別の単価マスタ16eから、伝票に設定された取引先コード、商品コード及び数量と値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードを検索する。このとき、単価マスタ16eからのレコードの取得に失敗した場合には、単価設定部17eは、取引先単価グループ別、商品別及び数量別の単価マスタ16dから、伝票に設定された取引先単価グループ、商品コード及び数量と値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードをさらに検索する。   Specifically, the unit price setting unit 17e has the same value as the supplier code, product code, and quantity set in the slip from the unit price master 16e for each supplier, product, and quantity, and Search for records whose base date falls within the applicable period. At this time, when acquisition of the record from the unit price master 16e fails, the unit price setting unit 17e reads the unit price group set in the slip from the unit price master 16d for each supplier unit price group, each product, and each quantity. Further, a record in which the product code, the quantity, and the value are the same and the reference date is included in the applicable period is further searched.

ここで、単価マスタ16eまたは単価マスタ16dのいずれかの単価マスタ16からのレコードの取得に成功した場合には、当該単価マスタ16から取得されたレコードに含まれる契約単価が伝票に設定される。例えば、伝票に取引先コード「10101」、取引先単価グループ「スーパー○○」、納入先コード「A店」及び商品コード「101010」及び基準日「2012/4/23」が設定されている場合を想定する。このとき、図10に示した単価マスタ16eを検索した場合には、上から1番目のレコードが取得されるので、伝票には、単価「1100円」が設定されることになる。また、図9に示した単価マスタ16dを検索した場合には、上から1番目のレコードが取得されるので、伝票には、単価「1100円」が設定されることになる。   Here, when acquisition of the record from the unit price master 16 of either the unit price master 16e or the unit price master 16d is successful, the contract unit price included in the record acquired from the unit price master 16 is set in the slip. For example, when the supplier code “10101”, supplier unit price group “Super XX”, supplier code “Store A”, product code “101010” and base date “2012/4/23” are set in the slip Is assumed. At this time, when the unit price master 16e shown in FIG. 10 is searched, since the first record from the top is acquired, the unit price “1100 yen” is set in the slip. Further, when the unit price master 16d shown in FIG. 9 is searched, the first record from the top is acquired, so the unit price “1100 yen” is set in the slip.

一方、単価設定部17eは、単価マスタ16e及び単価マスタ16dのいずれの単価マスタ16からもレコードの取得に失敗した場合には、前回に商品を納入した履歴別に単価が区別された単価種別「前回納入単価」に対応する第3グループの履歴単価マスタ16fの検索を開始する。なお、単価検索順の値が「70」であった場合には、第1グループの単価マスタ16a〜16c及び第2グループの単価マスタ16d〜16eへの検索は実行されず、第3グループの単価マスタ16fの検索から開始される。   On the other hand, if the unit price setting unit 17e fails to acquire a record from either the unit price master 16e or the unit price master 16d, the unit price type “last time” in which the unit price is distinguished according to the history of the previous delivery of the product. The search for the historical unit price master 16f of the third group corresponding to “delivery unit price” is started. If the value of the unit price search order is “70”, the search to the unit price masters 16a to 16c of the first group and the unit price masters 16d to 16e of the second group is not executed, and the unit price of the third group. The search starts from the master 16f.

これを具体的に説明すると、単価設定部17eは、取引先別、納入先別及び商品別の履歴単価マスタ16fから、伝票に設定された取引先コード、納入先コード及び商品コードと値が同一であり、かつ伝票日付が最新であるレコードを検索する。このとき、単価マスタ16fからのレコードの取得に成功した場合には、当該単価マスタ16から取得されたレコードに含まれる契約単価が伝票に設定される。例えば、伝票に取引先コード「10101」、取引先単価グループ「スーパー○○」、納入先コード「A店」及び商品コード「101010」及び基準日「2012/4/23」が設定されている場合を想定する。このとき、図11に示した単価マスタ16fを検索した場合には、上から2番目のレコードが取得されるので、伝票には、単価「1050円」が設定されることになる。   More specifically, the unit price setting unit 17e has the same value as the business partner code, delivery destination code, and product code set in the slip from the historical unit price master 16f for each business partner, each delivery destination, and each product. And the record with the latest voucher date is retrieved. At this time, when the record acquisition from the unit price master 16f is successful, the contract unit price included in the record acquired from the unit price master 16 is set in the slip. For example, when the supplier code “10101”, supplier unit price group “Super XX”, supplier code “Store A”, product code “101010” and base date “2012/4/23” are set in the slip Is assumed. At this time, when the unit price master 16f shown in FIG. 11 is searched, the second record from the top is acquired, so the unit price “1050 yen” is set in the slip.

一方、単価マスタ16fからのレコードの取得に失敗した場合には、単価設定部17eは、全ての単価マスタ16から単価の取得を失敗したことになるので、伝票に単価を手入力で設定させる。   On the other hand, if the acquisition of the record from the unit price master 16f fails, the unit price setting unit 17e has failed to acquire the unit price from all the unit price masters 16, so that the unit price is set manually in the slip.

なお、制御部17には、各種の集積回路や電子回路を採用できる。また、制御部17が有する機能部の一部を別の集積回路や電子回路とすることもできる。例えば、集積回路としては、ASIC(Application Specific Integrated Circuit)が挙げられる。また、電子回路としては、CPU(Central Processing Unit)やMPU(Micro Processing Unit)などが挙げられる。   Note that various integrated circuits and electronic circuits can be employed for the control unit 17. Further, a part of the functional unit included in the control unit 17 may be another integrated circuit or an electronic circuit. For example, an ASIC (Application Specific Integrated Circuit) is an example of the integrated circuit. Examples of the electronic circuit include a central processing unit (CPU) and a micro processing unit (MPU).

[処理の流れ]
続いて、本実施例に係る販売管理装置の処理の流れについて説明する。なお、ここでは、販売管理装置10によって実行される(1)販売管理処理について説明した後に、(2)単価設定処理について説明することとする。
[Process flow]
Next, the process flow of the sales management apparatus according to the present embodiment will be described. Here, after (1) sales management processing executed by the sales management apparatus 10 is described, (2) unit price setting processing will be described.

(1)販売管理処理
図14は、実施例1に係る販売管理処理の手順を示すフローチャートである。この販売管理処理は、販売管理装置10の電源がON状態である限り、繰り返し実行される処理であり、クライアント端末30から伝票番号を含む伝票の検索要求を受け付けた場合に処理が起動される。
(1) Sales Management Processing FIG. 14 is a flowchart illustrating the procedure of sales management processing according to the first embodiment. This sales management process is a process that is repeatedly executed as long as the power of the sales management apparatus 10 is ON. The process is started when a search request for a slip including a slip number is received from the client terminal 30.

図14に示すように、伝票処理部17cは、伝票情報13bに含まれる伝票のうち検索要求を受け付けた伝票番号と同一の伝票番号を持つ伝票を検索した上でその検索結果として得られた伝票を編集可能な伝票画面をクライアント端末30に表示させる(ステップS101)。   As illustrated in FIG. 14, the slip processing unit 17 c searches for a slip having the same slip number as the slip number that has received the search request from the slips included in the slip information 13 b and obtains the slip obtained as a result of the search. Is displayed on the client terminal 30 (step S101).

そして、伝票処理部17cは、クライアント端末30で表示された伝票画面を介して、伝票の記入事項、例えば取引先コードや納入先コードなどの得意先情報、商品コードや数量などの取引内容情報の他、基準日情報を受け付ける(ステップS102)。   Then, the slip processing unit 17c, through the slip screen displayed on the client terminal 30, stores customer information such as supplier code and delivery destination code, transaction content information such as product code and quantity, for example. In addition, reference date information is received (step S102).

続いて、伝票処理部17cは、伝票画面上で伝票の登録操作がなされると、基準日が変更されたか否か、例えば伝票画面上で日付の再変更や業務日の再選択が行われたか否かを判定する(ステップS103)。   Subsequently, when the slip registration operation is performed on the slip screen, the slip processing unit 17c determines whether the reference date has been changed, for example, whether the date has been changed again or the business day has been reselected on the slip screen. It is determined whether or not (step S103).

このとき、基準日が変更されていない場合(ステップS103否定)には、伝票処理部17cは、当該伝票に単価が未設定であるか否かを判定する(ステップS104)。そして、単価が未設定である場合(ステップS104肯定)には、伝票処理部17cは、当該伝票の基準日が空欄、すなわちブランクであるか否かを判定する(ステップS105)。   At this time, if the reference date has not been changed (No at Step S103), the slip processing unit 17c determines whether or not the unit price has been set for the slip (Step S104). If the unit price is not set (Yes at Step S104), the slip processing unit 17c determines whether or not the reference date of the slip is blank, that is, blank (Step S105).

続いて、基準日がブランクである場合(ステップS105肯定)には、伝票処理部17cは、基準日の入力を促す画面表示を行って基準日の設定を受け付ける(ステップS106)。なお、基準日がブランクではない場合(ステップS105否定)には、上記のステップS106の処理をとばしてステップS107の処理へ移行する。   Subsequently, when the reference date is blank (Yes at Step S105), the slip processing unit 17c displays a screen for prompting the input of the reference date and accepts the setting of the reference date (Step S106). If the reference date is not blank (No at Step S105), the process at Step S106 is skipped and the process proceeds to Step S107.

また、基準日が変更された場合(ステップS103肯定)には、単価の適用を受ける適用範囲が変化するのに伴って商品の単価も変動する可能性がある。この場合にも、ステップS104〜ステップS106までの処理をとばし、ステップS107の処理へ移行する。   In addition, when the reference date is changed (Yes in step S103), the unit price of the product may change as the application range to which the unit price is applied changes. Also in this case, the process from step S104 to step S106 is skipped, and the process proceeds to step S107.

その後、伝票処理部17cは、登録操作がなされた伝票が単価の設定条件を満たすか否かを判定する(ステップS107)。例えば、伝票処理部17cは、基準日が「受注日」に設定されている場合には、受注の業務が完了しているか否かを判定する。他の一例としては、伝票処理部17cは、基準日が「出荷日」に設定されている場合には、出荷の業務が完了しているか否かを判定する。   Thereafter, the slip processing unit 17c determines whether or not the slip for which the registration operation has been performed satisfies a unit price setting condition (step S107). For example, when the reference date is set to “order received date”, the slip processing unit 17c determines whether or not the order receiving work has been completed. As another example, when the reference date is set to “shipping date”, the slip processing unit 17c determines whether or not the shipping operation has been completed.

そして、伝票が単価の設定条件を満たす場合(ステップS107肯定)には、単価設定部17eは、伝票に単価を設定する「単価設定処理」を実行し(ステップS108)、伝票処理部17cに伝票に設定された伝票情報を記憶部13へ登録させ(ステップS109)、処理を終了する。   When the slip satisfies the unit price setting condition (Yes at Step S107), the unit price setting unit 17e executes a “unit price setting process” for setting the unit price in the slip (Step S108), and the slip processing unit 17c receives the slip. Is registered in the storage unit 13 (step S109), and the process is terminated.

一方、伝票が単価の設定条件を満たさない場合(ステップS107否定)には、伝票処理部17cは、ステップS108の処理をとばし、伝票に設定された伝票情報を記憶部13へ登録し(ステップS109)、処理を終了する。   On the other hand, when the slip does not satisfy the unit price setting condition (No at Step S107), the slip processing unit 17c skips Step S108 and registers the slip information set in the slip in the storage unit 13 (Step S109). ), The process is terminated.

また、単価が設定済みである場合(ステップS104否定)には、再設定指示受付部17dは、更新履歴情報13aに含まれるレコードのうち伝票に単価が設定されたマスタ種別コードと一致するレコードであり、かつマスタ種別コードに対応する単価マスタ16が有する項目を対象に伝票処理部17cによって出力された伝票情報の各項目との間で値が一致するレコードに含まれる適用期間の範囲内に、伝票処理部17cによって出力された基準日が含まれるか否かを判定する(ステップS110)。   If the unit price has been set (No at Step S104), the reset instruction receiving unit 17d is a record that matches the master type code in which the unit price is set in the slip among the records included in the update history information 13a. In the range of the application period included in the record whose value matches with each item of the slip information output by the slip processing unit 17c for the item included in the unit price master 16 corresponding to the master type code, It is determined whether or not the reference date output by the slip processing unit 17c is included (step S110).

このとき、基準日が適用期間の範囲内である場合(ステップS110肯定)には、伝票に設定された単価が単価マスタ16の更新前の単価を用いて設定されたものであると判別できる。よって、再設定指示受付部17dは、伝票への単価の再設定を促す通知を行って再設定指示がなされるのを待機する(ステップS111)。   At this time, if the reference date is within the range of the application period (Yes at Step S110), it can be determined that the unit price set in the slip is set using the unit price before the update of the unit price master 16. Accordingly, the resetting instruction receiving unit 17d waits for a resetting instruction to be made by notifying the resetting of the unit price to the slip (step S111).

このとき、再設定指示を受け付けた場合(ステップS111肯定)には、単価設定部17eは、伝票に単価を設定する「単価設定処理」を実行し(ステップS108)、伝票処理部17cに伝票に設定された伝票情報を記憶部13へ登録させ(ステップS109)、処理を終了する。   At this time, if a reset instruction is accepted (Yes at step S111), the unit price setting unit 17e executes a “unit price setting process” for setting the unit price in the slip (step S108), and the slip processing unit 17c adds the unit price to the slip. The set slip information is registered in the storage unit 13 (step S109), and the process ends.

一方、基準日が適用期間の範囲内でない場合、あるいは再設定指示が受け付けられなかった場合(ステップS110否定またはステップS111否定)には、伝票処理部17cは、伝票に設定された伝票情報を記憶部13へ登録し(ステップS109)、処理を終了する。   On the other hand, when the reference date is not within the range of the application period or when the reset instruction is not accepted (No at Step S110 or No at Step S111), the slip processing unit 17c stores the slip information set in the slip. Registered in the unit 13 (step S109), and the process ends.

(2)単価設定処理
図15及び図16は、実施例1に係る単価設定処理の手順を示すフローチャートである。この単価設定処理は、図14に示したステップS108に対応する処理であり、ステップS107肯定、あるいはステップS111肯定の場合に処理が起動される。
(2) Unit Price Setting Process FIGS. 15 and 16 are flowcharts illustrating the procedure of the unit price setting process according to the first embodiment. This unit price setting process is a process corresponding to step S108 shown in FIG. 14, and is started when step S107 is affirmative or step S111 is affirmative.

図15に示すように、単価設定部17eは、得意先マスタ15bに含まれるレコードのうち、伝票に設定されている取引先コードに対応するレコードを取得する(ステップS301)。   As shown in FIG. 15, the unit price setting unit 17e acquires a record corresponding to the supplier code set in the slip among the records included in the customer master 15b (step S301).

そして、単価設定部17eは、ステップS301で取得した得意先マスタ15bのレコードに含まれる単価決定区分の値が「9」であるか否かを判定する(ステップS302)。なお、単価決定区分の値が「9」でない場合、すなわち単価決定区分の値が「1」である場合(ステップS302否定)には、単価設定部17eは、伝票に単価を手入力で設定させ(ステップS303)、処理を終了する。   Then, the unit price setting unit 17e determines whether or not the value of the unit price determination section included in the record of the customer master 15b acquired in step S301 is “9” (step S302). When the value of the unit price determination category is not “9”, that is, when the value of the unit price determination category is “1” (No in step S302), the unit price setting unit 17e causes the slip to be manually set to the unit price. (Step S303), the process ends.

一方、単価設定部17eは、単価決定区分の値が「9」である場合(ステップS302肯定)には、得意先マスタ15bのレコードに含まれる単価検索順の値が「70」であるか否かを判定する(ステップS304)。なお、単価検索順の値が「70」である場合(ステップS304肯定)には、下記のステップS305〜ステップS315までの処理をとばし、ステップS316の処理へ移行する。   On the other hand, when the value of the unit price determination section is “9” (Yes at Step S302), the unit price setting unit 17e determines whether the value of the unit price search order included in the record of the customer master 15b is “70”. Is determined (step S304). If the value of the unit price search order is “70” (Yes at Step S304), the process from Step S305 to Step S315 described below is skipped, and the process proceeds to Step S316.

このとき、単価検索順の値が「70」でない場合(ステップS304否定)には、単価設定部17eは、単価検索順の値が「60」であるか否かをさらに判定する(ステップS305)。なお、単価検索順の値が「60」である場合(ステップS305肯定)には、下記のステップS306〜ステップS311までの処理をとばし、ステップS312の処理へ移行する。   At this time, if the value of the unit price search order is not “70” (No at Step S304), the unit price setting unit 17e further determines whether or not the value of the unit price search order is “60” (Step S305). . If the value of the unit price search order is “60” (Yes at Step S305), the processing from Step S306 to Step S311 below is skipped, and the process proceeds to Step S312.

ここで、単価検索順の値が「60」でもない場合、すなわち単価検索順の値が「50」である場合(ステップS305否定)には、単価設定部17eは、取引先別、納入先別及び商品別の単価マスタ16cから、伝票に設定された取引先コード、納入先コード及び商品コードと値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードを検索する(ステップS306)。   Here, when the value of the unit price search order is not “60”, that is, when the value of the unit price search order is “50” (No in step S305), the unit price setting unit 17e determines the value for each business partner and each delivery destination. In addition, from the unit price master 16c for each product, a record that has the same value as the supplier code, the delivery destination code, and the product code set in the slip and includes the reference date within the range of the application period is searched (step S306). ).

このとき、単価マスタ16cからのレコードの取得に失敗した場合(ステップS307肯定)には、単価設定部17eは、取引先別及び商品別の単価マスタ16bから、伝票に設定された取引先コード及び商品コードと値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードをさらに検索する(ステップS308)。   At this time, when acquisition of the record from the unit price master 16c has failed (Yes in step S307), the unit price setting unit 17e receives the supplier code set in the slip from the unit price master 16b for each supplier and each product. Further search is made for a record having the same value as the product code and having the reference date within the range of the application period (step S308).

そして、単価マスタ16bからのレコードの取得に失敗した場合(ステップS309肯定)には、単価設定部17eは、取引先単価グループ別及び商品別の単価マスタ16aから、伝票に設定された取引先単価グループ及び商品コードと値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードをさらに検索する(ステップS310)。   If acquisition of the record from the unit price master 16b has failed (Yes at step S309), the unit price setting unit 17e determines the supplier unit price set in the slip from the unit price master 16a for each supplier unit price group and each product. Further search is made for a record having the same value as that of the group and the product code and having the reference date within the range of the application period (step S310).

ここで、単価マスタ16c、単価マスタ16bまたは単価マスタ16aのいずれかの単価マスタ16からのレコードの取得に成功した場合(ステップS307否定、ステップS309否定またはステップS311否定)には、単価設定部17eは、当該単価マスタ16から取得されたレコードに含まれる契約単価を伝票に設定し(ステップS318)、処理を終了する。   Here, when acquisition of the record from the unit price master 16 of any of the unit price master 16c, the unit price master 16b, or the unit price master 16a is successful (No at Step S307, No at Step S309, or No at Step S311), the unit price setting unit 17e Sets the contract unit price included in the record acquired from the unit price master 16 in the slip (step S318), and ends the process.

また、単価マスタ16aからのレコードの取得にも失敗した場合(ステップS311肯定)には、単価設定部17eは、取引先別、商品別及び数量別の単価マスタ16eから、伝票に設定された取引先コード、商品コード及び数量と値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードを検索する(ステップS312)。   If acquisition of the record from the unit price master 16a has failed (Yes in step S311), the unit price setting unit 17e determines the transaction set in the slip from the unit price master 16e for each supplier, product, and quantity. A record having the same value as the destination code, product code, quantity, and the reference date within the applicable period is searched (step S312).

このとき、単価マスタ16eからのレコードの取得に失敗した場合(ステップS313肯定)には、単価設定部17eは、取引先単価グループ別、商品別及び数量別の単価マスタ16dから、伝票に設定された取引先単価グループ、商品コード及び数量と値が同一であり、かつ基準日が適用期間の範囲内に含まれるレコードをさらに検索する(ステップS314)。   At this time, if acquisition of the record from the unit price master 16e has failed (Yes in step S313), the unit price setting unit 17e is set in the slip from the unit price master 16d for each business unit price group, product, and quantity. Further search is made for a record that has the same value as the supplier unit price group, product code, quantity, and the reference date is within the range of the application period (step S314).

ここで、単価マスタ16eまたは単価マスタ16dのいずれかの単価マスタ16からのレコードの取得に成功した場合(ステップS313否定またはステップS315否定)には、単価設定部17eは、当該単価マスタ16から取得されたレコードに含まれる契約単価を伝票に設定し(ステップS318)、処理を終了する。   Here, when the record acquisition from either the unit price master 16e or the unit price master 16d is successful (No in step S313 or No in step S315), the unit price setting unit 17e acquires the record from the unit price master 16. The contract unit price included in the recorded record is set in the slip (step S318), and the process ends.

一方、単価マスタ16dからのレコードの取得にも失敗した場合(ステップS315肯定)には、取引先別、納入先別及び商品別の履歴単価マスタ16fから、伝票に設定された取引先コード、納入先コード及び商品コードと値が同一であり、かつ伝票日付が最新であるレコードを検索する(ステップS316)。   On the other hand, if acquisition of the record from the unit price master 16d also fails (Yes at step S315), the supplier code and delivery set in the slip from the historical unit price master 16f for each supplier, each delivery destination, and each product. A record having the same value as the destination code and the product code and having the latest slip date is searched (step S316).

このとき、単価マスタ16fからのレコードの取得に成功した場合(ステップS317肯定)には、単価設定部17eは、当該単価マスタ16から取得されたレコードに含まれる契約単価を伝票に設定し(ステップS318)、処理を終了する。   At this time, if acquisition of the record from the unit price master 16f is successful (Yes at Step S317), the unit price setting unit 17e sets the contract unit price included in the record acquired from the unit price master 16 in the slip (Step S317). S318), the process ends.

一方、単価マスタ16fからのレコードの取得に失敗した場合(ステップS317否定)には、単価設定部17eは、全ての単価マスタ16から単価の取得を失敗したことになるので、伝票に単価を手入力で設定させ(ステップS303)、処理を終了する。   On the other hand, if the acquisition of the record from the unit price master 16f fails (No at Step S317), the unit price setting unit 17e has failed to acquire the unit price from all the unit price masters 16, so It is set by input (step S303), and the process is terminated.

[実施例1の効果]
上述してきたように、本実施例に係る販売管理装置10は、単価マスタ16の適用期間の範囲内に新たに挿入する適用期間及び単価の指定を受け付け、単価マスタ16に定義された適用期間のうち指定を受け付けた適用期間が挿入される適用期間に対し、指定を受け付けた適用期間の開始日及び終了日を境界に当該挿入される適用期間を分断する更新を実行するとともに、指定を受け付けた適用期間に指定を受け付けた単価を対応付ける更新を実行し、単価の適用を受ける基準日が指定を受け付けた適用期間に該当する商品を取引の対象とする伝票を対象に、伝票に商品の単価を再設定する再設定指示を受け付け、再設定指示を受け付けた場合に、単価マスタ16に定義された商品の単価のうち基準日が含まれる適用期間に対応付けられた商品の単価を伝票に設定する。
[Effect of Example 1]
As described above, the sales management apparatus 10 according to the present embodiment accepts designation of an application period and a unit price to be newly inserted within the range of the application period of the unit price master 16, and sets the application period defined in the unit price master 16. For the application period in which the application period for which the designation is accepted is inserted, an update is performed to divide the application period to be inserted on the boundary of the start date and the end date of the application period for which the designation is accepted, and the designation is accepted. Execute the update that associates the specified unit price with the application period, and apply the unit price of the product to the voucher that deals with products that fall within the application period for which the base date for applying the unit price has received the specification. When a reset instruction for resetting is received and the resetting instruction is received, the product associated with the application period including the reference date among the unit prices of the products defined in the unit price master 16 is received. To set the unit price in the document.

このため、本実施例に係る販売管理装置10では、既に適用期間が定義された期間の商品の単価であっても単価マスタを動的に更新できるので、商品の単価が設定された時点から時を経て商品の単価が不適切なものになっても単価を変更できる。さらに、本実施例に係る販売管理装置10では、伝票に設定された単価が単価マスタ16の更新前の単価を用いて設定されたものであれば、伝票に単価を再設定できる。したがって、販売管理装置10によれば、商品に適切な単価を設定することが可能である。   For this reason, in the sales management apparatus 10 according to the present embodiment, the unit price master can be dynamically updated even if the unit price of the product in the period for which the application period has already been defined. The unit price can be changed even if the unit price of the product becomes inappropriate. Furthermore, in the sales management device 10 according to the present embodiment, if the unit price set in the slip is set using the unit price before update of the unit price master 16, the unit price can be reset in the slip. Therefore, according to the sales management device 10, it is possible to set an appropriate unit price for the product.

さて、これまで開示の装置に関する実施例について説明したが、本発明は上述した実施例以外にも、種々の異なる形態にて実施されてよいものである。そこで、以下では、本発明に含まれる他の実施例を説明する。   Although the embodiments related to the disclosed apparatus have been described above, the present invention may be implemented in various different forms other than the above-described embodiments. Therefore, another embodiment included in the present invention will be described below.

[分散および統合]
また、図示した各装置の各構成要素は、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、指示受付部17a、マスタ更新部17b、伝票処理部17c、再設定指示受付部17dまたは単価設定部17eを販売管理装置10の外部装置としてネットワーク経由で接続するようにしてもよい。また、指示受付部17a、マスタ更新部17b、伝票処理部17c、再設定指示受付部17dまたは単価設定部17eを別の装置がそれぞれ有し、ネットワーク接続されて協働することで、上記の販売管理装置10の機能を実現するようにしてもよい。
[Distribution and integration]
In addition, each component of each illustrated apparatus does not necessarily need to be physically configured as illustrated. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured. For example, the instruction receiving unit 17a, the master updating unit 17b, the slip processing unit 17c, the resetting instruction receiving unit 17d, or the unit price setting unit 17e may be connected as an external device of the sales management device 10 via a network. In addition, each device has an instruction receiving unit 17a, a master updating unit 17b, a slip processing unit 17c, a resetting instruction receiving unit 17d, or a unit price setting unit 17e, and is connected to the network to cooperate with the above sales. You may make it implement | achieve the function of the management apparatus 10. FIG.

[単価設定プログラム]
また、上記の実施例で説明した各種の処理は、予め用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータで実行することによって実現することができる。そこで、以下では、図17を用いて、上記の実施例と同様の機能を有する単価設定プログラムを実行するコンピュータの一例について説明する。
[Unit price setting program]
The various processes described in the above embodiments can be realized by executing a prepared program on a computer such as a personal computer or a workstation. In the following, an example of a computer that executes a unit price setting program having the same function as that of the above embodiment will be described with reference to FIG.

図17は、実施例1及び実施例2に係る単価設定プログラムを実行するコンピュータの一例について説明するための図である。図17に示すように、コンピュータ100は、操作部110aと、スピーカ110bと、カメラ110cと、ディスプレイ120と、通信部130とを有する。さらに、このコンピュータ100は、CPU150と、ROM160と、HDD170と、RAM180とを有する。これら110〜180の各部はバス140を介して接続される。   FIG. 17 is a schematic diagram illustrating an example of a computer that executes a unit price setting program according to the first and second embodiments. As illustrated in FIG. 17, the computer 100 includes an operation unit 110a, a speaker 110b, a camera 110c, a display 120, and a communication unit 130. Further, the computer 100 includes a CPU 150, a ROM 160, an HDD 170, and a RAM 180. These units 110 to 180 are connected via a bus 140.

HDD170には、図17に示すように、上記の実施例1で示した指示受付部17a、マスタ更新部17b、伝票処理部17c、再設定指示受付部17d及び単価設定部17eと同様の機能を発揮する単価設定プログラム170aが予め記憶される。この単価設定プログラム170aについては、図1に示した各々の指示受付部17a、マスタ更新部17b、伝票処理部17c、再設定指示受付部17d及び単価設定部17eの各構成要素と同様、適宜統合又は分離しても良い。すなわち、HDD170に格納される各データは、常に全てのデータがHDD170に格納される必要はなく、処理に必要なデータのみがHDD170に格納されれば良い。   As shown in FIG. 17, the HDD 170 has the same functions as those of the instruction receiving unit 17a, the master updating unit 17b, the slip processing unit 17c, the resetting instruction receiving unit 17d, and the unit price setting unit 17e described in the first embodiment. A unit price setting program 170a to be exhibited is stored in advance. The unit price setting program 170a is appropriately integrated, as with each component of the instruction receiving unit 17a, the master updating unit 17b, the slip processing unit 17c, the resetting instruction receiving unit 17d, and the unit price setting unit 17e shown in FIG. Or you may isolate | separate. In other words, all data stored in the HDD 170 need not always be stored in the HDD 170, and only data necessary for processing may be stored in the HDD 170.

そして、CPU150が、単価設定プログラム170aをHDD170から読み出してRAM180に展開する。これによって、図17に示すように、単価設定プログラム170aは、単価設定プロセス180aとして機能する。この単価設定プロセス180aは、HDD170から読み出した各種データを適宜RAM180上の自身に割り当てられた領域に展開し、この展開した各種データに基づいて各種処理を実行する。なお、単価設定プロセス180aは、図1に示した指示受付部17a、マスタ更新部17b、伝票処理部17c、再設定指示受付部17d及び単価設定部17eにて実行される処理、例えば図14〜図16に示す処理を含む。また、CPU150上で仮想的に実現される各処理部は、常に全ての処理部がCPU150上で動作する必要はなく、処理に必要な処理部のみが仮想的に実現されれば良い。   Then, the CPU 150 reads the unit price setting program 170 a from the HDD 170 and expands it in the RAM 180. Thus, as shown in FIG. 17, the unit price setting program 170a functions as a unit price setting process 180a. The unit price setting process 180a expands various data read from the HDD 170 in an area allocated to itself on the RAM 180, and executes various processes based on the expanded data. The unit price setting process 180a is a process executed by the instruction receiving unit 17a, the master updating unit 17b, the slip processing unit 17c, the resetting instruction receiving unit 17d, and the unit price setting unit 17e shown in FIG. The process shown in FIG. 16 is included. In addition, each processing unit virtually realized on the CPU 150 does not always require that all processing units operate on the CPU 150, and only a processing unit necessary for the processing needs to be virtually realized.

なお、上記の単価設定プログラム170aについては、必ずしも最初からHDD170やROM160に記憶させておく必要はない。例えば、コンピュータ100に挿入されるフレキシブルディスク、いわゆるFD、CD−ROM、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」に各プログラムを記憶させる。そして、コンピュータ100がこれらの可搬用の物理媒体から各プログラムを取得して実行するようにしてもよい。また、公衆回線、インターネット、LAN、WANなどを介してコンピュータ100に接続される他のコンピュータまたはサーバ装置などに各プログラムを記憶させておき、コンピュータ100がこれらから各プログラムを取得して実行するようにしてもよい。   Note that the unit price setting program 170a is not necessarily stored in the HDD 170 or the ROM 160 from the beginning. For example, each program is stored in a “portable physical medium” such as a flexible disk inserted into the computer 100, so-called FD, CD-ROM, DVD disk, magneto-optical disk, or IC card. Then, the computer 100 may acquire and execute each program from these portable physical media. In addition, each program is stored in another computer or server device connected to the computer 100 via a public line, the Internet, a LAN, a WAN, etc., and the computer 100 acquires and executes each program from these. It may be.

10 販売管理装置
11 通信I/F部
13 記憶部
13a 更新履歴情報
13b 伝票情報
14 マスタデータ
15a 商品マスタ
15b 得意先マスタ
15c 仕入先マスタ
15d システムマスタ
16,16a,16b,16c,16d,16e,16f 単価マスタ
17 制御部
17a 指定受付部
17b マスタ更新部
17c 伝票処理部
17d 再設定指示受付部
17e 単価設定部
DESCRIPTION OF SYMBOLS 10 Sales management apparatus 11 Communication I / F part 13 Storage part 13a Update history information 13b Document information 14 Master data 15a Merchandise master 15b Customer master 15c Supplier master 15d System master 16, 16a, 16b, 16c, 16d, 16e, 16f unit price master 17 control unit 17a designation receiving unit 17b master updating unit 17c slip processing unit 17d resetting instruction receiving unit 17e unit price setting unit

Claims (6)

商品の単価が適用される適用期間ごとに当該商品の単価が対応付けられた単価マスタの適用期間の範囲内に新たに挿入する適用期間及び単価の指定を受け付ける指定受付部と、
前記単価マスタに定義された適用期間のうち前記指定を受け付けた適用期間が挿入される適用期間に対し、前記指定を受け付けた適用期間の開始日及び終了日を境界に当該挿入される適用期間を分断する更新を実行するとともに、前記指定を受け付けた適用期間に前記指定を受け付けた単価を対応付ける更新を実行するマスタ更新部と、
単価の適用を受ける基準日が前記指定を受け付けた適用期間に該当する商品を取引の対象とする伝票を対象に、前記伝票に商品の単価を再設定する再設定指示を受け付ける再設定指示受付部と、
前記再設定指示を受け付けた場合に、前記単価マスタに定義された商品の単価のうち前記基準日が含まれる適用期間に対応付けられた商品の単価を前記伝票に設定する単価設定部と
を有することを特徴とする単価設定装置。
A designation receiving unit that accepts designation of an application period and a unit price to be newly inserted within a range of an application period of a unit price master associated with a unit price of the product for each application period in which the unit price of the product is applied;
Of the application period defined in the unit price master, the application period that is inserted with the start date and the end date of the application period that receives the designation as a boundary with respect to the application period in which the application period that has accepted the designation is inserted. A master update unit that executes an update that divides and executes an update that associates the unit price that received the designation with the application period that accepted the designation;
A reset instruction accepting unit for accepting a reset instruction for resetting the unit price of a product in the slip for a slip whose target is a product corresponding to the application period for which the reference date for accepting the unit price is accepted. When,
A unit price setting unit configured to set, in the slip, a unit price of a product associated with an application period including the reference date among unit prices of products defined in the unit price master when the reset instruction is received; A unit price setting device characterized by that.
前記伝票は、取引先、前記取引先が納入する納入先、前記取引先との間で取引される商品の数量もしくはこれらの組合せを基準に区分が設定されるものであって、
前記単価設定部は、同一の商品に異なる単価が定義された複数の単価マスタと前記伝票の区分との対応関係が定義された対応関係情報を参照し、複数の単価マスタのうち前記再設定指示を受け付けた伝票の区分に対応する単価マスタを用いて当該伝票に商品の単価を設定することを特徴とする請求項1に記載の単価設定装置。
The slip is set based on a business partner, a delivery destination delivered by the business partner, the quantity of products traded with the business partner, or a combination thereof,
The unit price setting unit refers to correspondence information in which a correspondence relationship between a plurality of unit price masters in which different unit prices are defined for the same product and a category of the slip is defined, and the reset instruction among a plurality of unit price masters 2. The unit price setting apparatus according to claim 1, wherein the unit price of the product is set in the slip by using a unit price master corresponding to the category of the slip that received the item.
前記単価設定部は、同一の商品に異なる単価が定義された複数の単価マスタに含まれる各単価マスタの順序が定義された順序情報を参照し、前記順序情報に定義された順序にしたがって単価マスタから商品の単価を検索する処理を検索によって商品の単価が得られるまで繰り返し実行することを特徴とする請求項1または2に記載の単価設定装置。   The unit price setting unit refers to order information in which the order of each unit price master included in a plurality of unit price masters in which different unit prices are defined for the same product, and the unit price master according to the order defined in the order information. 3. The unit price setting apparatus according to claim 1, wherein the process of searching for the unit price of the product is repeatedly executed until the unit price of the product is obtained by the search. 前記単価設定部は、前記伝票に設定された基準日が変更された場合に、前記単価マスタに定義された商品の単価のうち変更後の基準日が含まれる適用期間と対応付けられた商品の単価を前記伝票に設定することを特徴とする請求項1、2または3に記載の単価設定装置。   The unit price setting unit, when the reference date set in the slip is changed, of the product associated with the application period including the changed reference date among the unit price of the product defined in the unit price master 4. The unit price setting apparatus according to claim 1, wherein the unit price is set in the slip. コンピュータが、
商品の単価が適用される適用期間ごとに当該商品の単価が対応付けられた単価マスタの適用期間の範囲内に新たに挿入する適用期間及び単価の指定を受け付け、
前記単価マスタに定義された適用期間のうち前記指定を受け付けた適用期間が挿入される適用期間に対し、前記指定を受け付けた適用期間の開始日及び終了日を境界に当該挿入される適用期間を分断する更新を実行するとともに、前記指定を受け付けた適用期間に前記指定を受け付けた単価を対応付ける更新を実行し、
単価の適用を受ける基準日が前記指定を受け付けた適用期間に該当する商品を取引の対象とする伝票を対象に、前記伝票に商品の単価を再設定する再設定指示を受け付け、
前記再設定指示を受け付けた場合に、前記単価マスタに定義された商品の単価のうち前記基準日が含まれる適用期間に対応付けられた商品の単価を前記伝票に設定する
処理を実行することを特徴とする単価設定方法。
Computer
Accept the designation of the application period and unit price to be newly inserted within the range of the application period of the unit price master associated with the unit price of the product for each application period to which the unit price of the product is applied,
Of the application period defined in the unit price master, the application period that is inserted with the start date and the end date of the application period that receives the designation as a boundary with respect to the application period in which the application period that has accepted the designation is inserted. While performing an update to divide, execute an update that associates the unit price that received the designation with the application period that accepted the designation,
Accepting a reset instruction for resetting the unit price of the product in the slip for a slip whose target is a product corresponding to the application period in which the reference date receiving the unit price is applied,
Executing the process of setting the unit price of the product associated with the application period including the reference date in the unit price of the product defined in the unit price master when the reset instruction is received, to the slip A characteristic unit price setting method.
コンピュータに、
商品の単価が適用される適用期間ごとに当該商品の単価が対応付けられた単価マスタの適用期間の範囲内に新たに挿入する適用期間及び単価の指定を受け付け、
前記単価マスタに定義された適用期間のうち前記指定を受け付けた適用期間が挿入される適用期間に対し、前記指定を受け付けた適用期間の開始日及び終了日を境界に当該挿入される適用期間を分断する更新を実行するとともに、前記指定を受け付けた適用期間に前記指定を受け付けた単価を対応付ける更新を実行し、
単価の適用を受ける基準日が前記指定を受け付けた適用期間に該当する商品を取引の対象とする伝票を対象に、前記伝票に商品の単価を再設定する再設定指示を受け付け、
前記再設定指示を受け付けた場合に、前記単価マスタに定義された商品の単価のうち前記基準日が含まれる適用期間に対応付けられた商品の単価を前記伝票に設定する
処理を実行させることを特徴とする単価設定プログラム。
On the computer,
Accept the designation of the application period and unit price to be newly inserted within the range of the application period of the unit price master associated with the unit price of the product for each application period to which the unit price of the product is applied,
Of the application period defined in the unit price master, the application period that is inserted with the start date and the end date of the application period that receives the designation as a boundary with respect to the application period in which the application period that has accepted the designation is inserted. While performing an update to divide, execute an update that associates the unit price that received the designation with the application period that accepted the designation,
Accepting a reset instruction for resetting the unit price of the product in the slip for a slip whose target is a product corresponding to the application period in which the reference date receiving the unit price is applied,
When the reset instruction is received, the unit price of the product associated with the application period including the reference date among the unit prices of the product defined in the unit price master is set in the slip. A unique unit price setting program.
JP2012172178A 2012-08-02 2012-08-02 Unit price setting device, unit price setting method, and unit price setting program Active JP5941366B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012172178A JP5941366B2 (en) 2012-08-02 2012-08-02 Unit price setting device, unit price setting method, and unit price setting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012172178A JP5941366B2 (en) 2012-08-02 2012-08-02 Unit price setting device, unit price setting method, and unit price setting program

Publications (2)

Publication Number Publication Date
JP2014032513A true JP2014032513A (en) 2014-02-20
JP5941366B2 JP5941366B2 (en) 2016-06-29

Family

ID=50282297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012172178A Active JP5941366B2 (en) 2012-08-02 2012-08-02 Unit price setting device, unit price setting method, and unit price setting program

Country Status (1)

Country Link
JP (1) JP5941366B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016170777A (en) * 2015-03-12 2016-09-23 株式会社オービック Selling information device, amount retroaction method and amount retroaction program
JP2017168071A (en) * 2016-03-11 2017-09-21 株式会社オービック Slip input permittable date controller, slip input permittable date control method, and slip input permittable date control program
JP2019061585A (en) * 2017-09-27 2019-04-18 株式会社オービック Slip processing device, slip processing method, and slip processing program
JP2019109671A (en) * 2017-12-18 2019-07-04 株式会社オービック Order entry registration device, order entry registration method and order entry registration program
JP2021189655A (en) * 2020-05-28 2021-12-13 株式会社オービック Meter-rate charge calculation device, meter-rate charge calculation method, and meter-rate charge calculation program
JP2022177298A (en) * 2018-09-25 2022-11-30 株式会社オービック Inventory amount adjustment device, inventory amount adjustment method and inventory amount adjustment program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10124751A (en) * 1996-10-25 1998-05-15 Nec Corp System for constructing data base cost price and sales price management chart
JP2003196745A (en) * 2001-12-27 2003-07-11 Mitsubishi Electric Information Systems Corp System and method for managing sales price, computer readable recording medium with program recorded thereon and program
JP2006350405A (en) * 2005-06-13 2006-12-28 Fujitsu Business Systems Ltd Unit price management program and unit price management device
JP2008181236A (en) * 2007-01-23 2008-08-07 Sap Ag Transaction device, slip generation method, and computer program
JP2008181406A (en) * 2007-01-25 2008-08-07 Sap Ag Replenishment article ejection device, method, and computer program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10124751A (en) * 1996-10-25 1998-05-15 Nec Corp System for constructing data base cost price and sales price management chart
JP2003196745A (en) * 2001-12-27 2003-07-11 Mitsubishi Electric Information Systems Corp System and method for managing sales price, computer readable recording medium with program recorded thereon and program
JP2006350405A (en) * 2005-06-13 2006-12-28 Fujitsu Business Systems Ltd Unit price management program and unit price management device
JP2008181236A (en) * 2007-01-23 2008-08-07 Sap Ag Transaction device, slip generation method, and computer program
JP2008181406A (en) * 2007-01-25 2008-08-07 Sap Ag Replenishment article ejection device, method, and computer program

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016170777A (en) * 2015-03-12 2016-09-23 株式会社オービック Selling information device, amount retroaction method and amount retroaction program
JP2020181615A (en) * 2015-03-12 2020-11-05 株式会社オービック Selling information device, amount retroaction method and amount retroaction program
JP2021051819A (en) * 2016-03-11 2021-04-01 株式会社オービック Slip registration control device, slip registration control method, and slip registration control program
JP2017168071A (en) * 2016-03-11 2017-09-21 株式会社オービック Slip input permittable date controller, slip input permittable date control method, and slip input permittable date control program
JP7104817B2 (en) 2016-03-11 2022-07-21 株式会社オービック Voucher registration control device, voucher registration control method, and voucher registration control program
JP2021170388A (en) * 2017-09-27 2021-10-28 株式会社オービック Slip processing device, slip processing method, and slip processing program
JP2019061585A (en) * 2017-09-27 2019-04-18 株式会社オービック Slip processing device, slip processing method, and slip processing program
JP7141501B2 (en) 2017-09-27 2022-09-22 株式会社オービック Slip processing device, slip processing method, and slip processing program
JP2019109671A (en) * 2017-12-18 2019-07-04 株式会社オービック Order entry registration device, order entry registration method and order entry registration program
JP7048299B2 (en) 2017-12-18 2022-04-05 株式会社オービック Order registration device, order registration method, and order registration program
JP2022177298A (en) * 2018-09-25 2022-11-30 株式会社オービック Inventory amount adjustment device, inventory amount adjustment method and inventory amount adjustment program
JP7389875B2 (en) 2018-09-25 2023-11-30 株式会社オービック Inventory value adjustment device, inventory value adjustment method, and inventory value adjustment program
JP2021189655A (en) * 2020-05-28 2021-12-13 株式会社オービック Meter-rate charge calculation device, meter-rate charge calculation method, and meter-rate charge calculation program
JP7410797B2 (en) 2020-05-28 2024-01-10 株式会社オービック Pay-as-you-go charge calculation device, pay-as-you-go charge calculation method, and pay-as-you-go charge calculation program

Also Published As

Publication number Publication date
JP5941366B2 (en) 2016-06-29

Similar Documents

Publication Publication Date Title
JP5941366B2 (en) Unit price setting device, unit price setting method, and unit price setting program
US9361640B1 (en) Method and system for efficient order placement
JP6182683B1 (en) Promotion device, promotion method, program, and recording medium
CN110135938B (en) Order confirmation page processing method and device
JP6280272B1 (en) Determination apparatus, determination method, and determination program
JP6276443B1 (en) Information providing apparatus, information providing method, and information providing program
JP6305595B1 (en) Information providing apparatus, information providing method, and information providing program
JP2020086665A (en) Information processing apparatus, information processing method and information processing program
JP7414454B2 (en) Information processing device, information processing method, and information processing program
JP2019117591A (en) Information processor and information processing method and information processing program
JP5975958B2 (en) Product management apparatus, product management method, and product management program
KR102351629B1 (en) System and method for providing advertisement information based on correlation between customers reordering products
KR102313015B1 (en) Method and apparatus for omni-channel management
KR102351628B1 (en) System and method for providing advertisement information based on reordering time estimation
JP5457422B2 (en) Information processing apparatus and program
CN110782300A (en) Self-maintenance network shop device based on geographical position
CN110782299A (en) Self-maintenance network shop device based on geographical position
JP5969158B1 (en) Server apparatus, control method, program, and recording medium
JP2020086711A (en) Providing device, providing method and providing program
JPH10320457A (en) Method and system for managing operation and sales and storage medium for storing operational and sales management program
JP2019125266A (en) Information providing device, information providing method and information providing program
JP6467086B1 (en) Providing device, providing method, and providing program
CN111383134B (en) Method, device and system for processing information of food object
JP6377200B2 (en) Information processing apparatus and program
JP2005108055A (en) Commodity sell/buy management system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150612

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160315

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160426

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160520

R150 Certificate of patent or registration of utility model

Ref document number: 5941366

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350