JP6963664B2 - Sales information device, purchase quantity determination method, and purchase quantity determination program - Google Patents

Sales information device, purchase quantity determination method, and purchase quantity determination program Download PDF

Info

Publication number
JP6963664B2
JP6963664B2 JP2020155205A JP2020155205A JP6963664B2 JP 6963664 B2 JP6963664 B2 JP 6963664B2 JP 2020155205 A JP2020155205 A JP 2020155205A JP 2020155205 A JP2020155205 A JP 2020155205A JP 6963664 B2 JP6963664 B2 JP 6963664B2
Authority
JP
Japan
Prior art keywords
supplier
purchase
product
sales
code
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.)
Active
Application number
JP2020155205A
Other languages
Japanese (ja)
Other versions
JP2020205111A (en
Inventor
真吾 山本
康洋 小阪
邦明 芹澤
Original Assignee
株式会社オービック
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 株式会社オービック filed Critical 株式会社オービック
Publication of JP2020205111A publication Critical patent/JP2020205111A/en
Application granted granted Critical
Publication of JP6963664B2 publication Critical patent/JP6963664B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、販売情報装置、仕入数量判定方法、及び仕入数量判定プログラムに関する。 The present invention relates to a sales information device, a purchase quantity determination method, and a purchase quantity determination program.

特許文献1には、一定の出荷枠を決めて出荷枠の範囲内で随時出荷を行う販売契約を対象に、出荷時における在庫数量、売上高や棚卸資産などの財務データを整合的に管理することが可能な販売管理システムが開示されている。 Patent Document 1 consistently manages financial data such as inventory quantity, sales, and inventories at the time of shipment for sales contracts in which a certain shipping limit is determined and shipments are made at any time within the shipping limit. A sales management system that can be used is disclosed.

特開2004−149262号公報Japanese Unexamined Patent Publication No. 2004-149262

しかしながら、従来技術では、定められた石油の仕入可能数量を超えることを防ぐことは困難であった。 However, with the prior art, it has been difficult to prevent the amount of petroleum that can be purchased from exceeding the specified amount.

本発明は、上記問題点に鑑みてなされたものであって、定められた石油の仕入可能数量を超えることを防ぐことができる販売情報装置、仕入数量判定方法、及び仕入数量判定プログラムを提供することを目的とする。 The present invention has been made in view of the above problems, and is a sales information device, a purchase quantity determination method, and a purchase quantity determination program that can prevent the amount of petroleum that can be purchased from being exceeded. The purpose is to provide.

上述した課題を解決し、目的を達成するために、本発明に係る販売情報装置は、制御部を備えた販売情報装置であって、前記制御部は、直送又は倉入の取引区分において仕入元が仕入先から所定期間に属する日付に仕入れる予定の商品の当該仕入れる予定の数量、当該商品に対応する品種を当該仕入元が当該仕入先から当該所定期間内に仕入れた実績の数量、及び当該仕入元が当該仕入先から当該品種を当該所定期間内に仕入れることが許される上限の数量に基づいて、当該予定の数量を仕入れることに因り当該上限の数量を上回る又は下回るか判定する判定手段を備えることを特徴とする。 In order to solve the above-mentioned problems and achieve the object, the sales information device according to the present invention is a sales information device provided with a control unit, and the control unit purchases in the transaction category of direct delivery or Kurairi. The quantity of products that the original company plans to purchase from the supplier on the date belonging to the specified period, and the actual quantity of the product that the supplier purchased from the supplier within the specified period. , And whether the supplier exceeds or falls below the upper limit due to the purchase of the planned quantity based on the upper limit quantity that the supplier is allowed to purchase the product from the supplier within the predetermined period. It is characterized in that it includes a determination means for determining.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記上限の数量は、前記仕入元、前記仕入先、前記品種並びに前記所定期間の開始日付及び終了日付と紐付けてマスタに格納されているものであることを特徴とする。 Further, in the sales information device according to the present invention, in the sales information device, the upper limit quantity is associated with the supplier, the supplier, the product type, and the start date and end date of the predetermined period. It is characterized in that it is stored in.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記判定手段は、前記上回ると判定したとき又は前記下回ると判定しなかったときはエラー及び/又は前記実績の数量と前記上限の数量との差分を通知し、前記上回ると判定しなかったとき又は前記下回ると判定したときは前記予定の数量及び前記実績の数量の和と前記上限の数量との差分を通知することを特徴とする。 Further, in the sales information device according to the present invention, in the sales information device, when the determination means determines that the value exceeds or does not decrease, an error and / or the actual quantity and the upper limit of the actual quantity are obtained. It is characterized in that the difference from the quantity is notified, and when it is determined that the quantity exceeds the quantity or the quantity falls below the quantity, the difference between the sum of the planned quantity and the actual quantity and the upper limit quantity is notified. do.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記仕入元は、特約店であり、前記仕入先は、元売であることを特徴とする。 Further, the sales information device according to the present invention is characterized in that, in the sales information device, the supplier is a distributor and the supplier is a principal seller.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記品種は、石油又はガスであり、前記商品は、石油又はガスに属するものであることを特徴とする。 Further, the sales information device according to the present invention is characterized in that, in the sales information device, the product type is petroleum or gas, and the product belongs to petroleum or gas.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記品種は、軽油、重油又は灯油であることを特徴とする。 Further, the sales information device according to the present invention is characterized in that, in the sales information device, the product type is light oil, heavy oil or kerosene.

本発明に係る仕入数量判定方法は、制御部を備えた販売情報装置で実行される仕入数量判定方法であって、前記制御部で実行される、直送又は倉入の取引区分において仕入元が仕入先から所定期間に属する日付に仕入れる予定の商品の当該仕入れる予定の数量、当該商品に対応する品種を当該仕入元が当該仕入先から当該所定期間内に仕入れた実績の数量、及び当該仕入元が当該仕入先から当該品種を当該所定期間内に仕入れることが許される上限の数量に基づいて、当該予定の数量を仕入れることに因り当該上限の数量を上回る又は下回るか判定する判定ステップを含むことを特徴とする。 The purchase quantity determination method according to the present invention is a purchase quantity determination method executed by a sales information device provided with a control unit, and is executed in the control unit for direct delivery or purchase in a warehouse transaction category. The quantity of products that the original company plans to purchase from the supplier on the date belonging to the specified period, and the actual quantity of the product that the supplier purchased from the supplier within the specified period. , And whether the supplier exceeds or falls below the upper limit due to the purchase of the planned quantity based on the upper limit quantity that the supplier is allowed to purchase the product from the supplier within the predetermined period. It is characterized by including a determination step for determination.

本発明に係る仕入数量判定プログラムは、制御部を備えた販売情報装置に実行させるための仕入数量判定プログラムであって、前記制御部に実行させるための、直送又は倉入の取引区分において仕入元が仕入先から所定期間に属する日付に仕入れる予定の商品の当該仕入れる予定の数量、当該商品に対応する品種を当該仕入元が当該仕入先から当該所定期間内に仕入れた実績の数量、及び当該仕入元が当該仕入先から当該品種を当該所定期間内に仕入れることが許される上限の数量に基づいて、当該予定の数量を仕入れることに因り当該上限の数量を上回る又は下回るか判定する判定ステップを含むことを特徴とする。 The purchase quantity determination program according to the present invention is a purchase quantity determination program for being executed by a sales information device provided with a control unit, and is used in a direct delivery or warehouse transaction classification to be executed by the control unit. The quantity of products that the supplier plans to purchase from the supplier on the date that belongs to the specified period, and the actual results that the supplier purchased the product type corresponding to the product from the supplier within the specified period. Based on the quantity of the product and the maximum quantity that the supplier is allowed to purchase the product from the supplier within the predetermined period, the quantity exceeds the maximum quantity due to the purchase of the planned quantity. It is characterized by including a determination step of determining whether or not the value is lower.

本発明によれば、定められた石油の仕入可能数量を超えることを防ぐことができるという効果を奏する。 According to the present invention, it is possible to prevent the amount of petroleum from exceeding a predetermined amount that can be purchased.

図1は、枠残チェックの概要を示す図である。FIG. 1 is a diagram showing an outline of a frame remaining check. 図2は、販売情報装置100の構成の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of the configuration of the sales information device 100. 図3は、枠残管理マスタ106aの一例を示す図である。FIG. 3 is a diagram showing an example of the frame remaining management master 106a. 図4は、計上済データテーブル106bの一例を示す図である。FIG. 4 is a diagram showing an example of the accounted data table 106b. 図5は、本実施形態における販売情報装置100のメイン処理の一例を示すフローチャートである。FIG. 5 is a flowchart showing an example of the main processing of the sales information device 100 in the present embodiment. 図6は、売上入力画面(ヘッダ部)の一例を示す図である。FIG. 6 is a diagram showing an example of a sales input screen (header portion). 図7は、売上入力画面(明細部)の一例を示す図である。FIG. 7 is a diagram showing an example of a sales input screen (detailed portion). 図8は、仕入入力画面(ヘッダ部)の一例を示す図である。FIG. 8 is a diagram showing an example of a purchase input screen (header portion). 図9は、仕入入力画面(明細部)の一例を示す図である。FIG. 9 is a diagram showing an example of a purchase input screen (detailed portion).

本発明の実施形態を図面に基づいて詳細に説明する。なお、本発明は本実施形態により限定されるものではない。 Embodiments of the present invention will be described in detail with reference to the drawings. The present invention is not limited to the present embodiment.

[1.概要]
例えば石油に関しては、特約店と石油元売の間で、特約店が石油元売から仕入れることが可能な数量(仕入可能数量)が期間毎及び油種毎(例えば軽油、重油、灯油など)に決められている。この数量は「枠」と呼ばれている。本実施形態では、既に仕入済の数量を踏まえて、新規で登録するオーダ(仕入数量)が原因で枠をオーバーしないかチェックする機能(枠残チェック)を設ける。なお、枠が決まるのは、油種(品種)単位であって商品単位ではない。軽油を一例として挙げると、商品としては「未課税軽油」、「課税軽油」及び「寒冷地軽油」などに分かれるが、枠が決まるのは「軽油」単位である。
[1. Overview]
For example, with regard to petroleum, between the distributor and the oil distributor, the quantity that the distributor can purchase from the oil distributor (purchasable quantity) is for each period and for each oil type (for example, light oil, heavy oil, kerosene, etc.). It is decided to. This quantity is called the "frame". In the present embodiment, a function (frame remaining check) is provided to check whether the frame is exceeded due to the newly registered order (purchased quantity) based on the already purchased quantity. The frame is determined for each oil type (variety), not for each product. Taking light oil as an example, products are divided into "tax-exempt light oil", "taxable light oil" and "cold region light oil", but the frame is determined by the "light oil" unit.

灯油を一例として挙げると、本実施形態では、例えば以下の(1)および(2)の枠残チェックが実行される(図1参照)。
(1)自社(例えば特約店など)の部署A(販売元)が得意先A(販売先)に、自社の購買部(仕入元)が仕入先(例えば元売など)から仕入れた灯油を直送で売り上げる場合に、部署Aが売り上げるための灯油を、当該仕入先から何リットル仕入れることができるかチェックする。
(2)自社の購買部が仕入先から灯油の倉入仕入(自社在庫となる仕入)を行う場合に、購買部が灯油を当該仕入先から何リットル仕入れることができるかチェックする。
Taking kerosene as an example, in the present embodiment, for example, the following frame remaining checks (1) and (2) are executed (see FIG. 1).
(1) Kerosene purchased by the department A (seller) of the company (for example, a distributor) from the customer A (sales destination) and by the purchasing department (supplier) of the company from the supplier (for example, the main seller). When the product is sold directly, the department A checks how many liters of kerosene for sale can be purchased from the supplier.
(2) When the purchasing department of the company purchases kerosene from a supplier (purchasing in-house inventory), the purchasing department checks how many liters of kerosene can be purchased from the supplier. ..

なお、本実施形態は、石油に限らず、例えばLLGなどのガスなどに対しても適用可能である。 In addition, this embodiment is applicable not only to petroleum but also to gas such as LLG.

[2.構成]
本実施形態に係る販売情報装置100の構成の一例について、図2から図4を参照して説明する。図2は、販売情報装置100の構成の一例を示すブロック図である。
[2. composition]
An example of the configuration of the sales information device 100 according to the present embodiment will be described with reference to FIGS. 2 to 4. FIG. 2 is a block diagram showing an example of the configuration of the sales information device 100.

販売情報装置100は、販売情報システム(販売管理システム)が導入されている、市販のデスクトップ型パーソナルコンピュータである。なお、販売情報装置100は、デスクトップ型パーソナルコンピュータのような据置型情報処理装置に限らず、市販されているノート型パーソナルコンピュータ、PDA(Personal Digital Assistants)、スマートフォン、タブレット型パーソナルコンピュータなどの携帯型情報処理装置であってもよい。 The sales information device 100 is a commercially available desktop personal computer in which a sales information system (sales management system) is introduced. The sales information device 100 is not limited to a stationary information processing device such as a desktop personal computer, but is a portable type such as a commercially available notebook personal computer, a PDA (Personal Digital Assistants), a smartphone, or a tablet personal computer. It may be an information processing device.

販売情報装置100は、制御部102と通信インターフェース部104と記憶部106と入出力インターフェース部108と、を備えている。販売情報装置100が備えている各部は、任意の通信路を介して通信可能に接続されている。 The sales information device 100 includes a control unit 102, a communication interface unit 104, a storage unit 106, and an input / output interface unit 108. Each part of the sales information device 100 is communicably connected via an arbitrary communication path.

通信インターフェース部104は、ルータ等の通信装置及び専用線等の有線又は無線の通信回線を介して、販売情報装置100をネットワーク300に通信可能に接続する。通信インターフェース部104は、他の装置と通信回線を介してデータを通信する機能を有する。ここで、ネットワーク300は、販売情報装置100とサーバ200とを相互に通信可能に接続する機能を有し、例えばインターネットやイントラネット、LAN(Local Area Network)等である。 The communication interface unit 104 connects the sales information device 100 to the network 300 so as to be communicable via a communication device such as a router and a wired or wireless communication line such as a dedicated line. The communication interface unit 104 has a function of communicating data with another device via a communication line. Here, the network 300 has a function of connecting the sales information device 100 and the server 200 so as to be able to communicate with each other, and is, for example, the Internet, an intranet, a LAN (Local Area Network), or the like.

記憶部106には、各種のデータベース、テーブル、及びファイルなどが格納される。記憶部106には、OS(Operating System)と協働してCPU(Central Processing Unit)に命令を与えて各種処理を行うためのコンピュータプログラムが記録される。記憶部106として、例えば、RAM(Random Access Memory)・ROM(Read Only Memory)等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、及び光ディスク等を用いることができる。記憶部106は、枠残管理(枠管理)マスタ106aと、計上済データテーブル106bとを備えている。なお、記憶部106は、後述する枠残チェックが発生したときの処理(例えば、チェックなし、警告、エラーなど)を設定するための基本情報マスタをさらに備えてもよい。 Various databases, tables, files, and the like are stored in the storage unit 106. In the storage unit 106, a computer program for giving an instruction to a CPU (Central Processing Unit) in cooperation with an OS (Operating System) to perform various processes is recorded. As the storage unit 106, for example, a memory device such as a RAM (Random Access Memory) or a ROM (Read Only Memory), a fixed disk device such as a hard disk, a flexible disk, an optical disk, or the like can be used. The storage unit 106 includes a frame remaining management (frame management) master 106a and a recorded data table 106b. The storage unit 106 may further include a basic information master for setting processing (for example, no check, warning, error, etc.) when a frame remaining check, which will be described later, occurs.

枠残管理マスタ106aは、レコードを特定するための番号(連番)、仕入元又は売上元の事業所を特定するための事業所コード、仕入先を特定するための仕入先コード、品種を特定するための品種コード、適用開始日(日付)、適用終了日(日付)、及び枠数量などを含むテーブルである(図3参照)。 The frame balance management master 106a has a number (serial number) for specifying a record, a business establishment code for identifying a business establishment of a supplier or a sales source, a supplier code for identifying a supplier, It is a table including a product type code for specifying a product type, an application start date (date), an application end date (date), a frame quantity, and the like (see FIG. 3).

計上済データテーブル106bは、計上済みの売上データと仕入データを紐付けて管理するためのテーブルであり、レコードを特定するための番号(連番)、売上データ、及び仕入データなどを含むものである(図4参照)。売上データは、直送売上や倉出売上といった売上区分、売上元の事業所を特定するための売上事業所コード、売上日、商品を特定するための商品コード、品種を特定するための品種コード、及び売上数量などを含む。仕入データは、直送仕入や倉入仕入といった仕入区分、仕入元の事業所を特定するための(仕入事業所コード、仕入先を特定するための仕入先コード、仕入日、商品を特定するための商品コード、品種を特定するための品種コード、及び仕入数量などを含む。 The recorded data table 106b is a table for associating and managing the recorded sales data and the purchase data, and includes a number (serial number) for specifying a record, sales data, purchase data, and the like. It is a waste (see Fig. 4). Sales data includes sales categories such as direct sales and Kurade sales, sales office code for identifying the business establishment of the sales source, sales date, product code for specifying the product, and product code for specifying the product type. And sales volume etc. The purchase data includes the purchase category such as direct purchase and warehouse purchase, the place of business of the supplier (supplier code, supplier code for specifying the supplier, and the supplier). Includes the date of entry, the product code for identifying the product, the product code for identifying the product type, and the purchase quantity.

入出力インターフェース部108には、入力装置112及び出力装置114が接続されている。出力装置114には、モニタ(家庭用テレビを含む)の他、スピーカやプリンタを用いることができる。入力装置112には、キーボード、マウス、及びマイクの他、マウスと協働してポインティングデバイス機能を実現するモニタを用いることができる。なお、以下では、出力装置114をモニタ114とし、入力装置112をキーボード112またはマウス112として記載する場合がある。 An input device 112 and an output device 114 are connected to the input / output interface unit 108. As the output device 114, a speaker or a printer can be used in addition to a monitor (including a home television). As the input device 112, in addition to a keyboard, a mouse, and a microphone, a monitor that cooperates with the mouse to realize a pointing device function can be used. In the following, the output device 114 may be referred to as a monitor 114, and the input device 112 may be referred to as a keyboard 112 or a mouse 112.

制御部102は、販売情報装置100を統括的に制御するCPU等である。制御部102は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。制御部102は、機能概念的に、本発明の判定手段を含むデータ管理部102aを備えている。 The control unit 102 is a CPU or the like that collectively controls the sales information device 100. The control unit 102 has an internal memory for storing a control program such as an OS, a program that defines various processing procedures, required data, and the like, and performs various information processing based on these stored programs. Run. The control unit 102 is functionally provided with a data management unit 102a including the determination means of the present invention.

データ管理部102aは、売上入力画面や仕入入力画面等から情報を取得するデータ取得手段として機能する。例えば、データ管理部102aは、直送売上の計上を実行するとき、売上入力画面上の売上事業所コード、仕入先コード、品種コード、売上日、及び商品の計上数量を取得する。また、例えば、データ管理部102aは、倉入仕入の計上を実行するとき、仕入入力画面上の仕入事業所コード、仕入先コード、品種コード、仕入日、及び商品の計上数量を取得する。 The data management unit 102a functions as a data acquisition means for acquiring information from a sales input screen, a purchase input screen, or the like. For example, when the data management unit 102a executes the recording of direct sales, the data management unit 102a acquires the sales office code, the supplier code, the product type code, the sales date, and the recorded quantity of the product on the sales input screen. Further, for example, when the data management unit 102a executes the recording of the purchase in the warehouse, the supplier code, the supplier code, the product type code, the purchase date, and the recorded quantity of the product on the purchase input screen are recorded. To get.

データ管理部102aは、売上入力画面や仕入入力画面などから取得した情報を用いて、枠残管理マスタ106aから、当該情報と一致する枠残設定情報(具体的には、適用開始日、適用終了日及び枠数量など)を取得するマスタ設定取得手段として機能する。なお、画面から取得した情報を条件として、当該条件に当てはまる枠残設定情報が枠残管理マスタ106aに登録されていない場合、後述する枠残チェックを含むこれ以降の処理は行わない。 The data management unit 102a uses the information acquired from the sales input screen, the purchase input screen, etc., and from the frame remaining management master 106a, the frame remaining setting information (specifically, the application start date, application) that matches the information. It functions as a master setting acquisition means for acquiring (end date, frame quantity, etc.). If the frame remaining setting information that meets the condition is not registered in the frame remaining management master 106a on the condition of the information acquired from the screen, the subsequent processing including the frame remaining check described later is not performed.

データ管理部102aは、売上入力画面や仕入入力画面などから取得した情報や枠残管理マスタ106aから取得した枠残設定情報を条件として、計上済データテーブル106bから、当該条件に一致する1つ又は複数の仕入数量を取得し、取得した仕入数量を集計する計上済データ取得手段として機能する。なお、倉入仕入データに対しては、仕入事業所を参照するが、直送仕入データに対しては、仕入事業所ではなく、当該データと紐付く売上データの売上事業所を参照する。 The data management unit 102a is one that matches the condition from the recorded data table 106b, subject to the information acquired from the sales input screen, the purchase input screen, etc., and the frame balance setting information acquired from the frame balance management master 106a. Alternatively, it functions as a recorded data acquisition means for acquiring a plurality of purchase quantities and aggregating the acquired purchase quantities. For the warehouse purchase data, refer to the purchase office, but for the direct purchase data, refer to the sales office of the sales data associated with the data, not the purchase office. do.

データ管理部102aは、集計された実績の仕入数量(合計)と画面から取得した計上数量を加算して、チェック対象数量を取得するチェック対象数量取得手段として機能する。データ管理部102aは、取得したチェック対象数量が、取得した枠残設定情報に含まれる枠数量を超えているかチェック(枠残チェック)する枠残チェック手段として機能する。なお、データ管理部102aは、超えていれば、エラーを通知したり、実績の仕入数量と枠数量との差分を残数量として通知したりしてもよい。また、データ管理部102aは、超えていなければ、チェック対象数量と枠数量との差分を残数量として通知してもよい。 The data management unit 102a functions as a check target quantity acquisition means for acquiring the check target quantity by adding the total purchase quantity (total) of the aggregated actual results and the recorded quantity acquired from the screen. The data management unit 102a functions as a frame remaining check means for checking whether the acquired check target quantity exceeds the frame quantity included in the acquired frame remaining setting information (frame remaining check). If the data management unit 102a exceeds the limit, the data management unit 102a may notify an error or notify the difference between the actual purchase quantity and the frame quantity as the remaining quantity. Further, the data management unit 102a may notify the difference between the check target quantity and the frame quantity as the remaining quantity if it does not exceed the limit.

データ管理部102aが実施する処理については、以下の[3.処理の具体例]にて詳細に説明する。 Regarding the processing performed by the data management unit 102a, the following [3. Specific example of processing] will be described in detail.

[3.処理の具体例]
本実施形態で実行される、売上入力時および仕入入力時の枠残チェック処理の具体例について、図5から図9等を参照して説明する。
[3. Specific example of processing]
A specific example of the frame remaining check process at the time of sales input and purchase input, which is executed in the present embodiment, will be described with reference to FIGS. 5 to 9 and the like.

[3−1.売上入力での直送売上時の処理の具体例]
売上入力での直送売上時の処理の具体例について、図5から図7等を参照して説明する。図5は、本実施形態における販売情報装置100のメイン処理の一例を示すフローチャートである。
[3-1. Specific example of processing at the time of direct sales by sales input]
A specific example of processing at the time of direct sales in sales input will be described with reference to FIGS. 5 to 7 and the like. FIG. 5 is a flowchart showing an example of the main processing of the sales information device 100 in the present embodiment.

[ステップS1:データ取得]
明細画面(売上入力画面)上で数量などが確定したとき又はオペレータが登録ボタンとして機能するキーボード112のファンクションキーF11を押下したとき、データ管理部102aは、売上入力画面のヘッダ部(図6参照)から、売上事業所コード及び売上日(日付)の情報を取得すると共に、売上入力画面の明細部(図7参照)から、品種コード、数量及び仕入先コードの情報を取得する。なお、動作開始のタイミングは、例えば、数量確定時や登録ボタン押下時の他、伝票確定時などでもよい。荷姿管理を行う商品の場合でも、金額算出時には、売上入力画面の明細部に含まれる「数量」の項目を使用する(「荷数」の項目は使用しない)。また、仕入先コード決定前は枠残チェック不可のため、枠残チェックは実施されない。また、売上入力画面のヘッダ部において売上区分として「倉出売上」が設定されているときは、仕入先コードを指定できないため、必然的に枠残チェックは実施されない。また、新規モードでの登録のときは、登録ボタンとして機能するファンクションキーF11が押下されたときに最初のチェックがかかることになる。
[Step S1: Data acquisition]
When the quantity or the like is confirmed on the detail screen (sales input screen) or when the operator presses the function key F11 of the keyboard 112 which functions as a registration button, the data management unit 102a sets the header unit of the sales input screen (see FIG. 6). ), The sales office code and the sales date (date) information are acquired, and the product type code, quantity, and supplier code information are acquired from the detail part (see FIG. 7) of the sales input screen. The timing of starting the operation may be, for example, when the quantity is confirmed, when the registration button is pressed, or when the slip is confirmed. Even in the case of products for which packing style is managed, the item of "quantity" included in the detail part of the sales input screen is used when calculating the amount (the item of "quantity" is not used). In addition, since it is not possible to check the remaining frame before the supplier code is determined, the remaining frame check is not performed. In addition, when "Kuraide sales" is set as the sales category in the header part of the sales input screen, the supplier code cannot be specified, so that the frame remaining check is not inevitably performed. Further, in the case of registration in the new mode, the first check is applied when the function key F11 functioning as the registration button is pressed.

[ステップS2:マスタ設定取得]
データ管理部102aは、ステップS1で取得した売上事業所コード、売上日、品種コード及び仕入先コードに基づいて、枠残管理マスタ106aを参照して、下記条件に該当するマスタ設定(枠数量、適用開始日および適用終了日)を取得する。なお、下記条件に該当するマスタ設定が取得できない場合、データ管理部102aは、これ以降の処理は行わない(枠残チェックは行わない)。
(条件)
・枠残管理マスタ.事業所コード=画面.売上事業所コード
・枠残管理マスタ.仕入先コード=画面.仕入先コード
・枠残管理マスタ.品種コード=画面.品種コード
・枠残管理マスタ.適用開始日≦画面.売上日≦枠残管理マスタ.適用終了日
[Step S2: Acquisition of master setting]
The data management unit 102a refers to the frame remaining management master 106a based on the sales office code, sales date, product type code, and supplier code acquired in step S1, and sets the master setting (frame quantity) corresponding to the following conditions. , Application start date and application end date). If the master setting that meets the following conditions cannot be acquired, the data management unit 102a does not perform any further processing (the frame remaining check is not performed).
(conditions)
-Frame remaining management master. Office code = screen. Sales office code / remaining frame management master. Supplier code = screen. Supplier code / remaining frame management master. Variety code = screen. Product code / frame balance management master. Application start date ≤ screen. Sales date ≤ frame balance management master. Application end date

