JP7310143B2 - Information processing device and program - Google Patents

Information processing device and program Download PDF

Info

Publication number
JP7310143B2
JP7310143B2 JP2019001559A JP2019001559A JP7310143B2 JP 7310143 B2 JP7310143 B2 JP 7310143B2 JP 2019001559 A JP2019001559 A JP 2019001559A JP 2019001559 A JP2019001559 A JP 2019001559A JP 7310143 B2 JP7310143 B2 JP 7310143B2
Authority
JP
Japan
Prior art keywords
product
products
information
set product
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019001559A
Other languages
Japanese (ja)
Other versions
JP2020112898A (en
Inventor
弘悦 小野寺
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2019001559A priority Critical patent/JP7310143B2/en
Publication of JP2020112898A publication Critical patent/JP2020112898A/en
Application granted granted Critical
Publication of JP7310143B2 publication Critical patent/JP7310143B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

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

Description

本発明は、情報処理装置及びプログラムに関する。 The present invention relates to an information processing apparatus and program.

従来、在庫の商品の消費期限や使用期限といった各種期限を記憶して管理する情報処理装置がある(例えば、特許文献1)。このような情報処理装置を用いた商品の販売業務では、余剰在庫を削減したい場合などにおいて、複数種類の商品の組み合わせからなるセット商品を構成して、セット商品の単位で商品を販売する場合がある。 2. Description of the Related Art Conventionally, there is an information processing apparatus that stores and manages various expiration dates such as expiration dates and expiration dates of products in stock (for example, Patent Document 1). In a product sales business using such an information processing device, when it is desired to reduce surplus inventory, there are cases in which a product set consisting of a combination of multiple types of products is configured and products are sold in units of the product set. be.

特開2014-174791号公報JP 2014-174791 A

しかしながら、上記の情報処理装置により管理されている期限を参照して、期限までの期間が短い商品から順に選択してセット商品を構成すると、セット商品を構成する複数の商品の期限のばらつきが大きくなって、購買者にとって扱いにくいものとなり、セット商品の価値が低くなってしまう場合があるという課題がある。 However, if a set of products is configured by selecting products in order from the shortest period until the deadline by referring to the deadlines managed by the information processing device, the deadlines of the multiple products that make up the set product vary greatly. As a result, it becomes difficult for the purchaser to handle, and there is a problem that the value of the set product may be lowered.

この発明の目的は、構成商品の期限のばらつきを抑えつつ容易にセット商品を作成することができる情報処理装置及びプログラムを提供することにある。 SUMMARY OF THE INVENTION It is an object of the present invention to provide an information processing apparatus and a program capable of easily creating set products while suppressing variations in the expiration dates of component products.

上記課題を解決するため、本発明の情報処理装置は、
複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品情報と、
前記複数種類の商品の各々に係る在庫数量情報と、
前記複数種類の商品の各々に対して設定されている所定の期限に係る期限情報と、
に基づいて、在庫の商品の組み合わせにより前記セット商品を作成する場合における、前記セット商品に組み入れる各商品が特定されたセット商品構成情報を生成する情報生成手段と、
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段と、
を備え、
前記情報生成手段は、前記第2の入力操作により指定された数の前記セット商品を構成可能な商品の組み合わせ方であって、当該セット商品を構成する各商品の前記期限間の最大範囲が基準範囲内となるような商品の組み合わせ方のうち、当該最大範囲が最小となるような商品の組み合わせ方に基づいて前記セット商品構成情報を生成することを特徴とする
In order to solve the above problems, the information processing device of the present invention includes:
Set product information specifying the component quantity for each product type in a set product consisting of a combination of multiple types of products;
Inventory quantity information for each of the plurality of types of products;
Expiration information related to a predetermined expiration date set for each of the plurality of types of products;
information generating means for generating set product configuration information specifying each product to be incorporated into the set product when creating the set product by combining the products in stock based on ;
a second input means for receiving a second input operation for designating the number of set products to be created;
with
The information generating means provides a method of combining products capable of forming the number of set products specified by the second input operation, wherein the maximum range between the term of each product constituting the set product is used as a reference. The set product configuration information is generated based on a combination of products that minimizes the maximum range, among combinations of products that fall within the range.

本発明によれば、構成商品の期限のばらつきを抑えつつ容易にセット商品を作成することができる。 ADVANTAGE OF THE INVENTION According to this invention, set goods can be easily produced, suppressing the variation in the expiration date of a component product.

販売管理装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of a sales management apparatus. 商品テーブルの内容例を示す図である。It is a figure which shows the example of the content of a goods table. 商品登録画面の例を示す図である。It is a figure which shows the example of a goods registration screen. セット商品テーブルの内容例を示す図である。It is a figure which shows the example of the content of a set goods table. 構成商品テーブルの内容例を示す図である。It is a figure which shows the example of the content of a component product table. セット商品登録画面の例を示す図である。It is a figure which shows the example of a set goods registration screen. ロット管理テーブルの内容例を示す図である。It is a figure which shows the example of the content of a lot management table. ロット情報登録画面の例を示す図である。It is a figure which shows the example of a lot information registration screen. セット商品作成処理の制御手順を示すフローチャートである。10 is a flowchart showing a control procedure of set product creation processing; セット商品作成画面の例を示す図である。It is a figure which shows the example of a set goods creation screen. セット商品構成特定処理の制御手順を示すフローチャートである。FIG. 10 is a flowchart showing a control procedure of set product configuration identification processing; FIG. セット商品構成特定処理の制御手順を示すフローチャートである。FIG. 10 is a flowchart showing a control procedure of set product configuration identification processing; FIG. 構成商品候補リストの内容例を示す図である。It is a figure which shows the example of the content of a component goods candidate list. セット商品構成特定処理の終了時点における構成商品候補リストの内容例を示す図である。FIG. 10 is a diagram showing an example of the contents of a component product candidate list at the end of set product configuration identification processing; セット商品構成データの内容例を示す図である。It is a figure which shows the example of the content of set goods structure data. 指示書出力処理の制御手順を示すフローチャートである。FIG. 10 is a flowchart showing a control procedure of instruction sheet output processing; FIG. セット商品作成指示書の内容例を示す図である。It is a figure which shows the example of the content of set goods preparation instructions. 構成商品候補リストの内容を反映させた後のロット管理テーブルの内容例を示す図である。FIG. 11 is a diagram showing an example of contents of a lot management table after reflecting the contents of a constituent product candidate list; 結果表示画面の例を示す図である。It is a figure which shows the example of a result display screen. 第2の実施形態に係るセット商品作成処理の制御手順を示すフローチャートである。10 is a flowchart showing a control procedure of set product creation processing according to the second embodiment; 第2の実施形態に係る指示書出力処理の制御手順を示すフローチャートである。10 is a flowchart showing a control procedure of instruction output processing according to the second embodiment; 第3の実施形態に係るセット商品作成処理の制御手順を示すフローチャートである。FIG. 11 is a flow chart showing a control procedure of set product creation processing according to the third embodiment; FIG. 第3の実施形態に係る指示書出力処理の制御手順を示すフローチャートである。FIG. 11 is a flow chart showing a control procedure of instruction output processing according to the third embodiment; FIG. 第4の実施形態に係るセット商品作成処理の制御手順を示すフローチャートである。FIG. 14 is a flowchart showing a control procedure of set product creation processing according to the fourth embodiment; FIG.

以下、本発明の情報処理装置及びプログラムに係る実施の形態を図面に基づいて説明する。 Embodiments of an information processing apparatus and a program according to the present invention will be described below with reference to the drawings.

(第1の実施形態)
図1は、第1の実施形態の販売管理装置1の機能的構成を示すブロック図である。
販売管理装置1(情報処理装置)は、商品の販売管理業務を行う者が使用する端末装置である。販売管理装置1は、例えば、ノートPC(Personal Computer)、デスクトップPC、スマートフォン、タブレット型端末などである。
(First embodiment)
FIG. 1 is a block diagram showing the functional configuration of the sales management device 1 of the first embodiment.
The sales management device 1 (information processing device) is a terminal device used by a person who performs product sales management work. The sales management device 1 is, for example, a notebook PC (Personal Computer), a desktop PC, a smart phone, a tablet terminal, or the like.

販売管理装置1は、商品に関する各種データを記憶し、商品の売上、仕入及び在庫などに関する複数の業務について、データの集計や帳票の印刷などの所定の処理を実行することで、商品の販売管理業務を支援する。販売管理装置1で管理される商品のデータは、例えば、商品のロットごとの在庫数量、商品に対してロットごとに設定されている期限などがある。
本実施形態では、商品としての食品を消費者に販売する小売業における販売管理を例に挙げて説明する。
The sales management device 1 stores various data related to products, and performs predetermined processing such as tabulation of data and printing of forms for a plurality of tasks related to product sales, purchases, inventories, etc., thereby managing product sales. Assist with administrative tasks. The product data managed by the sales management apparatus 1 includes, for example, the quantity of products in stock for each lot and the deadline set for each product lot.
In this embodiment, sales management in a retail business that sells food products to consumers will be described as an example.

上述したとおり、商品の販売管理業務では、複数種類の商品の組み合わせからなるセット商品が作成されてセット商品を単位として商品が販売されることがある。このような業務に対応するため、本実施形態の販売管理装置1は、ユーザにより指定された条件でセット商品を作成するセット商品作成処理を行うことができる。セット商品作成処理では、在庫の商品の組み合わせによりセット商品を作成する場合における、セット商品に組み入れる商品のロットが特定されたセット商品構成情報が生成される。また、販売管理装置1は、このセット商品構成情報の内容を含むセット商品作成指示書30(図17)を出力する機能も有している。ユーザは、セット商品作成指示書30で指示されているロットの商品を組み合わせることで、容易に所望した条件のセット商品を構成することができる。
セット商品作成処理の詳細については、後に詳述する。
As described above, in the product sales management business, there are cases where a set product is created by combining a plurality of types of products, and the product is sold in units of the set product. In order to cope with such business, the sales management device 1 of the present embodiment can perform set product creation processing for creating set products under conditions specified by the user. In the set product creation process, when creating a set product by combining products in stock, set product configuration information is generated that identifies the lot of products to be incorporated into the set product. The sales management apparatus 1 also has a function of outputting a set product creation instruction sheet 30 (FIG. 17) including the content of the set product configuration information. The user can easily compose a set of products with desired conditions by combining the products of the lot specified in the set product creation instruction sheet 30 .
Details of the set product creation process will be described later.

販売管理装置1は、CPU11(Central Processing Unit)と、RAM12(Random Access Memory)と、記憶部13と、操作部14と、表示部15と、通信部16と、バス17などを備えている。販売管理装置1の各部は、バス17を介して接続されている。 The sales management device 1 includes a CPU 11 (Central Processing Unit), a RAM 12 (Random Access Memory), a storage section 13, an operation section 14, a display section 15, a communication section 16, a bus 17, and the like. Each part of the sales management device 1 is connected via a bus 17 .

CPU11は、販売管理装置1の各部を制御するプロセッサである。CPU11は、記憶部13に記憶されているシステムプログラム及びアプリケーションプログラムのうち、指定されたプログラムを読み出してRAM12に展開し、当該プログラムに従って各種処理を実行する。当該処理を実行することで、CPU11は、情報生成手段、第1の入力手段、第2の入力手段及び提示手段として機能する。 The CPU 11 is a processor that controls each part of the sales management device 1 . The CPU 11 reads a designated program from among the system program and the application program stored in the storage unit 13, develops it in the RAM 12, and executes various processes according to the program. By executing the processing, the CPU 11 functions as information generation means, first input means, second input means, and presentation means.

RAM12は、例えば、揮発性のメモリであり、CPU11により読み出された各種のプログラムやデータを一時的に格納するワークエリアを有する。RAM12に一時的に格納されるデータとしては、後述するセット商品作成処理において生成される構成商品候補リスト121(図13、図14)及びセット商品構成データ122(図15)などがある。このうちセット商品構成データ122に含まれる情報が、上述のセット商品構成情報に相当する。 The RAM 12 is, for example, a volatile memory, and has a work area for temporarily storing various programs and data read by the CPU 11 . The data temporarily stored in the RAM 12 include a candidate list of component products 121 (FIGS. 13 and 14) and set product configuration data 122 (FIG. 15) generated in the set product creation process to be described later. Among them, the information included in the set product configuration data 122 corresponds to the set product configuration information described above.

記憶部13は、HDD(Hard Disk Drive)、SSD(Solid State Drive)といった、データの書き込み及び読み出しが可能な記憶装置を備え、各種のプログラムやデータを含むファイル等を記憶する。記憶部13に記憶されるデータとしては、管理対象の商品の名称や単価の情報を含む商品テーブル131、セット商品の名称や単価の情報を含むセット商品テーブル132、セット商品を構成する商品の種類ごとの数量(構成数量)の情報を含む構成商品テーブル133、商品のロットごとの在庫数量の情報、及び商品に対してロットごとに設定されている期限(本実施形態では消費期限)に係る情報を含むロット管理テーブル134などがある。また、記憶部13には、販売管理装置1によりセット商品作成処理を実行させるためのセット商品作成プログラム135が記憶されている。
上記のうちセット商品テーブル132及び構成商品テーブル133に含まれる情報が「セット商品情報」に対応し、ロット管理テーブル134に含まれる情報が「在庫数量情報」及び「期限情報」に対応する。
The storage unit 13 includes a data writable and readable storage device such as a HDD (Hard Disk Drive) and an SSD (Solid State Drive), and stores files including various programs and data. The data stored in the storage unit 13 includes a product table 131 containing information on the names and unit prices of products to be managed, a set product table 132 containing information on the names and unit prices of set products, and the types of products that make up the set products. The component product table 133 including information on the quantity (component quantity) for each product, information on the inventory quantity for each product lot, and information on the expiration date (in this embodiment, the expiration date) set for each product lot. There is a lot management table 134 including The storage unit 13 also stores a set product creation program 135 for causing the sales management apparatus 1 to execute set product creation processing.
Among the above, the information contained in the set product table 132 and the constituent product table 133 corresponds to "set product information", and the information contained in the lot management table 134 corresponds to "inventory quantity information" and "expiration date information".

図2は、商品テーブル131の内容例を示す図である。
商品テーブル131は、商品の種類ごとに、商品コード、商品名及び単価が対応付けられて記憶されたテーブルデータである。図2の例では、「商品a」~「商品d」に対してそれぞれ商品コード「00001」~「00004」が対応付けられて登録されている。商品テーブル131に含まれるデータは、表示部15に所定の商品登録画面21が表示された状態でユーザが操作部14を用いて情報入力を行うことで商品テーブル131に追加登録される。
FIG. 2 is a diagram showing an example of the contents of the product table 131. As shown in FIG.
The product table 131 is table data in which product codes, product names, and unit prices are associated with each product type. In the example of FIG. 2, product codes "00001" to "00004" are registered in association with "product a" to "product d", respectively. Data included in the product table 131 is additionally registered in the product table 131 by the user inputting information using the operation unit 14 while the predetermined product registration screen 21 is displayed on the display unit 15 .

図3は、商品登録画面21の例を示す図である。
商品登録画面21では、商品コード入力領域211、商品名入力領域212、及び単価入力領域213が設けられている。これらの各領域に必要な情報が入力された状態で登録ボタン214を選択する入力操作がなされると、商品テーブル131に商品のデータが追加登録される。終了ボタン215を選択する入力操作がなされると、商品登録画面21が閉じられて情報入力が終了する。
FIG. 3 is a diagram showing an example of the product registration screen 21. As shown in FIG.
The product registration screen 21 is provided with a product code input area 211 , a product name input area 212 and a unit price input area 213 . When the input operation of selecting the registration button 214 is performed with the necessary information entered in each of these areas, the product data is additionally registered in the product table 131 . When the input operation to select the end button 215 is performed, the product registration screen 21 is closed and the information input is completed.

図4は、セット商品テーブル132の内容例を示す図である。
セット商品テーブル132は、セット商品の種類ごとに、セット商品コード、セット商品名及び単価が対応付けられて記憶されたテーブルデータである。図4の例では、「セット商品A」、「セット商品B」に対してそれぞれセット商品コード「S0001」、「S0002」が対応付けられて登録されている。
FIG. 4 is a diagram showing an example of the contents of the set product table 132. As shown in FIG.
The set product table 132 is table data in which a set product code, a set product name, and a unit price are associated and stored for each type of set product. In the example of FIG. 4, set product codes "S0001" and "S0002" are registered in association with "set product A" and "set product B", respectively.

図5は、構成商品テーブル133の内容例を示す図である。
構成商品テーブル133は、セット商品コード、当該セット商品コードに対応するセット商品を構成する商品の商品コード、及びセット商品における当該商品の数量が対応付けられて記憶されたテーブルデータである。図5の例では、セット商品A(セット商品コード:S0001)が、1つの商品a(商品コード:00001)と、2つの商品b(商品コード:00002)との組み合わせからなることが示されている。本実施形態では、各セット商品は2種類の商品の組み合わせからなるが、セット商品が3種類以上の商品の組み合わせからなる場合には、構成商品テーブル133において当該セット商品に対応するデータ行が3行以上設けられることとなる。
FIG. 5 is a diagram showing an example of the contents of the component product table 133. As shown in FIG.
The component product table 133 is table data in which a set product code, product codes of products constituting a set product corresponding to the set product code, and the quantity of the product in the set product are associated and stored. In the example of FIG. 5, it is shown that set product A (set product code: S0001) is a combination of one product a (product code: 00001) and two products b (product code: 00002). there is In this embodiment, each product set consists of a combination of two types of products. More than one line will be provided.

セット商品テーブル132及び構成商品テーブル133に含まれるデータは、表示部15に所定のセット商品登録画面22が表示された状態でユーザが操作部14を用いて情報入力を行うことで商品テーブル131に追加登録される。 The data contained in the set product table 132 and the component product table 133 are stored in the product table 131 by the user inputting information using the operation unit 14 while the predetermined product set registration screen 22 is displayed on the display unit 15. be additionally registered.

図6は、セット商品登録画面22の例を示す図である。
セット商品登録画面22では、セット商品コード入力領域221、セット商品名入力領域222、単価入力領域223、及び構成商品入力領域224が設けられている。これらの各領域に必要な情報が入力された状態で登録ボタン225を選択する入力操作がなされると、セット商品テーブル132及び構成商品テーブル133に、それぞれセット商品のデータ及び構成商品のデータが追加登録される。終了ボタン226を選択する入力操作がなされると、セット商品登録画面22が閉じられて情報入力が終了する。
FIG. 6 is a diagram showing an example of the set product registration screen 22. As shown in FIG.
The set product registration screen 22 is provided with a set product code input area 221 , a set product name input area 222 , a unit price input area 223 , and a component product input area 224 . When the input operation to select the registration button 225 is performed with the necessary information entered in each of these areas, the set product data and the component product data are added to the set product table 132 and the component product table 133, respectively. be registered. When the input operation to select the end button 226 is performed, the set product registration screen 22 is closed and the information input is completed.

図7は、ロット管理テーブル134の内容例を示す図である。
食品の流通販売では、同一種類の商品であっても製造日が異なるもの(したがって、消費期限が異なるもの)は、異なるロットに区分けされて別個に管理される。本実施形態においてロットとは、同一種類の商品であって製造日が同じであるものの集まりをいう。
ロット管理テーブル134では、商品の各ロットに係る情報が管理されている。具体的には、ロット管理テーブル134は、商品のロットごとに、商品コード、ロット番号、消費期限及び在庫数が対応付けられて記憶されたテーブルデータである。ロット管理テーブル134に含まれるデータは、表示部15に所定のロット情報登録画面23が表示された状態でユーザが操作部14を用いて情報入力を行うことで商品テーブル131に追加登録される。
FIG. 7 is a diagram showing an example of contents of the lot management table 134. As shown in FIG.
In distribution and sales of food products, products of the same type but having different manufacturing dates (thus, products having different expiry dates) are sorted into different lots and managed separately. In this embodiment, a lot refers to a collection of products of the same type and having the same date of manufacture.
The lot management table 134 manages information related to each lot of products. Specifically, the lot management table 134 is table data in which a product code, a lot number, an expiration date, and an inventory quantity are associated with each product lot and stored. Data included in the lot management table 134 is additionally registered in the product table 131 by the user inputting information using the operation unit 14 while the predetermined lot information registration screen 23 is displayed on the display unit 15 .

図8は、ロット情報登録画面23の例を示す図である。
ロット情報登録画面23では、商品コード入力領域231、商品名入力領域232、ロット番号入力領域233及び消費期限入力領域234が設けられている。これらの各領域に必要な情報が入力された状態で登録ボタン235を選択する入力操作がなされると、ロット管理テーブル134に商品のロットのデータが追加登録される。終了ボタン236を選択する入力操作がなされると、ロット情報登録画面23が閉じられて情報入力が終了する。
FIG. 8 is a diagram showing an example of the lot information registration screen 23. As shown in FIG.
The lot information registration screen 23 is provided with a product code input area 231 , a product name input area 232 , a lot number input area 233 and an expiration date input area 234 . When the input operation of selecting the registration button 235 is performed with the necessary information entered in each of these areas, product lot data is additionally registered in the lot management table 134 . When the input operation to select the end button 236 is performed, the lot information registration screen 23 is closed and the information input is completed.

操作部14は、キーボード等のキー入力部と、マウス等のポインティングデバイスとを有し、ユーザ(オペレータ)からのキー操作入力及び位置操作入力を受け付け、その操作情報を、第1の入力手段及び第2の入力手段としてのCPU11に出力する。CPU11は、操作部14から送信された情報に基づいて、ユーザの入力操作を受け付ける。 The operation unit 14 has a key input unit such as a keyboard and a pointing device such as a mouse, receives key operation input and position operation input from a user (operator), and transmits the operation information to the first input means and It outputs to the CPU 11 as second input means. The CPU 11 accepts a user's input operation based on information transmitted from the operation unit 14 .

表示部15は、LCD(Liquid Crystal Display)、EL(Electro Luminescence)ディスプレイ等で構成され、CPU11から指示された表示情報に従い各種表示を行う。 The display unit 15 is composed of an LCD (Liquid Crystal Display), an EL (Electro Luminescence) display, or the like, and performs various displays according to display information instructed by the CPU 11 .

通信部16は、ネットワークカード等により構成され、通信ネットワーク(図示略)上のデータベース等の機器に接続される。通信ネットワークは、LAN(Local Area Network)、WAN(Wide Area Network)等とすることができる。通信部16は、CPU11による制御下で通信ネットワーク上の機器との間でデータの送受信を行う。また、本実施形態の販売管理装置1は、通信部16を介して外部の印刷装置(不図示)に接続されており、販売管理装置1で作成された各種帳票などを当該印刷装置で印刷できるようになっている。 The communication unit 16 is configured by a network card or the like, and is connected to equipment such as a database on a communication network (not shown). The communication network may be a LAN (Local Area Network), a WAN (Wide Area Network), or the like. The communication unit 16 transmits and receives data to and from devices on the communication network under the control of the CPU 11 . In addition, the sales management apparatus 1 of this embodiment is connected to an external printing device (not shown) via the communication unit 16, and various forms created by the sales management apparatus 1 can be printed by the printing device. It's like

なお、本実施形態では、商品テーブル131、セット商品テーブル132、構成商品テーブル133、ロット管理テーブル134、セット商品作成プログラム135が記憶部13に記憶されているが、このような態様に限られず、上記のデータやプログラムの一部又は全部を外部のサーバ装置に記憶させ、販売管理装置1が当該サーバ装置から通信部16を介して必要な情報を取得して動作するようにしても良い。 In this embodiment, the product table 131, the set product table 132, the component product table 133, the lot management table 134, and the set product creation program 135 are stored in the storage unit 13; A part or all of the above data and programs may be stored in an external server device, and the sales management device 1 may acquire necessary information from the server device via the communication unit 16 and operate.

次に、販売管理装置1において実行されるセット商品作成処理について説明する。
セット商品テーブルで指定された複数種類の商品を組み合わせてセット商品を作成する場合に、各商品を、期限までの期間が短いものから順に(換言すれば、先に納入された商品から順に)選択して組み入れると、セット商品を構成する複数の商品の消費期限のばらつきが大きくなってしまう場合がある。セット商品内で消費期限のばらつきが大きいと、購買者にとって扱いにくいものとなるため、セット商品の価値が低くなってしまう。
Next, set product creation processing executed in the sales management apparatus 1 will be described.
When creating a set product by combining multiple types of products specified in the set product table, select each product in order from the one with the shortest period until the deadline (in other words, in order from the product that was delivered earlier). If the product is incorporated as a set product, there may be a large variation in the expiration dates of the multiple products that make up the set product. If the expiry date varies greatly within a set product, it becomes difficult for the purchaser to handle, and the value of the set product decreases.

そこで、本実施形態の販売管理装置1によるセット商品作成処理では、セット商品を構成する商品として、基本的には消費期限までの期間が短いロットのものを優先して組み入れつつ、セット商品を構成する各商品の消費期限間の最大範囲が所定の範囲日数(基準範囲)に収まるように、組み入れる各商品のロットが決定される。
本明細書では、このようにセット商品における各商品のロットを決定してセット商品の構成を確定させることを、「セット商品の作成」と記す。
Therefore, in the set product creation processing by the sales management apparatus 1 of the present embodiment, the set product is configured while preferentially incorporating the products in lots with short expiry dates as the products constituting the set product. The lot of each product to be included is determined so that the maximum range between the expiration dates of each product to be included is within a predetermined range of days (reference range).
In this specification, determining the lot of each product in the set product and fixing the configuration of the set product is referred to as "creation of the set product".

上記の範囲日数は、予めユーザにより指定される。また、セット商品作成処理では、ユーザにより指定された作成数量のセット商品が作成される。
指定された作成数量のセット商品が作成されると、作成数量の各セット商品について構成商品のロットの組み合わせを示すセット商品作成指示書30(図17)が、所定の印刷装置により出力される。
The above range of days is specified in advance by the user. In addition, in the set product creation process, set products are created in the number of products specified by the user.
When the set product of the specified production quantity is produced, a set product production instruction sheet 30 (FIG. 17) indicating the lot combination of the component products for each set product of the production quantity is output by a predetermined printing device.

以下、図9~図19を参照して、セット商品作成処理を詳細に説明する。
図9は、セット商品作成処理のCPU11による制御手順を示すフローチャートである。
セット商品作成処理が開始されると、CPU11は、セット商品作成画面24を表示部15に表示させて、セット商品コード(及び/又はセット商品名)、作成数量、範囲日数の入力を受け付ける(ステップS101)。
The set product creation process will be described in detail below with reference to FIGS. 9 to 19. FIG.
FIG. 9 is a flow chart showing a control procedure by the CPU 11 in the set product creation process.
When the set product creation process is started, the CPU 11 causes the display unit 15 to display the set product creation screen 24, and accepts input of the set product code (and/or set product name), the quantity to be created, and the range of days (step S101).

図10は、セット商品作成画面24の例を示す図である。
セット商品作成画面24では、セット商品コード入力領域241、セット商品名入力領域242、作成数量入力領域243及び範囲日数入力領域244、作成ボタン245及び終了ボタン246が表示されている。ユーザは、操作部14に対する入力操作を行うことで、セット商品コード入力領域241及びセット商品名入力領域242において作成するセット商品を指定し、作成数量入力領域243において作成数量を指定し、範囲日数入力領域244において範囲日数を指定することができる。セット商品コード及びセット商品名については、これらのうち一方が指定された場合に、セット商品テーブル132が参照されて他方が自動的に入力されるようになっていても良い。
セット商品作成画面24において範囲日数を指定する入力操作が「第1の入力操作」に対応し、作成数量を指定する入力操作が「第2の入力操作」に対応する。
以下では、セット商品作成画面24において指定されたセット商品を「指定セット商品」と記し、指定された作成数量を「指定作成数量」と記し、指定された範囲日数を「指定範囲日数」と記す。
FIG. 10 is a diagram showing an example of the set product creation screen 24. As shown in FIG.
On the set product creation screen 24, a set product code input area 241, a set product name input area 242, a production quantity input area 243, a range days input area 244, a create button 245 and an end button 246 are displayed. By performing an input operation on the operation unit 14, the user specifies the set product to be created in the set product code input area 241 and the set product name input area 242, specifies the production quantity in the production quantity input area 243, and specifies the number of days within the range. A range of days can be specified in input area 244 . When one of the set product code and the set product name is specified, the set product table 132 may be referenced and the other may be automatically input.
An input operation for designating the range of days on the set product creation screen 24 corresponds to the "first input operation", and an input operation for designating the production quantity corresponds to the "second input operation".
Below, the set product specified on the set product creation screen 24 is referred to as "specified set product", the specified quantity to be created is referred to as "specified quantity to be created", and the specified range of days is referred to as "specified range of days". .

CPU11は、セット商品作成画面24において終了ボタン246を選択する入力操作がなされたか否かを判別し(ステップS102)、当該入力操作がなされていないと判別された場合には(ステップS102で“NO”)、作成ボタン245を選択する入力操作がなされたか否かを判別する(ステップS103)。CPU11は、作成ボタン245を選択する入力操作がなされていないと判別された場合には(ステップS103で“NO”)、処理をステップS102に戻し、当該入力操作がなされたと判別された場合には(ステップS103で“YES”)、範囲日数に係る変数「範囲日数V」に、指定範囲日数を代入する(ステップS104)。 The CPU 11 determines whether or not an input operation to select the end button 246 has been performed on the set product creation screen 24 (step S102), and if it is determined that the input operation has not been performed ("NO ”), and it is determined whether or not an input operation for selecting the create button 245 has been performed (step S103). If the CPU 11 determines that an input operation for selecting the create button 245 has not been performed ("NO" in step S103), it returns the process to step S102. ("YES" in step S103), the designated range days is substituted for the variable "range days V" related to the range days (step S104).

次に、CPU11は、後述するセット商品構成特定処理(ステップS105)、及び指示書出力処理(ステップS106)を実行し、処理をステップS101に戻す。
ステップS101の処理において終了ボタン246を選択する入力操作がなされたと判別された場合には(ステップS102で“YES”)、CPU11は、セット商品作成処理を終了させる。
Next, the CPU 11 executes set product configuration identification processing (step S105) and instruction sheet output processing (step S106), which will be described later, and returns the processing to step S101.
When it is determined in the process of step S101 that an input operation for selecting the end button 246 has been performed ("YES" in step S102), the CPU 11 terminates the set product creation process.

図11及び図12は、セット商品構成特定処理のCPU11による制御手順を示すフローチャートである。
セット商品構成特定処理が呼び出されると、CPU11は、RAM12上で構成商品候補リスト121を作成する(ステップS201)。
11 and 12 are flow charts showing the control procedure by the CPU 11 of the set product composition identifying process.
When the set product configuration identification process is called, the CPU 11 creates a configuration product candidate list 121 on the RAM 12 (step S201).

図13は、構成商品候補リスト121の内容例を示す図である。
構成商品候補リスト121の内容は、ロット管理テーブル134のうち特定の商品に係る情報を抜き出して並べ変えたものに相当する。詳しくは、構成商品候補リスト121の内容は、指定セット商品を構成する各商品の全ての在庫のロットを、消費期限が古い順にソートしたものである。図13は、指定セット商品がセット商品Aである場合の例であり、セット商品Aを構成する商品a(商品コード:00001)及び商品b(商品コード:00002)の全ての在庫のロットが、消費期限が古い順にソートされている。
また、構成商品候補リスト121では、図13の右端の列に示されているように、セット商品の作成に応じて使用される(セット商品に組み入れられる)各商品の使用数量が計数されて記憶される。図13では、セット商品の作成前であり使用数量がいずれも0となっている状態が例示されている。
FIG. 13 is a diagram showing an example of the contents of the constituent product candidate list 121. As shown in FIG.
The contents of the constituent product candidate list 121 correspond to information on specific products extracted from the lot management table 134 and rearranged. More specifically, the contents of the constituent product candidate list 121 are obtained by sorting all stock lots of each product constituting the specified set product in order of the expiration date from the oldest. FIG. 13 shows an example in which the specified set product is set product A. All inventory lots of product a (product code: 00001) and product b (product code: 00002) that make up set product A are Sorted in ascending order of expiry date.
In the component product candidate list 121, as shown in the rightmost column of FIG. 13, the quantity of each product used (to be incorporated into the set product) used according to the creation of the set product is counted and stored. be done. FIG. 13 exemplifies a state in which the used quantities are all 0 before the set product is created.

ステップS201の処理が終了すると、CPU11は、後の処理に用いる基準消費期限に係る変数「基準消費期限W」に空を代入し、作成済のセット商品の数を表す変数「作成済セット数量X」に0を代入し、セット商品における商品のロットの組み合わせごとに付される変数「組合せ番号Y」に1を代入する(ステップS202)。 When the process of step S201 ends, the CPU 11 substitutes an empty variable "reference expiration date W" relating to the reference expiration date used in subsequent processing, and the variable "prepared set quantity X ” is substituted for 0, and 1 is substituted for the variable “combination number Y” assigned to each combination of product lots in the set product (step S202).

CPU11は、基準消費期限Wが空であるか否かを判別する(ステップS203)。基準消費期限Wが空であると判別された場合には(ステップS203で“YES”)、CPU11は、構成商品候補リスト121において、現在の日付を基準として、消費期限までの期間が最も短い商品(すなわち、消費期限が最も古い商品)及びそのロットを検索する(ステップS204)。また、基準消費期限Wが空ではないと判別された場合には(ステップS203で“NO”)、CPU11は、構成商品候補リスト121において、消費期限が基準消費期限Wから最も近い商品(すなわち、消費期限が基準消費期限Wより後で、かつ最も古い商品)及びそのロットを検索する(ステップS205)。 The CPU 11 determines whether or not the reference expiration date W is empty (step S203). If it is determined that the reference expiry date W is empty ("YES" in step S203), the CPU 11 selects the product whose expiry date is the shortest from the current date in the component product candidate list 121. (that is, the product with the oldest expiry date) and its lot are searched (step S204). If it is determined that the reference expiration date W is not empty ("NO" in step S203), the CPU 11 selects the product whose expiration date is closest to the reference expiration date W in the constituent product candidate list 121 (that is, The product whose expiration date is later than the reference expiration date W and is the oldest) and its lot are retrieved (step S205).

ステップS204又はS205の処理において検索結果が該当なしとなった場合には(ステップS206で“YES”)、CPU11は、商品構成特定処理を終了させて、処理をセット商品作成処理のステップS106に移行させる。 When the search result is not applicable in the process of step S204 or S205 ("YES" in step S206), the CPU 11 terminates the product composition specifying process and shifts the process to step S106 of the set product creation process. Let

ステップS204又はS205の処理において該当する検索結果があった場合には(ステップS206で“NO”)、CPU11は、検索により特定されたロットの商品(以下、「基準商品」と記す)の消費期限を基準消費期限Wに代入する(ステップS207)。 If there is a corresponding search result in the process of step S204 or S205 ("NO" in step S206), the CPU 11 determines the expiration date of the product of the lot specified by the search (hereinafter referred to as "reference product"). is substituted for the reference expiration date W (step S207).

CPU11は、基準商品との間で消費期限が近い順に、指定セット商品を構成する他の全ての商品のロットを構成商品候補リスト121から検索する(ステップS208)。これにより、指定セット商品を構成する各商品のロットが、基準商品のロットを含み、かつ各商品の消費期限が基準商品の消費期限と最も近くなるように仮決定される。 The CPU 11 searches the component product candidate list 121 for lots of all the other products that make up the designated set product in order of expiry date from the reference product (step S208). As a result, the lot of each product constituting the designated set product is tentatively determined so that it includes the lot of the reference product and the expiration date of each product is closest to the expiration date of the reference product.

ステップS208の検索処理において該当する検索結果があった場合には(ステップS209で“NO”)、CPU11は、まず、追加作成するセット商品の数量に係る変数「追加セット数量Z」に0を代入する(ステップS210)。 When there is a corresponding search result in the search process of step S208 (“NO” in step S209), the CPU 11 first substitutes 0 for the variable “additional set quantity Z” relating to the quantity of set products to be additionally created. (step S210).

CPU11は、ステップS208で選択されたセット商品を構成する複数の商品の消費期限間の最大範囲を算出する(ステップS211)。 The CPU 11 calculates the maximum range between expiration dates of a plurality of products constituting the set product selected in step S208 (step S211).

CPU11は、算出された最大範囲が範囲日数V以下であるか否かを判別し(ステップS212)、最大範囲が範囲日数V以下であると判別された場合には(ステップS212で“YES”)、ステップS208で仮決定されたロットの商品の組み合わせで作成できるセット商品の最大数を算出して、追加セット数量Zに代入する(ステップS213)。 The CPU 11 determines whether the calculated maximum range is equal to or less than the range number of days V (step S212), and if it is determined that the maximum range is equal to or less than the range number of days V ("YES" in step S212). , the maximum number of set products that can be created by combining the products of the lot tentatively determined in step S208 is calculated and substituted for the additional set quantity Z (step S213).

CPU11は、作成済セット数量Xと追加セット数量Zとの和が指定作成数量より大きいか否か(すなわち、ステップS213で算出された最大数のセット商品を作成すると指定作成数量を超えるか否か)を判別する(ステップS214)。上記の和が指定作成数量より大きいと判別された場合には(ステップS214で“YES”)、CPU11は、指定作成数量から作成済セット数量Xを減じた値を、追加セット数量Zに代入する(ステップS215)。 The CPU 11 determines whether or not the sum of the created set quantity X and the additional set quantity Z is greater than the specified quantity to be created (that is, whether or not the specified quantity will be exceeded if the maximum number of set products calculated in step S213 is created). ) is determined (step S214). If it is determined that the above sum is greater than the designated production quantity ("YES" in step S214), the CPU 11 substitutes the value obtained by subtracting the produced set quantity X from the designated production quantity for the additional set quantity Z. (Step S215).

ステップS215の処理が終了した場合、又はステップS214の処理において作成済セット数量Xと追加セット数量Zとの和が指定作成数量以下であると判別された場合(ステップS214で“NO”)には、CPU11は、作成済セット数量Xに追加セット数量Zを加算した値を、作成済セット数量Xに代入する(ステップS216)。 When the process of step S215 is completed, or when it is determined in the process of step S214 that the sum of the created set quantity X and the additional set quantity Z is equal to or less than the specified quantity to be created ("NO" in step S214) , the CPU 11 substitutes the value obtained by adding the additional set quantity Z to the created set quantity X into the created set quantity X (step S216).

CPU11は、追加セット数量Zに応じて、RAM12上の構成商品候補リスト121及びセット商品構成データ122を更新する(ステップS217)。
詳しくは、CPU11は、構成商品候補リスト121における「使用数量」の項目に、追加セット数量Zのセット商品の作成に必要な各ロットの商品の使用数量を加算する。
また、CPU11は、セット商品構成データ122において、組合せ番号Yに対応するセット商品の構成に係る情報を追加する。
The CPU 11 updates the component product candidate list 121 and the set product configuration data 122 on the RAM 12 according to the additional set quantity Z (step S217).
More specifically, the CPU 11 adds the quantity of products used in each lot necessary for creating set products of the additional set quantity Z to the item “quantity used” in the constituent product candidate list 121 .
The CPU 11 also adds information relating to the configuration of the set product corresponding to the combination number Y to the set product configuration data 122 .

図15は、セット商品構成データ122の内容例を示す図である。
セット商品構成データ122は、セット商品作成処理によって作成されるセット商品の具体的構成を示すデータであり、セット商品作成指示書30を出力する際に参照されるデータである。セット商品構成データ122では、セット商品を構成する各商品について、どのロットのものを幾つ組み入れるかが示されている。
具体的には、セット商品構成データ122には、組合せ番号、作成数量、商品コード、ロット番号及び使用数量のデータが含まれている。このうち組合せ番号は、変数「組合せ番号Y」の値に対応し、作成数量は、変数「追加セット数量Z」の値に対応する。また、商品コード、ロット番号及び使用数量には、追加セット数量Zのセット商品の作成に必要な各ロットの商品の使用数量が、組合せ番号ごとに入力される。
FIG. 15 is a diagram showing an example of the contents of set product configuration data 122. As shown in FIG.
The set product configuration data 122 is data indicating the specific configuration of the set product created by the set product creation process, and is data referred to when outputting the set product creation instruction sheet 30 . The set product composition data 122 indicates how many products of which lot are to be incorporated for each product that constitutes the set product.
Specifically, the set product configuration data 122 includes data of combination number, production quantity, product code, lot number, and usage quantity. Among these, the combination number corresponds to the value of the variable "combination number Y", and the production quantity corresponds to the value of the variable "additional set quantity Z". In addition, the product code, lot number, and usage quantity are entered for each combination number with the product usage quantity of each lot required to create the set product of the additional set quantity Z.

ステップS217の処理が終了すると、CPU11は、組合せ番号Yをインクリメントする(ステップS218)。 When the process of step S217 is completed, the CPU 11 increments the combination number Y (step S218).

CPU11は、作成済セット数量Xが指定作成数量に一致しているか否かを判別する(ステップS219)。CPU11は、作成済セット数量Xが指定作成数量に一致していないと判別された場合には(ステップS219で“NO”)、処理をステップS208に戻し、一致していると判別された場合には(ステップS219で“YES”)、商品構成特定処理を終了させて、処理をセット商品作成処理のステップS106に移行させる。 The CPU 11 determines whether or not the created set quantity X matches the specified created quantity (step S219). If the CPU 11 determines that the created set quantity X does not match the specified created quantity ("NO" in step S219), it returns the process to step S208. ("YES" in step S219), the product configuration identification process is terminated, and the process proceeds to step S106 of the set product creation process.

ステップS208の検索処理において検索結果が該当なしとなった場合には(ステップS209で“YES”)、CPU11は、追加セット数量Zが0であるか否かを判別し(ステップS220)、追加セット数量Zが0でないと判別された場合には(ステップS220で“NO”)、基準消費期限Wをインクリメントして(ステップS221)、処理をステップS205に移行させる。また、ステップS212の処理で、最大範囲が範囲日数Vより大きいと判別された場合にも(ステップS212で“NO”)、CPU11は、基準消費期限Wをインクリメントして(ステップS221)、処理をステップS205に移行させる。 If there is no search result in the search process of step S208 ("YES" in step S209), the CPU 11 determines whether or not the additional set quantity Z is 0 (step S220). If it is determined that the quantity Z is not 0 ("NO" in step S220), the reference expiry date W is incremented (step S221), and the process proceeds to step S205. Also, when it is determined in the process of step S212 that the maximum range is greater than the range days V ("NO" in step S212), the CPU 11 increments the reference expiration date W (step S221), and continues the process. The process proceeds to step S205.

ステップS220の処理で追加セット数量Zが0であると判別された場合には(ステップS220で“YES”)、CPU11は、商品構成特定処理を終了させて、処理をセット商品作成処理のステップS106に移行させる。 When it is determined in the process of step S220 that the additional set quantity Z is 0 ("YES" in step S220), the CPU 11 terminates the product composition specifying process and proceeds to step S106 of the set product creation process. move to

このようなセット商品構成特定処理によれば、基準商品を含み、かつ構成商品の消費期限間の最大範囲が指定範囲日数以下となるようなセット商品を作成するループ処理(ステップS208~ステップS219)が繰り返し実行される。このセット商品の作成では、消費期限までの期間が短いロットの商品が優先して選択されて組み入れられる(ステップS208)。したがって、一の基準商品についての複数回のループ処理のうち初回のループ処理では、構成商品の消費期限間の最大範囲が最も小さい組合せのセット商品が作成され、2回目のループ処理では、その次に消費期限間の最大範囲が小さい組合せのセット商品が作成される。以降、ループ処理ごとに、その時点で最も消費期限間の最大範囲が小さい組合せのセット商品が作成される。 According to such a set product configuration specifying process, a loop process (steps S208 to S219) for creating a set product that includes the reference product and that the maximum range between the expiration dates of the constituent products is equal to or less than the specified range of days. is executed repeatedly. In the creation of this set of products, products of lots with short expiry dates are preferentially selected and incorporated (step S208). Therefore, in the first loop processing of the multiple loop processing for one standard product, the set product with the smallest maximum range between the expiration dates of the component products is created, and in the second loop processing, the following A combination of set products with a small maximum range between expiration dates is created. Thereafter, for each loop process, a set product of a combination with the shortest maximum range between expiration dates at that time is created.

また、一の基準商品についての最後のループ処理で、当該基準商品を含むセット商品を作成できない場合には(ステップS209で“YES”)、当該基準商品を含むセット商品を少なくとも1組作成できていれば(ステップS220で“NO”)、基準消費期限Wをインクリメントした上で(ステップS221)新たに上記のループ処理が実行され、消費期限がより新しい基準商品について引き続きセット商品を作成するループ処理が実行される。
また、基準商品を含むセット商品を作成できるものの、消費期限間の最大範囲が指定範囲日数を超える場合(ステップS212で“NO”)にも、基準消費期限Wをインクリメントして引き続きセット商品が作成される。
In addition, in the last loop processing for one reference product, if a product set including the reference product cannot be created ("YES" in step S209), at least one product set including the reference product has been created. If so ("NO" in step S220), the reference expiry date W is incremented (step S221), and the above loop processing is newly executed to continuously create a set product for the reference product with a newer expiry date. is executed.
In addition, even if a product set including the standard product can be created, but the maximum range between expiration dates exceeds the specified range of days ("NO" in step S212), the standard expiration date W is incremented and a set product is created continuously. be done.

基準商品をより消費期限が新しいものに切り替えてセット商品を作成していき、ある基準商品についてのループ処理で、当該基準商品を含むセット商品を1組も作成できない場合には(ステップS209で“YES”、かつステップS220で“NO”)、可能なすべての組み合わせのセット商品の作成が終了したこととなるため、セット商品構成特定処理が終了する。 A set product is created by switching the reference product to one with a newer expiration date, and in the loop processing for a certain reference product, if it is not possible to create even one set of product set that includes the reference product (" YES" and "NO" in step S220), it means that the production of set products of all possible combinations has been completed, and thus the set product configuration identifying process ends.

ここで、セット商品構成特定処理の具体例として、図2、図4、図5及び図7に示されている各テーブルデータの内容に基づいて、「セット商品A」を「50組」作成し、上記の範囲日数を「10日」とする場合について説明する。 Here, as a specific example of the set product composition specifying process, "50 sets" of "set product A" are created based on the contents of each table data shown in FIGS. , the case where the above range number of days is set to "10 days" will be described.

まず、ステップS204において、図13の構成商品候補リスト121において消費期限までの期間が最も短い、ロット番号R0001の商品a(商品コード:00001、消費期限:2018/4/30)が基準商品として特定される。また、ステップS207において、基準消費期限Wに「2018/4/30」が代入される。 First, in step S204, product a (product code: 00001, expiry date: 2018/4/30) of lot number R0001, which has the shortest period until expiration date in the component product candidate list 121 of FIG. 13, is specified as the reference product. be done. Further, in step S207, "2018/4/30" is substituted for the reference expiration date W.

次に、ステップS208において、セット商品Aを構成する他の商品である商品b(商品コード:00002)のうち、在庫数量があり、かつ基準商品との間で消費期限が最も近いロットが検索される。ここでは、商品bのうち、消費期限が「2018/5/5」のロット番号R0101が検索結果として特定される。すなわち、組合せ番号Y=1のセット商品の商品構成として、ロット番号R0001の商品aと、ロット番号R0101の商品bとからなる構成が仮決定される。 Next, in step S208, among product b (product code: 00002), which is another product constituting set product A, a lot that has an inventory quantity and that has the closest expiry date to the reference product is searched. be. Here, among the products b, the lot number R0101 whose expiration date is "2018/5/5" is identified as the search result. That is, as the product composition of the set product with the combination number Y=1, the composition consisting of the product a with the lot number R0001 and the product b with the lot number R0101 is tentatively determined.

ステップS211では、仮決定されたセット商品における、ロット番号R0001の商品aの消費期限(2018/4/30)とロット番号R0101の商品bの消費期限(2018/5/5)との間の範囲(6日)が算出される。この範囲は、範囲日数V(10日)以下であるため、ステップS212では“YES”と判定される。 In step S211, the range between the expiry date (2018/4/30) of product a with lot number R0001 and the expiry date (2018/5/5) of product b with lot number R0101 in the temporarily determined set product (6 days) is calculated. Since this range is equal to or less than the range number of days V (10 days), a determination of "YES" is made in step S212.

ステップS213では、図13の構成商品候補リスト121においてロット番号R0001の商品aの在庫数量が100個であり、ロット番号R0101の商品bの在庫数量が80個であることから、1つの商品a及び2つの商品bの組み合わせからなるセット商品Aを40組作成できると判別される。よって、追加セット数量Zに40が代入される。 In step S213, in the constituent product candidate list 121 of FIG. It is determined that 40 sets of set product A, which is a combination of two products b, can be created. Therefore, 40 is substituted for the additional set quantity Z.

ステップS214では、この時点において作成済セット数量X(0組)と追加セット数量Z(40組)との和が指定作成数量(50組)以下であるため、ステップS216に進み、作成済セット数量Xに追加セット数量Z(40組)が代入される。これにより、追加セット数量Zが確定し、組合せ番号Y=1に対応する各ロットの商品の使用数量も確定するため、構成商品候補リスト121及びセット商品構成データ122の内容が更新され(ステップS217)、組合せ番号Yが2にインクリメントされる(ステップS218)。
また、ステップS219において、作成済セット数量X(40組)は指定作成数量(50組)に達していないと判別されるため、処理がステップS208に戻る。
In step S214, at this time, the sum of the created set quantity X (0 sets) and the additional set quantity Z (40 sets) is equal to or less than the specified quantity to be created (50 sets), so the process proceeds to step S216, where the created set quantity The additional set quantity Z (40 sets) is substituted for X. As a result, the additional set quantity Z is determined, and the used quantity of the products in each lot corresponding to the combination number Y=1 is also determined, so the contents of the component product candidate list 121 and the set product configuration data 122 are updated (step S217). ), the combination number Y is incremented to 2 (step S218).
Also, in step S219, it is determined that the created set quantity X (40 sets) has not reached the specified created set quantity (50 sets), so the process returns to step S208.

