JP2016170777A - Selling information device, amount retroaction method and amount retroaction program - Google Patents

Selling information device, amount retroaction method and amount retroaction program Download PDF

Info

Publication number
JP2016170777A
JP2016170777A JP2016018909A JP2016018909A JP2016170777A JP 2016170777 A JP2016170777 A JP 2016170777A JP 2016018909 A JP2016018909 A JP 2016018909A JP 2016018909 A JP2016018909 A JP 2016018909A JP 2016170777 A JP2016170777 A JP 2016170777A
Authority
JP
Japan
Prior art keywords
unit price
product
sales
slip
purchase
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.)
Pending
Application number
JP2016018909A
Other languages
Japanese (ja)
Inventor
真吾 山本
Shingo Yamamoto
真吾 山本
康洋 小阪
Yasuhiro Kosaka
康洋 小阪
邦明 芹澤
Kuniaki Serizawa
邦明 芹澤
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.)
Obic Co Ltd
Original Assignee
Obic Co 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 Obic Co Ltd filed Critical Obic Co Ltd
Publication of JP2016170777A publication Critical patent/JP2016170777A/en
Priority to JP2020135697A priority Critical patent/JP6956837B2/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a selling information device capable of performing collective update processing of a unit price of temporarily registered reception and payment, and to provide an amount retroaction method, and an amount retroaction program.SOLUTION: In the case of finding that a corresponding to a stocking unit price master for retroaction exists with reference to registered contents of stocking unit price master for retroaction for each stocking detail to be retroacted, an amount and a consumption tax are recalculated by adopting a price unit on the master, debt information and payment schedule information to stocking history information and a payment destination about the slip are also matched and updated on the basis of a result of the recalculation.SELECTED DRAWING: Figure 2

Description

本発明は、販売情報装置、金額遡及方法及び金額遡及プログラムに関する。   The present invention relates to a sales information device, an amount retroactive method, and an amount retrospective program.

特許文献1には、『商取引を実施した後に、商取引内容を修正する場合がある。例えば、石油化学業界の商習慣は価格後決め方式である。まず、ナフサなどの商品を仮決めの単価で年間契約を締結し、販売・購入した数量を基に仮決めの価格で請求・支払を行う。後日、期ごとに市況を勘案して正式な単価を決定し、仮決めの商取引を遡及して新たに差額分を請求・支払することが通例になっている。』が記載されている(段落0124参照)。   Japanese Patent Application Laid-Open No. 2004-133620 “In some cases, after executing a commercial transaction, the content of the commercial transaction is corrected. For example, business customs in the petrochemical industry are post-price determination methods. First, an annual contract is signed for a product such as naphtha at a tentative unit price, and billing and payment are made at a tentative price based on the quantity sold and purchased. At a later date, it is customary to decide the official unit price in consideration of the market situation every period, and to retroactively make provisional transactions and charge and pay the difference. (See paragraph 0124).

特開2002−41750号公報JP 2002-41750 A

しかしながら、従来技術では、仮で登録した受払の単価に対して一定の条件で一括洗い替え処理をすることができなかった。   However, in the prior art, it is not possible to perform batch cleaning processing under certain conditions with respect to the temporarily registered unit price.

本発明は、上記問題点に鑑みてなされたものであって、仮で登録した受払の単価に対して一定の条件で一括洗い替え処理をすることができる販売情報装置、金額遡及方法及び金額遡及プログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems, and is a sales information device, a retroactive amount method, and a retroactive amount of money that can be batch-replaced under certain conditions with respect to a temporarily registered unit price. The purpose is to provide a program.

上述した課題を解決し、目的を達成するために、本発明に係る販売情報装置は、制御部を備えた販売情報装置であって、前記制御部は、仮の単価で取引され且つ正式な単価が当該取引後に決定される商品の正式な単価、商品の商品識別情報、商品の取引区分及び正式な単価の適用期間を少なくとも含む単価マスタと商品の商品識別情報、商品の単価、商品の取引区分及び商品の取引日を少なくとも含む伝票とを比較して、前記単価マスタから前記伝票に含まれる商品に適用される正式な単価を取得する取得手段と、前記伝票に含まれる単価を前記取得手段で取得した単価に変更する変更手段とを備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, a sales information device according to the present invention is a sales information device including a control unit, and the control unit is traded at a tentative unit price and an official unit price. The unit price master and product identification information, product unit price, product transaction category, including at least the official unit price of the product determined after the transaction, product product identification information, product transaction category and official unit price application period And an acquisition means for obtaining a formal unit price applied to the product included in the slip from the unit price master, and a unit price included in the slip by the acquisition means And changing means for changing to the acquired unit price.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記伝票は、商品の金額及び商品の数量をさらに含むものであり、前記制御部は、前記取得手段で取得した単価と前記伝票に含まれる数量の積を算出する算出手段をさらに備え、前記変更手段は、前記伝票に含まれる金額を前記算出手段で算出した積に変更すること、を特徴とする。   In the sales information device according to the present invention, in the sales information device, the slip further includes a product amount and a product quantity, and the control unit acquires the unit price acquired by the acquisition unit and the slip. And calculating means for calculating the product of the quantities included in the slip, wherein the changing means changes the amount of money included in the slip to the product calculated by the calculating means.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記取引区分は、倉入仕入及び直送仕入のいずれか1つが設定される仕入区分であり、前記適用期間は、適用開始日及び適用終了日であり、前記取引日は、仕入日であり、前記単価マスタは、配送手配の在り方に関する予め定義された複数の区分のいずれか1つが設定される配送手配区分及び商品の仕入先の仕入先識別情報をさらに含むものであり、前記伝票は、配送手配区分及び仕入先識別情報をさらに含むものであり、前記取得手段は、前記単価マスタに含まれる仕入区分、配送手配区分、仕入先識別情報及び商品識別情報が前記伝票に含まれるものと一致するという条件と仕入日が適用開始日以後且つ適用終了日以前であるという条件を満たす場合に、前記単価マスタから正式な単価を取得すること、を特徴とする。   Further, in the sales information device according to the present invention, in the sales information device, the transaction classification is a purchase classification in which any one of warehouse purchase and direct delivery purchase is set, and the application period is applied. The delivery date and application end date, the transaction date is a purchase date, and the unit price master is set to one of a plurality of predefined categories relating to the way delivery is arranged. The supplier further includes supplier identification information of the supplier, the slip further includes a delivery arrangement category and supplier identification information, and the acquisition means is a supplier included in the unit price master. When the condition that the classification, delivery arrangement classification, supplier identification information and product identification information match those included in the slip and the condition that the purchase date is after the application start date and before the application end date, The unit price master Obtaining a et formal bid, it characterized.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記単価マスタは、商品の出荷元の出荷元識別情報及び商品の納入先の納入先識別情報をさらに格納可能なものであり、前記伝票は、出荷元識別情報及び納入先識別情報をさらに含むものであり、前記取得手段は、前記伝票に含まれる仕入区分が倉入仕入であるという条件と前記単価マスタに含まれる出荷元識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件をさらに満たす場合又は前記伝票に含まれる仕入区分が直送仕入であるという条件と前記単価マスタに含まれる出荷元識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件と前記単価マスタに含まれる納入先識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件をさらに満たす場合に、前記単価マスタから正式な単価を取得すること、を特徴とする。   Further, in the sales information device according to the present invention, in the sales information device, the unit price master is capable of further storing shipping source identification information of a product shipping source and delivery destination identification information of a delivery destination of the product, The voucher further includes shipping source identification information and delivery destination identification information, and the acquiring means includes a condition that the purchase classification included in the voucher is a warehouse purchase and a shipment included in the unit price master. If the original identification information is unregistered or further matches the condition included in the slip, or if the purchase classification included in the slip is direct delivery and the shipping source included in the unit price master The condition that the identification information is unregistered or matches the one included in the slip and the delivery destination identification information included in the unit price master is unregistered or included in the slip If it meets further condition that matches as, obtaining a formal bid from the bid master, characterized by.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記取引区分は、倉出売上及び直送売上のいずれか1つが設定される売上区分であり、前記適用期間は、適用開始日及び適用終了日であり、前記取引日は、売上日であり、前記単価マスタは、配送手配の在り方に関する予め定義された複数の区分のいずれか1つが設定される配送手配区分、商品の売上先の売上先識別情報及び商品の納入先の納入先識別情報をさらに含むものであり、前記伝票は、配送手配区分、売上先識別情報及び納入先識別情報をさらに含むものであり、前記取得手段は、前記単価マスタに含まれる売上区分、配送手配区分、売上先識別情報、納入先識別情報及び商品識別情報が前記伝票に含まれるものと一致するという条件と売上日が適用開始日以後且つ適用終了日以前であるという条件を満たす場合に、前記単価マスタから正式な単価を取得すること、を特徴とする。   Further, in the sales information device according to the present invention, in the sales information device, the transaction classification is a sales classification in which any one of Kurade sales and direct sales is set, and the application period includes an application start date and The application end date, the transaction date is a sales date, and the unit price master is a delivery arrangement category in which any one of a plurality of predefined categories relating to the way of delivery arrangement is set. The customer identification information and the delivery destination identification information of the delivery destination of the product are further included, and the slip further includes a delivery arrangement category, a customer identification information and a delivery destination identification information, and the acquisition means includes: The condition that the sales classification, delivery arrangement classification, sales destination identification information, delivery destination identification information, and product identification information included in the unit price master coincide with those included in the slip, and the sales date is after the application start date and If the condition that applies end date is earlier, to obtain a formal bid from the bid master, characterized by.

また、本発明に係る販売情報装置は、前記販売情報装置において、前記単価マスタは、商品の出荷元の出荷元識別情報をさらに格納可能なものであり、前記伝票は、出荷元識別情報をさらに含むものであり、前記取得手段は、前記伝票に含まれる売上区分が倉出売上であるという条件と前記単価マスタに含まれる出荷元識別情報が前記伝票に含まれるものと一致するという条件をさらに満たす場合又は前記伝票に含まれる売上区分が直送売上であるという条件と前記単価マスタに含まれる出荷元識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件をさらに満たす場合に、前記単価マスタから正式な単価を取得すること、を特徴とする。   In the sales information device according to the present invention, in the sales information device, the unit price master is capable of further storing shipping source identification information of a shipping source of a product, and the slip further includes the shipping source identification information. The acquisition means further includes a condition that the sales category included in the slip is Kuride sales and a condition that the shipping source identification information included in the unit price master matches that included in the slip. When satisfying the condition that the sales category included in the voucher is direct sales and the condition that the shipping source identification information included in the unit price master is not registered or matches the one included in the voucher And obtaining an official unit price from the unit price master.