[ステップS3:計上済データ取得]
データ管理部102aは、ステップS1で取得した売上事業所コード、品種コード及び仕入先コード並びにステップS2で取得した適用開始日及び適用終了日に基づいて、計上済データテーブル106bを参照して、下記条件に該当する仕入数量の合計(計上済仕入数)を取得する。なお、倉入仕入データと直送仕入データで、事業所コードの条件を当てはめる対象が異なる。また、仕入数量について、マイナス値で登録されているものは、マイナス実績として集計する。また、「仕入値引」の区分等、数量実績の発生しない区分で登録されている明細の数量は省く。また、伝票修正時は修正中の伝票分のデータは除いて実績データを集計し、このステップ以降の処理に進む。
(条件:直送仕入データの場合)
・適用開始日≦仕入データ.仕入日≦適用終了日
・仕入データ.品種コード=画面.品種コード
・仕入データ.仕入先コード=画面.仕入先コード
・前記3つの条件を満たす仕入データに紐づき且つ売上区分が直送売上となっている売上データ.売上事業所コード=画面.売上事業所コード
(条件:倉入仕入データの場合)
・適用開始日≦仕入データ.仕入日≦適用終了日
・仕入データ.品種コード=画面.品種コード
・仕入データ.仕入先コード=画面.仕入先コード
・仕入データ.仕入事業所コード=画面.売上事業所コード
[Step S3: Acquisition of recorded data]
The data management unit 102a refers to the accounted data table 106b based on the sales office code, the product type code and the supplier code acquired in step S1 and the application start date and application end date acquired in step S2. Acquire the total purchase quantity (recorded purchase quantity) that meets the following conditions. In addition, the target to which the conditions of the business establishment code are applied differs between the warehouse purchase data and the direct purchase data. In addition, regarding the purchase quantity, those registered as negative values are totaled as negative results. In addition, the quantity of items registered in the category where the actual quantity does not occur, such as the category of "purchase discount", is omitted. In addition, when the slip is corrected, the actual data is totaled excluding the data for the slip being corrected, and the process proceeds from this step onward.
(Condition: In the case of direct purchase data)
・ Application start date ≤ purchase data. Purchase date ≤ application end date / purchase data. Variety code = screen. Variety code / purchase data. Supplier code = screen. Supplier code-Sales data that is linked to purchase data that meets the above three conditions and whose sales category is direct sales. Sales office code = screen. Sales office code (Condition: In the case of Kurairi purchase data)
・ Application start date ≤ purchase data. Purchase date ≤ application end date / purchase data. Variety code = screen. Variety code / purchase data. Supplier code = screen. Supplier code / supplier data. Purchasing office code = screen. Sales office code