ステップS208では、基準商品であるロット番号R0001の商品aと組み合わせる商品bとして、この段階で消費期限が基準商品と最も近いロット番号R0102が選択される。
しかしながら、ステップS212において、基準商品の消費期限(2018/4/30)とロット番号R0102の商品bの消費期限(2018/5/14)との間の範囲(15日)が範囲日数V(10日)より大きいため“NO”と判定され、ステップS221において基準消費期限Wがインクリメントされて(すなわち、基準消費期限Wに2018/5/1が代入されて)、処理がステップS205に戻る。
In step S208, lot number R0102 whose expiration date is closest to that of the reference product at this stage is selected as product b to be combined with product a of lot number R0001, which is the reference product.
However, in step S212, the range (15 days) between the expiration date (2018/4/30) of the reference product and the expiration date (2018/5/14) of product b of lot number R0102 is V (10 days). day), the determination is "NO", the reference expiration date W is incremented in step S221 (that is, 2018/5/1 is substituted for the reference expiration date W), and the process returns to step S205.

ステップS205では、基準商品として、消費期限が基準消費期限Wに最も近いロット番号R0002の商品a(消費期限:2018/5/5)が特定される。
また、ステップS208において、商品bのうち、在庫数量があり、基準商品との間で消費期限が最も近いロット番号R0102(消費期限:2018/5/14)が検索結果として特定される。すなわち、組合せ番号Y=2のセット商品の商品構成として、ロット番号R0002の商品aと、ロット番号R0102の商品bとからなる構成が仮決定される。
In step S205, the product a (expiration date: May 5, 2018) of lot number R0002 whose expiration date is closest to the reference expiration date W is identified as the reference product.
Further, in step S208, lot number R0102 (expiration date: May 14, 2018), which has an inventory quantity and the closest expiry date to the reference product, is identified as a search result among product b. That is, as the product composition of the set product with the combination number Y=2, the composition consisting of the product a with the lot number R0002 and the product b with the lot number R0102 is tentatively determined.