また、本発明に係る金額遡及方法は、制御部を備えた販売情報装置で実行される金額遡及方法であって、前記制御部で実行される、仮の単価で取引され且つ正式な単価が当該取引後に決定される商品の正式な単価、商品の商品識別情報、商品の取引区分及び正式な単価の適用期間を少なくとも含む単価マスタと商品の商品識別情報、商品の単価、商品の取引区分及び商品の取引日を少なくとも含む伝票とを比較して、前記単価マスタから前記伝票に含まれる商品に適用される正式な単価を取得する取得ステップと、前記伝票に含まれる単価を前記取得ステップで取得した単価に変更する変更ステップとを含むことを特徴とする。   In addition, the amount retroactive method according to the present invention is an amount retroactive method executed by a sales information device provided with a control unit, which is executed by the control unit and is traded at a temporary unit price and an official unit price is Product unit price, product identification information, product unit price, product unit identification information, product unit identification information, product unit identification information, product unit classification information, product unit classification information The acquisition step of acquiring the official unit price applied to the product included in the slip from the unit price master, and the unit price included in the slip was acquired in the acquisition step And a change step for changing to a unit price.

また、本発明に係る金額遡及プログラムは、制御部を備えた販売情報装置に実行させるための金額遡及プログラムであって、前記制御部に実行させるための、仮の単価で取引され且つ正式な単価が当該取引後に決定される商品の正式な単価、商品の商品識別情報、商品の取引区分及び正式な単価の適用期間を少なくとも含む単価マスタと商品の商品識別情報、商品の単価、商品の取引区分及び商品の取引日を少なくとも含む伝票とを比較して、前記単価マスタから前記伝票に含まれる商品に適用される正式な単価を取得する取得ステップと、前記伝票に含まれる単価を前記取得ステップで取得した単価に変更する変更ステップとを含むことを特徴とする。   The amount retroactive program according to the present invention is an amount retroactive program for causing a sales information device provided with a control unit to execute, and is traded at a tentative unit price and executed for the control unit. The unit price master and product identification information, product unit price, product transaction category, including at least the official unit price of the product determined after the transaction, product product identification information, product transaction category and official unit price application period And an acquisition step of obtaining a formal unit price applied to the product included in the slip from the unit price master, and a unit price included in the slip in the acquisition step A change step of changing to the acquired unit price.

本発明によれば、仮で登録した受払の単価に対して一定の条件で一括洗い替え処理をすることができるという効果を奏する。   According to the present invention, there is an effect that the batch cleaning process can be performed under certain conditions with respect to the temporarily registered unit price.

図1は、売上単価遡及処理の概要を示した図である。FIG. 1 is a diagram showing an outline of the sales unit retroactivity processing. 図2は、仕入単価遡及処理の概要を示した図である。FIG. 2 is a diagram showing an outline of purchase unit price retroactive processing. 図3は、販売情報装置100の構成の一例を示すブロック図である。FIG. 3 is a block diagram illustrating an example of the configuration of the sales information device 100. 図4は、遡及用売上単価マスタ106aの一例を示す図である。FIG. 4 is a diagram illustrating an example of the retroactive sales unit price master 106a. 図5は、遡及用仕入単価マスタ106bの一例を示す図である。FIG. 5 is a diagram illustrating an example of the retroactive purchase unit price master 106b. 図6は、売上データテーブル106cの一例を示す図である。FIG. 6 is a diagram illustrating an example of the sales data table 106c. 図7は、仕入データテーブル106dの一例を示す図である。FIG. 7 is a diagram illustrating an example of the purchase data table 106d. 図8は、条件指定画面Mの一例を示す図である。FIG. 8 is a diagram illustrating an example of the condition designation screen M. 図9は、本実施形態における販売情報装置100で実行されるメイン処理の一例を示すフローチャートである。FIG. 9 is a flowchart illustrating an example of main processing executed by the sales information device 100 according to the present embodiment. 図10は、条件指定の一例を示す図である。FIG. 10 is a diagram illustrating an example of condition specification. 図11は、売上データテーブル106cの一例を示す図である。FIG. 11 is a diagram illustrating an example of the sales data table 106c. 図12は、条件指定の一例を示す図である。FIG. 12 is a diagram illustrating an example of condition specification. 図13は、仕入データテーブル106dの一例を示す図である。FIG. 13 is a diagram illustrating an example of the purchase data table 106d.

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

[1.概要]
本実施形態は、先物商品を扱う業態における売上単価や仕入単価を遡及更新する機能に関するものである。
[1. Overview]
The present embodiment relates to a function for retroactively updating a sales unit price and a purchase unit price in a business category that handles futures commodities.

例えば、本実施形態では、(A1)条件指定画面にて、今回遡及対象としたい売上伝票の条件を選択し、(A2)対象伝票の請求締済チェックを行い、(A3)対象となる売上伝票(明細)が排他状態となっていないかをチェックし、(A4)排他状態となっていない場合は、遡及対象の明細が含まれる、売上伝票(直送の場合、仕入伝票)を単価遡及処理実行中として排他状態とし、(A5)対象となった売上明細毎に、遡及売上単価マスタの登録内容を参照し、(A6)該当する遡及用売上単価マスタが存在した場合、マスタ上の単価を採用して金額及び消費税の再計算を行い、(A7)売上データの更新オペレータIDを単価遡及処理実行オペレータIDにて上書きし、(A8)対象売上伝票の排他状態を解除する(図1参照)。なお、(A2)の処理において、請求仮締・確定状態の場合、その伝票は内部的に処理対象外としてエラーを発生させないようにしてもよい。また、(A3)の処理において、排他状態となっている伝票が存在した場合、エラーを発生させてもよい。また、(A6)の処理において、再計算した結果で、その伝票に関する売上履歴情報、請求先に対する債権情報及び回収予定情報も紐付けて洗い替えてもよい。また、(A6)の処理において、複数の明細をもつ伝票の内の一つの明細が遡及対象となった場合、当該一つの明細の金額が変更された後の内容で伝票情報も洗い替えてもよい。   For example, in the present embodiment, on the (A1) condition specification screen, the condition of the sales slip that is to be retroactively selected this time is selected, (A2) the billing completion check of the target slip is performed, and (A3) the sales slip to be targeted Check whether (detail) is in exclusive status. (A4) If not in exclusive status, unit price retroactive processing of sales slip (purchase slip in case of direct delivery) including retrospective details (A5) Refer to the registered contents of the retroactive sales unit price master for each target sales item, and (A6) If there is a corresponding retroactive sales unit price master, the unit price on the master Adopt and recalculate the amount and consumption tax, (A7) overwrite the sales data update operator ID with the unit price retroactive processing execution operator ID, and (A8) cancel the exclusive status of the target sales slip (see FIG. 1) ). In the process of (A2), in the billing temporary tightening / confirmed state, the slip may be internally excluded from processing and an error may not be generated. Further, in the process of (A3), if there is a slip that is in an exclusive state, an error may be generated. Further, in the process of (A6), as a result of recalculation, the sales history information on the slip, the claim information for the billing party, and the collection schedule information may be linked and washed. Further, in the process of (A6), when one of the slips having a plurality of details becomes a retroactive target, the slip information may be replaced with the contents after the amount of the one detail is changed. Good.

また、例えば、本実施形態では、(B1)条件指定画面にて、今回遡及対象としたい仕入伝票の条件を選択し、(B2)対象伝票の請求締済チェックを行い、(B3)対象となる仕入伝票(明細)が排他状態となっていないかをチェックし、(B4)排他状態となっていない場合は、遡及対象の明細が含まれる、仕入伝票(直送の場合、売上伝票)を単価遡及処理実行中として排他状態とし、(B5)遡及対象となった仕入明細毎に、遡及用仕入単価マスタの登録内容を参照し、(B6)該当する遡及用仕入単価マスタが存在した場合、マスタ上の単価を採用して金額及び消費税の再計算を行い、(B7)売上に紐付く直送仕入伝票の遡及の場合は売上データ内の原価及び粗利の金額も洗い替え、(B8)仕入データの更新オペレータIDを単価遡及処理実行オペレータIDにて上書きし、(B9)対象仕入伝票の排他状態を解除する(図2参照)。なお、(B2)の処理において、支払締・確定状態の場合、その伝票は内部的に処理対象外としてエラーを発生させないようにしてもよい。また、(B3)の処理において、排他状態となっている伝票が存在した場合、エラーを発生させてもよい。また、(B6)の処理において、再計算した結果で、その伝票に関する仕入履歴情報、支払先に対する債務情報及び支払予定情報も紐づけて洗い替えてもよい。また、(B6)の処理において、複数の明細をもつ伝票の内の一つの明細が遡及対象となった場合、当該一つの明細の金額が変更された後の内容で伝票情報も洗い替えてもよい。   Further, for example, in the present embodiment, (B1) on the condition designation screen, the condition of the purchase slip that is to be retroactively selected this time is selected, (B2) the billing completion check of the target slip is performed, and (B3) the target Check that the purchase slip (details) to be checked is not in the exclusive state. (B4) If the purchase slip is not in the exclusive state, the purchase slip (sales slip in the case of direct delivery) that includes the retroactive item is included. Is in the exclusive state as the unit price retroactive processing is being executed, (B5) for each purchase item subject to retroactivity, the registered contents of the retroactive purchase unit price master are referred to, and (B6) the corresponding retroactive purchase unit price master is If it exists, the unit price on the master is adopted and the amount and consumption tax are recalculated. (B7) In the case of retroactive purchase slips linked to sales, the cost and gross profit amounts in the sales data are also washed. Change (B8) purchase data update operator ID Overwriting at valence retrospective processing execution operator ID, and releases the exclusive state of (B9) target purchase voucher (see FIG. 2). In the process of (B2), if the payment is in a closed / confirmed state, the slip may not be processed internally and an error may not be generated. Further, in the process of (B3), if there is a slip that is in an exclusive state, an error may be generated. Further, in the process of (B6), the purchase history information relating to the slip, the debt information for the payee, and the payment schedule information may be linked and washed as a result of recalculation. Further, in the process of (B6), when one of the slips having a plurality of details becomes a retroactive target, the slip information may be replaced with the content after the amount of the one detail is changed. Good.