[ステップS4:数量加算]
データ管理部102aは、ステップS3で取得した計上済仕入数と、ステップS1で取得した数量を加算して、ステップS5で用いるチェック対象数量を得る。なお、同一伝票内に同じ品種・仕入先の明細が既に登録されている場合は、その明細分の数量を含めてもよい。
[Step S4: Quantity addition]
The data management unit 102a adds the recorded purchase quantity acquired in step S3 and the quantity acquired in step S1 to obtain the check target quantity used in step S5. If the details of the same product type / supplier are already registered in the same slip, the quantity of the details may be included.

[ステップS5:枠残チェック]
データ管理部102aは、「ステップS2で取得した枠数量≦ステップS4で取得したチェック対象数量」の場合をチェックNG(エラー)とし、そうでない場合をチェックOKとする。
[Step S5: Checking the remaining frame]
The data management unit 102a sets a check NG (error) in the case of "frame quantity acquired in step S2 ≤ check target quantity acquired in step S4", and checks OK in the case where it is not.

以上、売上入力での直送売上時の処理の具体例について説明したが、同一伝票内に同じ枠条件となる明細が複数含まれている場合、その明細も含めて枠残チェックを行ってもよい。 The specific example of the processing at the time of direct sales in the sales input has been described above, but if the same slip contains a plurality of items having the same frame condition, the frame remaining check may be performed including the items. ..