ステップS211では、基準商品の消費期限(2018/5/5)とロット番号R0102の商品bの消費期限(2018/5/14)との間の範囲(10日)が算出される。この範囲は、範囲日数V(10日)以下であるため、ステップS212では“YES”と判定される。 In step S211, the range (10 days) between the expiration date (May 5, 2018) of the reference product and the expiration date (May 14, 2018) of product b with lot number R0102 is calculated. Since this range is equal to or less than the range number of days V (10 days), a determination of "YES" is made in step S212.

ステップS213では、図13の構成商品候補リスト121においてロット番号R0002の商品aの在庫数量が50個であり、ロット番号R0102の商品bの在庫数量が100個であることから、1つの商品a及び2つの商品bの組み合わせからなるセット商品Aを50組作成できると判別される。よって、追加セット数量Zに50が代入される。 In step S213, in the constituent product candidate list 121 of FIG. It is determined that 50 sets of set product A, which is a combination of two products b, can be created. Therefore, 50 is substituted for the additional set quantity Z.

ステップS214では、この時点において作成済セット数量X(40組)と追加セット数量Z(50組)との和が指定作成数量(50組)より大きいため、ステップS215に進み、追加セット数量Zに、指定作成数量(50組)から作成済セット数量X(40組)を減じた10組が代入される。すなわち、この処理ループでは、セット商品が10組のみ作成されることとなるため、ロット番号R0002の商品aの使用数量は10個となり、ロット番号R0102の商品bの使用数量は20個となる。 In step S214, at this time, the sum of the created set quantity X (40 sets) and the additional set quantity Z (50 sets) is greater than the specified quantity to be created (50 sets), so the process proceeds to step S215, where the additional set quantity Z , 10 pairs obtained by subtracting the created set quantity X (40 pairs) from the designated created quantity (50 pairs) are substituted. That is, in this processing loop, only 10 set products are created, so the quantity of product a with lot number R0002 is 10, and the quantity of product b with lot number R0102 is 20.