[2.構成]
本実施形態に係る販売情報装置の構成の一例について、図3等を参照して説明する。図3は、販売情報装置100の構成の一例を示すブロック図である。
[2. Constitution]
An example of the configuration of the sales information apparatus according to the present embodiment will be described with reference to FIG. FIG. 3 is a block diagram illustrating 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 apparatus 100 is not limited to a stationary information processing apparatus such as a desktop personal computer, but is a portable type such as a commercially available notebook personal computer, PDA (Personal Digital Assistant), smartphone, or tablet personal computer. An information processing apparatus may be used.

販売情報装置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 unit included in the sales information device 100 is connected to be communicable 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 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 other devices via a communication line. Here, the network 300 has a function of connecting the sales information device 100 and the server 200 so that they can communicate with each other, and is, for example, the Internet, an intranet, or a LAN (Local Area Network).

記憶部106には、各種のデータベース、テーブル、及びファイルなどが格納される。記憶部106には、OS(Operating System)と協働してCPU(Central Processing Unit)に命令を与えて各種処理を行うためのコンピュータプログラムが記録される。記憶部106として、例えば、RAM(Random Access Memory)・ROM(Read Only Memory)等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、及び光ディスク等を用いることができる。記憶部106は、遡及用売上単価マスタ106aと、遡及用仕入単価マスタ106bと、売上データテーブル106cと、仕入データテーブル106dとを備えている。   The storage unit 106 stores various databases, tables, files, and the like. The storage unit 106 stores a computer program for giving various instructions to a CPU (Central Processing Unit) in cooperation with an OS (Operating System). As the storage unit 106, for example, a memory device such as a RAM (Random Access Memory) and a ROM (Read Only Memory), a fixed disk device such as a hard disk, a flexible disk, and an optical disk can be used. The storage unit 106 includes a retroactive sales unit price master 106a, a retroactive purchase unit price master 106b, a sales data table 106c, and a purchase data table 106d.

遡及用売上単価マスタ106a(本発明の単価マスタに相当)は、売上区分(本発明の売上区分に相当)、配送区分(本発明の配送手配区分に相当)、得意先(本発明の売上先識別情報に相当)、納入先(本発明の納入先識別情報に相当)、商品(本発明の商品識別情報に相当)、自社倉庫、出荷基地(本発明の出荷元識別情報に相当)、適用開始日(本発明の適用開始日に相当)、適用終了日(本発明の適用終了日に相当)、及び売上本体単価(本発明の正式な単価に相当)などのデータを含むテーブルである(図4参照)。ここで、売上区分として、「倉出売上」及び「直送売上」の2つが予め定義されている。また、配送手配の在り方を踏まえ、配送区分として、「得意先以前手配」、「自社手配」及び「仕入先手配」の3つが予め定義されている。ここで、「得意先以前手配」は、商流的に得意先より先の「商品の届く先」(例えば最終納入先等)からの配送手配依頼があることを指すものである。「自社手配」は、当社自身での配送手配を指すものである。「仕入先手配」は、直送時に油の卸先(主にメーカー)が配送方法を指定依頼してくるケースを指すものである。   The retroactive sales unit price master 106a (corresponding to the unit price master of the present invention) includes a sales category (corresponding to the sales category of the present invention), a delivery category (corresponding to the delivery arrangement category of the present invention), and a customer (sales customer of the present invention). (Equivalent to identification information), delivery destination (equivalent to delivery destination identification information of the present invention), product (equivalent to product identification information of the present invention), own warehouse, shipping base (equivalent to shipping source identification information of the present invention), application It is a table including data such as a start date (corresponding to the application start date of the present invention), an application end date (corresponding to the application end date of the present invention), and a sales unit price (corresponding to an official unit price of the present invention). (See FIG. 4). Here, two types of sales, “Kuraide Sales” and “Direct Sales” are defined in advance. Further, based on the way delivery arrangements are made, three types of delivery are defined in advance: “Pre-customer arrangement”, “In-house arrangement”, and “Supplier arrangement”. Here, “arrangement before the customer” indicates that there is a delivery arrangement request from a “destination of goods” (for example, final delivery destination) ahead of the customer in a commercial manner. “In-house arrangement” refers to our own arrangement for delivery. “Supplier arrangement” refers to a case where an oil wholesaler (mainly a manufacturer) requests to specify a delivery method at the time of direct delivery.

遡及用仕入単価マスタ106b(本発明の単価マスタに相当)は、仕入区分(本発明の仕入区分に相当)、配送手配区分(本発明の配送手配区分に相当)、仕入先コード(本発明の仕入先識別情報に相当)、倉庫(出荷基地)コード(本発明の出荷元識別情報に相当)、納入先コード(本発明の納入先識別情報に相当)、商品コード(本発明の商品識別情報に相当)、適用開始日(本発明の適用開始日に相当)、適用終了日(本発明の適用終了日に相当)、及び仕入本体単価(本発明の正式な単価に相当)などの情報を含むテーブルである(図5参照)。ここで、仕入区分として、「倉入仕入」及び「直送仕入」の2つが予め定義されている。また、配送手配の在り方を踏まえ、配送手配区分として、「得意先以前手配」、「自社手配」及び「仕入先手配」の3つが予め定義されている。   The retroactive purchase unit price master 106b (equivalent to the unit price master of the present invention) includes a purchase category (equivalent to the purchase category of the present invention), a delivery arrangement category (equivalent to the delivery arrangement category of the present invention), and a supplier code. (Equivalent to supplier identification information of the present invention), warehouse (shipping base) code (equivalent to shipping source identification information of the present invention), delivery destination code (equivalent to delivery destination identification information of the present invention), product code (present Equivalent to the product identification information of the invention), application start date (corresponding to the application start date of the present invention), application end date (corresponding to the application end date of the present invention), and purchase unit price (the official unit price of the present invention) The table includes information such as (refer to FIG. 5). Here, two purchase categories, “kurai purchase” and “direct delivery”, are defined in advance. In addition, based on the way delivery arrangements are made, three types of delivery arrangement categories are defined in advance: “Pre-customer arrangement”, “In-house arrangement” and “Supplier arrangement”.

売上データテーブル106c(本発明の伝票を含む)は、レコードを識別するための番号、売上事業所、売上番号、行番号、売上日、売上区分、CD(配送手配区分コード)、配送手配区分、得意先、納入先、倉庫(自社倉庫)、商品、倉庫CD(出荷基地コード)、出荷基地、締状態、売上単価、売上金額及び売上数量などの情報を含むテーブルである(図6参照)。ここで、出荷基地の情報は、仕入データテーブル106dから取得されるものである。また、売上番号は、売上伝票を識別するための番号である。また、行番号は、売上伝票に含まれる明細を識別するための番号である。   The sales data table 106c (including the slip of the present invention) includes a number for identifying a record, a sales office, a sales number, a line number, a sales date, a sales category, a CD (delivery arrangement category code), a delivery arrangement category, It is a table including information such as customer, delivery destination, warehouse (own warehouse), product, warehouse CD (shipping base code), shipping base, closing state, sales unit price, sales amount, and sales quantity (see FIG. 6). Here, the shipping base information is acquired from the purchase data table 106d. The sales number is a number for identifying the sales slip. The line number is a number for identifying details included in the sales slip.

仕入データテーブル106d(本発明の伝票を含む)は、レコードを識別するための番号、仕入事業所、仕入番号、行番号、仕入日、仕入区分、CD(配送手配区分コード)、配送手配区分、仕入先、倉庫CD(出荷基地コード)、出荷基地、倉庫(自社倉庫)、商品、締状態、納入先、仕入単価、仕入金額及び仕入数量などの情報を含むテーブルである(図7参照)。ここで、納入先の情報は、売上データテーブル106cから取得されるものである。また、仕入番号は、仕入伝票を識別するための番号である。また、行番号は、仕入伝票に含まれる明細を識別するための番号である。   The purchase data table 106d (including the slip of the present invention) includes a number for identifying a record, a purchase establishment, a purchase number, a line number, a purchase date, a purchase classification, and a CD (delivery arrangement classification code). , Including delivery arrangement category, supplier, warehouse CD (shipping base code), shipping base, warehouse (in-house warehouse), product, tightening status, delivery destination, purchase unit price, purchase price and purchase quantity It is a table (see FIG. 7). Here, the information on the delivery destination is obtained from the sales data table 106c. The purchase number is a number for identifying a purchase slip. The line number is a number for identifying details included in the purchase slip.

入出力インターフェース部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 (including a home television), a speaker, and a printer can be used. As the input device 112, in addition to a keyboard, a mouse, and a microphone, a monitor that realizes a pointing device function in cooperation with the mouse can be used. In the following description, the output device 114 may be described as the monitor 114, and the input device 112 may be described as the keyboard 112 or the mouse 112.

制御部102は、販売情報装置100を統括的に制御するCPU等である。制御部102は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。制御部102は、機能概念的に、遡及対象データ取得部102aと、本発明の取得手段を含む遡及単価取得部102bと、本発明の算出手段及び変更手段を含む遡及処理部102cとを備えている。   The control unit 102 is a CPU or the like that controls the sales information apparatus 100 in an integrated manner. The control unit 102 has an internal memory for storing a control program such as an OS, a program that defines various processing procedures, and necessary data, and performs various information processing based on these stored programs. Run. In terms of functional concept, the control unit 102 includes a retroactive object data acquisition unit 102a, a retroactive unit price acquisition unit 102b including the acquisition unit of the present invention, and a retroactive processing unit 102c including the calculation unit and the change unit of the present invention. Yes.

遡及対象データ取得部102aは、指定された条件に従って、売上データテーブル106cから、遡及対象とする売上伝票データを取得する。また、遡及対象データ取得部102aは、指定された条件に従って、仕入データテーブル106dから、遡及対象とする仕入伝票データを取得する。なお、遡及対象データ取得部102aが実施する処理については、以下の[4.処理の具体例]にて詳細に説明する。   The retroactive object data acquisition unit 102a acquires the sales slip data to be retroactively from the sales data table 106c according to the specified conditions. The retroactive object data acquisition unit 102a acquires purchase slip data to be retroactively from the purchase data table 106d according to the specified conditions. In addition, about the process which the retroactive object data acquisition part 102a implements, the following [4. Specific Example of Processing] will be described in detail.