ここで、実例を挙げて説明すると、例えば、ステップS1で、売上入力画面のヘッダ部から売上事業所コード「100」及び売上日「20XX/9/15」が取得され、売上入力画面の明細部から2つの明細データ(商品コード「21000」、品種コード「20」、数量「300」及び仕入先コード「10001」を含む明細データaと、商品コード「31101」、品種コード「30」、数量「400」及び仕入先コード「10001」を含む明細データb)が取得された場合、明細データaに対しては、以下に示す(11)〜(14)の処理を経てチェックOKと判定され、明細データbに対しては、以下に示す(21)〜(24)の処理を経てチェックNGと判定される。 Here, to explain with an example, for example, in step S1, the sales office code “100” and the sales date “20XX / 9/15” are acquired from the header part of the sales input screen, and the detail part of the sales input screen. Detailed data a including two detailed data (product code "21000", product code "20", quantity "300" and supplier code "10001", product code "31101", product code "30", quantity. When the detail data b) including "400" and the supplier code "10001" is acquired, it is determined that the check is OK for the detail data a through the processes (11) to (14) shown below. The detailed data b is determined to be check NG through the processes (21) to (24) shown below.

(11)ステップS2では、図3に示す枠残管理マスタ106a中の上から2行目のレコードが特定され、当該特定されたレコードに含まれる枠数量「1,500」、適用開始日「20XX/9/1」及び適用終了日「20XX/9/30」が取得される。
(12)ステップS3では、図4に示す計上済データテーブル106b中の上から2行目と3行目のレコードが特定され、当該特定された2つのレコードに含まれる仕入数量「300」及び「400」の合計「700」が取得される。
(13)ステップS4では、ステップS1で取得された数量「300」と合計「700」が加算されてチェック対象数量「1,000」が得られる。
(14)ステップS5では、「枠数量「1,500」≧チェック対象数量「1,000」」が成立するのでチェックOKと判定される。
(11) In step S2, the record in the second line from the top in the frame remaining management master 106a shown in FIG. 3 is specified, the frame quantity "1,500" included in the specified record, and the application start date "20XX". "/ 9/1" and the application end date "20XX / 9/30" are acquired.
(12) In step S3, the records in the second and third rows from the top in the recorded data table 106b shown in FIG. 4 are specified, and the purchase quantity “300” and the purchase quantity “300” included in the specified two records are specified. A total of "400" of "400" is acquired.
(13) In step S4, the quantity "300" acquired in step S1 and the total "700" are added to obtain the check target quantity "1,000".
(14) In step S5, since "frame quantity" 1,500 "≥ check target quantity" 1,000 "" is established, it is determined that the check is OK.