ステップS216において、作成済セット数量Xに対し、作成済セット数量X(40組)と追加セット数量Z(10組)との和である50組が代入される。
よって、ステップS219の処理では、作成済セット数量X(50組)が指定作成数量(50組)と一致していると判別され、セット商品構成特定処理が終了する。
In step S216, 50 pairs, which is the sum of the created set quantity X (40 pairs) and the additional set quantity Z (10 pairs), is substituted for the created set quantity X.
Therefore, in the process of step S219, it is determined that the created set quantity X (50 sets) matches the designated created quantity (50 sets), and the set product configuration identifying process ends.

セット商品構成特定処理の終了時点における構成商品候補リスト121では、図14に示されるように、各ループ処理における追加セット数量Zに応じた各ロットの商品の使用数量が入力されており、また在庫数量が、図13に示される初期値から使用数量を減じた値に更新されている。
また、セット商品構成データ122では、組合せ番号ごとに、セット商品の作成数量やロット及び商品の組み合わせ、及びこれらの使用数量が入力された状態となる。
As shown in FIG. 14, in the component product candidate list 121 at the end of the set product configuration specifying process, the quantity of products used in each lot corresponding to the additional set quantity Z in each loop process is input, and the inventory The quantity has been updated to a value obtained by subtracting the used quantity from the initial value shown in FIG.
In addition, in the set product configuration data 122, the quantity of set products to be created, the combination of lots and products, and the quantities used thereof are input for each combination number.

図16は、指示書出力処理のCPU11による制御手順を示すフローチャートである。
指示書出力処理が開始されると、CPU11は、作成済セット数量Xが指定作成数量に一致しているか否かを判別する(ステップS301)。作成済セット数量Xが指定作成数量に一致していると判別された場合、すなわちユーザにより指定された数量のセット商品が作成されたと判別された場合には(ステップS301で“YES”)、CPU11は、印刷装置に対して印刷命令を送信し、RAM12上のセット商品構成データ122に基づく内容のセット商品作成指示書30を所定の印刷装置により出力させる(ステップS302)。
FIG. 16 is a flow chart showing the control procedure by the CPU 11 of the instruction sheet output process.
When the instruction sheet output process is started, the CPU 11 determines whether or not the created set quantity X matches the designated created quantity (step S301). If it is determined that the created set quantity X matches the specified creation quantity, that is, if it is determined that the set product of the quantity specified by the user has been created ("YES" in step S301), the CPU 11 sends a print command to the printing device, and causes the predetermined printing device to output the set product creation instruction sheet 30 based on the set product configuration data 122 on the RAM 12 (step S302).

図17は、セット商品作成指示書30の内容例を示す図である。
セット商品作成指示書30の内容は、RAM12上のセット商品構成データ122の内容に対し、セット商品コードに対応するセット商品名を追加し、商品コードに対応する商品名を追加したものに相当する。このようなセット商品作成指示書30により、セット商品を構成する各商品について、どのロットのものを幾つ組み入れれば良いかが、ユーザに対して分かりやすく提示される。
なお、ステップS302では、セット商品作成指示書30の内容に相当する画面表示を表示部15に表示(出力)させても良い。
FIG. 17 is a diagram showing an example of the contents of the set product creation instruction sheet 30. As shown in FIG.
The contents of the set product creation instruction sheet 30 correspond to the contents of the set product composition data 122 on the RAM 12, with the set product name corresponding to the set product code added, and the product name corresponding to the product code added. . With such a set product creation instruction sheet 30, it is presented to the user in an easy-to-understand manner as to which lot and how many products should be incorporated for each product constituting the set product.
In step S302, a screen display corresponding to the contents of the set product creation instruction sheet 30 may be displayed (output) on the display unit 15. FIG.

ステップS302の処理が終了すると、CPU11は、RAM12上の構成商品候補リスト121の内容をロット管理テーブル134に反映させる(ステップS303)。 When the process of step S302 is completed, the CPU 11 reflects the content of the constituent product candidate list 121 on the RAM 12 in the lot management table 134 (step S303).