遡及単価取得部102bは、遡及用売上単価マスタ106aと遡及対象データ取得部102aが取得した遡及対象売上伝票データとを比較して、遡及用売上単価マスタ106aから、遡及対象売上伝票データに適用される単価を取得する。具体的には、遡及単価取得部102bは、遡及対象データ取得部102aが取得した遡及対象売上伝票データ(レコード)毎に、遡及用売上単価マスタ106aを参照して、各レコードに対応する遡及単価(売上本体単価)を取得する。   The retroactive unit price acquisition unit 102b compares the retroactive sales unit price master 106a with the retroactive target sales slip data acquired by the retrospective target data acquisition unit 102a, and applies the retroactive sales unit price master 106a to the retroactive target sales slip data. Get the unit price. Specifically, the retroactive unit price acquisition unit 102b refers to the retroactive sales unit price master 106a for each retrospective sales slip data (record) acquired by the retrospective target data acquisition unit 102a, and sets the retroactive unit price corresponding to each record. (Sales unit price) is acquired.

遡及単価取得部102bは、遡及用仕入単価マスタ106bと遡及対象データ取得部102aが取得した遡及対象仕入伝票データとを比較して、遡及用仕入単価マスタ106bから、遡及対象仕入伝票データに適用される単価を取得する。具体的には、遡及単価取得部102bは、遡及対象データ取得部102aが取得した遡及対象仕入伝票データ(レコード)毎に、遡及用仕入単価マスタ106bを参照して、各レコードに対応する遡及単価(仕入本体単価)を取得する。   The retroactive unit price acquisition unit 102b compares the retroactive purchase unit price master 106b with the retroactive purchase unit price slip data acquired by the retrospective target data acquisition unit 102a, and determines the retroactive purchase unit price master 106b from the retroactive purchase unit price master 106b. Get the unit price applied to the data. Specifically, the retroactive unit price acquisition unit 102b refers to the retroactive purchase unit price master 106b for each retrospective purchase slip data (record) acquired by the retrospective target data acquisition unit 102a and corresponds to each record. Acquire the retroactive unit price (unit price of purchased unit).

なお、遡及単価取得部102bが実施する処理については、以下の[4.処理の具体例]にて詳細に説明する。   In addition, about the process which the retroactive unit price acquisition part 102b implements, the following [4. Specific Example of Processing] will be described in detail.

遡及処理部102cは、遡及単価取得部102bが取得した売上本体単価と遡及対象売上伝票データに含まれる数量に基づいて、遡及対象売上伝票データに含まれる売上金額を再計算して、当該取得した売上本体単価と当該再計算した売上金額に基づいて、遡及対象売上伝票データに含まれる売上単価と売上金額を洗い替える(更新する)。   The retroactive processing unit 102c recalculates the sales amount included in the retroactive sales slip data based on the sales unit price acquired by the retroactive unit price acquisition unit 102b and the quantity included in the retroactive sales slip data, Based on the sales unit price and the recalculated sales amount, the sales unit price and the sales amount included in the retroactive sales slip data are replaced (updated).

遡及処理部102cは、遡及単価取得部102bが取得した仕入本体単価と遡及対象仕入伝票データに含まれる数量に基づいて、遡及対象仕入伝票データに含まれる仕入金額を再計算して、当該取得した仕入本体単価と当該再計算した仕入金額に基づいて、遡及対象仕入伝票データに含まれる仕入単価と仕入金額を洗い替える(更新する)。   The retroactive processing unit 102c recalculates the purchase amount included in the retroactive purchase slip data based on the purchase main unit price acquired by the retroactive unit price acquisition unit 102b and the quantity included in the retroactive purchase slip data. Based on the acquired purchase main unit price and the recalculated purchase amount, the purchase unit price and the purchase amount included in the retroactive purchase slip data are replaced (updated).

なお、遡及処理部102cが実施する処理については、以下の[4.処理の具体例]にて詳細に説明する。   In addition, about the process which the retroactive processing part 102c implements, the following [4. Specific Example of Processing] will be described in detail.

[3.画面構成例]
ここでは、条件指定画面Mの構成例について、図8を参照して説明する。なお、図8に示す画面は、後述する売上単価遡及処理において遡及対象とする売上伝票データをオペレータに選択させるためのものである。
[3. Screen configuration example]
Here, a configuration example of the condition designation screen M will be described with reference to FIG. Note that the screen shown in FIG. 8 is used to allow the operator to select sales slip data to be retroactively in the sales unit retroactivity processing described later.

条件指定画面Mは、売上事業所の範囲を入力するための領域1と、売上日の範囲を入力するための領域2と、売上区分の範囲を入力するための領域3と、配送手配区分の範囲を入力するための領域4と、売上担当者の範囲を入力するための領域5と、得意先の範囲を入力するための領域6と、納入先の範囲を入力するための領域7と、出荷基地の範囲を入力するための領域8と、自社倉庫の範囲を入力するための領域9と、商品の範囲を入力するための領域10と、売上番号の範囲を入力するための領域11と、制御部102の各処理部で実行される処理の進行状況を表示するための領域12と、を含んでいる。   The condition designation screen M includes an area 1 for entering the range of sales offices, an area 2 for entering the range of sales dates, an area 3 for entering the range of sales divisions, and a delivery arrangement category. An area 4 for inputting the range, an area 5 for inputting the range of the sales person, an area 6 for inputting the range of the customer, an area 7 for inputting the range of the delivery destination, An area 8 for inputting the range of the shipping base, an area 9 for inputting the range of the company warehouse, an area 10 for inputting the range of goods, and an area 11 for inputting the range of sales numbers , And an area 12 for displaying the progress of processing executed by each processing unit of the control unit 102.

なお、後述する仕入単価遡及処理において遡及対象とする仕入伝票データをオペレータに選択させるための条件指定画面は、図8に示す画面Mに対し以下の変更及び削除を行ったものであってもよい。
・領域1から領域3、領域5、及び領域11を、仕入事業所、仕入日、仕入区分、仕入担当者、及び仕入番号のそれぞれの範囲を入力させるためのものに変更。
・領域6及び領域9を削除。
Note that the condition designation screen for allowing the operator to select purchase slip data to be retroactively selected in the purchase unit price retrospective processing described later is obtained by making the following changes and deletions to the screen M shown in FIG. Also good.
-Changed the area 1 to the area 3, the area 5, and the area 11 to input the respective ranges of purchase establishment, purchase date, purchase category, purchase person in charge, and purchase number.
-Area 6 and area 9 are deleted.

[4.処理の具体例]
本実施形態で実施される、売上単価遡及処理および仕入単価遡及処理の具体例について、図9から図13等を参照して説明する。
[4. Specific example of processing]
Specific examples of the sales unit price retroactive processing and the purchase unit price retrospective processing implemented in the present embodiment will be described with reference to FIGS.

[4−1.売上単価遡及処理の具体例]
売上単価遡及処理の具体例について、図9から図11等を参照して説明する。図9は、本実施形態における販売情報装置100で実行されるメイン処理の一例を示すフローチャートである。なお、本説明では、売上データテーブル106cに、図6に示すデータが格納されていることを前提とする。
[4-1. Specific example of retroactive sales unit processing]
A specific example of the sales unit retroactivity processing will be described with reference to FIGS. FIG. 9 is a flowchart illustrating an example of main processing executed by the sales information device 100 according to the present embodiment. In this description, it is assumed that the data shown in FIG. 6 is stored in the sales data table 106c.

[ステップS1:遡及対象データ取得]
遡及対象データ取得部102aは、条件指定画面Mにて入力された条件に従って、売上データテーブル106cから、遡及対象とする売上伝票データを取得する。具体的には、遡及対象データ取得部102aは、入力された売上区分が「倉出売上」である場合、入力された売上事業所、売上日、売上区分、配送手配区分、売上担当者、得意先、納入先、自社倉庫、商品及び売上番号を条件として使用して、当該条件と同じデータを含む売上伝票データを絞り込む。また、遡及対象データ取得部102aは、入力された売上区分が「直送売上」である場合、入力された売上事業所、売上日、売上区分、配送手配区分、売上担当者、得意先、納入先、出荷基地、商品及び売上区分を条件として使用して、当該条件と同じデータを含む売上伝票データを絞り込む。
[Step S1: Acquisition of retroactive data]
The retroactive object data acquisition unit 102a acquires the sales slip data to be retroactively from the sales data table 106c according to the conditions input on the condition designation screen M. Specifically, when the input sales category is “Kuraide Sales”, the retroactive object data acquisition unit 102a inputs the sales office, sales date, sales category, delivery arrangement category, sales representative, specialty Using the destination, delivery destination, company warehouse, product, and sales number as conditions, narrow down sales slip data including the same data as the conditions. In addition, when the input sales category is “direct sales”, the retroactive object data acquisition unit 102a inputs the sales office, sales date, sales category, delivery arrangement category, sales representative, customer, delivery destination. Using the shipping base, product, and sales category as conditions, narrow down sales slip data including the same data as the conditions.

例えば、条件指定画面Mに図10に示す条件が指定された場合、売上データテーブル106cに格納されている売上伝票データのうち、図11に示す太枠内のデータを含む売上伝票データが選択され取得される。なお、図11において、No.4のレコードは、遡及対象として選択されるNo.3のレコードと同じ伝票だが、No.4のレコードに含まれる自社倉庫のデータは指定されたものと異なるため、No.4のレコードは遡及対象として選択されない。つまり、売上明細データとしてのNo.4のレコードは遡及対象にはならない。ただし、当該レコードを含む売上番号「A110」の伝票に対しては遡及が発生する。また、図11において、No.8とNo.9のレコードについては売上入力時に出荷基地のデータを登録していないため、出荷基地のデータが未登録の状態となっている。そのため、そのため、条件指定画面M上で出荷基地の範囲を指定した場合、これらのレコードは選択対象にはならない。ただし、条件指定画面M上で出荷基地の範囲を未入力とした場合には、無条件で全ての出荷基地のデータが選択対象になる。   For example, when the condition shown in FIG. 10 is designated on the condition designation screen M, sales slip data including the data in the thick frame shown in FIG. 11 is selected from the sales slip data stored in the sales data table 106c. To be acquired. In FIG. 4 records No. 4 selected as a retroactive target. No. 3 is the same slip, but no. No. 4 records in the own warehouse are different from the specified ones. Record 4 is not selected as a retroactive target. That is, No. as sales details data. Record 4 is not retroactive. However, retroactively occurs for the slip with the sales number “A110” including the record. In FIG. 8 and no. For the record No. 9, since the shipping base data is not registered at the time of sales input, the shipping base data is not registered. Therefore, when the range of the shipping base is designated on the condition designation screen M, these records are not selected. However, if the shipping base range is not input on the condition designation screen M, the data of all shipping bases are unconditionally selected.