(21)ステップS2では、図3に示す枠残管理マスタ106a中の上から7行目のレコードが特定され、当該特定されたレコードに含まれる枠数量「500」、適用開始日「20XX/9/11」及び適用終了日「20XX/9/20」が取得される。
(22)ステップS3では、図4に示す計上済データテーブル106b中の上から5行目のレコードが特定され、当該特定されたレコードに含まれる仕入数量「150」が合計として取得される。
(23)ステップS4では、ステップS1で取得された数量「400」と合計「150」が加算されてチェック対象数量「650」が得られる。
(24)ステップS5では、「枠数量「500」≦チェック対象数量「650」」が成立するのでチェックNGと判定される。
(21) In step S2, the record in the seventh row from the top in the frame remaining management master 106a shown in FIG. 3 is specified, the frame quantity “500” included in the specified record, and the application start date “20XX / 9”. / 11 ”and the application end date“ 20XX / 9/20 ”are acquired.
(22) In step S3, the record in the fifth row from the top in the recorded data table 106b shown in FIG. 4 is specified, and the purchase quantity “150” included in the specified record is acquired as a total.
(23) In step S4, the quantity "400" acquired in step S1 and the total "150" are added to obtain the check target quantity "650".
(24) In step S5, since "frame quantity" 500 "≤ check target quantity" 650 "" is established, it is determined that the check is NG.

また、例えば、ステップS1で、売上入力画面のヘッダ部から売上事業所コード「200」及び売上日「20XX/9/20」が取得され、売上入力画面の明細部から2つの明細データ(商品コード「11000」、品種コード「10」、数量「400」及び仕入先コード「10001」を含む明細データcと、商品コード「31101」、品種コード「30」、数量「400」及び仕入先コード「10001」を含む明細データd)が取得された場合、明細データcに対しては、以下に示す(31)〜(34)の処理を経てチェックNGと判定され、明細データdに対しては、ステップS2において図3に示す枠残管理マスタ106aから枠数量が取得できないのでステップS3以降の処理は行われない。 Further, for example, in step S1, the sales office code "200" and the sales date "20XX / 9/20" are acquired from the header part of the sales input screen, and two detailed data (product code) are acquired from the detailed part of the sales input screen. Detailed data c including "11000", product type code "10", quantity "400" and supplier code "10001", product code "31101", product type code "30", quantity "400" and supplier code. When the detailed data d) including "10001" is acquired, the detailed data c is determined to be check NG through the processes (31) to (34) shown below, and the detailed data d is determined to be check NG. Since the frame quantity cannot be acquired from the frame remaining management master 106a shown in FIG. 3 in step S2, the processing after step S3 is not performed.

(31)ステップS2では、図3に示す枠残管理マスタ106a中の上から12行目のレコードが特定され、当該特定されたレコードに含まれる枠数量「1,000」、適用開始日「20XX/9/1」及び適用終了日「20XX/9/30」が取得される。
(32)ステップS3では、図4に示す計上済データテーブル106b中の上から6行目と12行目のレコードが特定され、当該特定されたレコードに含まれる仕入数量「400」と「300」の合計「700」が取得される。
(33)ステップS4では、ステップS1で取得された数量「400」と合計「700」が加算されてチェック対象数量「1,100」が得られる。
(34)ステップS5では、「枠数量「1,000」≦チェック対象数量「1,100」」が成立するのでチェックNGと判定される。
(31) In step S2, the record on the twelfth line from the top in the frame remaining management master 106a shown in FIG. 3 is specified, the frame quantity "1,000" included in the specified record, and the application start date "20XX". "/ 9/1" and the application end date "20XX / 9/30" are acquired.
(32) In step S3, the records in the sixth and twelfth rows from the top in the recorded data table 106b shown in FIG. 4 are specified, and the purchase quantities "400" and "300" included in the specified records are specified. A total of "700" is acquired.
(33) In step S4, the quantity "400" acquired in step S1 and the total "700" are added to obtain the check target quantity "1,100".
(34) In step S5, since "frame quantity" 1,000 "≤ check target quantity" 1,100 "" is established, it is determined that the check is NG.

以上で、[3−1.売上入力での直送売上時の処理の具体例]の説明を終了する。 With the above, [3-1. Specific example of processing at the time of direct sales in sales input] is completed.

[3−2.仕入入力での倉入仕入時の処理の具体例]
仕入入力での倉入仕入時の処理の具体例について、図5、図8および図9等を参照して説明する。なお、本説明では、[3−1.売上入力での直送売上時の処理の具体例]と同様の説明を省略する場合がある。
[3-2. Specific example of processing at the time of purchase in the warehouse with purchase input]
A specific example of the processing at the time of purchasing from the warehouse in the purchase input will be described with reference to FIGS. 5, 8 and 9 and the like. In this description, [3-1. Specific example of processing at the time of direct sales in sales input] may be omitted.

[ステップS1:データ取得]
明細画面(仕入入力画面)上で数量などが確定したとき又はオペレータが登録ボタンとして機能するキーボード112のファンクションキーF11を押下したとき、データ管理部102aは、仕入入力画面のヘッダ部(図8参照)から、仕入事業所コード、仕入日(日付)及び仕入先コードの情報を取得すると共に、仕入入力画面の明細部(図9参照)から、品種コード及び数量の情報を取得する。
[Step S1: Data acquisition]
When the quantity or the like is confirmed on the detail screen (purchase input screen) or when the operator presses the function key F11 of the keyboard 112 which functions as a registration button, the data management unit 102a sets the header unit (FIG. 8), obtain the supplier code, purchase date (date), and supplier code information, and also obtain the product type code and quantity information from the detail section (see Fig. 9) of the purchase input screen. get.

[ステップS2:マスタ設定取得]
データ管理部102aは、ステップS1で取得した仕入事業所コード、仕入日、品種コード及び仕入先コードに基づいて、枠残管理マスタ106aを参照して、下記条件に該当するマスタ設定(枠数量、適用開始日および適用終了日)を取得する。
(条件)
・枠残管理マスタ.事業所コード=画面.仕入事業所コード
・枠残管理マスタ.仕入先コード=画面.仕入先コード
・枠残管理マスタ.品種コード=画面.品種コード
・枠残管理マスタ.適用開始日≦画面.仕入日≦枠残管理マスタ.適用終了日
[Step S2: Acquisition of master setting]
The data management unit 102a refers to the frame remaining management master 106a based on the supplier office code, purchase date, product type code, and supplier code acquired in step S1, and sets the master that meets the following conditions ( Get the quota quantity, application start date and application end date).
(conditions)
-Frame remaining management master. Office code = screen. Purchasing office code / remaining frame management master. Supplier code = screen. Supplier code / remaining frame management master. Variety code = screen. Product code / frame balance management master. Application start date ≤ screen. Purchase date ≤ frame balance management master. Application end date

[ステップS3:計上済データ取得]
データ管理部102aは、ステップS1で取得した仕入事業所コード、品種コード及び仕入先コード並びにステップS2で取得した適用開始日及び適用終了日に基づいて、計上済データテーブル106bを参照して、下記条件に該当する仕入数量の合計(計上済仕入数)を取得する。
(条件:直送仕入データの場合)
・適用開始日≦仕入データ.仕入日≦適用終了日
・仕入データ.品種コード=画面.品種コード
・仕入データ.仕入先コード=画面.仕入先コード
・前記3つの条件を満たす仕入データに紐づき且つ売上区分が直送売上となっている売上データ.売上事業所コード=画面.仕入事業所コード
(条件:倉入仕入データの場合)
・適用開始日≦仕入データ.仕入日≦適用終了日
・仕入データ.品種コード=画面.品種コード
・仕入データ.仕入先コード=画面.仕入先コード
・仕入データ.仕入事業所コード=画面.仕入事業所コード
[Step S3: Acquisition of recorded data]
The data management unit 102a refers to the accounted data table 106b based on the supplier code, product type code and supplier code acquired in step S1 and the application start date and application end date acquired in step S2. , Obtain the total purchase quantity (recorded purchase quantity) that meets the following conditions.
(Condition: In the case of direct purchase data)
・ Application start date ≤ purchase data. Purchase date ≤ application end date / purchase data. Variety code = screen. Variety code / purchase data. Supplier code = screen. Supplier code-Sales data that is linked to purchase data that meets the above three conditions and whose sales category is direct sales. Sales office code = screen. Purchasing office code (Condition: In the case of Kurairi purchasing data)
・ Application start date ≤ purchase data. Purchase date ≤ application end date / purchase data. Variety code = screen. Variety code / purchase data. Supplier code = screen. Supplier code / supplier data. Purchasing office code = screen. Purchasing office code