図18は、構成商品候補リスト121の内容を反映させた後のロット管理テーブル134の内容例を示す図である。
図18のロット管理テーブル134では、在庫数量が、図14の構成商品候補リスト121における在庫数量の内容に更新されている。
FIG. 18 is a diagram showing an example of the contents of the lot management table 134 after the contents of the constituent product candidate list 121 are reflected.
In the lot management table 134 of FIG. 18, the inventory quantity is updated to the content of the inventory quantity in the constituent product candidate list 121 of FIG.

ステップS301の処理で、作成済セット数量Xが指定作成数量に一致していない、すなわちユーザにより指定された数量のセット商品が作成できないと判別された場合には(ステップS301で“NO”)、CPU11は、表示部15において、所定の結果表示画面25を表示させる(ステップS305)。 In the process of step S301, when it is determined that the created set quantity X does not match the specified creation quantity, that is, the set product of the quantity specified by the user cannot be created ("NO" in step S301), The CPU 11 causes the display unit 15 to display a predetermined result display screen 25 (step S305).

図19は、結果表示画面25の例を示す図である。
結果表示画面25では、指定作成数量のセット商品を作成できない旨が表示され、併せて指定された範囲日数において作成可能なセット商品の数量が提示される。
FIG. 19 is a diagram showing an example of the result display screen 25. As shown in FIG.
On the result display screen 25, it is displayed that the set product of the designated production quantity cannot be produced, and the quantity of the set product that can be produced within the specified range of days is also presented.

ステップS303又はステップS305の処理が終了すると、CPU11は、RAM12上の構成商品候補リスト121及びセット商品構成データ122をクリアし(ステップS304)、指示書出力処理を終了させて、処理をセット商品作成処理のステップS101に戻す。 When the processing of step S303 or step S305 ends, the CPU 11 clears the constituent product candidate list 121 and the set product composition data 122 on the RAM 12 (step S304), terminates the instruction sheet output processing, and proceeds to set product creation processing. The process returns to step S101.

(変形例1)
上記実施形態では、セット商品構成特定処理のステップS201において、指定セット商品を構成しうる全てのロットの商品が選択されて構成商品候補リスト121が作成されたが、これに代えて、セット商品を構成する商品のうち、消費期限が、ユーザにより指定された基準日以降に設定されているロットのみを選択するようにしても良い。
この場合には、図10のセット商品作成画面24において、上記の基準日を指定するための入力領域を設け、セット商品作成処理のステップS101において、ユーザからの当該基準日の入力を併せて受け付ければ良い。
(Modification 1)
In the above-described embodiment, in step S201 of the set product composition identifying process, all the lot products that can constitute the designated set product are selected to create the component product candidate list 121. It is also possible to select only lots whose expiration date is set after the reference date specified by the user from among the constituent products.
In this case, an input area for specifying the reference date is provided on the set product creation screen 24 of FIG. I wish I could.

(変形例2)
上記実施形態では、指定作成数量のセット商品を作成できなかった場合に、結果表示画面25を表示して処理を終了させたが、これに代えて、指定作成数量以下で可能な最大数のセット商品に係る情報を含むセット商品構成データ122を生成し、当該セット商品構成データ122の内容に基づいてセット商品作成指示書30を出力するようにしても良い。この場合は、図16の指示書出力処理においてステップS301の判別を行わずに、ステップS302以降の処理を行えば良い。
(Modification 2)
In the above embodiment, when the set product of the designated production quantity could not be produced, the result display screen 25 was displayed and the process was terminated. It is also possible to generate set product configuration data 122 including information related to products, and to output the set product creation instruction sheet 30 based on the content of the set product configuration data 122 . In this case, the process from step S302 onwards may be performed without performing the determination in step S301 in the instruction sheet output process of FIG.

以上のように、本実施形態の情報処理装置としての販売管理装置1は、複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品テーブル132及び構成商品テーブル133と、複数種類の商品の各々に係るロットごとの在庫数量の情報、及び複数種類の商品の各々に対してロットごとに設定されている消費期限の情報を含むロット管理テーブル134と、に基づいて、在庫の商品の組み合わせによりセット商品を作成する場合における、セット商品に組み入れる各商品のロットが特定されたセット商品構成データ122を生成する情報生成手段としてのCPU11を備え、CPU11は、セット商品を構成する各商品の消費期限間の最大範囲が、基準範囲としての範囲日数以下となるように、セット商品構成データ122を生成する。
このような構成によれば、セット商品を構成する商品の消費期限間の最大範囲を範囲日数以下に抑えつつ、容易にセット商品を作成することができる。このようなセット商品の作成を人の手で行おうとすると、特にセット商品を構成する商品数が多い場合などでは非常に手間が掛かり、かつ間違えやすいところ、販売管理装置1によりセット商品を作成することで、このような手間を削減して作業を効率化することができ、より正確にセット商品を作成することができる。
As described above, the sales management apparatus 1 as the information processing apparatus of the present embodiment has the set product table 132 in which the component quantity for each product type is specified and the component product table 132 for the set product consisting of a combination of multiple types of products. a table 133, and a lot management table 134 containing information on inventory quantities for each lot of each of multiple types of products, and information on expiry dates set for each lot of each of multiple types of products; A CPU 11 is provided as information generating means for generating set product composition data 122 specifying the lot of each product to be incorporated into the set product when creating a set product by combining the products in stock according to the above. The set product composition data 122 is generated so that the maximum range between expiration dates of each product constituting the product is equal to or less than the range days as the reference range.
According to such a configuration, it is possible to easily create a set product while keeping the maximum range between the expiration dates of the products constituting the set product to the number of days or less. When it is attempted to create such a set product manually, especially when the number of products constituting the set product is large, it is very time-consuming and error-prone. By doing so, it is possible to reduce such troubles and improve the efficiency of the work, and it is possible to create a set product more accurately.

また、CPU11は、範囲日数を指定する入力操作を受け付け(第1の入力手段)、上記入力操作により指定された範囲日数に基づいてセット商品構成データ122を生成する(情報生成手段)。これにより、セット商品を構成する商品の消費期限間の最大範囲を所望の範囲日数以下に抑えてセット商品を作成することができる。 In addition, the CPU 11 receives an input operation for designating the range of days (first input means), and generates set product composition data 122 based on the range of days specified by the input operation (information generating means). As a result, it is possible to create a product set by suppressing the maximum range between expiration dates of the products constituting the product set to the desired number of days or less.

また、変形例2に係る販売管理装置1では、CPU11は、セット商品の作成数量を指定する入力操作を受け付け(第2の入力手段)、上記入力操作により指定された数以下で可能な最大数のセット商品に係る情報を含むセット商品構成データ122を生成する(情報生成手段)。これにより、指定範囲日数では所望の作成数量のセット商品を作成できない場合においても、ユーザは、作成可能なセット商品の数量を把握することができ、必要に応じて当該数量でセット商品を作成することができる。 In addition, in the sales management device 1 according to Modification 2, the CPU 11 receives an input operation (second input means) for designating the production quantity of set products, (information generating means). As a result, even if a set product of a desired quantity cannot be created within the specified range of days, the user can grasp the quantity of the set product that can be created, and can create a set product with this quantity as necessary. be able to.

また、CPU11は、セット商品を構成する商品のロットとして、消費期限までの期間が短いロットを優先して選択する(情報生成手段)。これにより、余剰在庫や滞留在庫となっている消費期限が古い商品をより多くセット商品に組み入れつつ、構成商品の期限のばらつきによるセット商品の価値の低下を抑えることができるため、セット商品の販売によって効果的に在庫を圧縮することができる。 In addition, the CPU 11 preferentially selects a lot with a short period until the expiry date as the lot of the product constituting the set product (information generating means). As a result, it is possible to incorporate more products with old expiration dates that are surplus inventory or stagnant inventory into set products, while suppressing the decline in value of set products due to variations in the expiration dates of constituent products. can effectively reduce inventories.

また、変形例1に係る販売管理装置1では、CPU11は、セット商品を構成する商品のロットとして、消費期限が所定の基準日以降に設定されているロットを選択する(情報生成手段)。これによれば、消費期限が所定日数以上残っている商品のみから容易にセット商品を構成することができる。よって、より柔軟にセット商品の構成を調整することができる。 Further, in the sales management device 1 according to Modification 1, the CPU 11 selects a lot whose expiration date is set after a predetermined reference date as a lot of products constituting a set product (information generating means). According to this, it is possible to easily construct a set of products only from products whose expiration date is longer than the predetermined number of days. Therefore, it is possible to more flexibly adjust the configuration of the set product.

また、CPU11は、セット商品構成データ122の内容をセット商品作成指示書30としてユーザに提示するために、印刷装置への印刷命令の送信処理を行う(提示手段)。これにより、セット商品を構成する各商品について、どのロットのものを幾つ組み入れれば良いかを、ユーザに対して分かりやすく提示することができる。 In addition, the CPU 11 performs processing for transmitting a print command to the printing device in order to present the contents of the set product configuration data 122 to the user as the set product creation instruction sheet 30 (presentation means). As a result, it is possible to present to the user in an easy-to-understand manner how many products of which lot should be incorporated for each product constituting the set product.

また、本実施形態のセット商品作成プログラム135は、販売管理装置1に設けられたコンピュータとしてのCPU11を、在庫の商品の組み合わせによりセット商品を作成する場合における、セット商品に組み入れる各商品のロットが特定されたセット商品構成データ122を生成する情報生成手段として機能させ、情報生成手段は、セット商品を構成する各商品の消費期限間の最大範囲が、基準範囲としての範囲日数以下となるように、セット商品構成データ122を生成する。このようなセット商品作成プログラム135により販売管理装置1を動作させることで、構成商品の期限のばらつきを抑えつつ容易にセット商品を作成することができる。 Also, the set product creation program 135 of the present embodiment allows the CPU 11 as a computer provided in the sales management device 1 to create a set product by combining products in stock, and the lot of each product to be incorporated into the set product is It functions as information generating means for generating the identified set product composition data 122, and the information generating means sets the maximum range between the expiration dates of each product constituting the set product to be equal to or less than the range days as the reference range. , to generate set product configuration data 122 . By operating the sales management apparatus 1 with such a set product creation program 135, it is possible to easily create a set product while suppressing variations in the expiration dates of the component products.

(第2の実施形態)
次に、本発明の第2の実施形態について説明する。本実施形態は、指定範囲日数以下で、指定作成数量を達成可能な複数の範囲日数を特定し、当該複数の範囲日数の各々についてそれぞれセット商品の作成結果がユーザに提示される点で第1の実施形態と異なる。以下では、第1の実施形態との相違点について説明する。
(Second embodiment)
Next, a second embodiment of the invention will be described. The present embodiment is the first in that a plurality of range days for which a specified production quantity can be achieved within a specified range of days or less is specified, and the set product creation result is presented to the user for each of the plurality of range days. different from the embodiment of Differences from the first embodiment will be described below.

図20は、第2の実施形態に係るセット商品作成処理のCPU11による制御手順を示すフローチャートである。
図20のフローチャートは、図9のフローチャートのステップS104をステップS104aに変更し、ステップS107及びステップS108を追加したものに相当する。
FIG. 20 is a flow chart showing a control procedure by the CPU 11 of set product creation processing according to the second embodiment.
The flowchart of FIG. 20 corresponds to the flowchart of FIG. 9 with step S104a changed from step S104 and steps S107 and S108 added.

本実施形態のセット商品作成処理では、CPU11は、作成ボタンを選択する入力操作がなされたと判別された場合には(ステップS103で“YES”)、範囲日数Vに1を代入する(ステップS104a)。よって次に行われるセット商品構成特定処理(ステップS105)では、セット商品を構成する各商品の消費期限が1日の範囲内に収まる(すなわち、同日である)ようにセット商品が作成される。 In the set product creation process of the present embodiment, when it is determined that an input operation for selecting the creation button has been performed ("YES" in step S103), the CPU 11 substitutes 1 for the range days V (step S104a). . Therefore, in the next product set composition specifying process (step S105), the product set is created so that the expiry date of each product constituting the product set is within one day (that is, the same day).

セット商品構成特定処理が終了すると、CPU11は、範囲日数Vが指定範囲日数に一致しているか否かを判別し(ステップS107)、一致していない場合には(ステップS107で“NO”)、範囲日数Vをインクリメントして(ステップS108)、再度セット商品構成特定処理(ステップS105)を実行する。 When the set product configuration specifying process ends, the CPU 11 determines whether or not the range days V matches the designated range days (step S107). The range days V is incremented (step S108), and the set product composition specifying process (step S105) is executed again.

このように、本実施形態では、指定範囲日数に達するまで範囲日数Vを1日ずつ増大させていき、各範囲日数Vに対してセット商品を作成する。すなわち、本実施形態でユーザにより指定される指定範囲日数は、範囲日数Vの上限値として用いられる。
また、複数の範囲日数Vの各々に対応して、構成商品候補リスト121及びセット商品構成データ122がRAM12上に作成されて保持される。
Thus, in this embodiment, the range of days V is increased by one day until the specified range of days is reached, and a set product is created for each range of days V. FIG. That is, the specified range of days specified by the user in this embodiment is used as the upper limit value of the range of days V. FIG.
Also, in correspondence with each of the plurality of range days V, a constituent product candidate list 121 and set product composition data 122 are created and held on the RAM 12 .

範囲日数Vが指定範囲日数に一致していると判別された場合には(ステップS107で“YES”)、CPU11は、指示書出力処理(ステップS106)を実行する。 When it is determined that the range of days V matches the designated range of days ("YES" in step S107), the CPU 11 executes the instruction sheet output process (step S106).

図21は、第2の実施形態に係る指示書出力処理のCPU11による制御手順を示すフローチャートである。
図21のフローチャートは、図16のフローチャートのステップS301~S303をそれぞれステップS301a~S303aに変更し、ステップS306を追加したものに相当する。
FIG. 21 is a flow chart showing a control procedure by the CPU 11 of instruction output processing according to the second embodiment.
The flowchart of FIG. 21 corresponds to the flowchart of FIG. 16 with steps S301 to S303 replaced by steps S301a to S303a and step S306 added.

指示書出力処理が開始されると、CPU11は、作成済セット数量Xが指定作成数量に一致する範囲日数Vがあるか否か(すなわち、指定作成数量のセット商品を作成することができた範囲日数Vがあるか否か)を判別する(ステップS301a)。 When the instruction sheet output process is started, the CPU 11 determines whether there is a range of days V in which the created set quantity X matches the designated production quantity (that is, the range in which the set product of the specified production quantity can be Whether or not there is a number of days V) is determined (step S301a).

