JP2022152905A - Weight difference calculating apparatus, weight difference calculating method, and weight difference calculating program - Google Patents
Weight difference calculating apparatus, weight difference calculating method, and weight difference calculating program Download PDFInfo
- Publication number
- JP2022152905A JP2022152905A JP2021055847A JP2021055847A JP2022152905A JP 2022152905 A JP2022152905 A JP 2022152905A JP 2021055847 A JP2021055847 A JP 2021055847A JP 2021055847 A JP2021055847 A JP 2021055847A JP 2022152905 A JP2022152905 A JP 2022152905A
- Authority
- JP
- Japan
- Prior art keywords
- weight
- product
- inventory
- data
- calculating
- 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
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本発明は、差異重量算出装置、差異重量算出方法および差異重量算出プログラムに関する。 The present invention relates to a difference weight calculation device, a difference weight calculation method, and a difference weight calculation program.
特許文献1には、受注量の決定段階から、各通過工程において製造可能な製造重量範囲などの製造制約条件を考慮することで、製造工程において余材を発生させることなく、製造工程における生産性を高め、かつ、製造コストの低減を実現できる受注量決定システムが開示されている(特許文献1の0005段落参照)。
In
例えば鉄鋼業界等においては、在庫の管理単位としては荷姿を表す員数を用い、在庫金額を計算する単位としては重量を用いる。つまり、2つの単位を用いる。ここで、現在の在庫重量を管理するために、日々の取引の員数に単位重量を掛けて算出した重量を端数処理し、当該端数処理した日々の重量を集計することで概算の在庫重量を求めることがある。例えば、ある月の4日に鋼管10本を仕入れて、同月5日に鋼管4本を売り上げて、同月6日に鋼管4本を売り上げて、同月7日に鋼管2本を売り上げたという受払データがあるとして、単位重量が1.1kg/本であるとすると、月末時点での前記概算の在庫重量は、(10本×1.1kg/本=11kg)+(-4本×1.1kg/本=-4.4kgを小数点以下第1位で四捨五入した-4本)+(-4本×1.1kg/本=-4.4kgを小数点以下第1位で四捨五入した-4本)+(-2本×1.1kg/本=-2.2kgを小数点以下第1位で四捨五入した-2本)=1kgとなる。 For example, in the steel industry and the like, the number of items representing the packing style is used as the inventory management unit, and the weight is used as the unit for calculating the inventory value. That is, two units are used. Here, in order to manage the current inventory weight, the weight calculated by multiplying the number of daily transactions by the unit weight is rounded, and the daily weight after rounding is aggregated to obtain an approximate inventory weight. Sometimes. For example, receipt/payment data states that 10 steel pipes were purchased on the 4th of a month, 4 steel pipes were sold on the 5th of the same month, 4 steel pipes were sold on the 6th of the same month, and 2 steel pipes were sold on the 7th of the same month. Assuming that the unit weight is 1.1 kg/piece, the estimated inventory weight at the end of the month is (10 pieces x 1.1 kg/piece = 11 kg) + (-4 pieces x 1.1 kg/piece = - 4.4 kg rounded to the first decimal place - 4) + (-4 x 1.1 kg/piece = -4.4 kg rounded to the first decimal place - 4) + (-2 x 1.1 kg) / piece = -2.2 kg rounded to the first decimal place - 2) = 1 kg.
しかしながら、当該1kgは飽くまで概算の在庫重量であり、実際の正確な在庫重量とは異なる。当該正確な在庫重量は、月末の員数に単位重量を掛けて求めた値について端数処理を行うことにより求めることができる。前段落の例でいえば、月末の員数は、(10本)+(-4本)+(-4本)+(-2本)=0本となるため、月末時点での前記正確な在庫重量は、0本×1.1kg/本=0kgとなる(当該算出した0kgは既に整数であるため端数処理は行わない)。 However, the 1 kg is only an approximate inventory weight and is different from the actual accurate inventory weight. The accurate inventory weight can be obtained by rounding the value obtained by multiplying the number of units at the end of the month by the unit weight. In the example of the previous paragraph, the number of pieces at the end of the month is (10 pieces) + (-4 pieces) + (-4 pieces) + (-2 pieces) = 0 pieces, so the accurate inventory at the end of the month The weight is 0 x 1.1 kg/piece = 0 kg (the calculated 0 kg is already an integer, so rounding is not performed).
ここで、日々の取引で発生した重量を集計すれば、前記概算の在庫重量を簡易に把握できるものの、一方で、在庫金額の算定根拠となる在庫重量は正確である必要があるため、前記正確な在庫重量は月末に手動で算出し直す必要がある。これにより、在庫金額をとらえる月末時点において、前記概算の在庫重量と前記正確な在庫重量の差異の重量を求めて、当該差異の重量分を払出明細等として前記受払データに反映していた。 Here, if the weight generated in daily transactions is totaled, the approximate inventory weight can be easily grasped. inventory weights must be manually recalculated at the end of the month. As a result, at the end of the month when the inventory amount is captured, the weight of the difference between the approximate inventory weight and the accurate inventory weight is obtained, and the weight of the difference is reflected in the receipt and payment data as payment details.
しかしながら、前記差異の重量の算出に至るまでのこれら一連の処理(特に、前記正確な在庫重量の算出)を従来は手動で行っていたため、業務負荷や計算ミス等の問題があった。 However, since the series of processes up to the calculation of the difference weight (particularly, the accurate calculation of the inventory weight) have been performed manually in the past, there were problems such as workload and calculation errors.
本発明は、上記問題点に鑑みてなされたものであって、概算の在庫重量を求めつつも、一方で、正確な在庫重量も求め、両重量の差異を算出することができる差異重量算出装置、差異重量算出方法および差異重量算出プログラムを提供することを目的とする。 The present invention has been made in view of the above problems, and is a difference weight calculation device that can obtain an approximate inventory weight while also obtaining an accurate inventory weight and calculate the difference between the two weights. , to provide a difference weight calculation method and a difference weight calculation program.
上述した課題を解決し、目的を達成するために、本発明に係る差異重量算出装置は、制御部および記憶部を備える差異重量算出装置であって、前記記憶部には、商品の受払日と、前記商品を識別するための商品識別データと、前記商品についての受払した員数と、を有する明細データを含む受払データと、前記商品識別データと、前記商品毎の単位重量と、を含む商品マスタと、が格納されており、前記制御部が、前記商品マスタから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する明細毎重量算出手段と、前記明細毎重量算出手段で算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する明細毎整数重量算出手段と、前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データを生成する概算在庫重量算出手段と、前記受払日が前記所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する正確在庫重量算出手段と、前記概算在庫重量算出手段で生成した前記在庫データ中の前記商品毎の概算の在庫重量と、前記正確在庫重量算出手段で算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する差異重量算出手段と、を備えること、を特徴とする。 In order to solve the above-described problems and achieve the object, a weight difference calculation device according to the present invention is a weight difference calculation device comprising a control unit and a storage unit, wherein the storage unit stores a product receipt/payment date and , receipt and payment data including itemized data having item identification data for identifying the item and the number of items received and paid for the item; the item identification data; and the unit weight of each item. is stored, and the control unit acquires the unit weight associated with the product identification data in the detailed data from the product master, and adds the acquired unit weight to the number of pieces in the detailed data. By multiplying the weight of each item by item weight calculation means for calculating the received and paid weight of the product for each item data, and by performing a predetermined fraction processing on the weight of each item data calculated by the item weight calculation means Integer weight calculation means for each detail for calculating an integer weight for each of the detail data and adding the calculated integer weight to the detail data; for each product to calculate an approximate inventory weight for each product at the end of the predetermined period, and store the calculated approximate inventory weight for each product to obtain inventory data and an estimated inventory weight calculating means for calculating the number of items in the detailed data whose receipt/payment date belongs to the predetermined period for each product, and adding the aggregated number of items for each product Accurate stock weight of each product at the end of the predetermined period by calculating a value obtained by multiplying the unit weight in the product master linked to the identification data and performing the predetermined fraction processing on the value an approximate inventory weight for each product in the inventory data generated by the approximate inventory weight calculation means, and an accurate inventory for each product calculated by the accurate inventory weight calculation means and weight difference calculation means for calculating a weight difference between the weight and the weight for each product.
また、本発明に係る差異重量算出装置は、前記制御部が、前記差異重量算出手段で算出した前記商品毎の差異の重量を有する明細データを前記受払データに追加することにより、前記受払データを更新する受払データ更新手段を更に備えること、を特徴とする。 Further, in the difference weight calculation device according to the present invention, the control unit adds the detailed data having the difference weight for each product calculated by the difference weight calculation means to the receipt and payment data, thereby calculating the receipt and payment data. It is characterized by further comprising receipt and payment data updating means for updating.
また、本発明に係る差異重量算出装置は、前記制御部が、前記在庫データ中の前記商品毎の概算の在庫重量を、前記正確在庫重量算出手段で算出した前記商品毎の正確な在庫重量で上書きすることにより、前記在庫データを更新する在庫データ更新手段を更に備えること、を特徴とする。 Further, in the difference weight calculation device according to the present invention, the control unit calculates the approximate inventory weight of each product in the inventory data with the accurate inventory weight of each product calculated by the accurate inventory weight calculation means. It is characterized by further comprising inventory data update means for updating the inventory data by overwriting.
また、本発明に係る差異重量算出方法は、制御部および記憶部を備える情報処理装置で実行される差異重量算出方法であって、前記記憶部には、商品の受払日と、前記商品を識別するための商品識別データと、前記商品についての受払した員数と、を有する明細データを含む受払データと、前記商品識別データと、前記商品毎の単位重量と、を含む商品マスタと、が格納されており、前記制御部で実行される、前記商品マスタから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する明細毎重量算出ステップと、前記明細毎重量算出ステップで算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する明細毎整数重量算出ステップと、前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データを生成する概算在庫重量算出ステップと、前記受払日が前記所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する正確在庫重量算出ステップと、前記概算在庫重量算出ステップで生成した前記在庫データ中の前記商品毎の概算の在庫重量と、前記正確在庫重量算出ステップで算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する差異重量算出ステップと、を含むこと、を特徴とする。 Further, a difference weight calculation method according to the present invention is a difference weight calculation method executed by an information processing apparatus having a control unit and a storage unit, wherein the storage unit stores the date of receipt and payment of a product and the identification of the product. receipt and payment data including itemized data having item identification data and the number of items received and paid for the merchandise; and a merchandise master including the merchandise identification data and the unit weight of each merchandise. and acquiring the unit weight associated with the product identification data in the detailed data from the product master, and multiplying the number of pieces in the detailed data by the obtained unit weight, which is executed by the control unit. By performing a predetermined fraction processing on the weight of each item data calculated in the item weight calculation step of calculating the received and paid weight of the product for each item data, and the weight of each item data calculated in the item weight calculation step, an integer a step of calculating the weight of the integer for each of the detailed data, and adding the calculated integer weight to the detailed data; and are aggregated for each product to calculate an approximate inventory weight for each product at the end of the predetermined period, and the calculated approximate inventory weight for each product is stored to generate inventory data. an approximate inventory weight calculation step for calculating the item number in the itemized data whose receipt/payment date belongs to the predetermined period for each item, and adding the item identification data for the item to the aggregated item number for each item By calculating the value obtained by multiplying the unit weight in the product master associated with the product and performing the predetermined fraction processing on the value, the accurate inventory weight of each product at the end of the predetermined period is calculated. an accurate inventory weight calculation step, an approximate inventory weight for each product in the inventory data generated in the approximate inventory weight calculation step, and an accurate inventory weight for each product calculated in the accurate inventory weight calculation step; and a difference weight calculation step of calculating, for each product, the weight of the difference between .
また、本発明に係る差異重量算出プログラムは、制御部および記憶部を備える情報処理装置に実行させるための差異重量算出プログラムであって、前記記憶部には、商品の受払日と、前記商品を識別するための商品識別データと、前記商品についての受払した員数と、を有する明細データを含む受払データと、前記商品識別データと、前記商品毎の単位重量と、を含む商品マスタと、が格納されており、前記制御部に実行させるための、前記商品マスタから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する明細毎重量算出ステップと、前記明細毎重量算出ステップで算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する明細毎整数重量算出ステップと、前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データを生成する概算在庫重量算出ステップと、前記受払日が前記所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する正確在庫重量算出ステップと、前記概算在庫重量算出ステップで生成した前記在庫データ中の前記商品毎の概算の在庫重量と、前記正確在庫重量算出ステップで算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する差異重量算出ステップと、を含むこと、を特徴とする。 Further, a difference weight calculation program according to the present invention is a difference weight calculation program to be executed by an information processing apparatus having a control unit and a storage unit, wherein the storage unit stores the receipt and payment date of the product and the product. Receipt/payment data including itemized data having item identification data for identification and the number of items received and paid for the item, and an item master including the item identification data and the unit weight of each item are stored. The unit weight associated with the product identification data in the detailed data is acquired from the product master, and the acquired unit weight is added to the number of items in the detailed data for the control unit to execute. By multiplying by , an integer weight calculation step for each detail of calculating an integer weight for each of the detail data and adding the calculated integer weight to the detail data; for each product to calculate an approximate inventory weight for each product at the end of the predetermined period, and store the calculated approximate inventory weight for each product to obtain inventory data an estimated inventory weight calculating step for generating the above-mentioned item number in the itemized data whose receipt and payment dates belong to the predetermined period; Accurate stock weight of each product at the end of the predetermined period by calculating a value obtained by multiplying the unit weight in the product master linked to the identification data and performing the predetermined fraction processing on the value an approximate inventory weight for each product in the inventory data generated in the approximate inventory weight calculation step; and an accurate inventory for each product calculated in the accurate inventory weight calculation step and a difference weight calculation step of calculating a difference weight for each product.
本発明によれば、概算の在庫重量を求めつつも、一方で、正確な在庫重量も求め、両重量の差異を算出することができるという効果を奏する。 According to the present invention, it is possible to obtain an approximate inventory weight, while also obtaining an accurate inventory weight, and to calculate the difference between the two weights.
以下に、本発明に係る差異重量算出装置、差異重量算出方法および差異重量算出プログラムの実施形態を、図面に基づいて詳細に説明する。なお、本実施形態により本発明が限定されるものではない。 BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of a weight difference calculation device, a weight difference calculation method, and a weight difference calculation program according to the present invention will be described below in detail with reference to the drawings. It should be noted that the present invention is not limited by this embodiment.
[1.概要]
鉄鋼業界においては、在庫の管理単位としては荷姿を表す員数を用い、在庫金額を計算する単位としては重量を用いる。つまり、2つの単位を用いる。重量については、員数に対してマスタ管理された単位重量を掛けることで計算することが多いが、取引を重ねていくと、端数処理(JIS丸め等)の関係で「員数×単位重量」が重量とならないことがある。つまり、日々計算した重量を端数処理した値を集計した概算の月末在庫重量は、正確な月末在庫重量とは異なることがある。
[1. Overview]
In the steel industry, the number of items representing the packing style is used as a unit for managing inventory, and the weight is used as a unit for calculating the amount of inventory. That is, two units are used. Weight is often calculated by multiplying the number of items by the master-controlled unit weight. It may not be. In other words, the approximate end-of-month inventory weight obtained by aggregating the rounded values of the daily calculated weights may differ from the accurate end-of-month inventory weight.
このため、在庫金額の算定根拠となる重量を正確にするために、手動により、月末の員数に単位重量を掛けて求めた値について端数処理を行うことにより、前記正確な月末在庫重量を求めることが必要であった。その上で、前記概算の月末在庫重量を、前記正確な月末在庫重量により在庫調整していたが、このような一連の処理は業務負荷が大きく計算ミス等のリスクもあった。 Therefore, in order to accurately calculate the weight, which is the basis for calculating the inventory value, the accurate end-of-month inventory weight is obtained by manually rounding the value obtained by multiplying the number of units at the end of the month by the unit weight. was necessary. In addition, the approximate end-of-month inventory weight was adjusted based on the accurate end-of-month inventory weight.
そこで、本実施形態においては、例えば、在庫金額をとらえる月末時点において、自動計算に基づいて前記在庫調整をできるようにした。言い換えると、月末時点において月末残員数×単位重量によって前記正確な在庫重量を自動計算し、前記概算の在庫重量との差を棚卸調整としてデータ登録できるようにした。具体的には、本実施形態においては、例えば、日々の取引の重量を集計した残重量(概算の残重量)と、月末残員数を基に算出した理論重量(正確な残重量)と、の差異を算出し、当該算出した差異を反映した払出明細を作成することで、前記概算の月末在庫重量を前記正確な月末在庫重量により在庫調整できるようにした。 Therefore, in the present embodiment, for example, at the end of the month when the inventory value is captured, the inventory adjustment can be performed based on automatic calculation. In other words, at the end of the month, the accurate inventory weight is automatically calculated by multiplying the number of remaining employees at the end of the month by the unit weight, and the difference from the approximate inventory weight can be registered as inventory adjustment data. Specifically, in the present embodiment, for example, the remaining weight (approximate remaining weight) obtained by aggregating the weight of daily transactions, and the theoretical weight (accurate remaining weight) calculated based on the number of employees remaining at the end of the month. By calculating the difference and creating a payout statement reflecting the calculated difference, the approximate end-of-month inventory weight can be adjusted with the accurate end-of-month inventory weight.
これにより、例えば、業務負荷および計算ミスのリスクを低減することができる。なお、前記在庫調整は、鉄鋼業界のみならず、木材および食肉等の不定貫の商品を扱う業界においても同様に求められる業務である。以下、具体的な構成および動作について説明する。 This can reduce, for example, the workload and the risk of miscalculation. Note that the inventory adjustment is a task that is required not only in the steel industry but also in industries that deal with irregular commodities such as wood and meat. Specific configurations and operations will be described below.
[2.構成]
本実施形態に係る差異重量算出装置100の構成の一例について、図1を参照して説明する。図1は、差異重量算出装置100の構成の一例を示すブロック図である。
[2. Constitution]
An example of the configuration of the difference
差異重量算出装置100は、市販のデスクトップ型パーソナルコンピュータである。なお、差異重量算出装置100は、デスクトップ型パーソナルコンピュータのような据置型情報処理装置に限らず、市販されているノート型パーソナルコンピュータ、PDA(Personal Digital Assistants)、スマートフォン、タブレット型パーソナルコンピュータなどの携帯型情報処理装置であってもよい。
The difference
差異重量算出装置100は、制御部102と通信インターフェース部104と記憶部106と入出力インターフェース部108と、を備えている。差異重量算出装置100が備えている各部は、任意の通信路を介して通信可能に接続されている。
The weight
通信インターフェース部104は、ルータ等の通信装置および専用線等の有線または無線の通信回線を介して、差異重量算出装置100をネットワーク300に通信可能に接続する。通信インターフェース部104は、他の装置と通信回線を介してデータを通信する機能を有する。ここで、ネットワーク300は、差異重量算出装置100とサーバ200とを相互に通信可能に接続する機能を有し、例えばインターネットやLAN(Local Area Network)等である。なお、後述する各種マスタ等のデータは、例えばサーバ200に格納されてもよい。
The
入出力インターフェース部108には、入力装置112および出力装置114が接続されている。出力装置114には、モニタ(家庭用テレビを含む)の他、スピーカやプリンタを用いることができる。入力装置112には、キーボード、マウス、及びマイクの他、マウスと協働してポインティングデバイス機能を実現するモニタを用いることができる。なお、以下では、出力装置114をモニタ114とし、入力装置112をキーボード112またはマウス112として記載する場合がある。
An
記憶部106には、各種のデータベース、テーブルおよびファイルなどが格納される。記憶部106には、OS(Operating System)と協働してCPU(Central Processing Unit)に命令を与えて各種処理を行うためのコンピュータプログラムが記録される。記憶部106として、例えば、RAM(Random Access Memory)・ROM(Read Only Memory)等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、および光ディスク等を用いることができる。 The storage unit 106 stores various databases, tables, files, and the like. The storage unit 106 stores a computer program for performing various processes by giving commands to a CPU (Central Processing Unit) in cooperation with an OS (Operating System). As the storage unit 106, for example, memory devices such as RAM (Random Access Memory) and ROM (Read Only Memory), fixed disk devices such as hard disks, flexible disks, and optical disks can be used.
記憶部106は、例えば、受払データ106aと、商品マスタ106bと、端数処理設定マスタ106cと、在庫データ106dと、移動データ106eと、を備えている。
The storage unit 106 includes, for example, receipt/
受払データ106aは、商品についての日々の受払(仕入、売上および移動等)の情報を管理するデータである。受払データ106aは、図4および図6に示すように、例えば、伝票番号と、同一伝票番号内での行番号と、前記商品の受払日と、データ区分と、倉庫を識別するための倉庫識別データ(倉庫コード)と、ロットを識別するためのロット識別データ(ロット番号)と、前記商品を識別するための商品識別データ(商品コード)と、前記商品についての受払した員数と、後述する明細毎整数重量算出部102bが算出する整数の重量(重量)と、等を有する明細データを含む。前記データ区分としては、例えば、仕入区分、売上区分および移動(出庫)区分等が挙げられる。前記商品、前記員数の単位および前記重量の単位の組合せは、特に制限されないが、例えば、図3に示す組合せが挙げられる。
The receipt/
商品マスタ106bは、前記商品毎の単位重量を管理するためのマスタである。商品マスタ106bは、図4に示すように、例えば、前記商品識別データ(商品コード)と、前記商品毎の単位重量と、等を含む。例えば、前記商品が鋼管であり、前記員数の単位が本であり、前記重量の単位がkgである場合、前記単位重量とは、前記鋼管1本あたりのキログラム数を意味する。
The
端数処理設定マスタ106cは、算出した重量の端数処理の設定するためのマスタである。端数処理設定マスタ106cは、図示しないが、例えば、小数点以下第何位に対して前記端数処理を行うかという情報と、前記端数処理の方法(例えば、四捨五入)と、等を含む。
The rounding
在庫データ106dは、所定の期間終了時点(例えば、月末時点)での前記商品毎の概算の在庫重量を管理するためのデータである。在庫データ106dは、図4に示すように、例えば、前記商品識別データ(商品コード)と、前記倉庫識別データ(倉庫コード)と、前記ロット識別データ(ロット番号)と、前記所定の期間終了時点での前記商品毎の員数と、前記所定の期間終了時点での前記商品毎の概算の在庫重量(重量)と、等を含む。
The
移動データ106eは、前記概算の在庫重量を前記正確な在庫重量により在庫調整行うためのデータである。移動データ106eは、図5に示すように、例えば、伝票番号と、同一伝票番号内での行番号と、前記商品の移動日と、移動(出庫)のデータ区分と、前記商品識別データ(商品コード)と、員数と、前記概算の在庫重量と前記正確な在庫重量の差異の重量(重量)と、等を含む。
The
制御部102は、差異重量算出装置100を統括的に制御するCPU等である。制御部102は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。
The control unit 102 is a CPU or the like that controls the difference
制御部102は、機能概念的に、例えば、(1)前記商品マスタから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する明細毎重量算出手段としての明細毎重量算出部102aと、(2)前記明細毎重量算出手段で算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する明細毎整数重量算出手段としての明細毎整数重量算出部102bと、(3)前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データを生成する概算在庫重量算出手段としての概算在庫重量算出部102cと、(4)前記受払日が前記所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する正確在庫重量算出手段としての正確在庫重量算出部102dと、(5)前記概算在庫重量算出手段で生成した前記在庫データ中の前記商品毎の概算の在庫重量と、前記正確在庫重量算出手段で算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する差異重量算出手段としての差異重量算出部102eと、(6)前記差異重量算出手段で算出した前記商品毎の差異の重量を有する明細データを前記受払データに追加することにより、前記受払データを更新する受払データ更新手段としての受払データ更新部102fと、(7)前記在庫データ中の前記商品毎の概算の在庫重量を、前記正確在庫重量算出手段で算出した前記商品毎の正確な在庫重量で上書きすることにより、前記在庫データを更新する在庫データ更新手段としての在庫データ更新部102gと、を備えている。なお、各部が実行する処理の内容については、以下の[3.処理の具体例]で具体的に説明する。 The control unit 102 functionally and conceptually, for example, (1) acquires the unit weight associated with the product identification data in the detailed data from the product master, and adds the acquired unit weight to the number of pieces in the detailed data. (2) the detail weight calculation unit 102a as weight calculation means for each detail, which calculates the received and paid weight of the product for each of the detail data by multiplying the weight by the weight; Integer for each detail as an integer weight calculation means for calculating an integer weight for each of the detail data by performing predetermined fraction processing on the weight for each data, and adding the calculated integer weight to the detail data and (3) a rough calculation for each product at the end of the predetermined period by aggregating the weight of the integer in the detailed data in which the date of receipt and payment belongs to the predetermined period for each product. (4) an approximate inventory weight calculation unit 102c as an approximate inventory weight calculation means for generating inventory data by calculating the inventory weight of each product and storing the calculated approximate inventory weight for each product; The number of pieces in the detailed data belonging to the predetermined period is aggregated for each product, and the unit weight in the product master linked to the product identification data for the product is added to the aggregated number of pieces for each product. Accurate inventory weight calculation as accurate inventory weight calculation means for calculating an accurate inventory weight for each product at the end of the predetermined period by calculating the multiplied value and performing the predetermined fraction processing on the value (5) an approximate inventory weight for each product in the inventory data generated by the approximate inventory weight calculation means, and an accurate inventory weight for each product calculated by the accurate inventory weight calculation means; (6) a difference weight calculation unit 102e as a difference weight calculation means for calculating the difference weight for each product; and (7) the approximate inventory weight of each product in the inventory data is calculated by the accurate inventory weight calculation means. and an inventory data updating unit 102g as inventory data updating means for updating the inventory data by overwriting with the calculated accurate inventory weight for each product. Details of the processing executed by each unit are described in [3. Specific example of processing].
[3.処理の具体例]
本項目では、本実施形態に係る処理の具体例を説明する。処理の流れの概要としては、図2に示すように、仕入入力および売上入力により受払データ106aが生成され、当該生成された受払データ106aおよび予め設定された商品マスタ106bに基づいて、月次仮締処理(重量再計算処理)が実行される。そして、図2に示すように、当該処理の結果を反映することで、在庫データ106dおよび移動データ106eの内容が更新される。
[3. Specific example of processing]
In this section, a specific example of processing according to this embodiment will be described. As an overview of the flow of processing, as shown in FIG. Temporary tightening processing (weight recalculation processing) is executed. Then, as shown in FIG. 2, the contents of the
本項目では、商品コードSH01100の商品および商品コードSH01200の商品のそれぞれについて、月末時点において、概算の在庫重量と正確な在庫重量の差異を求めるという場面を想定して説明をする。 In this section, we will explain assuming that the difference between the approximate inventory weight and the exact inventory weight at the end of the month is obtained for each of the product code SH01100 and the product code SH01200.
本項目における説明の前提として、月中の取引を示す受払データ106aは図4に示す内容で登録されているものとするが、受払データ106a中の重量(kg)は以下の[3-2]の処理により算出されるものであるため、処理開始時点ではブランクであるものとする。また、商品マスタ106bは、図4に示す内容で処理開始に先立って予め登録されているものとする。
As a premise for the explanation in this section, it is assumed that the receipt/
[3-1.明細毎重量算出処理]
明細毎重量算出部102aは、商品マスタ106bから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する。
[3-1. Weight calculation process for each item]
The itemized weight calculation unit 102a acquires the unit weight associated with the item identification data in the itemized data from the
具体的には、商品マスタ106bを参照すると、商品コードSH01100と紐づく単位重量は1.1kg/本であり、一方で、商品コードSH01200と紐づく単位重量も1.1kg/本である。このため、明細毎重量算出部102aは、
(1)伝票番号SI0001の行番号1の商品コードSH01100の明細データ(仕入明細)については、員数10本×単位重量1.1kg/本=重量11kgを算出し、
(2)伝票番号SI0001の行番号2の商品コードSH01200の明細データ(仕入明細)については、員数100本×単位重量1.1kg/本=重量110kgを算出し、
(3)伝票番号UR0001の行番号1の商品コードSH01100の明細データ(売上明細)については、員数-4本×単位重量1.1kg/本=重量-4.4kgを算出し、
(4)伝票番号UR0002の行番号1の商品コードSH01100の明細データ(売上明細)については、員数-4本×単位重量1.1kg/本=重量-4.4kgを算出し、
(5)伝票番号UR0003の行番号1の商品コードSH01100の明細データ(売上明細)については、員数-2本×単位重量1.1kg/本=重量-2.2kgを算出し、
(6)伝票番号UR0003の行番号2の商品コードSH01200の明細データ(売上明細)については、員数-4本×単位重量1.1kg/本=重量-4.4kgを算出し、
(7)伝票番号UR0004の行番号1の商品コードSH01200の明細データ(売上明細)については、員数-4本×単位重量1.1kg/本=重量-4.4kgを算出し、
(8)伝票番号UR0005の行番号1の商品コードSH01200の明細データ(売上明細)については、員数-4本×単位重量1.1kg/本=重量-4.4kgを算出する。
Specifically, referring to the
(1) For the detailed data (purchase details) of product code SH01100 on
(2) For the detail data (purchase details) of product code SH01200 in
(3) For the detailed data (sales details) of product code SH01100 on
(4) For the detailed data (sales details) of product code SH01100 on
(5) For the detailed data (sales details) of product code SH01100 on
(6) For the detailed data (sales details) of product code SH01200 on
(7) For the detailed data (sales details) of product code SH01200 on
(8) For the detailed data (sales details) of product code SH01200 on
[3-2.明細毎整数重量算出処理]
明細毎整数重量算出部102bは、明細毎重量算出部102aで算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する。
[3-2. Integer weight calculation process for each item]
The per-detailed integer weight calculation unit 102b calculates an integer weight for each of the detailed data by performing predetermined fraction processing on the weight of each of the detailed data calculated by the per-detailed weight calculation unit 102a, and calculates the weight of the integer to the detailed data.
具体的には、端数処理設定マスタ106cにおいて、小数点以下第1位に対して四捨五入を行うという端数処理が設定されているとすると、明細毎整数重量算出部102bは、
(1)伝票番号SI0001の行番号1の商品コードSH01100の明細データ(仕入明細)については、重量11kgは既に整数であるためこのまま当該明細データに追加し、
(2)伝票番号SI0001の行番号2の商品コードSH01200の明細データ(仕入明細)については、重量110kgは既に整数であるためこのまま当該明細データに追加し、
(3)伝票番号UR0001の行番号1の商品コードSH01100の明細データ(売上明細)については、重量-4.4kgの小数点以下第1位を四捨五入した整数の重量-4kg当該明細データに追加し、
(4)伝票番号UR0002の行番号1の商品コードSH01100の明細データ(売上明細)については、重量-4.4kgの小数点以下第1位を四捨五入した整数の重量-4kg当該明細データに追加し、
(5)伝票番号UR0003の行番号1の商品コードSH01100の明細データ(売上明細)については、重量-2.2kgの小数点以下第1位を四捨五入した整数の重量-2kg当該明細データに追加し、
(6)伝票番号UR0003の行番号2の商品コードSH01200の明細データ(売上明細)については、重量-4.4kgの小数点以下第1位を四捨五入した整数の重量-4kg当該明細データに追加し、
(7)伝票番号UR0004の行番号1の商品コードSH01200の明細データ(売上明細)については、重量-4.4kgの小数点以下第1位を四捨五入した整数の重量-4kg当該明細データに追加し、
(8)伝票番号UR0005の行番号1の商品コードSH01200の明細データ(売上明細)については、重量-4.4kgの小数点以下第1位を四捨五入した整数の重量-4kg当該明細データに追加する。
Specifically, in the rounding
(1) Regarding the detail data (purchase detail) of product code SH01100 on
(2) Regarding the detail data (purchase detail) of product code SH01200 on
(3) For the detail data (sales details) of product code SH01100 on
(4) For the detail data (sales details) of product code SH01100 on
(5) For the detailed data (sales details) of product code SH01100 on
(6) For the detail data (sales details) of product code SH01200 on
(7) For the detail data (sales details) of product code SH01200 on
(8) For the detail data (sales details) of product code SH01200 on
これにより、図4に示す受払データ106aが完成する。
As a result, the receipt/
[3-3.概算在庫重量算出処理]
概算在庫重量算出部102cは、前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データ106dを生成する。
[3-3. Approximate Inventory Weight Calculation Processing]
The approximate inventory weight calculation unit 102c aggregates the weight of the integer in the detailed data whose receipt/payment date belongs to a predetermined period for each product, thereby obtaining an approximate estimate for each product at the end of the predetermined period.
具体的には、前記所定の期間が2021/01/01~2021/01/31の期間であるとすると、[3-2]の(1)~(8)の前記明細データは、すべて、前記受払日が当該期間に属する。このため、概算在庫重量算出部102cは、SH01100の商品については、[3-2]の(1)、(3)、(4)および(5)の前記明細データ中の整数の重量を、11kg+(-4kg)+(-4kg)+(-2kg)=1kgと集計する。また、概算在庫重量算出部102cは、SH01200の商品については、[3-2]の(2)、(6)、(7)および(8)の前記明細データ中の整数の重量を、110kg+(-4kg)+(-4kg)+(-4kg)=98kgと集計する。 Specifically, if the predetermined period is the period from 2021/01/01 to 2021/01/31, the detailed data of (1) to (8) of [3-2] are all The payment date belongs to the period. For this reason, the approximate inventory weight calculation unit 102c calculates the weight of integers in the detailed data of (1), (3), (4) and (5) of [3-2] as 11 kg + (-4kg) + (-4kg) + (-2kg) = 1kg. In addition, the estimated inventory weight calculation unit 102c calculates the weight of the integers in the detailed data of (2), (6), (7) and (8) of [3-2] for the product SH01200 by adding 110 kg + ( -4kg) + (-4kg) + (-4kg) = 98kg.
このようにして、概算在庫重量算出部102cは、2021/01/31終了時点でのSH01100の商品についての概算の在庫重量を1kgと算出し、また、2021/01/31終了時点でのSH01200の商品についての概算の在庫重量を98kgと算出することができる。「概算」と表現したのは、当該算出した値が、[3-2]で前記明細データ毎に四捨五入をして求めた整数の重量を集計したものだからである。 In this way, the estimated inventory weight calculation unit 102c calculates the approximate inventory weight of SH01100 as of the end of January 31, 2021 to be 1 kg, and also calculates the approximate inventory weight of SH01200 as of the end of January 31, 2021. An approximate inventory weight for the product can be calculated as 98 kg. The reason why the expression “approximate” is used is that the calculated value is obtained by adding up the integer weight obtained by rounding off for each of the detailed data in [3-2].
そして、概算在庫重量算出部102cが、当該算出した2021/01/31終了時点での前記商品毎の概算の在庫重量を在庫データ106dに格納することで、図4に示す在庫データ106dが完成する。
Then, the estimated inventory weight calculation unit 102c stores the calculated approximate inventory weight of each product at the end of 2021/01/31 in the
[3-4.正確在庫重量算出処理]
正確在庫重量算出部102dは、前記受払日が所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する。
[3-4. Accurate Inventory Weight Calculation Processing]
The accurate inventory weight calculation unit 102d aggregates the quantity in the detailed data whose receipt/payment date belongs to a predetermined period for each product, and adds the product identification data for the product to the aggregated quantity for each product. A value obtained by multiplying the unit weight in the associated product master is calculated, and the predetermined fractional processing is performed on the value to calculate an accurate inventory weight for each product at the end of the predetermined period. .
具体的には、前記所定の期間が[3-3]で説明したように2021/01/01~2021/01/31の期間であるとすると、[3-2]の(1)~(8)の前記明細データは、すべて、前記受払日が当該期間に属する。このため、正確在庫重量算出部102dは、SH01100の商品については、[3-2]の(1)、(3)、(4)および(5)の前記明細データ中の員数(図4の受払データ106a参照)を、10本+(-4本)+(-4本)+(-2本)=0本と集計する。また、正確在庫重量算出部102dは、SH01200の商品については、[3-2]の(2)、(6)、(7)および(8)の前記明細データ中の員数(図4の受払データ106a参照)を、100本+(-4本)+(-4本)+(-4本)=88本と集計する。
Specifically, assuming that the predetermined period is the period from 01/01/2021 to 01/31/2021 as described in [3-3], (1) to (8) in [3-2] ), all the receipt/payment dates belong to the period. Therefore, for the SH01100 product, the accurate inventory weight calculation unit 102d calculates the number of items in the detailed data (1), (3), (4), and (5) of [3-2]
ここで、図4の商品マスタ106bにおいてSH01100と紐づく単位重量は1.1kg/本であるため、正確在庫重量算出部102dは、SH01100の商品について、前段落で集計した0本に当該単位重量1.1kgを乗じた値として0kgを算出する。また、図4の商品マスタ106bにおいてSH01200と紐づく単位重量は1.1kg/本であるため、正確在庫重量算出部102dは、SH01200の商品について、前段落で集計した88本に当該単位重量1.1kgを乗じた値として96.8kgを算出する。
Here, since the unit weight associated with SH01100 in the
そして、端数処理設定マスタ106cにおいて、[3-2]で説明したのと同様に、小数点以下第1位に対して四捨五入を行うという端数処理が設定されているとすると、正確在庫重量算出部102dは、以下のようにして2021/01/31終了時点での前記商品毎の正確な在庫重量を算出する。すなわち、正確在庫重量算出部102dは、前段落でSH01100の商品について算出した0kgは整数であるため、このまま0kgを正確な在庫重量として算出する。一方で、正確在庫重量算出部102dは、前段落でSH01200の商品について算出した96.8kgについては、小数点以下第1位を四捨五入した97kgを正確な在庫重量として算出する。
Then, in the rounding
[3-5.差異重量算出処理]
差異重量算出部102eは、概算在庫重量算出部102cで生成した在庫データ106d中の前記商品毎の概算の在庫重量と、正確在庫重量算出部102dで算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する。
[3-5. Difference weight calculation process]
The difference weight calculation unit 102e calculates the approximate inventory weight for each product in the
具体的には、[3-3]で説明したように前記商品毎の概算の在庫重量は図4の在庫データ106dに示すとおりであるが、この一部を抜き出したものを、図5の左の在庫データ106dとして示す。一方で、[3-4]で算出した前記商品毎の正確な在庫重量を、図5の右の在庫データ(単位重量から計算値)として示す。
Specifically, as described in [3-3], the approximate inventory weight of each product is shown in the
図5の前記左の在庫データに示すように、2021/01/31終了時点でのSH01100の商品についての概算の在庫重量は1kgであり、2021/01/31終了時点でのSH01200の商品についての概算の在庫重量は98kgである。図5の前記右の在庫データに示すように、2021/01/31終了時点でのSH01100の商品についての正確な在庫重量は0kgであり、2021/01/31終了時点でのSH01200の商品についての正確な在庫重量は97kgである。このため、差異重量算出部102eは、月末(1月末)の月次仮締処理時に、SH01100の商品についての差異の重量を-1kgと算出し、SH01200の商品についての差異の重量も-1kgと算出する。 As shown in the inventory data on the left side of Figure 5, the approximate inventory weight for SH01100 products as of the end of January 31, 2021 is 1 kg, and the approximate inventory weight for SH01200 products as of the end of January 31, 2021 is Approximate inventory weight is 98kg. As shown in the inventory data on the right in FIG. The exact stock weight is 97kg. Therefore, the difference weight calculation unit 102e calculates the difference weight of the product SH01100 as -1 kg, and the difference weight of the product SH01200 as -1 kg at the time of the monthly temporary closing process at the end of the month (the end of January). calculate.
そして、図5に示すように、当該算出された差異の重量を有する明細データ(移動明細)が格納された移動データ106eが生成される。
Then, as shown in FIG. 5,
[3-6.受払データ更新処理]
受払データ更新部102fは、差異重量算出部102eで算出した前記商品毎の差異の重量を有する明細データを受払データ106aに追加することにより、受払データ106aを更新する。
[3-6. Receipt/payment data update process]
The receipt/payment
具体的には、受払データ更新部102fは、月末(1月末)の月次仮締処理後に、[3-5]の最終段落で説明した前記明細データ(移動明細)を受払データ106aに追加することにより、受払データ106aを図6に示すように更新する。図6の受払データ106aにおいてハッチングを付した(9)および(10)で示す行が、前記追加された前記明細データ(移動明細)である。
Specifically, the receipt/payment
[3-7.在庫データ更新処理]
在庫データ更新部102gは、在庫データ106d中の前記商品毎の概算の在庫重量を、正確在庫重量算出部102dで算出した前記商品毎の正確な在庫重量で上書きすることにより、在庫データ106dを更新する。
[3-7. Inventory data update process]
The inventory data update unit 102g updates the
具体的には、在庫データ更新部102gは、月末(1月末)の月次仮締処理後に、図4の在庫データ106d中の前記商品毎の概算の在庫重量を、[3-4]において正確在庫重量算出部102dで算出した前記商品毎の正確な在庫重量で上書きすることにより、在庫データ106dを図6に示すように更新する。図6の在庫データ106dにおいてハッチングを付した数値が、前記上書きされた後の正確な在庫重量である。
Specifically, after the monthly provisional closing process at the end of the month (the end of January), the inventory data updating unit 102g corrects the estimated inventory weight of each product in the
[4.本実施形態のまとめ]
このように、本実施形態に係る差異重量算出装置100によれば、主に[3-1]~[3-5]で説明したように、概算の在庫重量を求めつつも、一方で、正確な在庫重量も求め、両重量の差異を算出することができる。また、本実施形態に係る差異重量算出装置100によれば、主に[3-6]および[3-7]で説明したように、当該算出した差異に基づいて、在庫調整を行うことができる。
[4. Summary of this embodiment]
As described above, according to the difference
[5.国連が主導する持続可能な開発目標(SDGs)への貢献]
本実施形態により、業務効率化や企業の適切な経営判断を推進することに寄与することができるので、SDGsの目標8及び9に貢献することが可能となる。
[5. Contribution to the Sustainable Development Goals (SDGs) led by the United Nations]
Since this embodiment can contribute to improving operational efficiency and promoting appropriate management decisions of companies, it is possible to contribute to
また、本実施形態により、廃棄ロス削減や、ペーパレス・電子化を推進することに寄与することができるので、SDGsの目標12、13及び15に貢献することが可能となる。 In addition, the present embodiment can contribute to the reduction of disposal loss and the promotion of paperless and computerization.
また、本実施形態により、統制、ガバナンス強化に寄与することができるので、SDGsの目標16に貢献することが可能となる。 In addition, since this embodiment can contribute to strengthening control and governance, it is possible to contribute to Goal 16 of the SDGs.
[6.他の実施形態]
本発明は、上述した実施形態以外にも、特許請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。
[6. Other embodiments]
The present invention may be implemented in various different embodiments other than the embodiments described above 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 manually performed, or all of the processes described as being manually performed Alternatively, some can be done automatically by known methods.
また、本明細書中や図面中で示した処理手順、制御手順、具体的名称、各処理の登録データや検索条件等のパラメータを含む情報、画面例、データベース構成については、特記する場合を除いて任意に変更することができる。 In addition, unless otherwise specified, the processing procedures, control procedures, specific names, information including parameters such as registration data and search conditions for each process, screen examples, and database configurations shown in this specification and drawings can be changed arbitrarily.
また、差異重量算出装置100に関して、図示の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。
Also, with respect to the weight
例えば、差異重量算出装置100が備える処理機能、特に制御部にて行われる各処理機能については、その全部または任意の一部を、CPUおよび当該CPUにて解釈実行されるプログラムにて実現してもよく、また、ワイヤードロジックによるハードウェアとして実現してもよい。尚、プログラムは、本実施形態で説明した処理を情報処理装置に実行させるためのプログラム化された命令を含む一時的でないコンピュータ読み取り可能な記録媒体に記録されており、必要に応じて差異重量算出装置100に機械的に読み取られる。すなわち、ROMまたはHDD(Hard Disk Drive)などの記憶部などには、OSと協働してCPUに命令を与え、各種処理を行うためのコンピュータプログラムが記録されている。このコンピュータプログラムは、RAMにロードされることによって実行され、CPUと協働して制御部を構成する。
For example, the processing functions of the weight
また、このコンピュータプログラムは、差異重量算出装置100に対して任意のネットワークを介して接続されたアプリケーションプログラムサーバに記憶されていてもよく、必要に応じてその全部または一部をダウンロードすることも可能である。
In addition, this computer program may be stored in an application program server connected to the weight
また、本実施形態で説明した処理を実行するためのプログラムを、一時的でないコンピュータ読み取り可能な記録媒体に格納してもよく、また、プログラム製品として構成することもできる。ここで、この「記録媒体」とは、メモリーカード、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等の任意の「可搬用の物理媒体」を含むものとする。 Also, the 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 term "recording medium" refers to memory cards, USB (Universal Serial Bus) memories, SD (Secure Digital) cards, flexible disks, magneto-optical disks, ROMs, EPROMs (Erasable Programmable Read Only Memory), EEPROMs (registered (trademark) (Electrically Erasable and Programmable Read Only Memory), CD-ROM (Compact Disk Read Only Memory), MO (Magneto-Optical disk), DVD (Digital Versatile Disk), and Disc (registered trademark) such as Blu- shall include any "portable physical medium".
また、「プログラム」とは、任意の言語または記述方法にて記述されたデータ処理方法であり、ソースコードまたはバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OSに代表される別個のプログラムと協働してその機能を達成するものをも含む。なお、実施形態に示した各装置において記録媒体を読み取るための具体的な構成および読み取り手順ならびに読み取り後のインストール手順等については、周知の構成や手順を用いることができる。 A "program" is a data processing method written in any language or writing method, regardless of the format such as source code or binary code. In addition, the "program" is not necessarily limited to a single configuration, but is distributed as multiple modules or libraries, or cooperates with a separate program represented by the OS to achieve its function. Including things. It should be noted that well-known configurations and procedures can be used for the specific configuration and reading procedure for reading the recording medium in each device shown in the embodiments, the installation procedure after reading, and the like.
記憶部に格納される各種のデータベース等は、RAM、ROM等のメモリ装置、ハードディスク等の固定ディスク装置、フレキシブルディスク、および、光ディスク等のストレージ手段であり、各種処理やウェブサイト提供に用いる各種のプログラム、テーブル、データベース、および、ウェブページ用ファイル等を格納する。 The various databases stored in the storage unit are storage means such as memory devices such as RAM and ROM, fixed disk devices such as hard disks, flexible disks, and optical disks. It stores programs, tables, databases, files for web pages, and so on.
また、差異重量算出装置100は、既知のパーソナルコンピュータまたはワークステーション等の情報処理装置として構成してもよく、また、任意の周辺装置が接続された当該情報処理装置として構成してもよい。また、差異重量算出装置100は、当該装置に本実施形態で説明した処理を実現させるソフトウェア(プログラムまたはデータ等を含む)を実装することにより実現してもよい。
Further, the difference
更に、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じてまたは機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。 Furthermore, the specific forms of distribution and integration of devices are not limited to those shown in the figures, and all or part of them can be functionally or physically arranged in arbitrary units according to various additions or functional loads. It can be distributed and integrated. In other words, the embodiments described above may be arbitrarily combined and implemented, or the embodiments may be implemented selectively.
本発明は、例えば、不定貫の商品を扱う業界において有用であり、特に、鉄鋼業界、建材業界および食品業界等においては極めて有用である。 INDUSTRIAL APPLICABILITY The present invention is useful, for example, in industries dealing with irregular commodities, and is particularly useful in the steel industry, building material industry, food industry, and the like.
100 差異重量算出装置
102 制御部
102a 明細毎重量算出部
102b 明細毎整数重量算出部
102c 概算在庫重量算出部
102d 正確在庫重量算出部
102e 差異重量算出部
102f 受払データ更新部
102g 在庫データ更新部
104 通信インターフェース部
106 記憶部
106a 受払データ
106b 商品マスタ
106c 端数処理設定マスタ
106d 在庫データ
106e 移動データ
108 入出力インターフェース部
112 入力装置
114 出力装置
200 サーバ
300 ネットワーク
100 weight difference calculation device 102 control unit
102a Weight calculation unit for each item
102b Integer weight calculation unit for each item
102c Approximate Inventory Weight Calculator
102d Accurate stock weight calculator
102e Difference weight calculator
102f Receipt/payment data update unit
102g inventory
106a receipt and payment data
106b Product master
106c Rounding setting master
106d Inventory data
106e moving data 108 input/
Claims (5)
前記記憶部には、
商品の受払日と、前記商品を識別するための商品識別データと、前記商品についての受払した員数と、を有する明細データを含む受払データと、
前記商品識別データと、前記商品毎の単位重量と、を含む商品マスタと、
が格納されており、
前記制御部は、
前記商品マスタから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する明細毎重量算出手段と、
前記明細毎重量算出手段で算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する明細毎整数重量算出手段と、
前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データを生成する概算在庫重量算出手段と、
前記受払日が前記所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する正確在庫重量算出手段と、
前記概算在庫重量算出手段で生成した前記在庫データ中の前記商品毎の概算の在庫重量と、前記正確在庫重量算出手段で算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する差異重量算出手段と、
を備えること、
を特徴とする差異重量算出装置。 A difference weight calculation device comprising a control unit and a storage unit,
The storage unit contains
Receipt and payment data including detailed data having the date of receipt and payment of the product, product identification data for identifying the product, and the number of received and paid items for the product;
a product master including the product identification data and the unit weight of each product;
is stored and
The control unit
The unit weight associated with the product identification data in the detailed data is acquired from the product master, and the received and paid weight of the product is obtained by multiplying the number of pieces in the detailed data by the acquired unit weight. Weight per detail calculation means for calculating each detail data;
An integer weight is calculated for each of the detailed data by performing predetermined fraction processing on the weight of each of the detailed data calculated by the weight of each detailed data calculation means, and the calculated integer weight is added to the detailed data. Integer weight calculation means for each item;
Calculating the approximate inventory weight of each product at the end of the predetermined period by totaling the weight of the integer in the detailed data whose receipt and payment date belongs to the predetermined period for each product, and calculating an approximate inventory weight calculation means for generating inventory data by storing an approximate inventory weight for each product;
The quantity in the detailed data whose receipt and payment date belongs to the predetermined period is aggregated for each product, and the quantity in the product master linked to the product identification data for the product is added to the aggregated quantity for each product. Accurate inventory weight calculation means for calculating an accurate inventory weight for each product at the end of the predetermined period by calculating a value obtained by multiplying the unit weight and performing the predetermined fraction processing on the value;
The weight of the difference between the approximate inventory weight of each product in the inventory data generated by the approximate inventory weight calculation means and the accurate inventory weight of each product calculated by the accurate inventory weight calculation means is calculated as the weight of the product. a difference weight calculation means for calculating each
to provide
A difference weight calculation device characterized by:
前記差異重量算出手段で算出した前記商品毎の差異の重量を有する明細データを前記受払データに追加することにより、前記受払データを更新する受払データ更新手段
を更に備えること、
を特徴とする請求項1に記載の差異重量算出装置。 The control unit
further comprising receipt and payment data update means for updating the receipt and payment data by adding detailed data having the difference weight for each product calculated by the difference weight calculation means to the receipt and payment data;
The difference weight calculation device according to claim 1, characterized by:
前記在庫データ中の前記商品毎の概算の在庫重量を、前記正確在庫重量算出手段で算出した前記商品毎の正確な在庫重量で上書きすることにより、前記在庫データを更新する在庫データ更新手段
を更に備えること、
を特徴とする請求項1または2に記載の差異重量算出装置。 The control unit
inventory data updating means for updating the inventory data by overwriting the approximate inventory weight for each product in the inventory data with the accurate inventory weight for each product calculated by the accurate inventory weight calculating means; be prepared,
The difference weight calculation device according to claim 1 or 2, characterized by:
前記記憶部には、
商品の受払日と、前記商品を識別するための商品識別データと、前記商品についての受払した員数と、を有する明細データを含む受払データと、
前記商品識別データと、前記商品毎の単位重量と、を含む商品マスタと、
が格納されており、
前記制御部で実行される、
前記商品マスタから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する明細毎重量算出ステップと、
前記明細毎重量算出ステップで算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する明細毎整数重量算出ステップと、
前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データを生成する概算在庫重量算出ステップと、
前記受払日が前記所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する正確在庫重量算出ステップと、
前記概算在庫重量算出ステップで生成した前記在庫データ中の前記商品毎の概算の在庫重量と、前記正確在庫重量算出ステップで算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する差異重量算出ステップと、
を含むこと、
を特徴とする差異重量算出方法。 A difference weight calculation method executed by an information processing device comprising a control unit and a storage unit,
The storage unit contains
Receipt and payment data including detailed data having the date of receipt and payment of the product, product identification data for identifying the product, and the number of received and paid items for the product;
a product master including the product identification data and the unit weight of each product;
is stored and
executed by the control unit;
The unit weight associated with the product identification data in the detailed data is acquired from the product master, and the received and paid weight of the product is obtained by multiplying the number of pieces in the detailed data by the acquired unit weight. A weight calculation step for each detail, which is calculated for each detail data;
An integer weight is calculated for each of the detailed data by performing predetermined fraction processing on the weight of each of the detailed data calculated in the step of calculating the weight of each detailed item, and the calculated integer weight is added to the detailed data. an integer weight calculation step for each item;
Calculating the approximate inventory weight of each product at the end of the predetermined period by totaling the weight of the integer in the detailed data whose receipt and payment date belongs to the predetermined period for each product, and calculating an approximate inventory weight calculation step of generating inventory data by storing an approximate inventory weight for each of the products;
The quantity in the detailed data whose receipt and payment date belongs to the predetermined period is aggregated for each product, and the quantity in the product master linked to the product identification data for the product is added to the aggregated quantity for each product. an accurate inventory weight calculation step of calculating an accurate inventory weight of each product at the end of the predetermined period by calculating a value obtained by multiplying the unit weight and performing the predetermined fraction processing on the value;
The weight of the difference between the approximate inventory weight for each product in the inventory data generated in the approximate inventory weight calculation step and the accurate inventory weight for each product calculated in the accurate inventory weight calculation step is calculated for the product. a difference weight calculation step for calculating each
including
A difference weight calculation method characterized by:
前記記憶部には、
商品の受払日と、前記商品を識別するための商品識別データと、前記商品についての受払した員数と、を有する明細データを含む受払データと、
前記商品識別データと、前記商品毎の単位重量と、を含む商品マスタと、
が格納されており、
前記制御部に実行させるための、
前記商品マスタから、前記明細データ中の前記商品識別データと紐づく単位重量を取得し、前記明細データ中の前記員数に当該取得した単位重量を乗じることにより、前記商品についての受払した重量を前記明細データ毎に算出する明細毎重量算出ステップと、
前記明細毎重量算出ステップで算出した前記明細データ毎の重量について所定の端数処理を行うことにより、整数の重量を前記明細データ毎に算出し、当該算出した整数の重量を前記明細データに追加する明細毎整数重量算出ステップと、
前記受払日が所定の期間に属する前記明細データ中の前記整数の重量を前記商品毎に集計することにより、前記所定の期間終了時点での前記商品毎の概算の在庫重量を算出し、当該算出した前記商品毎の概算の在庫重量を格納することにより在庫データを生成する概算在庫重量算出ステップと、
前記受払日が前記所定の期間に属する前記明細データ中の前記員数を前記商品毎に集計し、当該集計した前記商品毎の員数に当該商品についての前記商品識別データと紐づく前記商品マスタ中の前記単位重量を乗じた値を算出し、当該値について前記所定の端数処理を行うことにより、前記所定の期間終了時点での前記商品毎の正確な在庫重量を算出する正確在庫重量算出ステップと、
前記概算在庫重量算出ステップで生成した前記在庫データ中の前記商品毎の概算の在庫重量と、前記正確在庫重量算出ステップで算出した前記商品毎の正確な在庫重量と、の差異の重量を前記商品毎に算出する差異重量算出ステップと、
を含むこと、
を特徴とする差異重量算出プログラム。 A difference weight calculation program to be executed by an information processing device comprising a control unit and a storage unit,
The storage unit contains
Receipt and payment data including detailed data having the date of receipt and payment of the product, product identification data for identifying the product, and the number of received and paid items for the product;
a product master including the product identification data and the unit weight of each product;
is stored and
for causing the control unit to execute
The unit weight associated with the product identification data in the detailed data is acquired from the product master, and the received and paid weight of the product is obtained by multiplying the number of pieces in the detailed data by the acquired unit weight. A weight calculation step for each detail, which is calculated for each detail data;
An integer weight is calculated for each of the detailed data by performing predetermined fraction processing on the weight of each of the detailed data calculated in the step of calculating the weight of each detailed item, and the calculated integer weight is added to the detailed data. an integer weight calculation step for each item;
Calculating the approximate inventory weight of each product at the end of the predetermined period by totaling the weight of the integer in the detailed data whose receipt and payment date belongs to the predetermined period for each product, and calculating an approximate inventory weight calculation step of generating inventory data by storing an approximate inventory weight for each of the products;
The quantity in the detailed data whose receipt and payment dates belong to the predetermined period is aggregated for each product, and the quantity in the product master linked to the product identification data for the product is added to the aggregated quantity for each product. an accurate inventory weight calculation step of calculating an accurate inventory weight for each product at the end of the predetermined period by calculating a value obtained by multiplying the unit weight and performing the predetermined fraction processing on the value;
The weight of the difference between the approximate inventory weight for each product in the inventory data generated in the approximate inventory weight calculation step and the accurate inventory weight for each product calculated in the accurate inventory weight calculation step is calculated for the product. a difference weight calculation step for calculating each
including
A difference weight calculation program characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021055847A JP2022152905A (en) | 2021-03-29 | 2021-03-29 | Weight difference calculating apparatus, weight difference calculating method, and weight difference calculating program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021055847A JP2022152905A (en) | 2021-03-29 | 2021-03-29 | Weight difference calculating apparatus, weight difference calculating method, and weight difference calculating program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2022152905A true JP2022152905A (en) | 2022-10-12 |
Family
ID=83556326
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2021055847A Pending JP2022152905A (en) | 2021-03-29 | 2021-03-29 | Weight difference calculating apparatus, weight difference calculating method, and weight difference calculating program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2022152905A (en) |
-
2021
- 2021-03-29 JP JP2021055847A patent/JP2022152905A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6997830B2 (en) | Cost control equipment, cost control methods, and cost control programs | |
JP2020052742A (en) | Inventory breakdown information creation device, inventory breakdown information creation method, and inventory breakdown information creation program | |
JP7481541B2 (en) | Information generating device, information generating program, and information generating method | |
JP7389875B2 (en) | Inventory value adjustment device, inventory value adjustment method, and inventory value adjustment program | |
JP6824022B2 (en) | Storage fee calculation device, storage fee calculation method and storage fee calculation program | |
JP2022152905A (en) | Weight difference calculating apparatus, weight difference calculating method, and weight difference calculating program | |
JP2018139053A (en) | Amount data generation device, amount data generation method and amount data generation program | |
JP6975025B2 (en) | Currency conversion device, currency conversion method and currency conversion program | |
JP2021093070A (en) | Device, method, and program for calculating estimated progress rate | |
JP7291088B2 (en) | Slip Closing Support Device, Slip Closing Support Method, and Slip Closing Support Program | |
JP7194063B2 (en) | Journal writing device, journal writing method and journal writing program | |
JP7324345B2 (en) | Foreign currency conversion device, foreign currency conversion method and foreign currency conversion program | |
JP7412315B2 (en) | Cost accounting device, cost accounting method, and cost accounting program | |
JP2022117005A (en) | Budget data generation apparatus, budget data generation method, and budget data generation program | |
JP2018147322A (en) | Payment fare calculation device, payment fare calculation method, and payment fare calculation program | |
JP7107664B2 (en) | Foreign currency conversion device, foreign currency conversion method and foreign currency conversion program | |
JP7117172B2 (en) | Inventory control device, inventory control method, and inventory control program | |
JP7199805B2 (en) | Foreign currency conversion device, foreign currency conversion method and foreign currency conversion program | |
JP2022182297A (en) | Order reception management apparatus, order reception management method, and order reception management program | |
JP7157563B2 (en) | Amount calculation device, amount calculation method, and amount calculation program | |
JP2018112988A (en) | Journaling preparation device, journaling preparation method, and journaling preparation program | |
JP2022170592A (en) | Device, method, and program for managing fuel sales unit price | |
JP2023114380A (en) | Purchase management system, method for managing purchase, and purchase management program | |
JP2022134653A (en) | Unit price calculation device, unit price calculation method, and unit price calculation program | |
JP2022119994A (en) | Unit price calculation apparatus, unit price calculation method, and unit price calculation program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230914 |