ここで、実例を挙げて説明すると、例えば、ステップS1で、仕入入力画面のヘッダ部から仕入事業所コード「500」、仕入日「20XX/9/15」及び仕入先コード「10001」が取得され、仕入入力画面の明細部から2つの明細データ(商品コード「21000」、品種コード「20」及び数量「300」を含む明細データeと、品種コード「30」及び数量「400」を含む明細データf)が取得された場合、明細データeに対しては、以下に示す(41)〜(44)の処理を経てチェックOKと判定される。なお、明細データfに対しては、ステップS2において図3に示す枠残管理マスタ106aから枠数量が取得できないのでステップS3以降の処理は行われない。 Here, for example, in step S1, the supplier code "500", the supplier date "20XX / 9/15", and the supplier code "10001" are displayed from the header part of the purchase input screen. Is acquired, and two detail data (detail data e including product code "21000", product code "20" and quantity "300", and product code "30" and quantity "400" are obtained from the detail section of the purchase input screen. When the detailed data f) including the above is acquired, it is determined that the check is OK for the detailed data e through the processes (41) to (44) shown below. For the detailed data f, since the frame quantity cannot be acquired from the frame remaining management master 106a shown in FIG. 3 in step S2, the processing after step S3 is not performed.

(41)ステップS2では、図3に示す枠残管理マスタ106a中の上から5行目のレコードが特定され、当該特定されたレコードに含まれる枠数量「1,500」、適用開始日「20XX/9/1」及び適用終了日「20XX/9/30」が取得される。
(42)ステップS3では、図4に示す計上済データテーブル106b中の上から10行目のレコードが特定され、当該特定されたレコードに含まれる仕入数量「500」が合計として取得される。
(43)ステップS4では、ステップS1で取得された数量「300」と合計「500」が加算されてチェック対象数量「800」が得られる。
(44)ステップS5では、「枠数量「1,500」≧チェック対象数量「800」」が成立するのでチェックOKと判定される。
(41) In step S2, the record in the fifth row from the top in the frame remaining management master 106a shown in FIG. 3 is specified, the frame quantity "1,500" included in the specified record, and the application start date "20XX". "/ 9/1" and the application end date "20XX / 9/30" are acquired.
(42) In step S3, the record in the tenth row from the top in the recorded data table 106b shown in FIG. 4 is specified, and the purchase quantity “500” included in the specified record is acquired as a total.
(43) In step S4, the quantity "300" acquired in step S1 and the total "500" are added to obtain the check target quantity "800".
(44) In step S5, since "frame quantity" 1,500 "≥ check target quantity" 800 "" is established, it is determined that the check is OK.

また、例えば、ステップS1で、仕入入力画面のヘッダ部から仕入事業所コード「200」、仕入日「20XX/9/20」及び仕入先コード「10001」が取得され、仕入入力画面の明細部から商品コード「11000」、品種コード「10」及び数量「400」を含む明細データが取得された場合、以下の処理(51)〜(54)の処理を経てチェックNGと判定される。 Further, for example, in step S1, the purchase establishment code "200", the purchase date "20XX / 9/20" and the supplier code "10001" are acquired from the header part of the purchase input screen, and the purchase input is made. When detailed data including the product code "11000", the product type code "10" and the quantity "400" is acquired from the detailed part of the screen, it is determined that the check is NG through the following processes (51) to (54). NS.

(51)ステップS2では、図3に示す枠残管理マスタ106a中の上から12行目のレコードが特定され、当該特定されたレコードに含まれる枠数量「1,000」、適用開始日「20XX/9/1」及び適用終了日「20XX/9/30」が取得される。
(52)ステップS3では、図4に示す計上済データテーブル106b中の上から6行目と12行目のレコードが特定され、当該特定された2つのレコードに含まれる仕入数量「400」及び「300」の合計「700」が取得される。
(53)ステップS4では、ステップS1で取得された数量「400」と合計「700」が加算されてチェック対象数量「1,100」が得られる。
(54)ステップS5では、「枠数量「1,000」≦チェック対象数量「1,100」」が成立するのでチェックNGと判定される。
(51) In step S2, the record on the twelfth line from the top in the frame remaining management master 106a shown in FIG. 3 is specified, the frame quantity "1,000" included in the specified record, and the application start date "20XX". "/ 9/1" and the application end date "20XX / 9/30" are acquired.
(52) In step S3, the records in the sixth and twelfth rows from the top in the recorded data table 106b shown in FIG. 4 are specified, and the purchase quantity “400” and the purchase quantity “400” included in the two specified records are specified. A total of "700" of "300" is acquired.
(53) In step S4, the quantity "400" acquired in step S1 and the total "700" are added to obtain the check target quantity "1,100".
(54) In step S5, since "frame quantity" 1,000 "≤ check target quantity" 1,100 "" is established, it is determined that the check is NG.

以上で、[3−2.仕入入力での倉入仕入時の処理の具体例]の説明を終了する。 With the above, [3-2. Specific example of processing at the time of purchase in the warehouse in the purchase input] is completed.

[4.本実施形態のまとめおよび他の実施形態]
以上説明したように、本実施形態は、主に石油(ガス(LLGなど)等でもよい)の卸業向けの「売上枠残」および「仕入枠残」の管理に関するものである。本実施形態は、(1)売上事業所・仕入事業所、仕入先、および品種ごとに直送売上伝票登録時の仕入枠残チェックを行う機能、(2)仕入事業所、仕入先、および品種ごとに倉入仕入伝票登録時の仕入枠残チェックを行う機能、(3)基本情報マスタにて枠残チェック発生時の処理(例えば、チェックなし、警告、エラー等)を設定可能とする機能、および、(4)枠(制限値)のマスタ管理を行う機能、などを有している。
[4. Summary of this embodiment and other embodiments]
As described above, the present embodiment is mainly related to the management of "sales quota balance" and "purchase quota balance" for the wholesale business of petroleum (gas (LLG, etc.) may be used). In this embodiment, (1) a function for checking the remaining purchase quota at the time of registering a direct sales slip for each sales establishment / purchasing establishment, supplier, and product type, (2) purchasing establishment, purchasing A function to check the remaining purchase frame when registering the purchase slip for each type and destination, (3) Processing when the remaining frame check occurs in the basic information master (for example, no check, warning, error, etc.) It has a function that enables setting, and (4) a function that manages the master of frames (limit values).

元売(メーカー等)からオイルを購入する時、購入先(特約店等)に対して「一定期間での購入上限量」が定められており、また販売先に対しても「一定期間での販売上限量」が定められている。そして、実務的にこの上限を超えた取引が行われると、企業に対してペナルティが発生する。しかし、これまでは、石油の仕入(購買)時または売上時に、基準値(制限値)に対して、枠(余裕枠)をチェック(枠残チェック)する機能、および、その余裕重量を把握する機能は存在しなかった。ところが、本実施形態では、上述した構成や処理を採用することにより、ペナルティの発生を防ぐことができる。 When purchasing oil from a petroleum product (manufacturer, etc.), the "upper limit of purchase in a certain period" is set for the purchaser (special agent, etc.), and the "upper limit for purchase in a certain period" is also set for the seller. "Maximum sales amount" is set. Then, if a transaction exceeding this upper limit is carried out in practice, a penalty will be incurred for the company. However, until now, at the time of purchasing (purchasing) or selling oil, the function of checking the frame (margin frame) against the standard value (limit value) (checking the remaining frame) and grasping the surplus weight There was no function to do. However, in the present embodiment, it is possible to prevent the occurrence of a penalty by adopting the above-described configuration and processing.

本発明は、上述した実施形態以外にも、特許請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。 In addition to the above-described embodiments, the present invention may be implemented in various different embodiments within the scope of the technical ideas described in the claims.

例えば、実施形態において説明した各処理のうち、自動的に行われるものとして説明した処理の全部または一部を手動的に行うこともでき、あるいは、手動的に行われるものとして説明した処理の全部または一部を公知の方法で自動的に行うこともできる。 For example, of each of the processes described in the embodiments, all or part of the processes described as being automatically performed may be manually performed, or all of the processes described as being performed manually. Alternatively, a part thereof can be automatically performed by a known method.

また、本明細書中や図面中で示した処理手順、制御手順、具体的名称、各処理の登録データや検索条件等のパラメータを含む情報、画面例、データベース構成については、特記する場合を除いて任意に変更することができる。 In addition, the processing procedure, control procedure, specific name, information including parameters such as registration data and search conditions of each processing, screen examples, and database configuration shown in the present specification and drawings are not specified unless otherwise specified. Can be changed arbitrarily.