作成済セット数量Xが指定作成数量に一致する範囲日数Vがあると判別された場合には(ステップS301aで“YES”)、CPU11は、RAM12上の複数の範囲日数Vの各々に対応するセット商品構成データ122に基づき、指定作成数量のセット商品を作成できた範囲日数Vについて、それぞれセット商品作成指示書30を所定の印刷装置により出力させる(ステップS302a)。 If it is determined that there is a range of days V in which the created set quantity X matches the designated creation quantity ("YES" in step S301a), the CPU 11 creates sets corresponding to each of the plurality of range days V on the RAM 12. Based on the product configuration data 122, the set product creation instruction sheet 30 is output by a predetermined printing device for each of the range of days V in which the set products of the specified quantity can be created (step S302a).

CPU11は、出力したセット商品作成指示書30のうちいずれかのセット商品作成指示書30をユーザに選択させる所定の画面を表示部15に表示させ、いずれかのセット商品作成指示書30を選択する入力操作がなされたか否かを判別し(ステップS306)、当該入力操作がなされていないと判別された場合には(ステップS306で“NO”)、再度ステップS306の処理を実行する。 The CPU 11 causes the display unit 15 to display a predetermined screen for allowing the user to select one of the set product creation instructions 30 out of the output set product creation instructions 30, and selects one of the set product creation instructions 30. It is determined whether or not an input operation has been performed (step S306), and if it is determined that the input operation has not been performed ("NO" in step S306), the process of step S306 is executed again.

いずれかのセット商品作成指示書30を選択する入力操作がなされたと判別された場合には(ステップS306で“YES”)、CPU11は、選択されたセット商品作成指示書30に対応するRAM12上の構成商品候補リスト121の内容をロット管理テーブル134に反映させる(ステップS303a)。
以降の処理は、第1の実施形態の指示書出力処理と同一である。
If it is determined that an input operation for selecting one of the set product creation instructions 30 has been performed ("YES" in step S306), the CPU 11 controls the RAM 12 corresponding to the selected set product creation instruction 30. The contents of the constituent product candidate list 121 are reflected in the lot management table 134 (step S303a).
Subsequent processing is the same as the instruction sheet output processing of the first embodiment.

以上のように、第2の実施形態では、CPU11は、範囲日数Vの上限値を指定する入力操作を受け付け(第1の入力手段)、上記入力操作により指定された上限値以下の範囲日数に基づいてセット商品構成データ122を生成する(情報生成手段)。これにより、セット商品を構成する商品の消費期限間の最大範囲を、指定範囲日数より小さく抑えてセット商品を作成できる場合に、このような構成のセット商品の組み合わせをユーザに提示することができる。 As described above, in the second embodiment, the CPU 11 accepts an input operation for specifying the upper limit of the range days V (first input means), and the range days below the upper limit specified by the input operation Based on this, set product configuration data 122 is generated (information generating means). As a result, when the set product can be created by keeping the maximum range between the expiration dates of the products constituting the set product smaller than the specified range of days, it is possible to present the user with the combination of set products configured in this way. .

また、CPU11は、指定作成数量のセット商品を構成可能な複数の範囲日数Vを特定し、当該複数の範囲日数の各々に基づいてそれぞれセット商品構成データ122を生成する(情報生成手段)。範囲日数Vが小さいほど、消費期限のばらつきを抑えることができる一方、ロットの選択肢が狭まるため、消費期限の古い商品がセット商品に組み入れられずに余りやすくなる。反対に、範囲日数Vが大きいほど、消費期限のばらつきが大きくなる一方、ロットの選択肢が広がるため、消費期限の古い商品をより多くセット商品に組み入れることができる。複数の範囲日数Vの各々についてセット商品構成データ122を生成してセット商品作成指示書30を出力する本実施形態の構成によれば、ユーザは、消費期限のばらつきと、消費期限の古い商品の組み入れ状況とのバランスを考慮して、より所望の内容に近いセット商品の構成を選択してセット商品を作成することができる。 In addition, the CPU 11 specifies a plurality of range days V that can constitute a set product of the specified quantity, and generates set product configuration data 122 based on each of the plurality of range days (information generating means). The smaller the range days V, the less variation in expiration dates, but the narrower the lot options, and the more likely it is that products with old expiration dates will not be included in set products. Conversely, the larger the range days V, the greater the variation in the expiration dates, and the wider the lot options, so that more products with old expiration dates can be incorporated into set products. According to the configuration of the present embodiment, in which the set product composition data 122 is generated for each of the plurality of range days V and the set product creation instruction sheet 30 is output, the user can easily understand the variations in the expiration date and the products with the old expiration date. A set product can be created by selecting a configuration of the set product that is closer to the desired contents, taking into consideration the balance with the incorporation situation.

(第3の実施形態)
次に、本発明の第3の実施形態について説明する。本実施形態は、指定範囲日数以下で、指定作成数量を達成可能な最小の範囲日数を特定し、当該最小の範囲日数に基づくセット商品の作成結果がユーザに提示される点で第2の実施形態と異なる。以下では、第2の実施形態との相違点について説明する。
(Third Embodiment)
Next, a third embodiment of the invention will be described. This embodiment is the second embodiment in that the minimum number of days within the specified range of days that can achieve the specified production quantity is specified, and the result of creating a set product based on the minimum number of days is presented to the user. Different from the form. Differences from the second embodiment will be described below.

図22は、第3の実施形態に係るセット商品作成処理のCPU11による制御手順を示すフローチャートである。
図22のフローチャートは、図20のフローチャートにステップS109を追加したものに相当する。
FIG. 22 is a flow chart showing a control procedure by the CPU 11 of set product creation processing according to the third embodiment.
The flowchart in FIG. 22 corresponds to the flowchart in FIG. 20 with step S109 added.

本実施形態のセット商品作成処理では、CPU11は、セット商品構成特定処理(ステップS105)が終了すると、作成済セット数量Xが指定作成数量に一致するか否か(すなわち、終了したセット商品構成特定処理において指定作成数量のセット商品を作成できたか否か)を判別する(ステップS109)。作成済セット数量Xが指定作成数量に一致しないと判別された場合には(ステップS109で“NO”)、CPU11は、範囲日数Vが指定範囲日数に達するまで範囲日数Vをインクリメントし(ステップS107、S108)、再度セット商品作成処理(ステップS105)を実行する。 In the set product creation process of this embodiment, when the set product configuration identification process (step S105) ends, the CPU 11 determines whether or not the created set quantity X matches the designated creation quantity (that is, whether or not the completed set product configuration specification (Step S109). When it is determined that the created set quantity X does not match the specified creation quantity ("NO" in step S109), the CPU 11 increments the range days V until the range days V reaches the specified range days (step S107). , S108), and the set product creation process (step S105) is executed again.

作成済セット数量Xが指定作成数量に一致すると判別された場合(ステップS109で“YES”)、又は範囲日数Vが指定範囲日数に達したと判別された場合(ステップS107で“YES”)には、CPU11は、指示書出力処理(ステップS106)を実行する。 If it is determined that the created set quantity X matches the specified creation quantity ("YES" in step S109), or if it is determined that the range of days V has reached the specified range of days ("YES" in step S107) Then, the CPU 11 executes an instruction sheet output process (step S106).

図23は、第3の実施形態に係る指示書出力処理のCPU11による制御手順を示すフローチャートである。
図23のフローチャートは、図21のフローチャートからステップS306を削除し、ステップS303aをステップS303bに変更したものに相当する。
FIG. 23 is a flow chart showing a control procedure by the CPU 11 of instruction output processing according to the third embodiment.
The flowchart in FIG. 23 corresponds to the flowchart in FIG. 21 with step S306 removed and step S303a changed to step S303b.

本実施形態の指示書出力処理では、作成済セット数量Xが指定作成数量に一致する範囲日数Vがあると判別された場合に(ステップS301aで“YES”)、CPU11は、当該範囲日数Vについてセット商品作成指示書30を所定の印刷装置により出力させる(ステップS302a)。よって、ユーザに対し、指定作成数量のセット商品を構成可能な最小の範囲日数が提示されるとともに、当該範囲日数に基づいて作成されたセット商品の構成が提示される。
また、CPU11は、出力されたセット商品作成指示書30に対応するRAM12上の構成商品候補リスト121の内容をロット管理テーブル134に反映させる(ステップS303b)。
In the instruction sheet output process of this embodiment, when it is determined that there is a range of days V in which the created set quantity X matches the designated creation quantity ("YES" in step S301a), the CPU 11 A set product creation instruction sheet 30 is output by a predetermined printing device (step S302a). Therefore, the user is presented with the minimum range of days for constructing the set product of the specified quantity, and the configuration of the set product created based on the range of days.
Further, the CPU 11 reflects the contents of the component product candidate list 121 on the RAM 12 corresponding to the output set product creation instruction 30 in the lot management table 134 (step S303b).

作成済セット数量Xが指定作成数量に一致する範囲日数Vがないと判別された場合に(ステップS301aで“NO”)、CPU11は、表示部15において、指定作成数量のセット商品を作成できない旨の結果表示画面25(図19)を表示させる(ステップS305)。
その他の処理は、第2の実施形態の指示書出力処理と同一である。
When it is determined that there is no range of days V in which the created set quantity X matches the specified creation quantity ("NO" in step S301a), the CPU 11 causes the display unit 15 to indicate that the set product of the specified creation quantity cannot be created. The result display screen 25 (FIG. 19) is displayed (step S305).
Other processing is the same as the instruction sheet output processing of the second embodiment.

なお、本実施形態では、最後に実行されたセット商品構成特定処理において生成された構成商品候補リスト121及びセット商品構成データ122のみが指示書出力処理で用いられるため、範囲日数Vがインクリメントされるタイミング(ステップS108)でRAM12上の構成商品候補リスト121及びセット商品構成データ122をクリアしても良い。 In this embodiment, since only the constituent product candidate list 121 and the set product composition data 122 generated in the last executed set product composition identifying process are used in the instruction sheet output process, the range days V is incremented. At the timing (step S108), the constituent product candidate list 121 and the set product composition data 122 on the RAM 12 may be cleared.

以上のように、第3の実施形態では、CPU11は、指定作成数量のセット商品を構成可能な最小の範囲日数を特定し、当該最小の範囲日数に基づいてセット商品構成データ122を生成する(情報生成手段)。これによれば、指定作成数量のセット商品を、最も消費期限のばらつきの小さい構成で作成することができる。よって、消費期限のばらつきによるセット商品の価値の低下を効果的に抑制することができる。 As described above, in the third embodiment, the CPU 11 specifies the minimum number of days for which the specified quantity of set products can be configured, and generates the set product configuration data 122 based on the minimum number of days ( information generating means). According to this, it is possible to create a set of products in a specified quantity to be created in a configuration with the least variation in expiration dates. Therefore, it is possible to effectively suppress the decrease in the value of set products due to variations in expiration dates.

(第4の実施形態)
次に、本発明の第4の実施形態について説明する。本実施形態は、範囲日数Vの初期値が指定範囲日数とされる点で第3の実施形態と異なる。すなわち、本実施形態では、指定範囲日数で指定作成数量を達成できなかった場合に、指定範囲日数より大きい範囲日数のうち、指定作成数量を達成可能な最小の範囲日数を特定し、当該最小の範囲日数に基づくセット商品の作成結果がユーザに提示される。以下では、第3の実施形態との相違点について説明する。
(Fourth embodiment)
Next, a fourth embodiment of the invention will be described. This embodiment differs from the third embodiment in that the initial value of the range days V is set to the specified range days. That is, in the present embodiment, if the specified production quantity cannot be achieved in the specified range of days, the minimum range of days that can achieve the specified production quantity is specified among the range of days larger than the specified range of days, and the minimum range of days is specified. The user is presented with the result of creating a product set based on the range of days. Differences from the third embodiment will be described below.

図24は、第4の実施形態に係るセット商品作成処理のCPU11による制御手順を示すフローチャートである。
図24のフローチャートは、図22のフローチャートのステップS104aをステップS104に、またステップS107をステップS107aにそれぞれ変更したものに相当する。
FIG. 24 is a flow chart showing a control procedure by the CPU 11 of set product creation processing according to the fourth embodiment.
The flowchart of FIG. 24 corresponds to the flowchart of FIG. 22 with step S104a replaced with step S104 and step S107 replaced with step S107a.

本実施形態のセット商品作成処理では、CPU11は、範囲日数Vを指定範囲日数とした状態で(ステップS104)セット商品構成特定処理(ステップS105)を実行した後に、作成済セット数量Xが指定作成数量に一致するか否かを判別する(ステップS109)。 In the set product creation process of the present embodiment, the CPU 11 executes the set product configuration specifying process (step S105) with the range days V set to the specified range days (step S104), and then the created set quantity X is specified and created. It is determined whether or not the quantity matches (step S109).

作成済セット数量Xが指定作成数量に一致しない(すなわち、指定作成数量のセット商品を作成できなかった)と判別された場合には(ステップS109で“NO”)、CPU11は、範囲日数Vが、指定範囲日数に所定の上限日数を加算した日数に一致するか否かを判別する(ステップS107a)。範囲日数Vが上記日数に一致しないと判別された場合には(ステップS107aで“NO”)、CPU11は、範囲日数Vをインクリメントして(ステップS108)、再度セット商品構成特定処理(ステップS105)を実行する。 If it is determined that the created set quantity X does not match the specified creation quantity (that is, the set product of the specified creation quantity could not be created) ("NO" in step S109), the CPU 11 determines that the range of days V is , and the number of days obtained by adding a predetermined upper limit number of days to the designated range of days (step S107a). If it is determined that the range of days V does not match the above number of days ("NO" in step S107a), the CPU 11 increments the range of days V (step S108), and performs set product configuration identification processing again (step S105). to run.

このように、本実施形態では、指定作成数量が達成できない場合には、指定範囲日数に所定の上限日数を加算した日数に達するまで範囲日数Vを1日ずつ増大させていき、各範囲日数Vに対してセット商品の作成が試みられる。そして、いずれかの範囲日数Vに対して指定作成数量が達成できた場合に、指示書出力処理が実行される。
上記の上限日数は、予め設定されて記憶部13に記憶されているものを用いても良いし、セット商品作成画面24においてユーザが指定できるようにしても良い。
本実施形態の指定範囲日数は、範囲日数Vの第一候補を指定するものであり、「基準範囲候補値」に対応する。
As described above, in this embodiment, when the designated production quantity cannot be achieved, the range of days V is increased by one day until reaching the number of days obtained by adding the predetermined upper limit number of days to the designated range of days, and each range of days V An attempt is made to create a set product for Then, when the designated production quantity can be achieved for any of the range days V, the instruction sheet output process is executed.
The above upper limit number of days may be set in advance and stored in the storage unit 13, or may be specified by the user on the set product creation screen 24. FIG.
The designated range of days in this embodiment designates the first candidate for the range of days V, and corresponds to the "reference range candidate value".