[ステップS2:遡及単価取得]
遡及単価取得部102bは、ステップS1にて取得した売上伝票データ毎に遡及用売上単価マスタ106aを参照して、各売上伝票データに含まれる商品に適用される遡及単価(売上本体単価)を取得する。
[Step S2: Acquisition of retroactive unit price]
The retroactive unit price acquisition unit 102b refers to the retroactive sales unit price master 106a for each sales slip data acquired in step S1, and acquires the retroactive unit price (sales unit price) applied to the product included in each sales slip data. To do.

なお、売上伝票データに含まれる売上区分のデータによって、下記に示すように売上本体単価を取得するときの条件が異なる。   It should be noted that the conditions for acquiring the sales unit unit price differ as shown below depending on the data of the sales category included in the sales slip data.

具体的には、遡及単価取得部102bは、売上伝票データに含まれる売上区分=「倉出売上」である場合、「売上伝票データに含まれる売上区分、配送手配区分、得意先、納入先、倉庫(自社倉庫)及び商品が遡及用売上単価マスタに含まれるものと一致し、かつ、遡及用売上単価マスタ.適用開始日が売上日以前で且つ最新の日付である」という条件を満たす、遡及用売上単価マスタのレコードを取得する。   Specifically, when the sales classification included in the sales slip data = “Kurade Sales”, the retroactive unit price acquisition unit 102b reads “Sales classification included in the sales slip data, delivery arrangement classification, customer, delivery destination, Retroactive, satisfying the condition that the warehouse (own warehouse) and the product match those included in the retroactive sales unit price master, and the retroactive sales unit price master. The application start date is before the sales date and is the latest date. Get sales unit price master record.

また、遡及単価取得部102bは、売上伝票データに含まれる売上区分=「直送売上」である場合、下記(11)及び(12)の順で、遡及用売上単価マスタ106aから、条件を満たすレコードを取得する。
(11)「売上伝票データに含まれる売上区分、配送手配区分、得意先、納入先及び商品が遡及用売上単価マスタに含まれるものと一致し、かつ、遡及用売上単価マスタ.倉庫(出荷基地)が未登録であり、かつ、遡及用売上単価マスタ.適用開始日が売上日以前で且つ最新の日付である」という条件を満たす、遡及用売上単価マスタのレコードを取得する。
(12)「売上伝票データに含まれる売上区分、配送手配区分、得意先、納入先、商品及び倉庫(出荷基地)が遡及用売上単価マスタに含まれるものと一致し、かつ、遡及用売上単価マスタ.適用開始日が売上日以前で且つ最新の日付である」という条件を満たす、遡及用売上単価マスタのレコードを取得する。
Further, when the sales classification included in the sales slip data = “direct sales”, the retroactive unit price acquisition unit 102b records that satisfy the conditions from the retroactive sales unit price master 106a in the order of (11) and (12) below. To get.
(11) “A sales category, a delivery arrangement category, a customer, a delivery destination, and a product included in the sales slip data coincide with those included in the retroactive sales unit price master, and the retroactive sales unit price master. Warehouse (shipping base ) Is not registered, and the retroactive sales unit price master. The record of the retroactive sales unit price master that satisfies the condition that the application start date is before the sales date and the latest date is acquired.
(12) “Sales category, delivery arrangement category, customer, delivery destination, product and warehouse (shipping base) included in sales slip data match those in the retroactive sales unit price master, and retroactive sales unit price The record of the retroactive sales unit price master that satisfies the condition that “the master application start date is before the sales date and the latest date” is acquired.

[ステップS3:遡及処理]
遡及処理部102cは、売上伝票データに含まれる売上単価を、ステップS2にて取得した遡及単価(売上本体単価)に洗い替え(更新し)、売上伝票データに含まれる売上金額を、ステップS2にて取得した遡及単価(売上本体単価)と売上伝票データに含まれる数量の積に洗い替えることにより、売上伝票データ(売上明細データの場合を含む)に含まれる売上単価と売上金額のデータを再作成する。ここで、数量がゼロの場合、このような売上伝票データは処理対象外となる。また、ステップS2で遡及単価が取得できなかった場合又はステップS2で取得した遡及単価がゼロ円の場合、洗い替えは行わない。
[Step S3: Retroactive processing]
The retroactive processing unit 102c replaces (updates) the sales unit price included in the sales slip data with the retroactive unit price (sales unit price) acquired in step S2, and converts the sales amount included in the sales slip data to step S2. The sales unit price and sales amount data included in the sales slip data (including sales details data) are re-created by reconsidering the product of the retroactive unit price (sales unit price) and the quantity included in the sales slip data. create. Here, when the quantity is zero, such sales slip data is not processed. In addition, when the retroactive unit price cannot be acquired in Step S2 or when the retroactive unit price acquired in Step S2 is zero yen, no reconstitution is performed.

以上で、[4−1.売上単価遡及処理の具体例]の説明を終了する。   The above [4-1. [Specific Example of Sales Unit Price Retroactive Processing]] ends.

[4−2.仕入単価遡及処理の具体例]
仕入単価遡及処理の具体例について、図9、図12および図13等を参照して説明する。なお、本説明では、仕入データテーブル106dに、図7に示すデータが格納されていることを前提とする。また、本説明では、[4−1.売上単価遡及処理の具体例]での説明と同様のものを省略する場合がある。
[4-2. Specific example of purchase unit price retroactive processing]
A specific example of the purchase unit price retroactive processing will be described with reference to FIGS. In this description, it is assumed that the data shown in FIG. 7 is stored in the purchase data table 106d. In this description, [4-1. A description similar to that described in “Specific example of sales unit price retroactive processing” may be omitted.

[ステップS1:遡及対象データ取得]
遡及対象データ取得部102aは、条件指定画面Mにて入力された条件に従って、仕入データテーブル106dから、遡及対象とする仕入伝票データを取得する。具体的には、遡及対象データ取得部102aは、入力された仕入区分が「倉入仕入」である場合、入力された仕入事業所、仕入日、仕入区分、配送手配区分、仕入担当者、仕入先、出荷基地、商品及び仕入番号を条件として使用して、当該条件と同じデータを含む仕入伝票データを絞り込む。また、遡及対象データ取得部102aは、入力された仕入区分が「直送仕入」であり且つ配送手配区分が「仕入先手配」である場合、入力された仕入事業所、仕入日、仕入区分、配送手配区分、仕入担当者、仕入先、出荷基地、商品、納入先及び仕入番号を条件として使用して、当該条件と同じデータを含む仕入伝票データを絞り込む。また、遡及対象データ取得部102aは、入力された仕入区分が「直送仕入」であり且つ配送手配区分が「自社手配」又は「得意先以前手配」である場合、入力された仕入事業所、仕入日、仕入区分、配送手配区分、仕入担当者、仕入先、出荷基地、商品及び仕入番号を条件として使用して、当該条件と同じデータを含む仕入伝票データを絞り込む。
[Step S1: Acquisition of retroactive data]
The retroactive object data acquisition unit 102a acquires purchase slip data to be retroactively from the purchase data table 106d according to the conditions input on the condition designation screen M. Specifically, when the input purchase category is “Kurairi purchase”, the retroactive object data acquisition unit 102a, the input purchase establishment, purchase date, purchase category, delivery arrangement category, Using purchase clerk, supplier, shipping base, product and purchase number as conditions, narrow down purchase slip data including the same data as the conditions. In addition, the retroactive object data acquisition unit 102a, when the input purchase category is “direct delivery purchase” and the delivery arrangement category is “vendor arrangement”, the input purchase establishment, purchase date The purchase category, the delivery arrangement category, the person in charge of purchase, the supplier, the shipping base, the product, the delivery destination and the purchase number are used as conditions to narrow down purchase slip data including the same data as the conditions. Further, the retroactive object data acquisition unit 102a, when the input purchase classification is “direct delivery purchase” and the delivery arrangement classification is “in-house arrangement” or “pre-customer arrangement”, The purchase slip data containing the same data as the relevant conditions is used, using the location, purchase date, purchase category, delivery arrangement category, purchaser, supplier, shipping base, product and purchase number as conditions. Narrow down.

例えば、条件指定画面Mに図12に示す条件が指定された場合、仕入データテーブル106dに格納されている仕入伝票データのうち、図13に示す太枠内のデータを含む仕入伝票データが選択され取得される。なお、図13において、No.8のレコードは遡及対象として選択されるNo.7のレコードと同じ伝票だが、No.8のレコードに含まれる出荷基地のデータは指定されたものと異なるため、No.8のレコードは遡及対象として選択されない。つまり、仕入明細データとしてのNo.8のレコードは遡及対象にはならない。ただし、当該レコードを含む仕入番号「S120」の伝票に対しては遡及が発生する。また、図13において、No.5とNo.6のレコードについては仕入入力時に出荷基地のデータを登録しておらず、また、No.12とNo.13のレコードについては売上入力時に出荷基地のデータを登録していないため、出荷基地のデータが未登録の状態となっている。そのため、条件指定画面M上で出荷基地の範囲を指定した場合、これらのレコードは選択対象にはならない。ただし、条件指定画面M上で出荷基地の範囲を未入力とした場合には、無条件で全ての出荷基地のデータが選択対象になる。また、図13において、No.19のレコードについては、締状態のデータが「支払締済」となっている為、選択対象にはならない。一方、No.20のレコードについては、締状態のデータが「請求締済」となっている(つまり、対応する売上伝票が請求締済となっている)が、選択対象とされる。すなわち、仕入データテーブル106dに含まれる締状態のデータが「支払締済」である場合、条件指定画面Mで指定された条件とは関係なく、選択対象から除外される。   For example, when the condition shown in FIG. 12 is designated on the condition designation screen M, the purchase slip data including the data within the thick frame shown in FIG. 13 among the purchase slip data stored in the purchase data table 106d. Is selected and acquired. In FIG. The record of No. 8 is selected as the retroactive target. The same slip as record No. 7, but no. Since the shipping base data included in the record No. 8 is different from the designated data, Eight records are not selected for retrospective. That is, No. as purchase details data. 8 records are not retroactive. However, retroactively occurs for the slip of purchase number “S120” including the record. In FIG. 5 and no. As for the record No. 6, the shipping base data is not registered at the time of purchase input. 12 and no. For the 13 records, the shipping base data is not registered at the time of sales input, so the shipping base data is not registered. Therefore, when the range of the shipping base is designated on the condition designation screen M, these records are not selected. However, if the shipping base range is not input on the condition designation screen M, the data of all shipping bases are unconditionally selected. In FIG. The 19 records are not selected because the data of the tightening state is “payment closed”. On the other hand, no. For the 20 records, the data of the tightening state is “billing-completed” (that is, the corresponding sales slip is in-charged), and is selected. That is, when the data of the tightening state included in the purchase data table 106d is “payment closed”, the purchase data table 106d is excluded from the selection target regardless of the condition specified on the condition specifying screen M.

[ステップS2:遡及単価取得]
遡及単価取得部102bは、ステップS1にて取得した仕入伝票データ毎に遡及用仕入単価マスタ106bを参照して、各仕入伝票データに含まれる商品に適用される遡及単価(仕入本体単価)を取得する。
[Step S2: Acquisition of retroactive unit price]
The retroactive unit price acquisition unit 102b refers to the retroactive purchase unit price master 106b for each purchase slip data acquired in step S1, and sets the retroactive unit price (purchased body) applied to the product included in each purchase slip data. Unit price).