また、販売情報装置100に関して、図示の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。 Further, with respect to the sales information device 100, each component shown in the figure is a functional concept and does not necessarily have to be physically configured as shown in the figure.

例えば、販売情報装置100が備える処理機能、特に制御部にて行われる各処理機能については、その全部または任意の一部を、CPUおよび当該CPUにて解釈実行されるプログラムにて実現してもよく、また、ワイヤードロジックによるハードウェアとして実現してもよい。尚、プログラムは、本実施形態で説明した処理を情報処理装置に実行させるためのプログラム化された命令を含む一時的でないコンピュータ読み取り可能な記録媒体に記録されており、必要に応じて販売情報装置100に機械的に読み取られる。すなわち、ROMまたはHDD(Hard Disk Drive)などの記憶部などには、OSと協働してCPUに命令を与え、各種処理を行うためのコンピュータプログラムが記録されている。このコンピュータプログラムは、RAMにロードされることによって実行され、CPUと協働して制御部を構成する。 For example, with respect to the processing functions included in the sales information device 100, particularly each processing function performed by the control unit, all or any part thereof may be realized by the CPU and a program interpreted and executed by the CPU. Well, it may be realized as hardware by wired logic. The program is recorded on a non-temporary computer-readable recording medium including a programmed instruction for causing the information processing apparatus to execute the process described in the present embodiment, and the sales information apparatus is required. Read mechanically to 100. That is, a computer program for giving instructions to the CPU in cooperation with the OS and performing various processes is recorded in a storage unit such as a ROM or an HDD (Hard Disk Drive). This computer program is executed by being loaded into the RAM, and cooperates with the CPU to form a control unit.

また、このコンピュータプログラムは、販売情報装置100に対して任意のネットワークを介して接続されたアプリケーションプログラムサーバに記憶されていてもよく、必要に応じてその全部または一部をダウンロードすることも可能である。 Further, this computer program may be stored in the application program server connected to the sales information device 100 via an arbitrary network, and all or a part thereof can be downloaded as needed. be.

また、本実施形態で説明した処理を実行するためのプログラムを、一時的でないコンピュータ読み取り可能な記録媒体に格納してもよく、また、プログラム製品として構成することもできる。ここで、この「記録媒体」とは、メモリーカード、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、フレキシブルディスク、光磁気ディスク、ROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable and Programmable Read Only Memory)、CD−ROM(Compact Disk Read Only Memory)、MO(Magneto−Optical disk)、DVD(Digital Versatile Disk)、および、Blu−ray(登録商標) Disc等の任意の「可搬用の物理媒体」を含むものとする。 Further, the program for executing the process described in the present embodiment may be stored in a non-temporary computer-readable recording medium, or may be configured as a program product. Here, the "recording medium" includes a memory card, a USB (Universal Serial Bus) memory, an SD (Secure Digital) card, a flexible disk, a magneto-optical disk, a ROM, an EPROM (Erasable Programmable Read Only Memory), and an EEPROM (registration). Trademarks) (Electrically Erasable and Programmable Read Only Memory), CD-ROM (Compact Disk Read Only Memory), MO (Magnet-Optical Disk), MO (Magnet-Optical Disk), MO (Magnet-Optical Disc), DVD (Digital), DVD (Digital) It shall include any "portable physical medium".

また、「プログラム」とは、任意の言語または記述方法にて記述されたデータ処理方法であり、ソースコードまたはバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OSに代表される別個のプログラムと協働してその機能を達成するものをも含む。なお、実施形態に示した各装置において記録媒体を読み取るための具体的な構成および読み取り手順ならびに読み取り後のインストール手順等については、周知の構成や手順を用いることができる。 The "program" is a data processing method described in any language or description method, regardless of the format such as source code or binary code. The "program" is not necessarily limited to a single program, but is distributed as a plurality of modules or libraries, or cooperates with a separate program represented by the OS to achieve its function. Including things. A well-known configuration or procedure can be used for a specific configuration and reading procedure for reading the recording medium in each device shown in the embodiment, an installation procedure after reading, and the like.

記憶部に格納される各種のデータベース等は、RAM、ROM等のメモリ装置、ハードディスク等の固定ディスク装置、フレキシブルディスク、及び、光ディスク等のストレージ手段であり、各種処理やウェブサイト提供に用いる各種のプログラム、テーブル、データベース、及び、ウェブページ用ファイル等を格納する。 Various databases and the like stored in the storage unit are memory devices such as RAM and ROM, fixed disk devices such as hard disks, flexible disks, and storage means such as optical disks, and are used for various processes and website provision. Stores programs, tables, databases, files for web pages, etc.

また、販売情報装置100は、既知のパーソナルコンピュータまたはワークステーション等の情報処理装置として構成してもよく、また、任意の周辺装置が接続された当該情報処理装置として構成してもよい。また、販売情報装置100は、当該装置に本実施形態で説明した処理を実現させるソフトウェア(プログラムまたはデータ等を含む)を実装することにより実現してもよい。 Further, the sales information device 100 may be configured as an information processing device such as a known personal computer or workstation, or may be configured as the information processing device to which an arbitrary peripheral device is connected. Further, the sales information device 100 may be realized by mounting software (including a program or data) that realizes the processing described in the present embodiment on the device.

更に、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じてまたは機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。 Further, the specific form of distribution / integration of the device is not limited to the one shown in the drawing, and all or a part thereof may be functionally or physically in an arbitrary unit according to various additions or functional loads. It can be distributed and integrated. That is, the above-described embodiments may be arbitrarily combined and implemented, or the embodiments may be selectively implemented.

本発明は、特に、石油元売から石油を仕入れる特約店における枠残管理において有用である。 The present invention is particularly useful in managing the remaining quota at a distributor who purchases oil from an oil company.

100 販売情報装置
102 制御部
102a データ管理部
104 通信インターフェース部
106 記憶部
106a 枠残管理マスタ
106b 計上済データテーブル
108 入出力インターフェース部
112 入力装置
114 出力装置
200 サーバ
300 ネットワーク
100 Sales information device 102 Control unit 102a Data management unit 104 Communication interface unit 106 Storage unit 106a Frame remaining management master 106b Accounted data table 108 Input / output interface unit 112 Input device 114 Output device 200 Server 300 Network

Claims (5)