範囲日数Vが指定範囲日数に一致していると判別された場合には(ステップS107で“YES”)、CPU11は、指示書出力処理(ステップS106)を実行する。本実施形態の指示書出力処理は、第3の実施形態の指示書出力処理(図23)と同一であるため説明は省略する。 When it is determined that the range of days V matches the designated range of days ("YES" in step S107), the CPU 11 executes the instruction sheet output process (step S106). The instruction sheet output processing of the present embodiment is the same as the instruction sheet output processing (FIG. 23) of the third embodiment, and thus description thereof is omitted.

以上のように、第4の実施形態では、CPU11は、範囲日数の候補値を指定する入力操作を受け付け(第1の入力手段)、指定された範囲日数の候補値を範囲日数Vとして、指定作成数量のセット商品を作成できる場合には、指定された範囲日数の候補値を範囲日数Vとしてセット商品構成データ122を生成し、指定された範囲日数の候補値を範囲日数Vとすると、指定作成数量のセット商品を構成できない場合には、指定作成数量のセット商品を構成可能な最小の範囲日数を特定し、当該最小の範囲日数に基づいてセット商品構成データ122を生成する(情報生成手段)。これによれば、指定作成数量のセット商品を確保できる範囲で、消費期限間の最大範囲が最も小さくなる構成でセット商品を作成することができる。 As described above, in the fourth embodiment, the CPU 11 accepts an input operation for designating a candidate value for the range days (first input means), and designates the designated candidate value for the range days as the range days V. If it is possible to create a set product of the quantity to be created, the set product composition data 122 is generated with the candidate value of the specified range days as the range days V, and if the specified candidate value of the range days is set as the range days V, the specified If it is not possible to compose the set product of the quantity to be created, the minimum range of days for which the set product of the specified creation quantity can be configured is specified, and the set product configuration data 122 is generated based on the minimum range of days (information generating means ). According to this, it is possible to create a product set with a configuration in which the maximum range between the expiration dates is the smallest within the range in which the specified production quantity of the product set can be secured.

以上の説明では、本発明に係るプログラムのコンピュータ読み取り可能な媒体として記憶部13のHDD、SSDを使用した例を開示したが、この例に限定されない。その他のコンピュータ読み取り可能な媒体として、フラッシュメモリや、CD-ROM等の可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も本発明に適用される。 In the above description, an example in which the HDD and SSD of the storage unit 13 are used as a computer-readable medium for the program according to the present invention has been disclosed, but the present invention is not limited to this example. As other computer-readable media, it is possible to apply portable recording media such as flash memories and CD-ROMs. A carrier wave is also applied to the present invention as a medium for providing program data according to the present invention via a communication line.

なお、上記実施形態における記述は、本発明に係る情報処理装置及びプログラムの一例であり、これに限定されるものではない。
例えば、上記実施形態では、商品としての食品の販売管理を例に挙げて説明したが、これに限られず、販売管理装置1は、種々の商品の販売管理におけるセット商品の作成に適用することができる。例えば、使用期限が定められている電池や化粧品などの消耗品、及びモデルチェンジによる販売期限が定められている電化製品などの販売管理業務に販売管理装置1を適用しても良い。したがって、商品に係る所定の期限は、消費期限に限られず、使用期限や販売期限などであっても良い。
It should be noted that the description in the above embodiment is an example of the information processing apparatus and program according to the present invention, and the present invention is not limited to this.
For example, in the above-described embodiment, sales management of food as a product has been described as an example, but the sales management device 1 is not limited to this, and can be applied to create set products in sales management of various products. can. For example, the sales management apparatus 1 may be applied to sales management operations for consumables such as batteries and cosmetics with expiration dates, and electrical appliances with expiration dates due to model changes. Therefore, the predetermined expiration date for the product is not limited to the expiration date, and may be the expiration date, the expiration date, or the like.

また、商品に係る期限は、日を単位としたものに限られず、週、月及び年などを単位とする期限であっても良い。 Also, the time limit for the product is not limited to the day unit, and may be a week, month, year, or the like unit.

また、上記実施形態では、商品の消費期限及び在庫数量をロットごとに管理する例を用いて説明したが、これに限定する趣旨ではない。商品の管理方法は、各商品の消費期限、及び同一種類の商品であって消費期限が同一である商品の在庫数量が管理可能であれば、どのような方法であっても良い。 Further, in the above embodiment, an example of managing the expiration date and inventory quantity of products for each lot has been described, but the present invention is not limited to this. Any product management method may be used as long as it is possible to manage the expiration date of each product and the inventory quantity of products of the same type with the same expiration date.

また、上記実施形態では、商品テーブル131、セット商品テーブル132、構成商品テーブル133及びロット管理テーブル134に対するデータの追加登録を、各種登録画面を用いてユーザの手入力により行う例を用いて説明したが、これに限定する趣旨ではない。例えば、商品の入荷検品作業において取得された商品のデータをそのまま自動的に各テーブルに追加する態様とすることで、ユーザの手入力の作業を省略しても良い。 Further, in the above embodiment, an example has been described in which additional registration of data to the product table 131, set product table 132, component product table 133, and lot management table 134 is performed manually by the user using various registration screens. However, it is not intended to be limited to this. For example, manual input work by the user may be omitted by automatically adding product data acquired in incoming product inspection work to each table as it is.

また、上記実施形態では、情報処理装置としての販売管理装置1が、ユーザにより使用される端末装置である場合を例に挙げて説明したが、これに限られない。例えば、サーバ装置により本発明の情報処理装置を構成し、当該サーバ装置での処理結果を、通信ネットネットワークを介してサーバ装置に接続された端末装置により受信させて表示させるようにしても良い。 Further, in the above-described embodiment, the case where the sales management device 1 as an information processing device is a terminal device used by a user has been described as an example, but the present invention is not limited to this. For example, the information processing apparatus of the present invention may be configured by a server device, and the processing results of the server device may be received and displayed by a terminal device connected to the server device via a communication network.

また、上記実施形態における情報処理装置としての販売管理装置1の各構成要素の細部構成及び細部動作に関しては、本発明の趣旨を逸脱することのない範囲で適宜変更可能であることは勿論である。 Further, the detailed configuration and detailed operation of each component of the sales management device 1 as the information processing device in the above-described embodiment can of course be changed as appropriate without departing from the gist of the present invention. .

本発明の実施の形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
〔付記〕
<請求項1>
複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品情報と、
前記複数種類の商品の各々に係る在庫数量情報と、
前記複数種類の商品の各々に対して設定されている所定の期限に係る期限情報と、
に基づいて、在庫の商品の組み合わせにより前記セット商品を作成する場合における、前記セット商品に組み入れる各商品が特定されたセット商品構成情報を生成する情報生成手段を備え、
前記情報生成手段は、前記セット商品を構成する各商品の前記期限間の最大範囲が基準範囲内となるように、前記セット商品構成情報を生成することを特徴とする情報処理装置。
<請求項2>
前記基準範囲を指定する第1の入力操作を受け付ける第1の入力手段を備え、
前記情報生成手段は、前記第1の入力操作により指定された前記基準範囲に基づいて前記セット商品構成情報を生成することを特徴とする請求項1に記載の情報処理装置。
<請求項3>
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段を備え、
前記情報生成手段は、前記第2の入力操作により指定された数以下で可能な最大数の前記セット商品に係る情報を含む前記セット商品構成情報を生成することを特徴とする請求項2に記載の情報処理装置。
<請求項4>
前記基準範囲の上限値を指定する第1の入力操作を受け付ける第1の入力手段を備え、
前記情報生成手段は、前記第1の入力操作により指定された前記上限値以下の前記基準範囲に基づいて前記セット商品構成情報を生成することを特徴とする請求項1に記載の情報処理装置。
<請求項5>
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段を備え、
前記情報生成手段は、前記第2の入力操作により指定された数の前記セット商品を構成可能な複数の前記基準範囲を特定し、当該複数の基準範囲の各々に基づいてそれぞれ前記セット商品構成情報を生成することを特徴とする請求項4に記載の情報処理装置。
<請求項6>
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段を備え、
前記情報生成手段は、前記第2の入力操作により指定された数の前記セット商品を構成可能な最小の基準範囲を特定し、当該最小の基準範囲に基づいて前記セット商品構成情報を生成することを特徴とする請求項4に記載の情報処理装置。
<請求項7>
前記基準範囲の設定に用いられる基準範囲候補値を指定する第1の入力操作を受け付ける第1の入力手段と、
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段と、
を備え、
前記情報生成手段は、
前記第1の入力操作により指定された前記基準範囲候補値を前記基準範囲として、前記第2の入力操作により指定された数の前記セット商品を作成できる場合には、前記基準範囲候補値を前記基準範囲として前記セット商品構成情報を生成し、
前記基準範囲候補値を前記基準範囲とすると、前記指定された数の前記セット商品を構成できない場合には、前記指定された数のセット商品を構成可能な、前記基準範囲候補値より大きい最小の基準範囲を特定し、当該最小の基準範囲に基づいて前記セット商品構成情報を生成することを特徴とする請求項1に記載の情報処理装置。
<請求項8>
前記情報生成手段は、前記セット商品を構成する商品として、前記期限までの期間が短い商品を優先して選択することを特徴とする請求項1から7のいずれか一項に記載の情報処理装置。
<請求項9>
前記情報生成手段は、前記セット商品を構成する商品として、前記期限が所定の基準日以降に設定されている商品を選択することを特徴とする請求項1から8のいずれか一項に記載の情報処理装置。
<請求項10>
前記セット商品構成情報の内容をユーザに提示するための処理を行う提示手段を備えることを特徴とする請求項1から9のいずれか一項に記載の情報処理装置。
<請求項11>
情報処理装置に設けられたコンピュータを、
複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品情報と、
前記複数種類の商品の各々に係る在庫数量情報と、
前記複数種類の商品の各々に対して設定されている所定の期限に係る期限情報と、
に基づいて、在庫の商品の組み合わせにより前記セット商品を作成する場合における、前記セット商品に組み入れる各商品が特定されたセット商品構成情報を生成する情報生成手段、
として機能させ、
前記情報生成手段は、前記セット商品を構成する各商品の前記期限間の最大範囲が基準範囲内となるように、前記セット商品構成情報を生成することを特徴とするプログラム。
Although embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and equivalents thereof.
The invention described in the scope of claims originally attached to the application form of this application is additionally described below. The claim numbers in the appendix are as in the claims originally attached to the filing of this application.
[Appendix]
<Claim 1>
Set product information specifying the component quantity for each product type in a set product consisting of a combination of multiple types of products;
Inventory quantity information for each of the plurality of types of products;
Expiration information related to a predetermined expiration date set for each of the plurality of types of products;
an information generating means for generating set product configuration information specifying each product to be incorporated into the set product when the set product is created by combining the products in stock based on
The information processing apparatus, wherein the information generating means generates the set product composition information so that the maximum range of the expiration date of each product constituting the set product is within a reference range.
<Claim 2>
A first input means for accepting a first input operation specifying the reference range,
2. The information processing apparatus according to claim 1, wherein said information generating means generates said set product configuration information based on said reference range designated by said first input operation.
<Claim 3>
a second input means for accepting a second input operation for designating the number of set products to be created;
3. The information generating means according to claim 2, wherein said information generating means generates said product set configuration information including information relating to the maximum possible number of said product sets which is equal to or less than the number designated by said second input operation. information processing equipment.
<Claim 4>
A first input means for accepting a first input operation specifying the upper limit of the reference range,
2. The information processing apparatus according to claim 1, wherein said information generating means generates said set product composition information based on said reference range equal to or less than said upper limit specified by said first input operation.
<Claim 5>
a second input means for accepting a second input operation for designating the number of set products to be created;
The information generating means identifies a plurality of the reference ranges capable of configuring the number of set products designated by the second input operation, and the set product configuration information based on each of the plurality of reference ranges. 5. The information processing apparatus according to claim 4, which generates .
<Claim 6>
a second input means for accepting a second input operation for designating the number of set products to be created;
The information generating means specifies a minimum reference range in which the number of set products designated by the second input operation can be configured, and generates the set product configuration information based on the minimum reference range. 5. The information processing apparatus according to claim 4, characterized by:
<Claim 7>
a first input means for receiving a first input operation for designating a reference range candidate value used for setting the reference range;
a second input means for receiving a second input operation for designating the number of set products to be created;
with
The information generation means is
If the number of set products specified by the second input operation can be created using the reference range candidate value specified by the first input operation as the reference range, the reference range candidate value is set to the generating the set product configuration information as a reference range;
Assuming that the reference range candidate value is the reference range, if the specified number of the set products cannot be configured, the minimum value larger than the reference range candidate value that allows the configuration of the specified number of set products 2. The information processing apparatus according to claim 1, wherein a reference range is specified, and the set product composition information is generated based on the minimum reference range.
<Claim 8>
8. The information processing apparatus according to any one of claims 1 to 7, wherein the information generating means preferentially selects a product having a short period until the expiration date as the product constituting the set product. .
<Claim 9>
9. The product according to any one of claims 1 to 8, wherein the information generating means selects products for which the deadline is set after a predetermined reference date as the products constituting the set product. Information processing equipment.
<Claim 10>
10. The information processing apparatus according to any one of claims 1 to 9, further comprising presentation means for performing processing for presenting the contents of the set product configuration information to a user.
<Claim 11>
a computer provided in an information processing device,
Set product information specifying the component quantity for each product type in a set product consisting of a combination of multiple types of products;
Inventory quantity information for each of the plurality of types of products;
Expiration information related to a predetermined expiration date set for each of the plurality of types of products;
information generating means for generating set product configuration information specifying each product to be incorporated into the set product when the set product is created by combining the products in stock based on
function as
The program, wherein the information generating means generates the set product composition information so that the maximum range between the time limits of each product constituting the set product is within a reference range.

1 販売管理装置(情報処理装置)
11 CPU(情報生成手段、第1の入力手段、第2の入力手段、提示手段)
12 RAM
13 記憶部
14 操作部
15 表示部
16 通信部
17 バス
21 商品登録画面
22 セット商品登録画面
23 ロット情報登録画面
24 セット商品作成画面
25 結果表示画面
30 セット商品作成指示書
121 構成商品候補リスト
122 セット商品構成データ
131 商品テーブル
131 ロット管理テーブル
132 セット商品テーブル(セット商品情報)
133 構成商品テーブル(セット商品情報)
134 ロット管理テーブル(在庫数量情報、期限情報)
135 セット商品作成プログラム
V 範囲日数(基準範囲)
1 Sales management device (information processing device)
11 CPU (information generation means, first input means, second input means, presentation means)
12 RAMs
13 Storage unit 14 Operation unit 15 Display unit 16 Communication unit 17 Bus 21 Product registration screen 22 Set product registration screen 23 Lot information registration screen 24 Set product creation screen 25 Result display screen 30 Set product creation instruction sheet 121 Composition product candidate list 122 Set Product configuration data 131 Product table 131 Lot management table 132 Set product table (set product information)
133 component product table (set product information)
134 lot management table (inventory quantity information, deadline information)
135 set product creation program V range days (reference range)