なお、仕入伝票データに含まれる仕入区分のデータ及び配送手配区分のデータによって、下記に示すように仕入本体単価を取得するときの条件が異なる。   It should be noted that the conditions for obtaining the unit price of the purchase unit differ depending on the purchase category data and the delivery arrangement category data included in the purchase slip data as shown below.

具体的には、遡及単価取得部102bは、仕入伝票データに含まれる仕入区分=「倉入仕入」である場合、下記(21)及び(22)の順で、遡及用仕入単価マスタ106bから、条件を満たすレコードを取得する。
(21)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先及び商品が遡及用仕入単価マスタに含まれるものと一致し、かつ、遡及用仕入単価マスタ.倉庫(出荷基地)が未登録であり、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
(22)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先、商品、倉庫(出荷基地)が遡及用仕入単価マスタに含まれるものと一致し、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
Specifically, the retroactive unit price acquisition unit 102b, in the case of the purchase category included in the purchase slip data = “Kurairi purchase”, in the order of the following (21) and (22), Records that satisfy the condition are acquired from the master 106b.
(21) “Purchase classification, delivery arrangement classification, supplier and product included in purchase slip data match those included in retroactive purchase unit price master, and retroactive purchase unit price master. Warehouse ( The purchase base is not registered and the retroactive purchase unit price master. The application start date is the latest date before the purchase date included in the purchase slip data. Get unit price master record.
(22) “The purchase classification, delivery arrangement classification, supplier, product, warehouse (shipping base) included in the purchase slip data match those included in the retroactive purchase unit price master, and Receipt unit price master. Record of purchase unit price master for retroactive conditions that satisfies the condition that the application start date is the latest date before the purchase date included in the purchase slip data is acquired.

また、遡及単価取得部102bは、仕入伝票データに含まれる仕入区分=「直送仕入」であり、かつ、仕入伝票データに含まれる配送手配=「仕入先」である場合、下記(31)から(34)の順で、遡及用仕入単価マスタ106bから、条件を満たすレコードを取得する。
(31)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先及び商品が遡及用仕入単価マスタに含まれるものと一致し、かつ、遡及用仕入単価マスタ.倉庫(出荷基地)と遡及用仕入単価マスタ.納入先がいずれも未登録であり、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
(32)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先、商品及び倉庫(出荷基地)が遡及用仕入単価マスタに含まれるものと一致し、かつ、遡及用仕入単価マスタ.納入先が未登録であり、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
(33)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先、商品、倉庫(出荷基地)及び納入先が遡及用仕入単価マスタに含まれるものと一致し、かつ、単価マスタ.倉庫(出荷基地)が未登録であり、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
(34)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先、商品、倉庫(出荷基地)及び納入先が一致し、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
つまり、遡及用仕入単価マスタ側で、納入先=「登録なし」を許可している為、納入先が未登録のマスタにて当て込みをまず行い、そして、再度、遡及対象伝票に対して、納入先を含めた詳細な条件を設定したマスタとの当て込みを行う。
Further, the retroactive unit price acquisition unit 102b has the following case when the purchase category included in the purchase slip data = “direct purchase” and the delivery arrangement included in the purchase slip data = “vendor”. Records satisfying the conditions are acquired from the retroactive purchase unit price master 106b in the order of (31) to (34).
(31) “Purchase classification, delivery arrangement classification, supplier and product included in purchase slip data match those included in retroactive purchase unit price master, and retroactive purchase unit price master. Warehouse ( Shipping base) and retroactive purchase unit price master, both of which are not registered and the retroactive purchase unit price master. The application start date is before the purchase date included in the purchase slip data and the latest date The record of the retroactive purchase unit price master that satisfies the condition “is” is acquired.
(32) “The purchase classification, delivery arrangement classification, supplier, product and warehouse (shipping base) included in the purchase slip data match those included in the retroactive purchase unit price master and Receipt unit price master. Retroactive purchase unit price master. Retroactive purchase unit price master. The application start date is the latest date before the purchase date included in the purchase slip data. Get purchase unit price master record.
(33) “Purchase classification, delivery arrangement classification, supplier, product, warehouse (shipping base) and delivery destination included in the purchase slip data match those included in the retroactive purchase unit price master, and Unit price master. Warehouse (shipping base) is not registered, and retroactive purchase unit price master. The application start date is the latest date before the purchase date included in the purchase slip data. , Get the record of purchase unit price master for retroactive use.
(34) “Purchase classification, delivery arrangement classification, supplier, product, warehouse (shipping base) and delivery destination included in the purchase slip data match, and the retroactive purchase unit price master. The record of the retroactive purchase unit price master that satisfies the condition that it is the latest date before the purchase date included in the purchase slip data is acquired.
In other words, since the purchase price unit for retroactive purchases has permitted delivery destination = “No registration”, the delivery destination is first applied in the unregistered master, and again for the retrospective target document Then, apply the master with detailed conditions including the delivery destination.

また、遡及単価取得部102bは、仕入伝票データに含まれる仕入区分=「直送仕入」であり、かつ、仕入伝票データに含まれる配送手配=「自社」または「得意先以前」である場合、下記(41)および(42)の順で、遡及用仕入単価マスタ106bから、条件を満たすレコードを取得する。
(41)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先、商品及び倉庫(出荷基地)が遡及用仕入単価マスタに含まれるものと一致し、かつ、遡及用仕入単価マスタ.納入先が未登録であり、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
(42)「仕入伝票データに含まれる仕入区分、配送手配区分、仕入先、商品、倉庫(出荷基地)、納入先が遡及用仕入単価マスタに含まれるものと一致し、かつ、遡及用仕入単価マスタ.適用開始日が仕入伝票データに含まれる仕入日以前で且つ最新の日付である」という条件を満たす、遡及用仕入単価マスタのレコードを取得する。
Further, the retroactive unit price acquisition unit 102b has the purchase classification included in the purchase slip data = “direct delivery purchase” and the delivery arrangement included in the purchase slip data = “in-house” or “before the customer”. If there is, records satisfying the conditions are acquired from the retroactive purchase unit price master 106b in the following order (41) and (42).
(41) “The purchase classification, delivery arrangement classification, supplier, product and warehouse (shipping base) included in the purchase slip data match those included in the retroactive purchase unit price master, and Receipt unit price master. Retroactive purchase unit price master. Retroactive purchase unit price master. The application start date is the latest date before the purchase date included in the purchase slip data. Get purchase unit price master record.
(42) “Purchasing classification, delivery arrangement classification, supplier, product, warehouse (shipping base), and delivery destination included in the purchase slip data match those included in the retroactive purchase unit price master, and Retroactive purchase unit price master. Record of retrofit purchase unit price master that satisfies the condition that the application start date is before the purchase date included in the purchase slip data and is the latest date is acquired.

[ステップS3:遡及処理]
遡及処理部102cは、仕入伝票データに含まれる仕入単価を、ステップS2にて取得した遡及単価(仕入本体単価)に洗い替え(更新し)、仕入伝票データに含まれる仕入金額を、ステップS2にて取得した遡及単価(仕入本体単価)と仕入伝票データに含まれる数量の積に洗い替えることにより、仕入伝票データ(仕入明細データの場合を含む)に含まれる仕入単価と仕入金額のデータを再作成する。ここで、数量がゼロの場合、このような仕入伝票データは処理対象外となる。また、ステップS2で遡及単価が取得できなかった場合又はステップS2で取得した遡及単価がゼロ円の場合、洗い替えは行わない。また、仕入伝票データに含まれる仕入区分が「直送仕入」の場合、対応する売上伝票データに含まれる原価及び粗利の項目も併せて更新する。
[Step S3: Retroactive processing]
The retroactive processing unit 102c replaces (updates) the purchase unit price included in the purchase slip data with the retroactive unit price (purchase unit price) acquired in step S2, and purchase amount included in the purchase slip data. Is replaced with the product of the retroactive unit price (purchased unit price) acquired in step S2 and the quantity included in the purchase slip data, so that it is included in the purchase slip data (including purchase details data). Re-create the purchase unit price and purchase price data. Here, when the quantity is zero, such purchase slip data is not processed. In addition, when the retroactive unit price cannot be acquired in Step S2 or when the retroactive unit price acquired in Step S2 is zero yen, no reconstitution is performed. In addition, when the purchase category included in the purchase slip data is “direct delivery”, the cost and gross margin items included in the corresponding sales slip data are also updated.

以上で、[4−2.仕入単価遡及処理の具体例]の説明を終了する。   With the above, [4-2. [Specific example of purchase unit price retroactive processing] is finished.

[5.本実施形態のまとめおよび他の実施形態]
以上詳細に説明した通り、本実施形態は、先物商品を扱う業態における、「売上・仕入単価」に対しての遡及更新機能に関するものである。先物商品を扱う企業業態の場合、一定の期間が経過した後に単価が確定(決定)されるが、本実施形態では、仮で登録した受払の単価に対して一定の条件で一括洗い替え処理を行うことが可能となる。具体的には、本実施形態では、(1)売上単価に対して遡りバッチ更新処理にて洗い替えること、(2)仕入単価に対して遡りバッチ更新処理にて洗い替えること、(3)単価を取り付ける条件(遡及用単価マスタ)を作成すること、が可能となる。
[5. Summary of this embodiment and other embodiments]
As described above in detail, the present embodiment relates to a retroactive update function for “sales / purchase unit price” in a business category that handles futures commodities. In the case of a corporate business that handles futures products, the unit price is fixed (determined) after a certain period of time. Can be done. Specifically, in the present embodiment, (1) the unit price of sales is reconstituted by retroactive batch update processing, (2) the unit price of purchase is reconstituted by retrospective batch update processing, (3) It is possible to create a condition for attaching a unit price (retroactive unit price master).

これまで、先物関係(例えば、エネルギー、砂糖、または、小麦等)の商品を扱う業態の場合、一定の期間の売上伝票に対して一定の規則で洗い替える必要があるが、一括で一定の条件で単価を洗い替える処理機能はなかった。そのため、手動で過去の伝票を呼び出して一点一点修正しなければならないため、手間が掛かっていた。   Until now, in the case of business categories that handle futures-related products (for example, energy, sugar, or wheat), it is necessary to replace the sales slips for a certain period with certain rules. There was no processing function to change the unit price. For this reason, it is necessary to manually recall past slips and correct them one by one, which is troublesome.

そこで、本実施形態では、上述した構成および処理を採用することにより、これまで掛かっていた手間を大幅に削減することに成功した。   Therefore, in the present embodiment, by adopting the above-described configuration and processing, it has succeeded in greatly reducing the labor that has been required so far.

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

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

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

また、販売情報装置100に関して、図示の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。   Moreover, regarding the sales information apparatus 100, each illustrated component is functionally conceptual and does not necessarily need to be physically configured as illustrated.

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

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

また、本実施形態で説明した処理を実行するためのプログラムを、一時的でないコンピュータ読み取り可能な記録媒体に格納してもよく、また、プログラム製品として構成することもできる。ここで、この「記録媒体」とは、メモリーカード、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等の任意の「可搬用の物理媒体」を含むものとする。   In addition, a program for executing the processing described in this embodiment may be stored in a non-temporary computer-readable recording medium, or may be configured as a program product. Here, the “recording medium” refers to a memory card, USB (Universal Serial Bus) memory, SD (Secure Digital) card, flexible disk, magneto-optical disk, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (registration). Trademark) (Electrically Erasable and Programmable Read Only Memory), CD-ROM (Compact Disk Read Only Memory), MO (Magneto-Optical disk), DVD (Digital Digital, Trademark) Any “portable physical media It is intended to include.

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

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

また、販売情報装置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.

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

本発明は、特に、先物商品を扱う業種において有用である。   The present invention is particularly useful in industries that handle futures commodities.

100 販売情報装置
102 制御部
102a 遡及対象データ取得部
102b 遡及単価取得部
102c 遡及処理部
104 通信インターフェース部
106 記憶部
106a 遡及用売上単価マスタ
106b 遡及用仕入単価マスタ
106c 売上データテーブル
106d 仕入データテーブル
108 入出力インターフェース部
112 入力装置
114 出力装置
200 サーバ
300 ネットワーク
DESCRIPTION OF SYMBOLS 100 Sales information apparatus 102 Control part 102a Retroactive object data acquisition part 102b Retroactive unit price acquisition part 102c Retroactive processing part 104 Communication interface part 106 Storage part 106a Retroactive sales unit price master 106b Retrospective purchase unit price master 106c Sales data table 106d Purchase data Table 108 Input / output interface unit 112 Input device 114 Output device 200 Server 300 Network

Claims (8)

制御部を備えた販売情報装置であって、
前記制御部は、
仮の単価で取引され且つ正式な単価が当該取引後に決定される商品の正式な単価、商品の商品識別情報、商品の取引区分及び正式な単価の適用期間を少なくとも含む単価マスタと商品の商品識別情報、商品の単価、商品の取引区分及び商品の取引日を少なくとも含む伝票とを比較して、前記単価マスタから前記伝票に含まれる商品に適用される正式な単価を取得する取得手段と、
前記伝票に含まれる単価を前記取得手段で取得した単価に変更する変更手段と
を備えたこと
を特徴とする販売情報装置。
A sales information device comprising a control unit,
The controller is
Product unit identification and product identification including at least the official unit price of the product that is traded at the tentative unit price and the official unit price is determined after the transaction, the product identification information of the product, the transaction classification of the product and the application period of the official unit price Information, a unit price of the product, a transaction classification of the product and a slip including at least a transaction date of the product, and obtaining means for obtaining a formal unit price applied to the product included in the slip from the unit price master;
A sales information device comprising: a changing unit that changes a unit price included in the slip to a unit price acquired by the acquiring unit.
前記伝票は、商品の金額及び商品の数量をさらに含むものであり、
前記制御部は、前記取得手段で取得した単価と前記伝票に含まれる数量の積を算出する算出手段をさらに備え、
前記変更手段は、前記伝票に含まれる金額を前記算出手段で算出した積に変更すること、
を特徴とする請求項1に記載の販売情報装置。
The slip further includes the amount of the product and the quantity of the product,
The control unit further includes calculation means for calculating a product of the unit price acquired by the acquisition means and the quantity included in the slip,
The changing means changes the amount included in the slip to the product calculated by the calculating means,
The sales information device according to claim 1.
前記取引区分は、倉入仕入及び直送仕入のいずれか1つが設定される仕入区分であり、
前記適用期間は、適用開始日及び適用終了日であり、
前記取引日は、仕入日であり、
前記単価マスタは、配送手配の在り方に関する予め定義された複数の区分のいずれか1つが設定される配送手配区分及び商品の仕入先の仕入先識別情報をさらに含むものであり、
前記伝票は、配送手配区分及び仕入先識別情報をさらに含むものであり、
前記取得手段は、前記単価マスタに含まれる仕入区分、配送手配区分、仕入先識別情報及び商品識別情報が前記伝票に含まれるものと一致するという条件と仕入日が適用開始日以後且つ適用終了日以前であるという条件を満たす場合に、前記単価マスタから正式な単価を取得すること、
を特徴とする請求項1又は2に記載の販売情報装置。
The transaction category is a purchase category in which one of warehouse purchase and direct delivery is set,
The application period is an application start date and an application end date,
The transaction date is a purchase date,
The unit price master further includes a delivery arrangement category in which any one of a plurality of predefined categories related to delivery arrangements is set, and supplier identification information of the supplier of the product,
The slip further includes a delivery arrangement category and supplier identification information,
The acquisition means includes a condition that the purchase classification, delivery arrangement classification, supplier identification information and product identification information included in the unit price master coincide with those included in the slip and a purchase date after the application start date and Obtaining the official unit price from the unit price master if the condition that it is before the application end date is satisfied,
The sales information device according to claim 1 or 2.
前記単価マスタは、商品の出荷元の出荷元識別情報及び商品の納入先の納入先識別情報をさらに格納可能なものであり、
前記伝票は、出荷元識別情報及び納入先識別情報をさらに含むものであり、
前記取得手段は、前記伝票に含まれる仕入区分が倉入仕入であるという条件と前記単価マスタに含まれる出荷元識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件をさらに満たす場合又は前記伝票に含まれる仕入区分が直送仕入であるという条件と前記単価マスタに含まれる出荷元識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件と前記単価マスタに含まれる納入先識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件をさらに満たす場合に、前記単価マスタから正式な単価を取得すること、
を特徴とする請求項3に記載の販売情報装置。
The unit price master is capable of further storing shipping source identification information of a product shipping source and delivery destination identification information of a delivery destination of the product,
The slip further includes shipping source identification information and delivery destination identification information,
The acquisition means includes a condition that the purchase classification included in the slip is a warehouse purchase and a condition that shipping source identification information included in the unit price master is unregistered or matches the one included in the slip Or the condition that the purchase classification included in the slip is direct delivery, and the condition that the shipping source identification information included in the unit price master is not registered or matches that included in the slip; and Obtaining the official unit price from the unit price master, when further satisfying the condition that the delivery destination identification information included in the unit price master is unregistered or matches the one included in the slip;
The sales information device according to claim 3.
前記取引区分は、倉出売上及び直送売上のいずれか1つが設定される売上区分であり、
前記適用期間は、適用開始日及び適用終了日であり、
前記取引日は、売上日であり、
前記単価マスタは、配送手配の在り方に関する予め定義された複数の区分のいずれか1つが設定される配送手配区分、商品の売上先の売上先識別情報及び商品の納入先の納入先識別情報をさらに含むものであり、
前記伝票は、配送手配区分、売上先識別情報及び納入先識別情報をさらに含むものであり、
前記取得手段は、前記単価マスタに含まれる売上区分、配送手配区分、売上先識別情報、納入先識別情報及び商品識別情報が前記伝票に含まれるものと一致するという条件と売上日が適用開始日以後且つ適用終了日以前であるという条件を満たす場合に、前記単価マスタから正式な単価を取得すること、
を特徴とする請求項1又は2に記載の販売情報装置。
The transaction classification is a sales classification in which any one of Kurade sales and direct sales is set,
The application period is an application start date and an application end date,
The transaction date is a sales date,
The unit price master further includes a delivery arrangement category in which any one of a plurality of predefined categories relating to delivery arrangements is set, sales destination identification information of a product sales destination, and delivery destination identification information of a product delivery destination. Including
The slip further includes a delivery arrangement category, sales destination identification information, and delivery destination identification information,
The acquisition means includes a condition that the sales category, delivery arrangement category, sales destination identification information, delivery destination identification information, and product identification information included in the unit price master coincide with those included in the slip, and the sales start date. After that, when the condition that it is before the application end date is satisfied, obtaining an official unit price from the unit price master,
The sales information device according to claim 1 or 2.
前記単価マスタは、商品の出荷元の出荷元識別情報をさらに格納可能なものであり、
前記伝票は、出荷元識別情報をさらに含むものであり、
前記取得手段は、前記伝票に含まれる売上区分が倉出売上であるという条件と前記単価マスタに含まれる出荷元識別情報が前記伝票に含まれるものと一致するという条件をさらに満たす場合又は前記伝票に含まれる売上区分が直送売上であるという条件と前記単価マスタに含まれる出荷元識別情報が未登録である若しくは前記伝票に含まれるものと一致するという条件をさらに満たす場合に、前記単価マスタから正式な単価を取得すること、
を特徴とする請求項5に記載の販売情報装置。
The unit price master is capable of further storing shipping source identification information of the shipping source of the product,
The slip further includes shipping source identification information,
The acquisition means further satisfies the condition that the sales category included in the slip is Kuride sales and the condition that the shipping source identification information included in the unit price master matches that included in the slip, or the slip From the unit price master when the condition that the sales category included is direct sales and the condition that the shipping source identification information included in the unit price master is not registered or matches the one included in the slip Getting a formal unit price,
The sales information device according to claim 5.
制御部を備えた販売情報装置で実行される金額遡及方法であって、
前記制御部で実行される、
仮の単価で取引され且つ正式な単価が当該取引後に決定される商品の正式な単価、商品の商品識別情報、商品の取引区分及び正式な単価の適用期間を少なくとも含む単価マスタと商品の商品識別情報、商品の単価、商品の取引区分及び商品の取引日を少なくとも含む伝票とを比較して、前記単価マスタから前記伝票に含まれる商品に適用される正式な単価を取得する取得ステップと、
前記伝票に含まれる単価を前記取得ステップで取得した単価に変更する変更ステップと
を含むこと
を特徴とする金額遡及方法。
An amount retroactive method executed by a sales information device provided with a control unit,
Executed by the control unit,
Product unit identification and product identification including at least the official unit price of the product that is traded at the tentative unit price and the official unit price is determined after the transaction, the product identification information of the product, the transaction classification of the product and the application period of the official unit price An acquisition step of comparing the information, the unit price of the product, the transaction category of the product and the slip including at least the transaction date of the product, and obtaining the official unit price applied to the product included in the slip from the unit price master;
And a change step of changing the unit price included in the slip to the unit price acquired in the acquisition step.
制御部を備えた販売情報装置に実行させるための金額遡及プログラムであって、
前記制御部に実行させるための、
仮の単価で取引され且つ正式な単価が当該取引後に決定される商品の正式な単価、商品の商品識別情報、商品の取引区分及び正式な単価の適用期間を少なくとも含む単価マスタと商品の商品識別情報、商品の単価、商品の取引区分及び商品の取引日を少なくとも含む伝票とを比較して、前記単価マスタから前記伝票に含まれる商品に適用される正式な単価を取得する取得ステップと、
前記伝票に含まれる単価を前記取得ステップで取得した単価に変更する変更ステップと
を含むこと
を特徴とする金額遡及プログラム。
An amount retroactive program for causing a sales information device equipped with a control unit to execute,
For causing the control unit to execute,
Product unit identification and product identification including at least the official unit price of the product that is traded at the tentative unit price and the official unit price is determined after the transaction, the product identification information of the product, the transaction classification of the product and the application period of the official unit price An acquisition step of comparing the information, the unit price of the product, the transaction category of the product and the slip including at least the transaction date of the product, and obtaining the official unit price applied to the product included in the slip from the unit price master;
And a change step of changing the unit price included in the slip to the unit price acquired in the acquisition step.
JP2016018909A 2015-03-12 2016-02-03 Selling information device, amount retroaction method and amount retroaction program Pending JP2016170777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020135697A JP6956837B2 (en) 2015-03-12 2020-08-11 Sales information device, amount retroactive method and amount retroactive program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015050053 2015-03-12
JP2015050053 2015-03-12

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020135697A Division JP6956837B2 (en) 2015-03-12 2020-08-11 Sales information device, amount retroactive method and amount retroactive program

Publications (1)

Publication Number Publication Date
JP2016170777A true JP2016170777A (en) 2016-09-23

Family

ID=56982507

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2016018909A Pending JP2016170777A (en) 2015-03-12 2016-02-03 Selling information device, amount retroaction method and amount retroaction program
JP2020135697A Active JP6956837B2 (en) 2015-03-12 2020-08-11 Sales information device, amount retroactive method and amount retroactive program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2020135697A Active JP6956837B2 (en) 2015-03-12 2020-08-11 Sales information device, amount retroactive method and amount retroactive program

Country Status (1)

Country Link
JP (2) JP2016170777A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019061569A (en) * 2017-09-27 2019-04-18 株式会社オービック Retroactive unit price correction device, retroactive unit price correction method, and retroactive unit price correction program
JP2020038509A (en) * 2018-09-04 2020-03-12 株式会社オービック Unit price retroaction processing device, unit price retroaction processing method, and unit price retroaction processing program
JP2020106996A (en) * 2018-12-26 2020-07-09 株式会社オービック Unit price management device, unit price management method, and unit price management program
JP2021170388A (en) * 2017-09-27 2021-10-28 株式会社オービック Slip processing device, slip processing method, and slip processing program
JP2022113852A (en) * 2018-09-04 2022-08-04 株式会社オービック Unit price retroaction processing device, unit price retroaction processing method, and unit price retroaction processing program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002298061A (en) * 2001-04-03 2002-10-11 Sumitomo Forestry Co Ltd Settlement assisiting method and system
US20040078288A1 (en) * 2002-06-19 2004-04-22 Jill Forbis Computer-implemented method and system for retroactive pricing for use in order procurement
JP2007188442A (en) * 2006-01-16 2007-07-26 Showa Shell Sekiyu Kk Sales management system and method, and computer program
JP2008181236A (en) * 2007-01-23 2008-08-07 Sap Ag Transaction device, slip generation method, and computer program
JP2014032513A (en) * 2012-08-02 2014-02-20 Fujitsu Marketing Ltd Unit price setting device, unit price setting method, and unit price setting program
JP2014119821A (en) * 2012-12-13 2014-06-30 Hitachi Ltd Retroaction unit price correction system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002298061A (en) * 2001-04-03 2002-10-11 Sumitomo Forestry Co Ltd Settlement assisiting method and system
US20040078288A1 (en) * 2002-06-19 2004-04-22 Jill Forbis Computer-implemented method and system for retroactive pricing for use in order procurement
JP2007188442A (en) * 2006-01-16 2007-07-26 Showa Shell Sekiyu Kk Sales management system and method, and computer program
JP2008181236A (en) * 2007-01-23 2008-08-07 Sap Ag Transaction device, slip generation method, and computer program
JP2014032513A (en) * 2012-08-02 2014-02-20 Fujitsu Marketing Ltd Unit price setting device, unit price setting method, and unit price setting program
JP2014119821A (en) * 2012-12-13 2014-06-30 Hitachi Ltd Retroaction unit price correction system and method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019061569A (en) * 2017-09-27 2019-04-18 株式会社オービック Retroactive unit price correction device, retroactive unit price correction method, and retroactive unit price correction program
JP2021170388A (en) * 2017-09-27 2021-10-28 株式会社オービック 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
JP2020038509A (en) * 2018-09-04 2020-03-12 株式会社オービック Unit price retroaction processing device, unit price retroaction processing method, and unit price retroaction processing program
JP7092622B2 (en) 2018-09-04 2022-06-28 株式会社オービック Unit price retroactive processing device, unit price retroactive processing method and unit price retroactive processing program
JP2022113852A (en) * 2018-09-04 2022-08-04 株式会社オービック Unit price retroaction processing device, unit price retroaction processing method, and unit price retroaction processing program
JP7336003B2 (en) 2018-09-04 2023-08-30 株式会社オービック Unit Price Retroactive Processing Device, Unit Price Retroactive Processing Method and Unit Price Retroactive Processing Program
JP2020106996A (en) * 2018-12-26 2020-07-09 株式会社オービック Unit price management device, unit price management method, and unit price management program
JP7183034B2 (en) 2018-12-26 2022-12-05 株式会社オービック Unit price management device, unit price management method, and unit price management program

Also Published As

Publication number Publication date
JP2020181615A (en) 2020-11-05
JP6956837B2 (en) 2021-11-02

Similar Documents

Publication Publication Date Title
JP6956837B2 (en) Sales information device, amount retroactive method and amount retroactive program
JP2020129420A (en) Cost management device, cost management method, and cost management program
JP2019219924A (en) Journal creation device, journal creation method, and journal creation program
JP7389875B2 (en) Inventory value adjustment device, inventory value adjustment method, and inventory value adjustment program
JP2016167256A (en) Sales information apparatus, tax calculation/journalization method, and tax calculation/journalization program
JP6923408B2 (en) Retroactive unit price correction device, retroactive unit price correction method, and retroactive unit price correction program
JP7045812B2 (en) Transfer device, transfer method, and transfer program
JP6817082B2 (en) Work completion control device, work completion control method, and work completion control program
JP7149088B2 (en) Gross profit display device, gross profit display method and gross profit display program
JP6963664B2 (en) Sales information device, purchase quantity determination method, and purchase quantity determination program
JP7366783B2 (en) Business support devices, business support methods, and business support programs
JP7178304B2 (en) Inventory control device, inventory control method and inventory control program
JP7274380B2 (en) Commercial distribution management device, commercial distribution management method, and commercial distribution management program
JP7104817B2 (en) Voucher registration control device, voucher registration control method, and voucher registration control program
JP7194063B2 (en) Journal writing device, journal writing method and journal writing program
JP7402143B2 (en) Business support devices, business support methods, and business support programs
JP2019061552A (en) Arrangement process management device, arrangement process management method, and arrangement process management program
JP7336003B2 (en) Unit Price Retroactive Processing Device, Unit Price Retroactive Processing Method and Unit Price Retroactive Processing Program
JP7373466B2 (en) Inventory calculation device, inventory calculation method, and inventory calculation program
JP2020160823A (en) Journal creation device, journal creation program and journal creation method
JP2018151975A (en) Device, method and program for managing the number of raw materials
JP2024058931A (en) Genuine product purchase device, genuine product purchase method and genuine product purchase program
JP2021157481A (en) Cost management device, method for managing cost, and cost management program
JP2020166445A (en) Information inquiry device, information inquiry method, and information inquiry program
JP2021144623A (en) Transaction analysis apparatus, transaction analysis method, and transaction analysis program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190131

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191217

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200206

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200512