制御部及び記憶部を備えた販売情報装置であって、
前記記憶部は、
直送又は倉入の取引区分において仕入元が仕入先から所定期間に属する日付に仕入れる予定の商品に対応する品種を当該仕入元が当該仕入先から当該所定期間内に仕入れた実績の数量が格納されている実績データテーブル及び当該仕入元が当該仕入先から当該品種を当該所定期間内に仕入れることが許される上限の数量が格納されているマスタを備え、
前記品種は、軽油、重油又は灯油であり、
前記制御部は、
画面から取得された前記商品の前記仕入れる予定の数量、前記実績データテーブルに格納されている前記実績の数量、及び前記マスタに格納されている前記上限の数量に基づいて、当該予定の数量を仕入れることに因り当該上限の数量を上回る又は下回るか前記品種毎に判定する判定手段
を備えること
を特徴とする販売情報装置。
A sales information device equipped with a control unit and a storage unit.
The storage unit
In the transaction category of direct delivery or Kurairi, the supplier has purchased the product type corresponding to the product that the supplier plans to purchase from the supplier on the date belonging to the specified period from the supplier within the specified period. It has a performance data table in which the quantity is stored and a master in which the upper limit quantity that the supplier is allowed to purchase the product from the supplier within the predetermined period is stored.
The varieties are light oil, heavy oil or kerosene.
The control unit
The planned quantity is purchased based on the planned quantity of the product acquired from the screen, the actual quantity stored in the actual data table, and the upper limit quantity stored in the master. Therefore, the sales information device is provided with a determination means for determining whether the quantity exceeds or falls below the upper limit for each product type.
前記品種は、軽油、重油及び灯油のうちの少なくとも2つであること、The variety shall be at least two of light oil, heavy oil and kerosene.
を特徴とする請求項1に記載の販売情報装置。The sales information device according to claim 1.
前記仕入元は、特約店であり、The supplier is a distributor,
前記仕入先は、元売であることThe supplier must be a petroleum product
を特徴とする請求項1又は2に記載の販売情報装置。The sales information device according to claim 1 or 2.
制御部及び記憶部を備えた販売情報装置で実行される仕入数量判定方法であって、It is a purchase quantity determination method executed by a sales information device provided with a control unit and a storage unit.
前記記憶部は、The storage unit
直送又は倉入の取引区分において仕入元が仕入先から所定期間に属する日付に仕入れる予定の商品に対応する品種を当該仕入元が当該仕入先から当該所定期間内に仕入れた実績の数量が格納されている実績データテーブル及び当該仕入元が当該仕入先から当該品種を当該所定期間内に仕入れることが許される上限の数量が格納されているマスタを備え、In the transaction category of direct delivery or Kurairi, the supplier has purchased the product type corresponding to the product that the supplier plans to purchase from the supplier on the date belonging to the specified period from the supplier within the specified period. It has a performance data table in which the quantity is stored and a master in which the upper limit quantity that the supplier is allowed to purchase the product from the supplier within the predetermined period is stored.
前記品種は、軽油、重油又は灯油であり、The varieties are light oil, heavy oil or kerosene.
前記制御部で実行される、Executed by the control unit,
画面から取得された前記商品の前記仕入れる予定の数量、前記実績データテーブルに格納されている前記実績の数量、及び前記マスタに格納されている前記上限の数量に基づいて、当該予定の数量を仕入れることに因り当該上限の数量を上回る又は下回るか前記品種毎に判定する判定ステップThe planned quantity is purchased based on the planned quantity of the product acquired from the screen, the actual quantity stored in the actual data table, and the upper limit quantity stored in the master. Therefore, a determination step for determining whether the quantity exceeds or falls below the upper limit for each product type.
を含むことTo include
を特徴とする仕入数量判定方法。A purchase quantity determination method characterized by.
制御部及び記憶部を備えた販売情報装置に実行させるための仕入数量判定プログラムであって、It is a purchase quantity determination program to be executed by a sales information device equipped with a control unit and a storage unit.
前記記憶部は、The storage unit
直送又は倉入の取引区分において仕入元が仕入先から所定期間に属する日付に仕入れる予定の商品に対応する品種を当該仕入元が当該仕入先から当該所定期間内に仕入れた実績の数量が格納されている実績データテーブル及び当該仕入元が当該仕入先から当該品種を当該所定期間内に仕入れることが許される上限の数量が格納されているマスタを備え、In the transaction category of direct delivery or Kurairi, the supplier has purchased the product type corresponding to the product that the supplier plans to purchase from the supplier on the date belonging to the specified period from the supplier within the specified period. It has a performance data table in which the quantity is stored and a master in which the upper limit quantity that the supplier is allowed to purchase the product from the supplier within the predetermined period is stored.
前記品種は、軽油、重油又は灯油であり、The varieties are light oil, heavy oil or kerosene.
前記制御部に実行させるための、To make the control unit execute
画面から取得された前記商品の前記仕入れる予定の数量、前記実績データテーブルに格納されている前記実績の数量、及び前記マスタに格納されている前記上限の数量に基づいて、当該予定の数量を仕入れることに因り当該上限の数量を上回る又は下回るか前記品種毎に判定する判定ステップThe planned quantity is purchased based on the planned quantity of the product acquired from the screen, the actual quantity stored in the actual data table, and the upper limit quantity stored in the master. Therefore, a determination step for determining whether the quantity exceeds or falls below the upper limit for each product type.
を含むことTo include
を特徴とする仕入数量判定プログラム。A purchase quantity determination program characterized by.
JP2020155205A 2015-03-17 2020-09-16 Sales information device, purchase quantity determination method, and purchase quantity determination program Active JP6963664B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2015053981 2015-03-17
JP2015053981 2015-03-17
JP2016022898A JP2016173812A (en) 2015-03-17 2016-02-09 Sales information device, purchase quantity determination method and purchase quantity determination program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016022898A Division JP2016173812A (en) 2015-03-17 2016-02-09 Sales information device, purchase quantity determination method and purchase quantity determination program

Publications (2)

Publication Number Publication Date
JP2020205111A JP2020205111A (en) 2020-12-24
JP6963664B2 true JP6963664B2 (en) 2021-11-10

Family

ID=57008245

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2016022898A Pending JP2016173812A (en) 2015-03-17 2016-02-09 Sales information device, purchase quantity determination method and purchase quantity determination program
JP2020155205A Active JP6963664B2 (en) 2015-03-17 2020-09-16 Sales information device, purchase quantity determination method, and purchase quantity determination program

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2016022898A Pending JP2016173812A (en) 2015-03-17 2016-02-09 Sales information device, purchase quantity determination method and purchase quantity determination program

Country Status (1)

Country Link
JP (2) JP2016173812A (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1166431A (en) * 1997-08-27 1999-03-09 Oki Electric Ind Co Ltd Pos terminal equipment
JP4319731B2 (en) * 1999-03-25 2009-08-26 グローリー株式会社 Automatic service machine
JP2002091540A (en) * 2000-09-18 2002-03-29 Kawasaki Steel Corp Production plan preparing method, order receiving method and stock control device
US7184984B2 (en) * 2000-11-17 2007-02-27 Valaquenta Intellectual Properties Limited Global electronic trading system
JP2002203018A (en) * 2000-12-28 2002-07-19 Idemitsu Eng Co Ltd System and method for managing chemical material
JP2005157562A (en) * 2003-11-21 2005-06-16 Honda Motor Co Ltd Product ordering device
JP2007034357A (en) * 2005-07-22 2007-02-08 Chugoku Electric Power Co Inc:The On-site facility fuel demand and supply system and on-site facility fuel demand and supply method
JP4956372B2 (en) * 2007-10-26 2012-06-20 株式会社日立製作所 Regulatory measures implementation decision support program and device
JP5026328B2 (en) * 2008-04-16 2012-09-12 株式会社日立製作所 Substance amount management program and substance amount management apparatus
JP5176715B2 (en) * 2008-06-23 2013-04-03 富士通株式会社 Arrangement instruction planning program, arrangement instruction planning apparatus, and arrangement instruction planning method
JP5499582B2 (en) * 2009-09-08 2014-05-21 株式会社リコー Controlled substance determination system, controlled substance determination method, and controlled substance determination program

Also Published As

Publication number Publication date
JP2016173812A (en) 2016-09-29
JP2020205111A (en) 2020-12-24

Similar Documents

Publication Publication Date Title
JP6956837B2 (en) Sales information device, amount retroactive method and amount retroactive program
JP6997520B2 (en) Order information management device, order information management method and order information management program
JP7048383B2 (en) Balance management device by store, balance management method by store, and balance management program by store
JP2019219924A (en) Journal creation device, journal creation method, and journal creation program
JP6981761B2 (en) Internal transaction management device, internal transaction management method and internal transaction management program
JP7488940B2 (en) WAREHOUSE ACQUISITION DEVICE, WAREHOUSE ACQUISITION METHOD, AND WAREHOUSE ACQUISITION PROGRAM
JP7025854B2 (en) Gross profit calculator, gross profit calculation method and gross profit calculation program
JP6963664B2 (en) Sales information device, purchase quantity determination method, and purchase quantity determination program
JP6824022B2 (en) Storage fee calculation device, storage fee calculation method and storage fee calculation program
JP6829052B2 (en) Shipping information management device, shipping information management method and shipping information management program
JP2019061569A (en) Retroactive unit price correction device, retroactive unit price correction method, and retroactive unit price correction program
JP2021177427A (en) Project management device, project management method, and project management program
JP7100449B2 (en) Inventory release device, inventory release method and inventory release program
JP7104520B2 (en) Withholding tax-related business support equipment, withholding tax-related business support methods, and withholding tax-related business support programs
JP6978830B2 (en) Shipping control device, shipping control method, and shipping control program
JP7104817B2 (en) Voucher registration control device, voucher registration control method, and voucher registration control program
JP6967165B2 (en) Shipping information management device, shipping information management method and shipping information management program
JP7046153B2 (en) Work completion control device, work completion control method, and work completion control program
JP6947507B2 (en) Profit management equipment, profit management methods, and profit management programs
JP2020161024A (en) Journal data creation device, journal data creation method, and journal data creation program
JP6951066B2 (en) Allocation processing execution device, allocation processing execution method, and allocation processing execution program
JP2021149914A (en) Forecast/actual management device, forecast/actual management method and forecast/actual management program
JP2018097572A (en) Commodity information retrieval apparatus, commodity information retrieval method, and commodity information retrieval program
JP2021157481A (en) Cost management device, method for managing cost, and cost management program
JP2020155062A (en) Inventory management device, inventory management method and inventory management program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201015

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201015

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: 20210921

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211015

R150 Certificate of patent or registration of utility model

Ref document number: 6963664

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150