Claims (11)

複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品情報と、
前記複数種類の商品の各々に係る在庫数量情報と、
前記複数種類の商品の各々に対して設定されている所定の期限に係る期限情報と、
に基づいて、在庫の商品の組み合わせにより前記セット商品を作成する場合における、前記セット商品に組み入れる各商品が特定されたセット商品構成情報を生成する情報生成手段と、
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段と、
を備え、
前記情報生成手段は、前記第2の入力操作により指定された数の前記セット商品を構成可能な商品の組み合わせ方であって、当該セット商品を構成する各商品の前記期限間の最大範囲が基準範囲内となるような商品の組み合わせ方のうち、当該最大範囲が最小となるような商品の組み合わせ方に基づいて前記セット商品構成情報を生成することを特徴とする情報処理装置。
Set product information specifying the component quantity for each product type in a set product consisting of a combination of multiple types of products;
Inventory quantity information for each of the plurality of types of products;
Expiration information related to a predetermined expiration date set for each of the plurality of types of products;
information generating means for generating set product configuration information specifying each product to be incorporated into the set product when creating the set product by combining the products in stock based on ;
a second input means for receiving a second input operation for designating the number of set products to be created;
with
The information generating means provides a method of combining products capable of forming the number of set products specified by the second input operation, wherein the maximum range between the term of each product constituting the set product is used as a reference. An information processing apparatus , wherein the set product configuration information is generated based on a combination of products that minimizes the maximum range among combinations of products that fall within the range.
複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品情報と、Set product information specifying the component quantity for each product type in a set product consisting of a combination of multiple types of products;
前記複数種類の商品の各々に係る在庫数量情報と、Inventory quantity information for each of the plurality of types of products;
前記複数種類の商品の各々に対して設定されている所定の期限に係る期限情報と、Expiration information related to a predetermined expiration date set for each of the plurality of types of products;
に基づいて、在庫の商品の組み合わせにより前記セット商品を作成する場合における、前記セット商品に組み入れる各商品が特定されたセット商品構成情報を生成する情報生成手段と、information generating means for generating set product configuration information specifying each product to be incorporated into the set product when creating the set product by combining the products in stock based on;
を備え、with
前記情報生成手段は、前記セット商品を構成する各商品の前記期限間の最大範囲が基準範囲内となるように、前記セット商品構成情報を生成し、The information generating means generates the set product configuration information such that the maximum range between the expiration dates of each product constituting the set product is within a reference range,
前記基準範囲の設定に用いられる基準範囲候補値を指定する第1の入力操作を受け付ける第1の入力手段と、a first input means for receiving a first input operation for designating a reference range candidate value used for setting the reference range;
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段と、a second input means for receiving a second input operation for designating the number of set products to be created;
を更に備え、further comprising
前記情報生成手段は、The information generation means is
前記第1の入力操作により指定された前記基準範囲候補値を前記基準範囲として、前記第2の入力操作により指定された数の前記セット商品を作成できる場合には、前記基準範囲候補値を前記基準範囲として前記セット商品構成情報を生成し、If the number of set products specified by the second input operation can be created using the reference range candidate value specified by the first input operation as the reference range, the reference range candidate value is set to the generating the set product configuration information as a reference range;
前記基準範囲候補値を前記基準範囲とすると、前記指定された数の前記セット商品を構成できない場合には、前記指定された数のセット商品を構成可能な、前記基準範囲候補値より大きい最小の基準範囲を特定し、当該最小の基準範囲に基づいて前記セット商品構成情報を生成することを特徴とする情報処理装置。Assuming that the reference range candidate value is the reference range, if the specified number of the set products cannot be configured, the minimum value larger than the reference range candidate value that allows the configuration of the specified number of set products An information processing apparatus, wherein a reference range is specified, and the set product composition information is generated based on the minimum reference range.
前記基準範囲を指定する第1の入力操作を受け付ける第1の入力手段を備え、A first input means for accepting a first input operation specifying the reference range,
前記情報生成手段は、前記第1の入力操作により指定された前記基準範囲に基づいて前記セット商品構成情報を生成することを特徴とする請求項1に記載の情報処理装置。2. The information processing apparatus according to claim 1, wherein said information generating means generates said set product configuration information based on said reference range designated by said first input operation.
前記情報生成手段は、前記第2の入力操作により指定された数以下で可能な最大数の前記セット商品に係る情報を含む前記セット商品構成情報を生成することを特徴とする請求項3に記載の情報処理装置。4. The product set configuration information according to claim 3, wherein the information generating means generates the set product composition information including information related to the maximum possible number of the set products that is equal to or less than the number specified by the second input operation. information processing equipment. 前記基準範囲の上限値を指定する第1の入力操作を受け付ける第1の入力手段を備え、A first input means for accepting a first input operation specifying the upper limit of the reference range,
前記情報生成手段は、前記第1の入力操作により指定された前記上限値以下の前記基準範囲に基づいて前記セット商品構成情報を生成することを特徴とする請求項1に記載の情報処理装置。2. The information processing apparatus according to claim 1, wherein said information generating means generates said set product composition information based on said reference range equal to or less than said upper limit specified by said first input operation.
前記情報生成手段は、前記第2の入力操作により指定された数の前記セット商品を構成可能な複数の前記基準範囲を特定し、当該複数の基準範囲の各々に基づいてそれぞれ前記セット商品構成情報を生成することを特徴とする請求項1に記載の情報処理装置。The information generating means identifies a plurality of the reference ranges capable of configuring the number of set products designated by the second input operation, and the set product configuration information based on each of the plurality of reference ranges. 2. The information processing apparatus according to claim 1, which generates a . 前記情報生成手段は、前記セット商品を構成する商品として、前記期限までの期間が短い商品を優先して選択することを特徴とする請求項1から6のいずれか一項に記載の情報処理装置。7. The information processing apparatus according to any one of claims 1 to 6, wherein the information generating means preferentially selects a product having a short period until the expiration date as the product constituting the set product. . 前記情報生成手段は、前記セット商品を構成する商品として、前記期限が所定の基準日以降に設定されている商品を選択することを特徴とする請求項1から7のいずれか一項に記載の情報処理装置。8. The product according to any one of claims 1 to 7, wherein the information generating means selects products for which the deadline is set after a predetermined reference date as the products constituting the set product. Information processing equipment. 前記セット商品構成情報の内容をユーザに提示するための処理を行う提示手段を備えることを特徴とする請求項1から8のいずれか一項に記載の情報処理装置。9. The information processing apparatus according to any one of claims 1 to 8, further comprising presenting means for performing processing for presenting the contents of the set product composition information to the user. 情報処理装置に設けられたコンピュータを、a computer provided in an information processing device,
複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品情報と、Set product information specifying the component quantity for each product type in a set product consisting of a combination of multiple types of products;
前記複数種類の商品の各々に係る在庫数量情報と、Inventory quantity information for each of the plurality of types of products;
前記複数種類の商品の各々に対して設定されている所定の期限に係る期限情報と、Expiration information related to a predetermined expiration date set for each of the plurality of types of products;
に基づいて、在庫の商品の組み合わせにより前記セット商品を作成する場合における、前記セット商品に組み入れる各商品が特定されたセット商品構成情報を生成する情報生成手段、information generating means for generating set product configuration information specifying each product to be incorporated into the set product when the set product is created by combining the products in stock based on
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段、a second input means for receiving a second input operation for designating the number of set products to be created;
として機能させ、function as
前記情報生成手段は、前記第2の入力操作により指定された数の前記セット商品を構成可能な商品の組み合わせ方であって、当該セット商品を構成する各商品の前記期限間の最大範囲が基準範囲内となるような商品の組み合わせ方のうち、当該最大範囲が最小となるような商品の組み合わせ方に基づいて前記セット商品構成情報を生成することを特徴とするプログラム。The information generating means provides a method of combining products capable of forming the number of set products specified by the second input operation, wherein the maximum range between the term of each product constituting the set product is used as a reference. A program for generating the set product configuration information based on a combination of products that minimizes the maximum range among combinations of products that fall within the range.
情報処理装置に設けられたコンピュータを、a computer provided in an information processing device,
複数種類の商品の組み合わせからなるセット商品における、商品の種類ごとの構成数量が特定されたセット商品情報と、Set product information specifying the component quantity for each product type in a set product consisting of a combination of multiple types of products;
前記複数種類の商品の各々に係る在庫数量情報と、Inventory quantity information for each of the plurality of types of products;
前記複数種類の商品の各々に対して設定されている所定の期限に係る期限情報と、Expiration information related to a predetermined expiration date set for each of the plurality of types of products;
に基づいて、在庫の商品の組み合わせにより前記セット商品を作成する場合における、前記セット商品に組み入れる各商品が特定されたセット商品構成情報を生成する情報生成手段、information generating means for generating set product configuration information specifying each product to be incorporated into the set product when the set product is created by combining the products in stock based on
として機能させ、function as
前記情報生成手段は、前記セット商品を構成する各商品の前記期限間の最大範囲が基準範囲内となるように、前記セット商品構成情報を生成し、The information generating means generates the set product configuration information such that the maximum range between the expiration dates of each product constituting the set product is within a reference range,
前記コンピュータを、the computer,
前記基準範囲の設定に用いられる基準範囲候補値を指定する第1の入力操作を受け付ける第1の入力手段、a first input means for receiving a first input operation for designating a reference range candidate value used for setting the reference range;
作成する前記セット商品の数を指定する第2の入力操作を受け付ける第2の入力手段、a second input means for receiving a second input operation for designating the number of set products to be created;
として機能させ、function as
前記情報生成手段は、The information generation means is
前記第1の入力操作により指定された前記基準範囲候補値を前記基準範囲として、前記第2の入力操作により指定された数の前記セット商品を作成できる場合には、前記基準範囲候補値を前記基準範囲として前記セット商品構成情報を生成し、If the number of set products specified by the second input operation can be created using the reference range candidate value specified by the first input operation as the reference range, the reference range candidate value is set to the generating the set product configuration information as a reference range;
前記基準範囲候補値を前記基準範囲とすると、前記指定された数の前記セット商品を構成できない場合には、前記指定された数のセット商品を構成可能な、前記基準範囲候補値より大きい最小の基準範囲を特定し、当該最小の基準範囲に基づいて前記セット商品構成情報を生成することを特徴とするプログラム。Assuming that the reference range candidate value is the reference range, if the specified number of the set products cannot be configured, the minimum value larger than the reference range candidate value that allows the configuration of the specified number of set products A program for specifying a reference range and generating the set product composition information based on the minimum reference range.
JP2019001559A 2019-01-09 2019-01-09 Information processing device and program Active JP7310143B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019001559A JP7310143B2 (en) 2019-01-09 2019-01-09 Information processing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019001559A JP7310143B2 (en) 2019-01-09 2019-01-09 Information processing device and program

Publications (2)

Publication Number Publication Date
JP2020112898A JP2020112898A (en) 2020-07-27
JP7310143B2 true JP7310143B2 (en) 2023-07-19

Family

ID=71667978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019001559A Active JP7310143B2 (en) 2019-01-09 2019-01-09 Information processing device and program

Country Status (1)

Country Link
JP (1) JP7310143B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7252814B2 (en) * 2019-03-29 2023-04-05 株式会社オービック Assorted product creation device, assorted product creation method, and assorted product creation program
JP7162390B1 (en) 2022-04-26 2022-10-28 株式会社すなおネット Food product sales system
JP7180939B1 (en) 2022-05-06 2022-11-30 株式会社すなおネット Food product sales system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008015582A (en) 2006-07-03 2008-01-24 Ishida Co Ltd Distribution system
JP2013160704A (en) 2012-02-08 2013-08-19 Funai Electric Co Ltd Information terminal device
JP2014174791A (en) 2013-03-11 2014-09-22 Osaka Gas Co Ltd Foodstuff management system and receipt
JP2018063516A (en) 2016-10-12 2018-04-19 株式会社スズケン Medicine inventory management system and medicine inventory management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008015582A (en) 2006-07-03 2008-01-24 Ishida Co Ltd Distribution system
JP2013160704A (en) 2012-02-08 2013-08-19 Funai Electric Co Ltd Information terminal device
JP2014174791A (en) 2013-03-11 2014-09-22 Osaka Gas Co Ltd Foodstuff management system and receipt
JP2018063516A (en) 2016-10-12 2018-04-19 株式会社スズケン Medicine inventory management system and medicine inventory management method

Also Published As

Publication number Publication date
JP2020112898A (en) 2020-07-27

Similar Documents

Publication Publication Date Title
CN103201755B (en) Method and system for realizing fulfiling management
JP7310143B2 (en) Information processing device and program
US8165904B2 (en) Allocating inventory levels
US8055520B2 (en) System and program product for selecting a lower cost supplier based on total cost and forecasted demand
JP2012247964A (en) Progress management apparatus and progress management program
JP2009157690A (en) Manufacturing process management apparatus, manufacturing process management method, program and recording medium for the same
JP5487699B2 (en) Inventory management apparatus, inventory management method and program thereof
JP4855326B2 (en) Code management system and code management method
JP7121565B2 (en) STORE ORDER MANAGEMENT DEVICE, STORE ORDER MANAGEMENT METHOD, AND STORE ORDER MANAGEMENT PROGRAM
JP2019159719A (en) Sales prediction simulation device, sales prediction simulation method, and sales prediction simulation program
JP4876479B2 (en) Price presenting apparatus and price presenting program
KR20230091976A (en) supply method determination device
JP2014016805A (en) Production plan adjustment support device, production plan adjustment support method, and production plan adjustment support program
US20200089200A1 (en) Production management support apparatus and production management support method
US8185451B2 (en) Turn-around time information management system, storage medium, and turn-around time information management method
US20160148129A1 (en) Report data management device, non-transitory computer-readable storage medium storing report data management program, and report data management method
JP2005215817A (en) System for estimating computer system construction
JP2003237946A (en) Inventory allocation method
JPH10302015A (en) Commodity management device
US20220004993A1 (en) System and Method for Updating Real-Time Project Status Based on Deliverable Status
JP7197419B2 (en) Base Material Cost Calculation Apparatus, Base Material Cost Calculation Method, and Base Material Cost Calculation Program
JP2003308365A (en) Production management method and production management program
JP3961465B2 (en) Inventory management system and inventory management method
JP2017174087A (en) Information processing device and information processing program
JP2020166678A (en) Cutting simulation device, cutting simulation method, and cutting simulation program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230202

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230606

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230619

R150 Certificate of patent or registration of utility model

Ref document number: 7310143

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150