JP2019200678A - Business support device, divided amount output method and divided amount output program - Google Patents

Business support device, divided amount output method and divided amount output program Download PDF

Info

Publication number
JP2019200678A
JP2019200678A JP2018095845A JP2018095845A JP2019200678A JP 2019200678 A JP2019200678 A JP 2019200678A JP 2018095845 A JP2018095845 A JP 2018095845A JP 2018095845 A JP2018095845 A JP 2018095845A JP 2019200678 A JP2019200678 A JP 2019200678A
Authority
JP
Japan
Prior art keywords
amount
split
value
division
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018095845A
Other languages
Japanese (ja)
Other versions
JP7122866B2 (en
Inventor
須藤 裕之
Hiroyuki Sudo
裕之 須藤
絵莉香 古賀
Erika Koga
絵莉香 古賀
和彦 麻生
Kazuhiko Aso
和彦 麻生
剛光 上野
Takemitsu Ueno
剛光 上野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Obic Co Ltd
Original Assignee
Obic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Obic Co Ltd filed Critical Obic Co Ltd
Priority to JP2018095845A priority Critical patent/JP7122866B2/en
Publication of JP2019200678A publication Critical patent/JP2019200678A/en
Application granted granted Critical
Publication of JP7122866B2 publication Critical patent/JP7122866B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

To provide a business support device, a divided amount output method and a divided amount output program capable of greatly reducing a burden required in division work of the amount of a bill.SOLUTION: In this embodiment, when a value of an acquired original amount variable or a value of an acquired remaining amount variable satisfies an amount condition included in a division rule, a divided amount corresponding to an output segment is calculated on the basis of information or an acquired value according to the output segment included in any information among a prescribed amount output segment which means that a prescribed amount included in a division rule is outputted as a divided amount, a ratio reference amount output segment which means that a combination of the prescribed amounts, that is, the product of the acquired value and a prescribed ratio is outputted as the divided amount, and a total amount output segment which means that a combination of the prescribed ratios and the acquired value are outputted as the divided amount.SELECTED DRAWING: Figure 6

Description

本発明は、業務支援装置、分割金額出力方法および分割金額出力プログラムに関する。   The present invention relates to a business support apparatus, a split amount output method, and a split amount output program.

戸建住宅を対象とした工事業界では、売主(戸建デベロッパー)が、発注先の工事会社との間で発注時に決定した支払内容等に基づく発注書と請書と請求書を、発注時に工事会社に渡すことが多い。なお、請求書は、後日、工事会社から売主へ送付される。   In the construction industry for detached houses, the seller (detached developer) purchases a purchase order, an invoice and an invoice based on the payment details determined at the time of ordering with the construction company of the supplier. Often handed to. The bill will be sent from the construction company to the seller at a later date.

なお、工事にまつわる発注書や請書、請求書の作成やそのやり取り等に関する先行技術文献として、例えば特許文献1が挙げられる。特許文献1には、「前記マッチシステム3によって、決定された工事には、自動的に元請会社内の工事決裁書類(利益計画書)及び工事発注書が作成される。実際の書類は元請会社から下請会社に郵送され、下請会社の請書も元請会社に送られる。」と記載されている(段落0028等参照)。また、特許文献1には、「下請会社は、工事管理システム7上で自社の出来高の確認を行い、元請会社への請求書を自動的に発行する。下請会社はプリントアウトされた請求書に押印するのみで元請会社へ請求書を発送できる。」と記載されている(段落0038等参照)。   Note that Patent Document 1 is an example of prior art documents related to the creation and exchange of purchase orders, bills, and bills related to construction. Patent Document 1 states that “a construction approval document (profit plan) and a construction order form in the main contractor are automatically created for the work determined by the match system 3. It is mailed from the subcontractor to the subcontractor, and the subcontractor's application is also sent to the main contractor ”(see paragraph 0028, etc.). Patent Document 1 also states that “the subcontractor confirms its own volume on the construction management system 7 and automatically issues an invoice to the main contractor. The subcontractor invoices printed out. The invoice can be sent to the main contractor company simply by stamping on "(see paragraph 0038, etc.).

特開2010−267219号公報JP 2010-267219 A

ここで、例えば工事会社がいわゆる零細企業に該当する場合、売主が、工事会社に渡す請求書を、工事会社の資金繰りを考慮して複数に分割して発行することがある。そして、これに対応するにあたり、売主と工事会社との間で、請求書の金額をどのように分割するかが決定される。   Here, for example, when a construction company corresponds to a so-called micro enterprise, a seller may issue a bill to be delivered to the construction company by dividing it into a plurality in consideration of the financing of the construction company. In response to this, it is determined how the amount of the invoice is divided between the seller and the construction company.

しかし、分割の仕方は、例えば固定の金額で分割したり按分率で分割したりするなど、工事会社ごとに様々であるため、これまでは、工事会社ごとに決定した分割の仕方を基に請求書の金額を手作業で分割せざるを得なかった。そして、この分割作業は、煩雑なため、大きな負担となっていた。   However, there are various ways of splitting, such as splitting at a fixed amount or splitting at a prorated rate. For example, until now, billing has been based on the splitting method determined for each construction company. I had to divide the amount of the book manually. And this division | segmentation operation | work was complicated and became a big burden.

本発明は、上記問題点に鑑みてなされたものであって、請求書の金額の分割作業に要していた負担を大幅に軽減することができる業務支援装置、分割金額出力方法および分割金額出力プログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems, and is a business support device, a split amount output method, and a split amount output that can greatly reduce the burden required for splitting the amount of a bill. The purpose is to provide a program.

上述した課題を解決し、目的を達成するために、本発明に係る業務支援装置は、制御部を備える業務支援装置であって、前記制御部は、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力手段を備え、前記分割金額出力手段は、前記元金額を元金額変数および残金額変数に代入する初期値設定手段と、複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得手段と、前記規則取得手段で取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得手段と、前記値取得手段で取得した前記値が前記規則取得手段で取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断手段と、前記判断手段で前記金額条件が満たされていると判断された場合、前記規則取得手段で取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得手段で取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得手段で取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得手段で取得した前記値を基に算出する算出手段と、前記残金額変数の本処理実行時の値から前記算出手段で算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新手段と、を備え、前記規則取得手段、前記値取得手段、前記判断手段、前記算出手段および前記更新手段を複数回動作させること、を特徴とする。   In order to solve the above-described problems and achieve the object, the business support device according to the present invention is a business support device including a control unit, and the control unit divides the principal amount from which the split is made. A split amount output means for outputting a plurality of split amounts, wherein the split amount output means includes an initial value setting means for substituting the principal amount into a principal amount variable and a remaining amount variable, and a division rule set including a plurality of division rules A rule acquisition means for acquiring the split rule from, and a principal amount category that means to acquire a value of the principal amount variable and a value of the remaining amount variable included in the division rule acquired by the rule acquisition means. A value acquisition unit that acquires a value of the original amount variable or a value of the remaining amount variable at the time of execution of the process according to any of the remaining amount categories of the remaining amount category that means acquisition; and the value acquisition unit Before getting A determination means for determining whether a value satisfies an amount condition included in the division rule acquired by the rule acquisition means; and when the determination means determines that the amount condition is satisfied, the rule acquisition means A combination of the predetermined amount output classification and the predetermined amount included in the division rule acquired in the above, which means that a predetermined amount is output as the divided amount, and a product of the value acquired by the value acquisition unit and the predetermined ratio Any of the ratio reference amount output category that means output as a split amount and the combination of the predetermined ratio and the full amount output category that means that the value acquired by the value acquisition means is output as the split amount In accordance with the output classification included in the information, the divided amount corresponding to the output classification is calculated using the information or the value acquired by the value acquisition means. And calculating means for substituting for the remaining amount variable, and substituting a value obtained by subtracting the divided amount calculated by the calculating unit from the value of the remaining amount variable at the time of the main processing execution into the remaining amount variable. Means, the value acquisition means, the determination means, the calculation means, and the updating means are operated a plurality of times.

なお、本発明に係る業務支援装置において、前記元金額は、デベロッパーが工事会社に発注した戸建住宅の建設工事に係る発注金額であってもよく、前記分割金額は、前記工事会社が前記デベロッパーに請求する前記建設工事に係る請求金額であって、前記デベロッパーが前記発注のときに前記工事会社に送る請求書に記載されるものであってもよい。   In the business support device according to the present invention, the principal amount may be an order amount relating to a construction of a detached house ordered by a developer, and the split amount may be determined by the developer. May be described in a bill sent to the construction company when the order is placed.

また、本発明に係る業務支援装置は表示部を備えてもよく、前記分割金額出力手段は、前記表示部に表示されている、前記発注の内容を確定するための所定画面に前記元金額が設定されてから動作し始めてもよい。   In addition, the business support device according to the present invention may include a display unit, and the divided amount output means displays the principal amount on a predetermined screen displayed on the display unit for confirming the contents of the order. It may start to operate after being set.

また、本発明に係る分割金額出力方法は、制御部を備える業務支援装置で実行される分割金額出力方法であって、前記制御部で実行される、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力ステップを含み、前記分割金額出力ステップは、前記元金額を元金額変数および残金額変数に代入する初期値設定ステップと、複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得ステップと、前記規則取得ステップで取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得ステップと、前記値取得ステップで取得した前記値が前記規則取得ステップで取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断ステップと、前記判断ステップで前記金額条件が満たされていると判断された場合、前記規則取得ステップで取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得ステップで取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得ステップで取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得ステップで取得した前記値を基に算出する算出ステップと、前記残金額変数の本処理実行時の値から前記算出ステップで算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新ステップと、を含み、前記規則取得ステップ、前記値取得ステップ、前記判断ステップ、前記算出ステップおよび前記更新ステップは複数回実行されること、を特徴とする。   The split amount output method according to the present invention is a split amount output method executed by a business support apparatus including a control unit, and executes a split amount output method executed by the control unit. A split amount output step for outputting a plurality of split amounts, wherein the split amount output step includes an initial value setting step for substituting the original amount into an original amount variable and a remaining amount variable, and a division rule set including a plurality of division rules A rule acquisition step for acquiring the split rule from, and a principal amount category and a value of the remaining amount variable, which are included in the split rule acquired in the rule acquisition step, meaning to acquire a value of the principal amount variable. A value acquisition step of acquiring a value of the original amount variable or a value at the time of execution of the processing of the remaining amount variable in accordance with any amount of the remaining amount categories that means acquisition; and A determination step of determining whether or not the value acquired in the value acquisition step satisfies an amount condition included in the division rule acquired in the rule acquisition step; and determination that the amount condition is satisfied in the determination step If so, a combination of a predetermined amount output classification and the predetermined amount included in the division rule acquired in the rule acquisition step, which means that a predetermined amount is output as the divided amount, and the value acquired in the value acquisition step A ratio base amount output category that means that the product of a value and a predetermined ratio is output as the split amount, a combination of the predetermined ratio, and the total amount that means that the value acquired in the value acquisition step is output as the split amount According to the output category included in any information of the output category, the classification corresponding to the output category. A calculation step for calculating the amount based on the information or the value acquired in the value acquisition step, and a value obtained by subtracting the divided amount calculated in the calculation step from a value at the time of the main processing execution of the remaining amount variable. An update step of substituting into the remaining amount variable, wherein the rule acquisition step, the value acquisition step, the determination step, the calculation step, and the update step are executed a plurality of times.

また、本発明に係る分割金額出力プログラムは、制御部を備える業務支援装置に実行させるための分割金額出力プログラムであって、前記制御部に実行させるための、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力ステップを含み、前記分割金額出力ステップは、前記元金額を元金額変数および残金額変数に代入する初期値設定ステップと、複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得ステップと、前記規則取得ステップで取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得ステップと、前記値取得ステップで取得した前記値が前記規則取得ステップで取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断ステップと、前記判断ステップで前記金額条件が満たされていると判断された場合、前記規則取得ステップで取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得ステップで取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得ステップで取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得ステップで取得した前記値を基に算出する算出ステップと、前記残金額変数の本処理実行時の値から前記算出ステップで算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新ステップと、を含み、前記規則取得ステップ、前記値取得ステップ、前記判断ステップ、前記算出ステップおよび前記更新ステップは複数回実行されること、を特徴とする。   A split amount output program according to the present invention is a split amount output program for causing a business support apparatus including a control unit to execute a split amount output program for splitting an original amount as a source of splitting to be executed by the control unit. A split amount output step for outputting a plurality of split amounts, wherein the split amount output step includes an initial value setting step for substituting the original amount into an original amount variable and a remaining amount variable, and a plurality of division rules. A rule acquisition step for acquiring the split rule from a rule set, and a principal amount classification and a remaining amount variable of the remaining amount variable that are included in the split rule acquired in the rule acquisition step, The value of the original amount variable or the value at the time of execution of this process of the remaining amount variable is determined according to any of the remaining amount categories that means obtaining a value. A value acquisition step, a determination step of determining whether the value acquired in the value acquisition step satisfies an amount condition included in the division rule acquired in the rule acquisition step, and the amount condition in the determination step A combination of the predetermined amount and the predetermined amount included in the division rule acquired in the rule acquisition step, and a predetermined amount output category, which means that the predetermined amount is output as the divided amount, if the value is determined to be satisfied, the value The product of the value acquired in the acquisition step and the predetermined ratio is output as the split amount, and the combination of the ratio reference amount output category and the predetermined ratio, and the value acquired in the value acquisition step is output as the split amount In accordance with the output category included in any of the full output categories that means The calculation step of calculating the split amount corresponding to the force category based on the information or the value acquired in the value acquisition step, and the calculation step calculated from the value of the remaining amount variable at the time of the main processing execution An update step of substituting a value obtained by subtracting the divided amount into the remaining amount variable, and the rule acquisition step, the value acquisition step, the determination step, the calculation step, and the update step are executed a plurality of times. It is characterized by.

本発明は、請求書の金額の分割作業に要していた負担を大幅に軽減することができるという効果を奏する。   The present invention has an effect of greatly reducing the burden required for dividing the amount of bills.

図1は、業務フローの概要を示す図である。FIG. 1 is a diagram showing an outline of a business flow. 図2は、業務支援装置の構成の一例を示すブロック図である。FIG. 2 is a block diagram illustrating an example of the configuration of the business support apparatus. 図3は、取引先マスタの一例を示す図である。FIG. 3 is a diagram illustrating an example of a supplier master. 図4は、発注依頼入力画面の一例を示す図である。FIG. 4 is a diagram illustrating an example of an order request input screen. 図5は、発注確定処理画面の一例を示す図である。FIG. 5 is a diagram illustrating an example of an order confirmation process screen. 図6は、査定分割入力画面の一例を示す図である。FIG. 6 is a diagram illustrating an example of the assessment division input screen. 図7は、発注書、請書および請求書の一例を示す図である。FIG. 7 is a diagram illustrating an example of a purchase order, a confirmation, and an invoice. 図8は、仕入入力画面の一例を示す図である。FIG. 8 is a diagram illustrating an example of a purchase input screen. 図9は、取引先発注時査定分割方法マスタの設定がない場合における分割の仕組みの一例を示す図である。FIG. 9 is a diagram illustrating an example of a division mechanism in the case where there is no setting of an assessment division method master at the time of supplier ordering. 図10は、査定分割条件に当てはまらない場合における分割の仕組みの一例を示す図である。FIG. 10 is a diagram illustrating an example of a division mechanism when the assessment division condition is not satisfied. 図11は、金額全額に基づく分割の仕組みの一例を示す図である。FIG. 11 is a diagram illustrating an example of a division mechanism based on the total amount of money. 図12は、定額金額および残金全額に基づく分割の仕組みの一例を示す図である。FIG. 12 is a diagram illustrating an example of a division mechanism based on the fixed amount and the total remaining amount. 図13は、按分率および残金全額に基づく分割の仕組みの一例を示す図である。FIG. 13 is a diagram illustrating an example of a splitting mechanism based on the distribution ratio and the total remaining amount. 図14は、按分率および残金全額に基づく多少複雑な分割の仕組みの一例を示す図である。FIG. 14 is a diagram illustrating an example of a somewhat complicated division mechanism based on the distribution ratio and the total remaining amount. 図15は、本実施形態に係る処理のフローチャートの一例を示す図である。FIG. 15 is a diagram illustrating an example of a flowchart of processing according to the present embodiment. 図16は、本実施形態に係る処理のフローチャートの一例を示す図である。FIG. 16 is a diagram illustrating an example of a flowchart of processing according to the present embodiment. 図17は、本実施形態に係る処理のフローチャートの一例を示す図である。FIG. 17 is a diagram illustrating an example of a flowchart of processing according to the present embodiment. 図18は、本実施形態に係る処理のフローチャートの一例を示す図である。FIG. 18 is a diagram illustrating an example of a flowchart of processing according to the present embodiment. 図19は、本実施形態に係る処理のフローチャートの一例を示す図である。FIG. 19 is a diagram illustrating an example of a flowchart of processing according to the present embodiment. 図20は、本実施形態に係る処理のフローチャートの一例を示す図である。FIG. 20 is a diagram illustrating an example of a flowchart of processing according to the present embodiment. 図21は、本実施形態に係る処理のフローチャートの一例を示す図である。FIG. 21 is a diagram illustrating an example of a flowchart of processing according to the present embodiment. 図22は、発注明細ワークおよび査定分割ワークの一例を示す図である。FIG. 22 is a diagram illustrating an example of an order detail work and an assessment division work. 図23は、取引先発注時査定分割方法マスタの一例を示す図である。FIG. 23 is a diagram illustrating an example of an assessment division method master at the time of supplier ordering. 図24は、チェックされた発注依頼明細、発注明細ワークおよび発注依頼カーソルの一例を示す図である。FIG. 24 is a diagram illustrating an example of the checked order request details, the order detail work, and the order request cursor. 図25は、発注依頼カーソルの1行目の一例を示す図である。FIG. 25 is a diagram illustrating an example of the first line of the order request cursor. 図26は、発注依頼カーソルの1行目を基に更新された査定分割ワークの一例を示す図である。FIG. 26 is a diagram illustrating an example of the assessment divided work updated based on the first line of the order request cursor. 図27は、発注依頼カーソルの2行目の一例を示す図である。FIG. 27 is a diagram illustrating an example of the second line of the order request cursor. 図28は、発注依頼カーソルの2行目を基に更新された査定分割ワークの一例を示す図である。FIG. 28 is a diagram illustrating an example of the assessment divided work updated based on the second line of the order request cursor. 図29は、取引先発注時査定分割方法マスタの一例を示す図である。FIG. 29 is a diagram illustrating an example of an assessment division method master at the time of supplier ordering. 図30は、チェックされた発注依頼明細、発注明細ワークおよび発注依頼カーソルの一例を示す図である。FIG. 30 is a diagram illustrating an example of the checked order request details, the order detail work, and the order request cursor. 図31は、発注依頼カーソルの1行目の一例を示す図である。FIG. 31 is a diagram illustrating an example of the first line of the order request cursor. 図32は、取引先発注時査定分割カーソルの一例を示す図である。FIG. 32 is a diagram illustrating an example of an assessment division cursor at the time of supplier ordering. 図33は、取引先発注時査定分割カーソルの1行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 33 is a diagram illustrating an example of the assessment division work updated on the first line of the assessment division cursor at the time of supplier ordering. 図34は、取引先発注時査定分割方法マスタの一例を示す図である。FIG. 34 is a diagram showing an example of an assessment division method master at the time of supplier ordering. 図35は、チェックされた発注依頼明細、発注明細ワークおよび発注依頼カーソルの一例を示す図である。FIG. 35 is a diagram illustrating an example of the checked order request details, the order detail work, and the order request cursor. 図36は、発注依頼カーソルの1行目の一例を示す図である。FIG. 36 is a diagram illustrating an example of the first line of the order request cursor. 図37は、取引先発注時査定分割カーソルの一例を示す図である。FIG. 37 is a diagram illustrating an example of an assessment division cursor at the time of supplier ordering. 図38は、取引先発注時査定分割カーソルの1行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 38 is a diagram showing an example of the assessment division work updated on the first line of the assessment division cursor at the time of supplier ordering. 図39は、取引先発注時査定分割方法マスタの一例を示す図である。FIG. 39 is a diagram showing an example of the assessment division method master at the time of supplier ordering. 図40は、チェックされた発注依頼明細、発注明細ワークおよび発注依頼カーソルの一例を示す図である。FIG. 40 is a diagram illustrating an example of the checked order request details, the order detail work, and the order request cursor. 図41は、発注依頼カーソルの1行目の一例を示す図である。FIG. 41 is a diagram illustrating an example of the first line of the order request cursor. 図42は、取引先発注時査定分割カーソルの一例を示す図である。FIG. 42 is a diagram illustrating an example of an assessment division cursor at the time of supplier ordering. 図43は、取引先発注時査定分割カーソルの1行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 43 is a diagram illustrating an example of the assessment division work updated on the first line of the assessment division cursor at the time of supplier ordering. 図44は、取引先発注時査定分割カーソルの2行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 44 is a diagram illustrating an example of the assessment division work updated on the second line of the assessment division cursor at the time of supplier ordering. 図45は、取引先発注時査定分割方法マスタの一例を示す図である。FIG. 45 is a diagram illustrating an example of an assessment division method master at the time of supplier ordering. 図46は、チェックされた発注依頼明細、発注明細ワークおよび発注依頼カーソルの一例を示す図である。FIG. 46 is a diagram illustrating an example of the checked order request details, the order detail work, and the order request cursor. 図47は、発注依頼カーソルの1行目の一例を示す図である。FIG. 47 is a diagram illustrating an example of the first line of the order request cursor. 図48は、取引先発注時査定分割カーソルの一例を示す図である。FIG. 48 is a diagram illustrating an example of an assessment division cursor at the time of supplier ordering. 図49は、取引先発注時査定分割カーソルの1行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 49 is a diagram illustrating an example of the assessment division work updated on the first line of the assessment division cursor at the time of supplier ordering. 図50は、取引先発注時査定分割カーソルの2行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 50 is a diagram illustrating an example of the assessment division work updated based on the second line of the assessment division cursor at the time of supplier ordering. 図51は、取引先発注時査定分割カーソルの3行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 51 is a diagram showing an example of the assessment division work updated on the third line of the assessment division cursor at the time of supplier ordering. 図52は、取引先発注時査定分割方法マスタの一例を示す図である。FIG. 52 is a diagram showing an example of an assessment division method master at the time of supplier ordering. 図53は、チェックされた発注依頼明細、発注明細ワークおよび発注依頼カーソルの一例を示す図である。FIG. 53 is a diagram illustrating an example of the checked order request details, the order detail work, and the order request cursor. 図54は、発注依頼カーソルの1行目の一例を示す図である。FIG. 54 is a diagram showing an example of the first line of the order request cursor. 図55は、取引先発注時査定分割カーソルの一例を示す図である。FIG. 55 is a diagram illustrating an example of an assessment division cursor at the time of supplier ordering. 図56は、取引先発注時査定分割カーソルの1行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 56 is a diagram showing an example of the assessment division work updated on the first line of the assessment division cursor at the time of supplier ordering. 図57は、取引先発注時査定分割カーソルの2行目の一例を示す図である。FIG. 57 is a diagram illustrating an example of the second row of the assessment division cursor at the time of supplier ordering. 図58は、取引先発注時査定分割カーソルの3行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 58 is a diagram showing an example of the assessment division work updated on the third line of the assessment division cursor at the time of supplier ordering. 図59は、取引先発注時査定分割カーソルの4行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 59 is a diagram illustrating an example of the assessment division work updated on the fourth line of the assessment division cursor at the time of supplier ordering. 図60は、取引先発注時査定分割カーソルの5行目およびこれを基に更新された査定分割ワークの一例を示す図である。FIG. 60 is a diagram illustrating an example of the assessment division work updated on the fifth line of the assessment division cursor at the time of supplier ordering.

以下に、本発明に係る業務支援装置、分割金額出力方法および分割金額出力プログラムの実施形態を、図面に基づいて詳細に説明する。なお、本実施形態により本発明が限定されるものではない。   Hereinafter, embodiments of a business support device, a split amount output method, and a split amount output program according to the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited by this embodiment.

[1.概要]
工事業、不動産業および建設業等においては、発注時に支払の内容等を決定する。戸建業界等においては、図1の「戸建デベロッパーの業務フローの概要」および「発注の業務フロー」に示すように、発注時に「発注書、請書および請求書(後日、その請求書が送られてくる)」を発注先の工事会社に渡すことが多い。その際に、請求書の金額を分割した内容で請求書を発行したいという、戸建工事業界において多い要望がある。分割する際の支払の仕方は、取引先である工事会社毎に決まることが多く、例えば、初回いくら、竣工特にいくらの2回払い等である。分割する際の金額は、例えば、定額金額や按分率に基づき算出した金額である。
[1. Overview]
In the construction business, real estate industry, construction industry, etc., payment details will be determined when placing an order. In the detached industry, etc., as shown in “Summary of business flow for detached developers” and “Business flow for ordering” in Figure 1, “Purchase order, confirmation and invoice (the invoice will be sent later) Are often handed over to the contracting company. At that time, there is a large demand in the detached construction industry that it is desired to issue a bill with the content divided from the amount of the bill. The payment method at the time of splitting is often determined for each construction company that is a business partner, for example, how many times the initial payment is made, especially how many times it is completed. The amount at the time of division is, for example, an amount calculated based on a fixed amount or a proration rate.

ここで、従来においては、エクセルにより発注書等を作成することが多く、担当者が請求書の金額を手作業で分割していたため、作業が煩雑であるという問題があった。   Here, conventionally, a purchase order or the like is often created by Excel, and the person in charge has manually divided the amount of the invoice, so that there is a problem that the work is complicated.

そこで、本実施形態においては、例えば、システムにより分割の定義を設定することによって、自動的に初期分割を行い、ユーザの作業負担を減らすことができる。また、本実施形態においては、例えば、発注先への支払金額を自動的に按分し、請求書に印字することもできる。以下、具体的な構成および動作について説明する。   Therefore, in the present embodiment, for example, by setting the definition of division by the system, the initial division is automatically performed, and the work burden on the user can be reduced. In the present embodiment, for example, the payment amount to the ordering party can be automatically distributed and printed on the invoice. Hereinafter, a specific configuration and operation will be described.

[2.構成]
本実施形態に係る業務支援装置の構成の一例について、図2等を参照して説明する。図2は、業務支援装置の構成の一例を示すブロック図である。
[2. Constitution]
An example of the configuration of the business support apparatus according to the present embodiment will be described with reference to FIG. FIG. 2 is a block diagram illustrating an example of the configuration of the business support apparatus.

業務支援装置100は、市販のデスクトップ型パーソナルコンピュータである。なお、業務支援装置100は、デスクトップ型パーソナルコンピュータのような据置型情報処理装置に限らず、市販されているノート型パーソナルコンピュータ、PDA(Personal Digital Assistants)、スマートフォン、タブレット型パーソナルコンピュータなどの携帯型情報処理装置であってもよい。   The business support apparatus 100 is a commercially available desktop personal computer. The business support apparatus 100 is not limited to a stationary information processing apparatus such as a desktop personal computer, but is a portable type such as a commercially available notebook personal computer, PDA (Personal Digital Assistant), smartphone, or tablet personal computer. An information processing apparatus may be used.

業務支援装置100は、制御部102と通信インターフェース部104と記憶部106と入出力インターフェース部108と、を備えている。業務支援装置100が備えている各部は、任意の通信路を介して通信可能に接続されている。   The business support apparatus 100 includes a control unit 102, a communication interface unit 104, a storage unit 106, and an input / output interface unit 108. Each unit included in the business support apparatus 100 is connected to be communicable via an arbitrary communication path.

通信インターフェース部104は、ルータ等の通信装置および専用線等の有線または無線の通信回線を介して、業務支援装置100をネットワーク300に通信可能に接続する。通信インターフェース部104は、他の装置と通信回線を介してデータを通信する機能を有する。ここで、ネットワーク300は、業務支援装置100とサーバ200とを相互に通信可能に接続する機能を有し、例えばインターネットやLAN(Local Area Network)等である。なお、後述する各種マスタ等のデータは、例えばサーバ200に格納されてもよい。   The communication interface unit 104 connects the business support apparatus 100 to the network 300 via a communication device such as a router and a wired or wireless communication line such as a dedicated line. The communication interface unit 104 has a function of communicating data with other devices via a communication line. Here, the network 300 has a function of connecting the business support apparatus 100 and the server 200 so that they can communicate with each other, and is, for example, the Internet or a LAN (Local Area Network). Note that data such as various masters described later may be stored in the server 200, for example.

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

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

記憶部106には、例えば、発注依頼データ106aと、発注明細ワーク106bと、発注依頼カーソル106cと、分割規則集合としての取引先発注時査定分割方法マスタ106d(以下、単に「査定分割マスタ106d」ということがある。)と、取引先発注時査定分割カーソル106e(以下、単に「査定分割カーソル106e」ということがある。)と、査定分割ワーク106fと、請求書データ106gと、書類データ106hと、等が格納されている。   In the storage unit 106, for example, the order request data 106 a, the order detail work 106 b, the order request cursor 106 c, and the customer ordering assessment division method master 106 d (hereinafter simply referred to as “assessment division master 106 d”) as a set of division rules. An assessment division cursor 106e (hereinafter simply referred to as “assessment division cursor 106e”), an assessment division work 106f, invoice data 106g, and document data 106h. , Etc. are stored.

ここで、本実施形態に係る業務支援装置100によれば、分割の元となる元金額を分割して複数の分割金額を出力することができる。   Here, according to the business support apparatus 100 according to the present embodiment, it is possible to divide the principal amount that is the source of the division and output a plurality of divided amounts.

前記元金額は、例えば、デベロッパーが工事会社に発注した戸建住宅の建設工事に係る発注金額である。当該発注金額は、例えば、発注税込金額と発注税抜金額のどちらであってもよい。   The principal amount is, for example, an order amount related to the construction work of a detached house ordered by a developer from a construction company. The order amount may be, for example, an order tax-included amount or an order tax-excluded amount.

前記分割金額は、例えば、前記工事会社が前記デベロッパーに請求する前記建設工事に係る請求金額であって、前記デベロッパーが前記発注のときに前記工事会社に送る請求書に記載されるものである。当該請求金額は、例えば、請求税込金額と請求税抜金額のどちらであってもよい。   The split amount is, for example, a bill amount related to the construction work that the construction company charges to the developer, and is described in a bill that the developer sends to the construction company when placing the order. The billing amount may be, for example, a billing tax-included amount or a billing tax-excluded amount.

発注依頼データ106aは、例えば、工事の発注依頼明細を含むデータである。前記発注依頼明細は、図4および図5に一部を示すように、例えば、工事の大分類、工事の中分類、発注番号、発注先コード、発注先名、発注日、工事のプロジェクトコード、工事のプロジェクト名、工事のプロジェクト枝番、工事番号、工事区分、工事細目コード、工事細目名、税込区分、消費税率区分、工事の数量、工事の単価、工事の税込金額、工事の税抜金額、工事の消費税額、工事の完了予定日、明細備考、取引担当者コードおよび取引担当者名等を含む。   The order request data 106a is data including, for example, construction order request details. The order request details are, for example, as shown in FIG. 4 and FIG. 5, for example, major classification of construction, middle classification of construction, order number, ordering party code, ordering party name, ordering date, construction project code, Construction project name, construction project branch number, construction number, construction category, construction detail code, construction detail name, tax-included category, consumption tax rate category, construction quantity, construction unit price, construction tax-inclusive amount, construction tax-excluded amount , Including construction consumption tax, planned completion date, detailed remarks, transaction code, transaction name, etc.

発注明細ワーク106bは、例えば、前記発注依頼明細のうち、発注確定処理により発注が確定した明細である発注確定明細を含むデータである。前記発注確定明細は、図22に一部を示すように、例えば、分割コード、発注依頼Guid、発注依頼明細Guid、前記発注番号、前記発注先コード、前記発注日、前記工事のプロジェクトコード、前記工事のプロジェクト枝番、前記工事番号、前記工事区分、前記工事細目コード、前記工事細目名、前記税込区分、前記消費税率区分、前記工事の数量、前記工事の単価、前記工事の税込金額、前記工事の税抜金額、前記工事の消費税額、前記工事の完了予定日、前記明細備考および前記取引担当者コード等を含む。   The order detail work 106b is data including, for example, the order confirmation details that are the details of the order confirmed by the order confirmation processing in the order request details. As shown in part in FIG. 22, the order confirmation details include, for example, a division code, an order request Guid, an order request detail Guid, the order number, the order destination code, the order date, the construction project code, Project branch number of the construction, the construction number, the construction classification, the construction detail code, the construction detail name, the tax-included classification, the consumption tax rate classification, the quantity of the construction, the construction unit price, the tax-included amount of the construction, It includes the tax-excluded amount of work, the consumption tax amount of the work, the scheduled completion date of the work, the detailed remarks, the person in charge of the transaction, and the like.

発注依頼カーソル106cは、例えば、前記発注確定明細のうち、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じであるものを集約した集約明細を含むデータである。前記集約明細は、集約された前記発注確定明細に含まれる前記工事の税込金額、前記工事の税抜金額および前記工事の消費税額それぞれの合計額を含む。例えば、図24の発注明細ワーク106bに含まれる3つの発注確定明細のうち、1〜2行目の発注確定明細は前記組み合わせが同じであるため、図24の発注依頼カーソル106cの1行目に示す集約明細に集約される。そして、当該集約明細は、図24の発注依頼カーソル106cの1行目の集約明細に示すように、前記1行目の発注確定明細に含まれる税込金額140,400円と前記2行目の発注確定明細に含まれる税込金額54,000円との合計額である発注税込金額(税込金額合計値)194,400円と、前記1行目の発注確定明細に含まれる税抜金額130,000円と前記2行目の発注確定明細に含まれる税抜金額50,000円との合計額である発注税抜金額(税抜金額合計値)180,000円と、前記1行目の発注確定明細に含まれる消費税額10,400円と前記2行目の発注確定明細に含まれる消費税額4,000円との合計額である発注消費税額(消費税額合計値)14,400円と、を含む。前記集約明細は、図24の発注依頼カーソル106cに示すように、例えば、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号、前記工事区分、前記発注税込金額、前記発注税抜金額および前記発注消費税額等を含む。   The order request cursor 106c has, for example, the same combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification in the order confirmation details. It is data including an aggregated statement that aggregates things. The consolidated details include a total amount of the tax included in the construction, a tax-excluded amount of the construction, and a consumption tax of the construction included in the consolidated order confirmation details. For example, among the three order confirmation details included in the order detail work 106b in FIG. 24, the order confirmation details in the first and second lines have the same combination, so the first order line of the order request cursor 106c in FIG. Aggregated to the aggregation details shown. Then, as shown in the aggregation details on the first line of the order request cursor 106c in FIG. 24, the aggregation details include the tax-included amount of 140,400 yen included in the order confirmation details on the first line and the order confirmation details on the second line. Included in the tax-included amount of 54,000 yen, the order-included tax amount (total value of tax-included value) is 194,400 yen, and the tax-excluded amount of 130,000 yen included in the order confirmation details on the first line and the order confirmed on the second line Order tax-excluded amount (total tax-excluded value) 180,000 yen, which is the total amount with tax-excluded amount 50,000 yen included in the line, and consumption tax amount 10,400 yen included in the first line of the confirmed order line and the second line Order consumption tax amount (total consumption tax amount value) 14,400 yen, which is the total amount with the consumption tax amount 4,000 yen included in the order confirmation details. As shown in the order request cursor 106c in FIG. 24, the aggregated details include, for example, the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, the construction classification, Including the order tax-included amount, the order tax-excluded amount, and the order consumption tax amount.

分割規則集合としての査定分割マスタ106dは、金額を分割してよいか否かを判断するための条件や金額の分割の仕方等を定義するためのマスタである。査定分割マスタ106dは、複数の分割規則を含む。当該分割規則は、図3に示すように、例えば、当該分割規則の取得順である発生順、残金区分(本発明の「金額区分」に相当)、金額条件と金額条件区分の組み合わせ(当該組み合わせは、本発明の「金額条件」に相当)、発生金額区分(本発明の「出力区分」に相当)、金額端数単位および端数区分等を含む。   The assessment division master 106d as a division rule set is a master for defining conditions for determining whether or not to divide an amount, how to divide the amount, and the like. The assessment division master 106d includes a plurality of division rules. As shown in FIG. 3, the division rule includes, for example, the order of occurrence of the division rule, the order of occurrence, the balance of the balance (corresponding to “amount category” of the present invention), and the combination of the amount condition and the amount condition category (the combination) Is equivalent to “money condition” of the present invention), generated money amount category (corresponding to “output category” of the present invention), monetary fraction unit, fractional division, and the like.

前記残金区分としては、図3に示すように、例えば、「0:全体」(本発明の「元金額区分」に相当)および「1:残金」(本発明の「残金額区分」に相当)等が存在する。「0:全体」の残金区分は、元金額変数の値を取得することを意味する区分である。「1:残金」の残金区分は、残金額変数の値を取得することを意味する区分である。   As the balance category, as shown in FIG. 3, for example, “0: Overall” (corresponding to “Principal amount category” of the present invention) and “1: Balance” (corresponding to “Remaining amount category” of the present invention). Etc. exist. The balance of “0: whole” is a category that means obtaining the value of the principal amount variable. The balance category of “1: balance” is a category that means obtaining the value of the balance variable.

前記金額条件は、例えば、分割基準金額(すなわち、分割してよいか否かを判断する際の基準となる金額)である。前記金額条件区分としては、図3に一部を示すように、例えば、「0:未満」、「1:以下」、「2:以上」、「3:超」および「9:無し」等が存在する。前記金額条件と前記金額条件区分の組み合わせが、分割条件となる。   The money amount condition is, for example, a division reference amount (that is, a reference amount for determining whether or not to divide). As part of the money amount condition, for example, “less than 0:”, “1: below”, “2: above”, “3: above”, “9: none”, etc., as shown in part in FIG. Exists. A combination of the money amount condition and the money amount condition classification is a division condition.

ここで、金額を分割してよいか否かを前記残金区分、前記金額条件および前記金額条件区分を参照して判断する方法について、図3を用いて具体的に説明する。図3の査定分割マスタ106dの1行目および2行目のレコードにおいては、残金区分が「0:全体」であり、金額条件が「100,000」であり、金額条件区分が「0:未満」である。この場合、取得した元金額変数の値が100,000円未満である場合に、当該取得した元金額変数の値を分割してよいと判断される。また、図3の査定分割マスタ106dの3行目のレコードにおいては、残金区分が「1:残金」であり、金額条件が「100,000」であり、金額条件区分が「9:無し」である。この場合、取得した残金額変数の値に関わらず、当該取得した残金額変数の値を分割してよいと判断される。   Here, a method for determining whether or not the money amount may be divided with reference to the remaining money category, the money amount condition, and the money amount condition category will be specifically described with reference to FIG. In the records of the first and second lines of the assessment division master 106d in FIG. 3, the balance classification is “0: entire”, the money amount condition is “100,000”, and the money amount condition division is “less than 0:”. is there. In this case, when the acquired value of the principal amount variable is less than 100,000 yen, it is determined that the acquired value of the principal amount variable may be divided. Further, in the record of the third row of the assessment division master 106d in FIG. 3, the balance classification is “1: balance”, the money amount condition is “100,000”, and the money amount condition division is “9: none”. In this case, it is determined that the acquired value of the remaining amount variable may be divided regardless of the value of the acquired remaining amount variable.

前記発生金額区分としては、図3に一部を示すように、例えば、「0:金額全額」(本発明の「全額出力区分」に相当)、「1:定額金額」(本発明の「所定額出力区分」に相当)および「2:%」(本発明の「比率基準額出力区分」に相当)等が存在する。「0:金額全額」の発生金額区分は、取得した前記元金額変数の値または取得した前記残金額変数の値を前記分割金額として出力することを意味する区分である。「1:定額金額」の発生金額区分は、発生金額(本発明の「所定金額」に相当)を前記分割金額として出力することを意味する区分である。「2:%」は、取得した前記元金額変数の値または取得した前記残金額変数の値と按分率(本発明の「所定比率」に相当)の積を前記分割金額として出力することを意味する区分である。   As shown in FIG. 3, for example, “0: total amount of money” (corresponding to “full amount output category” of the present invention), “1: fixed amount” (“placement amount of the present invention”). Equivalent to “fixed amount output category”) and “2:%” (equivalent to “ratio standard amount output category” of the present invention). The generated amount category of “0: total amount of money” is a category that means that the acquired value of the principal amount variable or the acquired value of the remaining amount variable is output as the divided amount. The generated amount category of “1: fixed amount” is a category meaning that the generated amount (corresponding to “predetermined amount” of the present invention) is output as the divided amount. “2:%” means that the product of the acquired value of the principal amount variable or the acquired value of the remaining amount variable and the distribution rate (corresponding to the “predetermined ratio” of the present invention) is output as the divided amount. It is a category to do.

前記発生金額区分が「1:定額金額」の場合には、前記分割規則として、前記発生金額を設定することができる。なお、前記発生金額としては、小数点以下の値を設定することはできない。前記発生金額区分が「2:%」の場合には、前記分割規則として、前記按分率を設定することができる。なお、前記按分率としては、小数点以下4桁の値までが有効である。   When the generated amount category is “1: fixed amount”, the generated amount can be set as the division rule. Note that a value after the decimal point cannot be set as the generated amount. When the generated amount category is “2:%”, the distribution rate can be set as the division rule. The apportioning rate is valid up to 4 digits after the decimal point.

ここで、前記残金区分および前記発生金額区分を参照して金額の分割を行う方法について、前記元金額変数の値が194,400円であると仮定して、図3を用いて具体的に説明する。図3の査定分割マスタ106dの1行目のレコードにおいては、残金区分が「0:全体」であり、前記発生金額区分が「2:%」であり、按分率が30%である。この場合、分割金額は、前記元金額変数の値194,400円×30/100=58,320円となる。また、図3の査定分割マスタ106dの2行目のレコードにおいては、残金区分が「0:全体」であり、前記発生金額区分が「2:%」であり、按分率が40%である。この場合、分割金額は、前記元金額変数の値194,400円×40/100=77,760円となる。そして、図3の査定分割マスタ106dの3行目のレコードにおいては、残金区分が「1:残金」であり、前記発生金額区分が「0:金額全額」である。この場合、分割金額は、「前記元金額変数の値194,400円−分割金額58,320円−分割金額77,760円=残金額変数の値58,320円」の全額である58,320円となる。   Here, a method of dividing the amount with reference to the remaining amount category and the generated amount category will be specifically described with reference to FIG. 3 assuming that the value of the principal amount variable is 194,400 yen. In the record of the first row of the assessment division master 106d in FIG. 3, the balance category is “0: total”, the generated amount category is “2:%”, and the distribution rate is 30%. In this case, the divided amount is the value of the principal amount variable 194,400 yen × 30/100 = 58,320 yen. Further, in the record of the second row of the assessment division master 106d in FIG. 3, the balance classification is “0: total”, the generated amount classification is “2:%”, and the distribution rate is 40%. In this case, the split amount is the value of the principal amount variable 194,400 yen × 40/100 = 77,760 yen. Then, in the record of the third row of the assessment division master 106d in FIG. 3, the balance category is “1: balance”, and the generated amount category is “0: total amount”. In this case, the split amount is 58,320 yen which is the total amount of “the value of the principal amount variable 194,400 yen−the split amount 58,320 yen−the split amount 77,760 yen = the remaining amount variable value 58,320 yen”.

前記金額端数単位は、前記発生金額区分が「2:%」の場合に設定可能な項目であり、按分結果の丸めの単位である。例えば、前記金額端数単位を「500」と登録すると、500円単位で支払金額を分割することができる。   The fractional unit of money is an item that can be set when the generated money amount category is “2:%”, and is a unit of rounding of the apportionment result. For example, if the amount fractional unit is registered as “500”, the payment amount can be divided in units of 500 yen.

前記端数区分は、前記発生金額区分が「2:%」の場合に設定可能な項目であり、按分結果の丸めである。前記端数区分としては、例えば、「0:切捨て」、「1:四捨五入」および「2:切上げ」等が存在する。   The fraction category is an item that can be set when the generated amount category is “2:%”, and is a rounding of a prorated result. Examples of the fraction classification include “0: round down”, “1: rounding off”, “2: round up”, and the like.

査定分割マスタ106dは、図3には示さないが、例えば更に、支払方法を含んでいてもよい。前記支払方法として、支払方法コードを設定することができる。なお、支払方法マスタにおけるシステム支払区分が「99:振替支払」の支払方法コードを設定することはできない。   The assessment division master 106d is not shown in FIG. 3, but may further include a payment method, for example. A payment method code can be set as the payment method. Note that a payment method code whose system payment classification in the payment method master is “99: transfer payment” cannot be set.

査定分割カーソル106eは、査定分割マスタ106dに含まれる情報の格納先である。査定分割カーソル106eは、例えば、前記分割規則を含む。   The assessment division cursor 106e is a storage destination of information included in the assessment division master 106d. The assessment division cursor 106e includes, for example, the division rule.

査定分割ワーク106fは、例えば、前記分割元金額を分割した結果である分割金額(分割できない場合には、前記分割元金額)の格納先である。査定分割ワーク106fは、図22に示すように、例えば、前記分割コード、請求番号、前記発注番号、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号、前記工事区分、請求書分割番号、請求税込金額、請求税抜金額および請求消費税額等を含む。なお、前記請求書分割番号とは、後に請求番号を採番する際のキーとなる項目であり、前記請求書分割番号ごとに、請求番号が採番される。   The assessment division work 106f is, for example, a storage location of a division amount (a division source amount if the division source amount cannot be divided) as a result of dividing the division source amount. As shown in FIG. 22, the assessment division work 106f includes, for example, the division code, the billing number, the order number, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction. Including classification, invoice division number, invoiced tax, invoiced tax and invoiced consumption tax. The bill division number is an item that becomes a key when the bill number is assigned later, and a bill number is assigned to each bill division number.

請求書データ106gは、図9〜図14に示すように、例えば、前記請求番号、前記請求税込金額および前記消費税額等を含む。   The bill data 106g includes, for example, the bill number, the billing tax amount, the consumption tax amount, and the like, as shown in FIGS.

書類データ106hは、図7に示すように、例えば、前記発注書、前記請書および前記請求書の書類データである。   As shown in FIG. 7, the document data 106h is, for example, document data of the purchase order, the application form, and the invoice.

制御部102は、業務支援装置100を統括的に制御するCPU等である。制御部102は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。   The control unit 102 is a CPU or the like that comprehensively controls the business support apparatus 100. The control unit 102 has an internal memory for storing a control program such as an OS, a program that defines various processing procedures, and necessary data, and performs various information processing based on these stored programs. Execute.

制御部102は、機能概念的に、発注依頼の入力を受け付ける発注依頼入力手段としての発注依頼入力部102aと、発注の確定処理を行う発注確定処理手段としての発注確定処理部102bと、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力手段としての分割金額出力部102cと、前記発注書、前記請書および前記請求書の書類データを作成する書類データ作成手段としての書類データ作成部102dと、仕入内容の入力を受け付ける仕入入力手段としての仕入入力部102eと、を備えている。なお、各部が実行する処理の内容については、以下の[3.処理概要]および[4.処理詳細]で説明する。   The control unit 102 conceptually has an order request input unit 102a as an order request input unit that receives an input of an order request, an order confirmation processing unit 102b as an order confirmation processing unit that performs an order confirmation process, A split amount output unit 102c as a split amount output unit that outputs a plurality of split amounts by dividing the original principal amount, and a document data creation unit that creates document data of the purchase order, the confirmation, and the invoice Document data creation unit 102d, and a purchase input unit 102e as a purchase input unit for receiving input of purchase contents. In addition, about the content of the process which each part performs, the following [3. Process overview] and [4. Process details].

分割金額出力部102cは、前記元金額を元金額変数および残金額変数に代入する初期値設定手段としての初期値設定部102c1と、複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得手段としての規則取得部102c2と、前記規則取得手段で取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得手段としての値取得部102c3と、前記値取得手段で取得した前記値が前記規則取得手段で取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断手段としての判断部102c4と、前記判断手段で前記金額条件が満たされていると判断された場合、前記規則取得手段で取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得手段で取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得手段で取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得手段で取得した前記値を基に算出する算出手段としての算出部102c5と、前記残金額変数の本処理実行時の値から前記算出手段で算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新手段としての更新部102c6と、を備えている。なお、各部が実行する処理の内容については、以下の[3.処理概要]および[4.処理詳細]で説明する。   The split amount output unit 102c acquires the split rule from an initial value setting unit 102c1 serving as an initial value setting unit that substitutes the principal amount into the principal amount variable and the remaining amount variable, and a set of division rules including a plurality of division rules. The rule acquisition unit 102c2 as the rule acquisition unit, and the principal amount category and the value of the remaining amount variable, which are included in the division rule acquired by the rule acquisition unit, mean to acquire the value of the principal amount variable A value acquisition unit 102c3 as a value acquisition unit that acquires the value of the principal amount variable or the value of the remaining amount variable at the time of execution of the process according to any amount of the remaining amount classifications that means A determination unit 10 as a determination unit that determines whether the value acquired by the value acquisition unit satisfies a money amount condition included in the division rule acquired by the rule acquisition unit. c4 and a predetermined amount that means that when the determination unit determines that the amount condition is satisfied, the predetermined amount included in the division rule acquired by the rule acquisition unit is output as the divided amount A combination of an output category and the predetermined amount, a ratio reference amount output category and a combination of the predetermined ratio, which means that a product of the value acquired by the value acquisition unit and the predetermined ratio is output as the divided amount, and the value acquisition unit In accordance with the output category included in any information of the full-value output category, which means that the value acquired in (4) is output as the split price, the split price corresponding to the output category is acquired as the information or the value. The calculation unit 102c5 as a calculation means for calculating based on the value acquired by the means, and the calculation from the value at the time of the main variable execution of the remaining amount variable. The value obtained by subtracting the divided amounts calculated in means comprises a, an updating unit 102c6 of the updating means for substituting said remaining amount variable. In addition, about the content of the process which each part performs, the following [3. Process overview] and [4. Process details].

[3.処理概要]
本項目では、業務支援装置100で実行される処理の概要について、図15〜図21のフローチャートを参照して説明する。
[3. Outline of processing]
In this item, an outline of processing executed by the business support apparatus 100 will be described with reference to the flowcharts of FIGS.

[3−1.発注依頼入力処理]
まず、発注依頼入力部102aは、図4に示す発注依頼入力画面における発注依頼の入力を受け付ける。これにより、発注依頼明細が作成される。
[3-1. Order request input processing]
First, the order request input unit 102a receives an input of an order request on the order request input screen shown in FIG. Thereby, the order request details are created.

[3−2.発注確定処理]
次に、図5に示す発注確定画面において、前記作成された発注依頼明細が呼び出されて表示される。そして、発注確定処理部102bは、表示された前記発注依頼明細のうちチェックされたものについての発注の確定処理を行う。発注が確定した発注依頼明細は、発注確定明細として発注明細ワーク106bに追加される(図15のS1)。
[3-2. Order confirmation process]
Next, the created order request details are called up and displayed on the order confirmation screen shown in FIG. Then, the order confirmation processing unit 102b performs order confirmation processing for the checked order request details displayed. The order request details for which the order has been confirmed are added to the order detail work 106b as the order confirmation details (S1 in FIG. 15).

[3−3.分割金額出力処理]
次に、分割金額出力部102cは、前記元金額を分割して前記複数の分割金額を出力する。なお、分割金額出力部102cは、モニタ114に表示されている、前記発注の内容を確定するための所定画面(例えば、図5に示す発注確定画面)に[3−2]で説明したように前記元金額が設定されてから動作し始めてもよい。
[3-3. Split amount output processing]
Next, the divided amount output unit 102c divides the principal amount and outputs the plurality of divided amounts. As described in [3-2], the split amount output unit 102c displays a predetermined screen (for example, the order confirmation screen shown in FIG. 5) displayed on the monitor 114 for confirming the contents of the order. The operation may start after the principal amount is set.

まず、発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである前記発注確定明細において、前記発注税込金額、前記発注税抜金額および前記発注消費税額がそれぞれ集約される。そして、前記組み合わせおよび集約後の金額を含む集約明細が、発注依頼カーソル106cに格納される(図15のS2)。   First, from the order details work 106b, in the order confirmation details in which the combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification is the same. The order tax-included amount, the order tax-excluded amount, and the order consumption tax amount are collected. Then, the aggregation details including the combination and the aggregated amount are stored in the order request cursor 106c (S2 in FIG. 15).

次に、発注依頼カーソル106cの1行目の集約明細から呼び出される(図15のS3)。   Next, it is called from the aggregation details on the first line of the order request cursor 106c (S3 in FIG. 15).

[3−3−1.初期値設定処理]
次に、初期値設定部102c1は、前記呼び出された集約明細における発注金額等を変数に格納(代入)する。具体的には、初期値設定部102c1は、前記呼び出された集約明細における前記発注税込金額(本発明の「元金額」に相当)を分割元金額(本発明の「元金額変数」に相当)に代入し、前記呼び出された集約明細における前記発注消費税額を分割元消費税額に代入し、前記分割元金額を分割残金額(本発明の「残金額変数」に相当)に代入し、前記分割元消費税額を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。
[3-3-1. Initial value setting process]
Next, the initial value setting unit 102c1 stores (substitutes) the order amount and the like in the called aggregation details into a variable. Specifically, the initial value setting unit 102c1 divides the order tax-included amount (corresponding to the “principal amount” of the present invention) in the called aggregation details into the split original amount (corresponding to the “principal amount variable” of the present invention). And substituting the ordering consumption tax amount in the called aggregated item into a split source consumption tax amount, substituting the split source amount into a split remaining amount (corresponding to the “remaining amount variable” of the present invention), and the splitting The original consumption tax amount is substituted into the division remaining consumption tax amount, and “1” is set as the invoice division number (S4 in FIG. 15).

[3−3−2.規則取得処理]
次に、規則取得部102c2は、査定分割マスタ106d(本発明の「複数の分割規則を含む分割規則集合」に相当)から査定分割条件(本発明の「分割規則」に相当)を取得する(図15のS5)。
[3-3-2. Rule acquisition process]
Next, the rule acquisition unit 102c2 acquires the assessment division condition (corresponding to the “division rule” of the present invention) from the assessment division master 106d (corresponding to “a division rule set including a plurality of division rules” of the present invention) ( S5 in FIG.

前記査定分割条件の取得件数が0である場合(図15のS6:Yes)、査定分割ワーク106fに情報が1行追加される(図15のS7)。具体的には、前記分割元金額を1請求とした明細が作成される(図15のS7)。   When the acquired number of assessment division conditions is 0 (S6 in FIG. 15: Yes), one line of information is added to the assessment division work 106f (S7 in FIG. 15). Specifically, a specification with the split source amount as one claim is created (S7 in FIG. 15).

これにより、発注依頼カーソル106cの前記1行目の明細についての処理は終了する。そして、図15のS3に戻り、発注依頼カーソル106cにおける2行目以降の明細についてもこれまでの説明と同様の処理が行われ、すべての明細の呼出が完了すると、処理が終了する(図15のS3:処理終了)。   Thereby, the process for the details of the first line of the order request cursor 106c is completed. Then, returning to S3 in FIG. 15, the same processing as described above is performed for the second and subsequent details in the order request cursor 106c, and the processing ends when all the details have been called (FIG. 15). S3: End of processing).

一方で、前記査定分割条件の取得件数が0ではない場合(図15のS6:No)、当該取得した査定分割条件を含む査定分割マスタ106dにおけるレコードが、査定分割カーソル106eに格納される(図15のS8)。   On the other hand, when the number of acquisition of the assessment division condition is not 0 (S6: No in FIG. 15), a record in the assessment division master 106d including the obtained assessment division condition is stored in the assessment division cursor 106e (FIG. 15 S8).

次に、査定分割カーソル106eの1行目のレコードから呼び出される(図15のS9)。   Next, it is called from the record on the first line of the assessment division cursor 106e (S9 in FIG. 15).

査定分割カーソル106eのレコードの取得件数が1である場合(図15のS10:取得件数=1)、分割金額にS4の前記分割残金額が代入され、分割消費税額にS4の前記分割残消費税額が代入され、前記分割残金額に0が代入され、分割パターンフラグに0が代入される(図15のS11)。そして、図16(A)に進む。   When the number of records acquired by the assessment split cursor 106e is 1 (S10 in FIG. 15: number of acquisitions = 1), the split remaining amount in S4 is substituted for the split amount, and the split remaining consumption tax amount in S4 is assigned to the split consumption tax amount. Is substituted, 0 is substituted into the remaining balance, and 0 is substituted into the division pattern flag (S11 in FIG. 15). Then, the process proceeds to FIG.

図16(A)に進むと、前記分割パターンフラグが−1以外の場合には、査定分割ワーク106fに請求明細が1行追加される(図16のS12)。すなわち、S11の前記分割金額を1請求として査定分割ワーク106fが作成される(図16のS12)。そして、図15(A)に戻る。   When proceeding to FIG. 16A, if the division pattern flag is other than -1, one line of the billing details is added to the assessment division work 106f (S12 in FIG. 16). That is, the assessment divided work 106f is created with the split amount in S11 as one claim (S12 in FIG. 16). Then, the process returns to FIG.

[3−3−3.値取得処理および判断処理]
一方で、図15のS10に戻り、査定分割カーソル106eのレコードの取得件数が1より大きい場合(図15のS10:取得件数>1)、査定分割カーソル106eの1行目のレコードにおける前記残金区分が「0:全体」であるか否かがチェックされる(図15のS13)。そして、前記残金区分が0である場合(図15のS13:Yes)、図17(A)に進み、前記残金区分が0ではない場合(図15のS13:No)、図19(A)に進む。
[3-3-3. Value acquisition processing and judgment processing]
On the other hand, returning to S10 in FIG. 15, if the number of records acquired by the assessment split cursor 106e is greater than 1 (S10 in FIG. 15: number of acquisitions> 1), the balance classification in the record of the first row of the assessment split cursor 106e Is “0: entire” or not (S13 in FIG. 15). If the balance category is 0 (S13: Yes in FIG. 15), the process proceeds to FIG. 17A. If the balance category is not 0 (S13: No in FIG. 15), the process proceeds to FIG. move on.

[3−3−3A.残金区分が0である場合]
図17(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「0:未満」であるか否かがチェックされる(図17のS14)。
[3-3-3A. When the balance is 0]
When proceeding to FIG. 17A, it is checked whether or not the amount condition category in the record on the first line of the assessment division cursor 106e is “less than 0:” (S14 in FIG. 17).

前記金額条件区分が0である場合(図17のS14:Yes)、「S4で説明した前記分割元金額<査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図17のS15)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分0(本発明の「元金額区分」に相当)の金額区分に従って、S4で説明した前記分割元金額の値(本発明の「元金額変数の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割元金額の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition classification is 0 (S14 in FIG. 17: Yes), whether or not the condition “the amount of money in the record of the first row of the assessment division cursor 106e described in S4” is satisfied is satisfied. Is checked as follows (S15 in FIG. 17). First, the value acquisition unit 102c3 is the amount of the balance 0 (corresponding to the “principal amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquisition unit 102c2. According to the classification, the value of the split original amount described in S4 (corresponding to the “value of original amount variable” of the present invention) is acquired. Then, the determination unit 102c4 determines that the value of the split source amount acquired by the value acquisition unit 102c3 (corresponding to “the value” of the present invention) is the assessment split condition acquired by the rule acquisition unit 102c2 (the “split rule of the present invention”). It is determined whether a combination of the amount condition and the amount condition classification (corresponding to “amount condition” of the present invention) included in

判断部102c4で満たされていると判断された場合(図17のS15:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図17のS16)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図21(A)に進む。   If it is determined by the determination unit 102c4 that it is satisfied (S15 in FIG. 17: Yes), the division pattern flag is determined as follows according to the generated amount classification in the record of the first row of the assessment division cursor 106e. (S16 in FIG. 17). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図17のS15:No)、図16(A)に進む。   On the other hand, when it is determined that the determination unit 102c4 does not satisfy the condition (S15: No in FIG. 17), the process proceeds to FIG.

図17のS14に戻り、前記金額条件区分が0ではない場合(図17のS14:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「1:以下」であるか否かがチェックされる(図17のS17)。   Returning to S14 in FIG. 17, if the amount condition category is not 0 (S14 in FIG. 17: No), whether the amount condition category in the first line record of the assessment division cursor 106e is “1: or less”. Is checked (S17 in FIG. 17).

前記金額条件区分が1である場合(図17のS17:Yes)、「S4で説明した前記分割元金額≦査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図17のS18)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分0(本発明の「元金額区分」に相当)の金額区分に従って、S4で説明した前記分割元金額の値(本発明の「元金額変数の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割元金額の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition category is 1 (S17 in FIG. 17: Yes), whether or not the condition “the amount condition in the record of the first row of the division source amount ≦ the assessment division cursor 106e described in S4” is satisfied. Is checked as follows (S18 in FIG. 17). First, the value acquisition unit 102c3 is the amount of the balance 0 (corresponding to the “principal amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquisition unit 102c2. According to the classification, the value of the split original amount described in S4 (corresponding to the “value of original amount variable” of the present invention) is acquired. Then, the determination unit 102c4 determines that the value of the split source amount acquired by the value acquisition unit 102c3 (corresponding to “the value” of the present invention) is the assessment split condition acquired by the rule acquisition unit 102c2 (the “split rule of the present invention”). It is determined whether a combination of the amount condition and the amount condition classification (corresponding to “amount condition” of the present invention) included in

判断部102c4で満たされていると判断された場合(図17のS18:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図17のS19)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図21(A)に進む。   If it is determined that the condition is satisfied by the determination unit 102c4 (S18 in FIG. 17: Yes), the division pattern flag is determined as follows according to the amount of money generated in the record in the first row of the assessment division cursor 106e. (S19 in FIG. 17). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図17のS18:No)、図16(A)に進む。   On the other hand, when it is determined that the condition is not satisfied by the determination unit 102c4 (S18 of FIG. 17: No), the process proceeds to FIG.

図17のS17に戻り、前記金額条件区分が1ではない場合(図17のS17:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「2:以上」であるか否かがチェックされる(図17のS20)。   Returning to S17 in FIG. 17, if the amount condition category is not 1 (S17: No in FIG. 17), whether the amount condition category in the first line record of the assessment division cursor 106e is “2 or more”. Is checked (S20 in FIG. 17).

前記金額条件区分が2である場合(図17のS20:Yes)、「S4で説明した前記分割元金額≧査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図17のS21)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分0(本発明の「元金額区分」に相当)の金額区分に従って、S4で説明した前記分割元金額の値(本発明の「元金額変数の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割元金額の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition category is 2 (S20 in FIG. 17: Yes), whether or not the condition “amount condition in the first row record of the split source amount ≧ assessment split cursor 106e described in S4” is satisfied. Is checked as follows (S21 in FIG. 17). First, the value acquisition unit 102c3 is the amount of the balance 0 (corresponding to the “principal amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquisition unit 102c2. According to the classification, the value of the split original amount described in S4 (corresponding to the “value of original amount variable” of the present invention) is acquired. Then, the determination unit 102c4 determines that the value of the split source amount acquired by the value acquisition unit 102c3 (corresponding to “the value” of the present invention) is the assessment split condition acquired by the rule acquisition unit 102c2 (the “split rule of the present invention”). It is determined whether a combination of the amount condition and the amount condition classification (corresponding to “amount condition” of the present invention) included in

判断部102c4で満たされていると判断された場合(図17のS21:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図17のS22)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図21(A)に進む。   If it is determined that the condition is satisfied by the determination unit 102c4 (S21 in FIG. 17: Yes), the division pattern flag is determined as follows according to the amount of money generated in the record in the first row of the assessment division cursor 106e. (S22 in FIG. 17). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図17のS21:No)、図16(A)に進む。   On the other hand, when it is determined that the condition is not satisfied by the determination unit 102c4 (S21: No in FIG. 17), the process proceeds to FIG.

図17のS20に戻り、前記金額条件区分が2ではない場合(図17のS20:No)、図18(A)に進む。   Returning to S20 in FIG. 17, if the amount condition category is not 2 (S20: No in FIG. 17), the process proceeds to FIG.

図18(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「3:超」であるか否かがチェックされる(図18のS23)。   When proceeding to FIG. 18 (A), it is checked whether or not the amount condition classification in the record on the first line of the assessment division cursor 106e is “3: over” (S23 in FIG. 18).

前記金額条件区分が3である場合(図18のS23:Yes)、「S4で説明した前記分割元金額>査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図18のS24)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分0(本発明の「元金額区分」に相当)の金額区分に従って、S4で説明した前記分割元金額の値(本発明の「元金額変数の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割元金額の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition category is 3 (S23 in FIG. 18: Yes), whether or not the condition “the amount of money in the record on the first line of the assessment division cursor 106e described in S4” is satisfied is satisfied. Is checked as follows (S24 in FIG. 18). First, the value acquisition unit 102c3 is the amount of the balance 0 (corresponding to the “principal amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquisition unit 102c2. According to the classification, the value of the split original amount described in S4 (corresponding to the “value of original amount variable” of the present invention) is acquired. Then, the determination unit 102c4 determines that the value of the split source amount acquired by the value acquisition unit 102c3 (corresponding to “the value” of the present invention) is the assessment split condition acquired by the rule acquisition unit 102c2 (the “split rule of the present invention”). It is determined whether a combination of the amount condition and the amount condition classification (corresponding to “amount condition” of the present invention) included in

判断部102c4で満たされていると判断された場合(図18のS24:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図18のS25)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図17(B)に進む。   If it is determined that the condition is satisfied by the determination unit 102c4 (S24: Yes in FIG. 18), the division pattern flag is determined as follows according to the amount of money generated in the record in the first row of the assessment division cursor 106e. (S25 in FIG. 18). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図18のS24:No)、図17(C)に進む。   On the other hand, if it is determined that the condition is not satisfied by the determination unit 102c4 (S24 in FIG. 18: No), the process proceeds to FIG. 17C.

図18のS23に戻り、前記金額条件区分が3ではない場合(図18のS23:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「9:無し」であるか否かがチェックされる(図18のS26)。   Returning to S23 of FIG. 18, if the amount condition category is not 3 (S23: No in FIG. 18), whether or not the amount condition category in the first line record of the assessment division cursor 106e is “9: None”. Is checked (S26 in FIG. 18).

前記金額条件区分が9である場合(図18のS26:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図18のS27)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図17(D)に進む。   When the money amount condition classification is 9 (S26 in FIG. 18: Yes), the division pattern flag is determined as follows according to the generated money price classification in the record of the first line of the assessment division cursor 106e (FIG. 18). S27). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図18のS26:No)、図17(E)に進む。   On the other hand, when it is determined that the condition is not satisfied by the determination unit 102c4 (S26 in FIG. 18: No), the process proceeds to FIG.

[3−3−3B.残金区分が0ではない場合]
図15のS13に戻り、前記残金区分が0ではない場合(図15のS13:No)、図19(A)に進む。
[3-3-3B. When balance is not 0]
Returning to S13 in FIG. 15, if the balance is not 0 (S13 in FIG. 15: No), the process proceeds to FIG. 19A.

図19(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「0:未満」であるか否かがチェックされる(図19のS28)。   When proceeding to FIG. 19A, it is checked whether or not the amount condition category in the record on the first line of the assessment division cursor 106e is “less than 0:” (S28 in FIG. 19).

前記金額条件区分が0である場合(図19のS28:Yes)、「S4で説明した分割残金額<査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図19のS29)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分1(本発明の「残金額区分」に相当)の金額区分に従って、S4で説明した前記分割残金額の値取得処理実行時の値(本発明の「残金額変数の本処理実行時の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割残金額の値取得処理実行時の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition category is 0 (S28 in FIG. 19: Yes), whether or not the condition “remaining division amount explained in S4 <amount condition in the first line record of the assessment division cursor 106e” is satisfied. This is checked as follows (S29 in FIG. 19). First, the value acquisition unit 102c3 is the amount of the balance category 1 (corresponding to the “remaining amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquiring unit 102c2. According to the category, the value at the time of execution of the value acquisition process of the divided remaining amount described in S4 (corresponding to “the value of the remaining amount variable at the time of execution of this process” in the present invention) is acquired. Then, the determination unit 102c4 obtains the assessment division condition (the value corresponding to “the value” in the present invention) obtained by the rule acquisition unit 102c2 when the value acquisition processing of the division remaining amount acquired by the value acquisition unit 102c3 is performed ( It is determined whether or not a combination of the amount condition and the amount condition category (corresponding to “amount condition” of the present invention) included in the “division rule” of the present invention is satisfied.

判断部102c4で満たされていると判断された場合(図19のS29:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図19のS30)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図21(A)に進む。   When it is determined by the determination unit 102c4 (S29 in FIG. 19: Yes), the division pattern flag is determined as follows according to the amount of money generated in the record in the first row of the assessment division cursor 106e. (S30 in FIG. 19). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図19のS29:No)、図16(A)に進む。   On the other hand, when it is determined that the determination unit 102c4 does not satisfy the condition (S29: No in FIG. 19), the process proceeds to FIG.

図19のS28に戻り、前記金額条件区分が0ではない場合(図19のS28:No)、査定分割カーソル106eのレコードにおける前記金額条件区分が「1:以下」であるか否かがチェックされる(図19のS31)。   Returning to S28 in FIG. 19, when the amount condition category is not 0 (S28: No in FIG. 19), it is checked whether the amount condition category in the record of the assessment division cursor 106e is “1: or less”. (S31 in FIG. 19).

前記金額条件区分が1である場合(図19のS31:Yes)、「S4で説明した前記分割残金額≦査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図19のS32)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分1(本発明の「残金額区分」に相当)の金額区分に従って、S4で説明した前記分割残金額の値取得処理実行時の値(本発明の「残金額変数の本処理実行時の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割残金額の値取得処理実行時の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition category is 1 (S31 in FIG. 19: Yes), whether or not the condition “the amount condition in the first line record of the division remaining amount ≦ the assessment division cursor 106e described in S4” is satisfied. Is checked as follows (S32 in FIG. 19). First, the value acquisition unit 102c3 is the amount of the balance category 1 (corresponding to the “remaining amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquiring unit 102c2. According to the category, the value at the time of execution of the value acquisition process of the divided remaining amount described in S4 (corresponding to “the value of the remaining amount variable at the time of execution of this process” in the present invention) is acquired. Then, the determination unit 102c4 obtains the assessment division condition (the value corresponding to “the value” in the present invention) obtained by the rule acquisition unit 102c2 when the value acquisition processing of the division remaining amount acquired by the value acquisition unit 102c3 is performed ( It is determined whether or not a combination of the amount condition and the amount condition category (corresponding to “amount condition” of the present invention) included in the “division rule” of the present invention is satisfied.

判断部102c4で満たされていると判断された場合(図19のS32:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図19のS33)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図21(A)に進む。   When it is determined that the determination unit 102c4 satisfies the condition (S32: Yes in FIG. 19), the division pattern flag is determined as follows according to the amount of money generated in the record in the first row of the assessment division cursor 106e. (S33 in FIG. 19). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図19のS32:No)、図16(A)に進む。   On the other hand, when it is determined that the condition is not satisfied by the determination unit 102c4 (S32: No in FIG. 19), the process proceeds to FIG.

図19のS31に戻り、前記金額条件区分が1ではない場合(図19のS31:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「2:以上」であるか否かがチェックされる(図19のS34)。   Returning to S31 in FIG. 19, if the amount condition category is not 1 (S31: No in FIG. 19), whether the amount condition category in the first line record of the assessment division cursor 106e is “2: or more”. Is checked (S34 in FIG. 19).

前記金額条件区分が2である場合(図19のS34:Yes)、「S4で説明した前記分割残金額≧査定分割カーソル106eのレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図19のS35)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分1(本発明の「残金額区分」に相当)の金額区分に従って、S4で説明した前記分割残金額の値取得処理実行時の値(本発明の「残金額変数の本処理実行時の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割残金額の値取得処理実行時の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition category is 2 (S34: Yes in FIG. 19), whether or not the condition “the amount condition in the record of the divided remaining amount ≧ assessment divided cursor 106e described in S4” is satisfied is as follows. In this way, it is checked (S35 in FIG. 19). First, the value acquisition unit 102c3 is the amount of the balance category 1 (corresponding to the “remaining amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquiring unit 102c2. According to the category, the value at the time of execution of the value acquisition process of the divided remaining amount described in S4 (corresponding to “the value of the remaining amount variable at the time of execution of this process” in the present invention) is acquired. Then, the determination unit 102c4 obtains the assessment division condition (the value corresponding to “the value” in the present invention) obtained by the rule acquisition unit 102c2 when the value acquisition processing of the division remaining amount acquired by the value acquisition unit 102c3 is performed ( It is determined whether or not a combination of the amount condition and the amount condition category (corresponding to “amount condition” of the present invention) included in the “division rule” of the present invention is satisfied.

判断部102c4で満たされていると判断された場合(図19のS35:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図19のS36)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図21(A)に進む。   If it is determined that the determination unit 102c4 is satisfied (S35 of FIG. 19: Yes), the division pattern flag is determined as follows according to the amount of money generated in the record of the first row of the assessment division cursor 106e. (S36 in FIG. 19). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図19のS35:No)、図16(A)に進む。   On the other hand, when it is determined that the determination unit 102c4 does not satisfy the condition (S35: No in FIG. 19), the process proceeds to FIG.

図19のS34に戻り、前記金額条件区分が2ではない場合(図19のS34:No)、図20(A)に進む。   Returning to S34 in FIG. 19, if the amount condition category is not 2 (S34: No in FIG. 19), the process proceeds to FIG.

図20(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「3:超」であるか否かがチェックされる(図20のS37)。   When proceeding to FIG. 20A, it is checked whether or not the amount condition classification in the record of the first line of the assessment division cursor 106e is “3: over” (S37 in FIG. 20).

前記金額条件区分が3である場合(図20のS37:Yes)、「S4で説明した前記分割残金額>査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図20のS38)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる残金区分1(本発明の「残金額区分」に相当)の金額区分に従って、S4で説明した前記分割残金額の値取得処理実行時の値(本発明の「残金額変数の本処理実行時の値」に相当)を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割残金額の値取得処理実行時の値(本発明の「前記値」に相当)が規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記金額条件と前記金額条件区分の組み合わせ(本発明の「金額条件」に相当)を満たしているかを判断する。   If the amount condition category is 3 (S37 in FIG. 20: Yes), whether or not the condition “the amount remaining in the division described in S4> the amount condition in the first line record of the assessment division cursor 106e” is satisfied. Is checked as follows (S38 in FIG. 20). First, the value acquisition unit 102c3 is the amount of the balance category 1 (corresponding to the “remaining amount category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquiring unit 102c2. According to the category, the value at the time of execution of the value acquisition process of the divided remaining amount described in S4 (corresponding to “the value of the remaining amount variable at the time of execution of this process” in the present invention) is acquired. Then, the determination unit 102c4 obtains the assessment division condition (the value corresponding to “the value” in the present invention) obtained by the rule acquisition unit 102c2 when the value acquisition processing of the division remaining amount acquired by the value acquisition unit 102c3 is performed ( It is determined whether or not a combination of the amount condition and the amount condition category (corresponding to “amount condition” of the present invention) included in the “division rule” of the present invention is satisfied.

判断部102c4で満たされていると判断された場合(図20のS38:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図20のS39)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図19(B)に進む。   When it is determined that the determination unit 102c4 satisfies the condition (S38: Yes in FIG. 20), the division pattern flag is determined as follows according to the amount of money generated in the record in the first row of the assessment division cursor 106e. (S39 in FIG. 20). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、判断部102c4で満たされていないと判断された場合(図20のS38:No)、図19(C)に進む。   On the other hand, when it is determined that the condition is not satisfied by the determination unit 102c4 (S38: No in FIG. 20), the process proceeds to FIG. 19C.

図20のS37に戻り、前記金額条件区分が3ではない場合(図20のS37:No)、査定分割カーソル106eのレコードにおける前記金額条件区分が「9:無し」であるか否かがチェックされる(図20のS40)。   Returning to S37 in FIG. 20, if the amount condition category is not 3 (S37: No in FIG. 20), it is checked whether or not the amount condition category in the assessment division cursor 106e record is “9: None”. (S40 in FIG. 20).

前記金額条件区分が9である場合(図20のS40:Yes)、査定分割カーソル106eの1行目のレコードにおける発生金額区分に従って、分割パターンフラグが以下のようにして決定される(図20のS41)。すなわち、発生金額区分が0の場合、前記分割パターンフラグは1となり、発生金額区分が1の場合、前記分割パターンフラグは2となり、発生金額区分が2の場合、前記分割パターンフラグは3となる。そして、図19(D)に進む。   When the amount condition category is 9 (S40: Yes in FIG. 20), the division pattern flag is determined as follows according to the amount of occurrence amount in the record of the first line of the assessment division cursor 106e (FIG. 20). S41). That is, when the generated amount category is 0, the division pattern flag is 1, when the generated amount category is 1, the divided pattern flag is 2, and when the generated amount category is 2, the divided pattern flag is 3. . Then, the process proceeds to FIG.

一方で、前記金額条件区分が9ではない場合(図20のS40:No)、図19(E)に進む。   On the other hand, when the amount condition classification is not 9 (S40 in FIG. 20: No), the process proceeds to FIG.

[3−3−4.算出処理および更新処理]
図21(A)に進むと、前記分割パターンフラグが1であるか否かがチェックされる(図21のS42)。
[3-3-4. Calculation processing and update processing]
When proceeding to FIG. 21A, it is checked whether or not the division pattern flag is 1 (S42 in FIG. 21).

[3−3−4A.分割パターンフラグが1(発生金額区分が0)である場合]
前記分割パターンフラグが1である場合(図21のS42:Yes)、以下のようにして、分割金額および分割残金額に値がセット(代入される)。まず、算出部102c5は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記発生金額区分0(本発明の「全額出力区分」に相当)の情報に含まれる出力区分に従って、前記出力区分と対応する分割金額を、前記情報または値取得部102c3で取得した前記値を基に算出する。具体的には、算出部102c5は、前記分割残金額の値を、分割金額に代入する(図21のS43)。次に、更新部102c6は、前記分割残金額(本発明の「残金額変数」に相当)の更新処理実行時の値から算出部102c5で算出した前記分割金額を差し引いた値を前記分割残金額(本発明の「残金額変数」に相当)に代入することにより、前記分割残金額を更新する。具体的には、前記分割残金額の値から算出部102c5で算出した前記分割金額を差し引いた値を、前記分割残金額に代入することにより、前記分割残金額を更新する(図21のS43)。
[3-3-4A. When the division pattern flag is 1 (the amount of money generated is 0)]
When the division pattern flag is 1 (S42 in FIG. 21: Yes), values are set (assigned) to the divided amount and the remaining divided amount as follows. First, the calculation unit 102c5 includes the generated amount category 0 (corresponding to the “full output category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquiring unit 102c2. In accordance with the output category included in the information, a split amount corresponding to the output category is calculated based on the information or the value acquired by the value acquisition unit 102c3. Specifically, the calculation unit 102c5 substitutes the value of the remaining split amount for the split amount (S43 in FIG. 21). Next, the updating unit 102c6 calculates a value obtained by subtracting the divided amount calculated by the calculating unit 102c5 from the value at the time of update processing of the divided remaining amount (corresponding to the “remaining amount variable” of the present invention). By substituting in (corresponding to “remaining amount variable” of the present invention), the divided remaining amount is updated. Specifically, the divided remaining amount is updated by substituting a value obtained by subtracting the divided amount calculated by the calculation unit 102c5 from the divided remaining amount value into the divided remaining amount (S43 in FIG. 21). .

一方で、前記分割パターンフラグが1ではない場合(図21のS42:No)、前記分割パターンフラグが2であるか否かがチェックされる(図21のS44)。   On the other hand, when the division pattern flag is not 1 (S42 in FIG. 21: No), it is checked whether or not the division pattern flag is 2 (S44 in FIG. 21).

[3−3−4B.分割パターンフラグが2(発生金額区分が1)である場合]
前記分割パターンフラグが2である場合(図21のS44:Yes)、「S4で説明した前記分割残金額≧査定分割カーソル106eの1行目のレコードにおける発生金額」という条件が満たされるか否かがチェックされる(図21のS45)。
[3-3-4B. When the division pattern flag is 2 (accounting amount category is 1)]
If the division pattern flag is 2 (S44: Yes in FIG. 21), whether or not the condition “the amount of remaining division described in S4 ≧ the amount generated in the record of the first row of the assessment division cursor 106e” is satisfied. Is checked (S45 in FIG. 21).

前記条件が満たされる場合(図21のS45:Yes)、以下のようにして、分割金額および分割残金額に値がセット(代入)される。まず、算出部102c5は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記発生金額区分1(本発明の「所定額出力区分」に相当)および前記発生金額(本発明の「所定金額」に相当)の組み合わせの情報に含まれる出力区分に従って、前記出力区分と対応する分割金額を、前記情報または値取得部102c3で取得した前記値を基に算出する。具体的には、算出部102c5は、査定分割カーソル106eの1行目のレコードにおける発生金額を、分割金額に代入する(図21のS46)。次に、更新部102c6は、前記分割残金額(本発明の「残金額変数」に相当)の更新処理実行時の値から算出部102c5で算出した前記分割金額を差し引いた値を前記分割残金額(本発明の「残金額変数」に相当)に代入することにより、前記分割残金額を更新する。具体的には、前記分割残金額の値から算出部102c5で算出した前記分割金額を差し引いた値を、分割残金額に代入することにより、前記分割残金額を更新する(図21のS48)。そして、図16(A)に進む。   When the above condition is satisfied (S45 in FIG. 21: Yes), values are set (substituted) in the divided amount and the remaining divided amount as follows. First, the calculation unit 102c5 includes the generated amount category 1 (corresponding to the “predetermined amount output category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquiring unit 102c2. And according to the output category included in the combination information of the generated amount (corresponding to the “predetermined amount” of the present invention), the divided amount corresponding to the output category is based on the value acquired by the information or the value acquisition unit 102c3. To calculate. Specifically, the calculation unit 102c5 substitutes the amount of money generated in the record on the first line of the assessment division cursor 106e for the amount of division (S46 in FIG. 21). Next, the updating unit 102c6 calculates a value obtained by subtracting the divided amount calculated by the calculating unit 102c5 from the value at the time of update processing of the divided remaining amount (corresponding to the “remaining amount variable” of the present invention). By substituting in (corresponding to “remaining amount variable” of the present invention), the divided remaining amount is updated. Specifically, the divided remaining amount is updated by substituting a value obtained by subtracting the divided amount calculated by the calculation unit 102c5 from the divided remaining amount value into the divided remaining amount (S48 in FIG. 21). Then, the process proceeds to FIG.

一方で、前記条件が満たされない場合(図21のS45:No)、以下のようにして、分割金額および分割残金額に値がセット(代入)される。まず、算出部102c5は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記発生金額区分1(本発明の「所定額出力区分」に相当)および前記発生金額(本発明の「所定金額」に相当)の組み合わせの情報に含まれる出力区分に従って、前記出力区分と対応する分割金額を、前記情報または値取得部102c3で取得した前記値を基に算出する。具体的には、算出部102c5は、具体的には、前記分割残金額の値から分割金額を差し引いた値を、分割金額に代入する(図21のS47)。次に、更新部102c6は、前記分割残金額(本発明の「残金額変数」に相当)の更新処理実行時の値から算出部102c5で算出した前記分割金額を差し引いた値を前記分割残金額(本発明の「残金額変数」に相当)に代入することにより、前記分割残金額を更新する。具体的には、前記分割残金額の値から算出部102c5で算出した前記分割金額を差し引いた値を、前記分割残金額に代入することにより、前記分割残金額を更新する(図21のS48)。そして、図16(A)に進む。   On the other hand, when the above condition is not satisfied (S45: No in FIG. 21), values are set (substituted) in the divided amount and the remaining divided amount as follows. First, the calculation unit 102c5 includes the generated amount category 1 (corresponding to the “predetermined amount output category” of the present invention) included in the assessment split condition (corresponding to the “split rule” of the present invention) acquired by the rule acquiring unit 102c2. And according to the output category included in the combination information of the generated amount (corresponding to the “predetermined amount” of the present invention), the divided amount corresponding to the output category is based on the value acquired by the information or the value acquisition unit 102c3. To calculate. Specifically, the calculation unit 102c5 specifically substitutes a value obtained by subtracting the divided amount from the value of the remaining divided amount for the divided amount (S47 in FIG. 21). Next, the updating unit 102c6 calculates a value obtained by subtracting the divided amount calculated by the calculating unit 102c5 from the value at the time of update processing of the divided remaining amount (corresponding to the “remaining amount variable” of the present invention). By substituting in (corresponding to “remaining amount variable” of the present invention), the divided remaining amount is updated. Specifically, the divided remaining amount is updated by substituting a value obtained by subtracting the divided amount calculated by the calculation unit 102c5 from the divided remaining amount value into the divided remaining amount (S48 in FIG. 21). . Then, the process proceeds to FIG.

[3−3−4C.分割パターンフラグが3(発生金額区分が2)である場合]
図21のS44に戻り、前記分割パターンフラグが2ではない場合(図21のS44:No)、前記分割パターンフラグが3であるか否かがチェックされる(図21のS49)。
[3-3-4C. When the division pattern flag is 3 (incurred amount category is 2)]
Returning to S44 in FIG. 21, if the division pattern flag is not 2 (S44: No in FIG. 21), it is checked whether the division pattern flag is 3 (S49 in FIG. 21).

分割パターンフラグが3である場合(図21のS49:Yes)、査定分割カーソル106eの1行目のレコードにおける前記残金区分が「0:全体」であるか否かがチェックされる(図21のS50)。   When the division pattern flag is 3 (S49 in FIG. 21: Yes), it is checked whether or not the balance classification in the first line record of the assessment division cursor 106e is “0: entire” (in FIG. 21). S50).

前記残金区分が0である場合(図21のS50:Yes)、以下のようにして、判断金額に値がセット(代入)される。すなわち、算出部102c5は、S4で説明した前記分割元金額×(査定分割カーソル106eの1行目のレコードにおける前記発生金額/100)を、判断金額に代入する(図21のS51)。   When the balance classification is 0 (S50 in FIG. 21: Yes), a value is set (assigned) to the determination amount as follows. That is, the calculation unit 102c5 substitutes the split source amount described in S4 × (the generated amount / 100 in the record on the first line of the assessment split cursor 106e) for the determination amount (S51 in FIG. 21).

一方で、前記残金区分が0ではない場合(図21のS50:No)、以下のようにして、判断金額に値がセット(代入)される。すなわち、算出部102c5は、S4で説明した前記分割残金額×(査定分割カーソル106eの1行目のレコードにおける前記発生金額/100)の値を、判断金額に代入する(図21のS52)。   On the other hand, when the balance is not 0 (S50: No in FIG. 21), a value is set (substituted) in the determination amount as follows. That is, the calculation unit 102c5 substitutes the value of the remaining divided amount × (the generated amount / 100 in the record on the first line of the assessment division cursor 106e) described in S4 for the determination amount (S52 in FIG. 21).

次に、端数が0であるか否かがチェックされる(図21のS53)。なお、査定分割カーソル106eのレコードにおける前記金額端数単位が0である場合、前記端数は1となる。一方で、これ以外の場合(査定分割カーソル106eのレコードにおける前記金額端数単位が0ではない場合)、前記端数は当該金額端数単位となる。   Next, it is checked whether or not the fraction is 0 (S53 in FIG. 21). In addition, when the amount fraction unit in the record of the assessment division cursor 106e is 0, the fraction is 1. On the other hand, in other cases (when the amount fraction unit in the record of the assessment division cursor 106e is not 0), the fraction is the amount fraction unit.

前記端数が0である場合(図21のS53:Yes)、算出部102c5は、判断倍数に1をセット(代入)する(図21のS54)。   When the fraction is 0 (S53 in FIG. 21: Yes), the calculation unit 102c5 sets (substitutes) 1 as the determination multiple (S54 in FIG. 21).

一方で、前記端数が0ではない場合(図21のS53:No)、以下のようにして、値がセット(代入)される。すなわち、算出部102c5は、FLOOR((前記判断金額/前記端数)×10)/10の値を、判断倍数に代入し、更に、当該判断倍数を査定分割カーソル106eのレコードにおける前記端数区分により端数処理することにより、判断倍数を算出する(図21のS55)。   On the other hand, when the fraction is not 0 (S53: No in FIG. 21), the value is set (assigned) as follows. That is, the calculation unit 102c5 substitutes the value of FLOOR ((the judgment amount / the fraction) × 10) / 10 into the judgment multiple, and further, the judgment multiple is a fraction by the fraction classification in the record of the assessment division cursor 106e. By processing, a determination multiple is calculated (S55 in FIG. 21).

次に、以下のようにして、分割金額に計算結果がセット(代入)される。すなわち、算出部102c5は、規則取得部102c2で取得した前記査定分割条件(本発明の「分割規則」に相当)に含まれる前記発生金額区分2(本発明の「比率基準額出力区分」に相当)および前記按分率(本発明の「所定比率」に相当)の組み合わせの情報に含まれる出力区分に従って、前記出力区分と対応する分割金額を、前記情報または値取得部102c3で取得した前記値を基に算出する。具体的には、算出部102c5は、前記端数×前記判断倍数の計算結果を、分割金額に代入する(図21のS56)。   Next, the calculation result is set (assigned) to the split amount as follows. That is, the calculation unit 102c5 corresponds to the generated amount category 2 (corresponding to the “ratio reference amount output category” of the present invention) included in the assessment split condition (corresponding to the “division rule” of the present invention) acquired by the rule acquiring unit 102c2. ) And the apportioning rate (corresponding to the “predetermined ratio” of the present invention) according to the output category included in the output category, the division amount corresponding to the output category is obtained by the information or the value acquisition unit 102c3. Calculate based on Specifically, the calculation unit 102c5 substitutes the calculation result of the fraction × the determination multiple for the divided amount (S56 in FIG. 21).

次に、「S4で説明した前記分割元金額<S56で説明した前記分割金額」という条件が満たされるか否かがチェックされる(図21のS57)。なお、当該チェックは、査定分割マスタ106dに登録されている按分率が100%を超えている等の不正な設定がされていないかのチェックである。   Next, it is checked whether or not the condition “the split source price explained in S4 <the split price explained in S56” is satisfied (S57 in FIG. 21). Note that this check is a check to determine whether an illegal setting has been made such that the apportioning rate registered in the assessment division master 106d exceeds 100%.

前記条件が満たされて不正な設定がされている場合(図21のS57:Yes)、以下のようにして、前記分割金額に計算結果がセット(代入)される。すなわち、算出部102c5は、前記端数×(前記判断倍数−1)の計算結果を、前記分割金額に代入する(図21のS58)。   When the above condition is satisfied and an illegal setting is made (S57 in FIG. 21: Yes), the calculation result is set (substituted) in the divided amount as follows. That is, the calculation unit 102c5 substitutes the calculation result of the fraction × (the determination multiple −1) for the divided amount (S58 in FIG. 21).

前記条件が満たされず不正な設定がされていない場合(図21のS57:No)、または、図21のS58の完了後、「前記分割残金額<S56で説明した前記分割金額」という条件が満たされるか否かがチェックされる(図21のS59)。なお、当該チェックは、査定分割マスタ106dに登録されている按分率が100%を超えている等の不正な設定がされていないかのチェックである。   When the above condition is not satisfied and an illegal setting is not made (S57: No in FIG. 21), or after the completion of S58 in FIG. 21, the condition “the split remaining amount <the split amount described in S56” is satisfied. Is checked (S59 in FIG. 21). Note that this check is a check to determine whether an illegal setting has been made such that the apportioning rate registered in the assessment division master 106d exceeds 100%.

前記条件が満たされて不正な設定がされている場合(図21のS59:Yes)、以下のようにして、前記分割金額に計算結果がセット(代入)される。すなわち、算出部102c5は、前記分割残金額を、前記分割金額に代入する(図21のS60)。   When the above condition is satisfied and an incorrect setting is made (S59 in FIG. 21: Yes), the calculation result is set (substituted) in the divided amount as follows. That is, the calculation unit 102c5 substitutes the remaining divided amount for the divided amount (S60 in FIG. 21).

前記条件が満たされず不正な設定がされていない場合(図21のS59:No)、または、図21のS60の完了後、以下のようにして、前記分割残金額、前記分割消費税額および前記分割残消費税額に計算結果がセット(代入)される。すなわち、更新部102c6は、前記分割残金額(本発明の「残金額変数」に相当)の更新処理実行時の値から算出部102c5で算出した前記分割金額を差し引いた値を前記分割残金額(本発明の「残金額変数」に相当)に代入することにより、前記分割残金額を更新する。具体的には、算出部102c5は、前記分割残金額から前記分割金額を差し引いた計算結果を、前記分割残金額に代入することにより、前記分割残金額を更新する(図21のS61)。また、更新部102c6は、前記分割元消費税額×(前記分割金額/前記分割元金額)の計算結果を、前記分割消費税額に代入し、前記分割残消費税額から前記分割消費税額を差し引いた計算結果を、前記分割残消費税額に代入することにより、前記分割消費税額および前記分割残消費税額を更新する(図21のS61)。そして、図16(A)に進む。   When the above condition is not satisfied and an illegal setting is not made (S59: No in FIG. 21), or after the completion of S60 in FIG. 21, the split remaining amount, the split consumption tax amount, and the split are performed as follows. The calculation result is set (substituted) in the remaining consumption tax amount. That is, the update unit 102c6 obtains a value obtained by subtracting the split amount calculated by the calculation unit 102c5 from the value at the time of update processing of the split remaining amount (corresponding to the “remaining amount variable” of the present invention). By substituting it into the “remaining amount variable” of the present invention, the divided remaining amount is updated. Specifically, the calculation unit 102c5 updates the divided remaining amount by substituting the calculation result obtained by subtracting the divided amount from the remaining divided amount into the remaining divided amount (S61 in FIG. 21). Further, the update unit 102c6 substitutes the calculation result of the split source consumption tax amount × (the split amount / the split source amount) into the split consumption tax amount, and subtracts the split consumption tax amount from the remaining split consumption tax amount. By substituting the result into the divided remaining consumption tax amount, the divided consumption tax amount and the divided remaining consumption tax amount are updated (S61 in FIG. 21). Then, the process proceeds to FIG.

[3−3−5.分割金額出力処理の終了]
図16(A)に進むと、前記分割パターンフラグが−1以外の場合には、査定分割ワーク106fに請求明細が1行追加される(図16のS12)。すなわち、S11の前記分割金額を1請求として査定分割ワーク106fが作成される(図16のS12)。そして、図15(A)に戻る。
[3-3-5. End of split amount output processing]
When proceeding to FIG. 16A, if the division pattern flag is other than -1, one line of the billing details is added to the assessment division work 106f (S12 in FIG. 16). That is, the assessment divided work 106f is created with the split amount in S11 as one claim (S12 in FIG. 16). Then, the process returns to FIG.

図15(A)に戻り、査定分割カーソル106eにおける2行目以降のレコードについてもこれまでの説明と同様の処理が行われ、すべてのレコードの呼出が完了すると、査定分割カーソル106eの処理を抜ける(図15のS9:処理終了 次の明細の処理を開始)。そして、図15のS3に戻る。   Returning to FIG. 15A, the same processing as described above is performed for the second and subsequent records in the assessment split cursor 106e. When all the records have been called, the processing of the assessment split cursor 106e is terminated. (S9 in FIG. 15: End of processing Start processing of the next specification) And it returns to S3 of FIG.

図15のS3に戻り、発注依頼カーソル106cにおける2行目以降の明細についてもこれまでの説明と同様の処理が行われ、すべての明細の呼出が完了すると、処理が終了する(図15のS3:処理終了)。   Returning to S3 in FIG. 15, the same processing as described above is performed for the second and subsequent details in the order request cursor 106c, and when all the details have been called, the processing ends (S3 in FIG. 15). :Processing Exit).

以上のようにして、分割金額出力部102cは、規則取得部102c2、値取得部102c3、判断部102c4、算出部102c5および更新部102c6を複数回動作させることにより、複数の分割金額を出力することができる。なお、前記分割金額出力処理は、図6に示す査定分割入力画面を通して行うことができる。   As described above, the split amount output unit 102c outputs a plurality of split amounts by operating the rule acquisition unit 102c2, the value acquisition unit 102c3, the determination unit 102c4, the calculation unit 102c5, and the update unit 102c6 a plurality of times. Can do. The split amount output process can be performed through the assessment split input screen shown in FIG.

そして、前記複数の分割金額を請求税込金額として含む査定分割ワーク106fが更新され、更新された査定分割ワーク106fを基にして請求データ106gが作成される。   Then, the assessment division work 106f including the plurality of division amounts as the invoiced tax amount is updated, and billing data 106g is created based on the updated assessment division work 106f.

[3−4.書類データ作成処理]
次に、書類データ作成部102dは、前記発注書、前記請書および前記請求書の書類データを作成する。当該書類データの一例を、図7に示す。前記請求書の前記書類データについては、査定分割の分だけ作成することができる。また、前記請求書の前記書類データは、それぞれ、図7の(1)〜(3)に示すように、[3−3]で算出部102c5が算出した前記分割金額を請求金額として含む。
[3-4. Document data creation process]
Next, the document data creation unit 102d creates document data for the purchase order, the receipt, and the bill. An example of the document data is shown in FIG. The document data of the bill can be created for the assessment division. Further, the document data of the invoice includes, as shown in (1) to (3) of FIG. 7, the divided amount calculated by the calculation unit 102c5 in [3-3] as an invoice amount.

[3−5.仕入入力処理]
そして、仕入入力時に、図8に示す仕入入力画面から請求番号をキーとして、[3−3]で作成された請求データ106gが呼び出されて、仕入内容となる。仕入入力部102eは、当該仕入内容の入力を受け付ける。
[3-5. Purchase input processing]
Then, at the time of purchase input, the charge data 106g created in [3-3] is called from the purchase input screen shown in FIG. The purchase input unit 102e receives an input of the purchase content.

[4.処理詳細]
本項目では、業務支援装置100で実行される処理の詳細について説明する。
[4. Processing details]
In this item, details of processing executed by the business support apparatus 100 will be described.

[4−1.査定分割マスタ106dの設定がない場合]
査定分割マスタ106dの設定がない場合には、全額の請求が1明細作成される。概要としては、査定分割マスタ106dの設定がない場合には、図9に示すように、発注税込金額の合計額194,400円の全額を請求税込金額とする請求明細を含む請求データ106gが作成される。詳細な処理を以下で説明する。
[4-1. When the assessment division master 106d is not set]
If there is no setting of the assessment division master 106d, one bill is created for the full amount. As an outline, when there is no setting of the assessment division master 106d, as shown in FIG. 9, billing data 106g including billing details including the billing tax amount as a total amount of 194,400 yen of the total amount including the order tax included is created. . Detailed processing will be described below.

まず、発注依頼入力部102aは、発注依頼の入力を受け付ける。次に、発注確定処理部102bは、図24の(画面項目)に示す発注依頼明細のうちチェックされた3つの明細についての発注の確定処理を行う。これにより、当該3つの明細が発注確定明細として発注明細ワーク106bに追加されて、発注明細ワーク106bが更新される(図15のS1)。更新された発注明細ワーク106bを、図24に示す。   First, the order request input unit 102a receives an input of an order request. Next, the order confirmation processing unit 102b performs order confirmation processing for the three checked details among the order request details shown in (screen item) of FIG. As a result, the three details are added to the order detail work 106b as order confirmation details, and the order detail work 106b is updated (S1 in FIG. 15). FIG. 24 shows the updated order detail work 106b.

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1〜2行目の発注確定明細が集約されて、図24の発注依頼カーソル106cの1行目に格納される(図15のS2)。また、更新された発注明細ワーク106bにおける3行目の発注確定明細は、前記組み合わせが同じである発注確定明細が他に存在しないため、図24の発注依頼カーソル106cの2行目に格納される(図15のS2)。   Next, from the updated order detail work 106b, the combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification is the same 1-2. The order confirmation details on the line are collected and stored in the first line of the order request cursor 106c in FIG. 24 (S2 in FIG. 15). Further, the order confirmation details on the third line in the updated order detail work 106b are stored in the second line of the order request cursor 106c in FIG. 24 because there is no other order confirmation details having the same combination. (S2 in FIG. 15).

次に、図25に示すように、発注依頼カーソル106cの1行目の集約明細が呼び出される(図15のS3)。   Next, as shown in FIG. 25, the consolidated details in the first line of the order request cursor 106c are called (S3 in FIG. 15).

次に、初期値設定部102c1は、前記呼び出された1行目の集約明細における発注税込金額194,400円を分割元金額に代入し、前記呼び出された1行目の集約明細における発注消費税額14,400円を分割元消費税額に代入し、前記分割元金額194,400円を分割残金額に代入し、前記分割元消費税額14,400円を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。   Next, the initial value setting unit 102c1 substitutes the order tax-included amount of 194,400 yen in the called aggregated line of the called first line into the split source amount, and the order consumption tax amount in the called aggregated line of the first line of 14,400 yen Is substituted into the split source consumption tax amount, the split source amount 194,400 yen is substituted into the split residual amount, the split source consumption tax amount 14,400 yen is substituted into the split residual consumption tax amount, and the invoice split number is set to “1”. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。   Next, the rule acquisition unit 102c2 acquires the assessment division condition from the assessment division master 106d (S5 in FIG. 15).

ここで、本項目[4−1]においては、図23に示すように、発注先コード0000000001についての査定分割マスタ106dの内容は設定されていないため、規則取得部102c2は、前記査定分割条件を取得することができない。すなわち、前記査定分割条件の取得件数が0である(図15のS6:Yes)。   Here, in this item [4-1], as shown in FIG. 23, since the contents of the assessment division master 106d for the ordering party code 0000000001 are not set, the rule acquisition unit 102c2 sets the assessment division conditions. I can't get it. That is, the acquisition number of the assessment division conditions is 0 (S6 in FIG. 15: Yes).

この場合、図26に示すように、前記分割元金額194,400円を1請求とする(すなわち、前記分割元金額の分割がされていない)請求明細を含む査定分割ワーク106fが更新される(図15のS7)。そして、図26に示す査定分割ワーク106fを元にして、図9に示す請求データ106gが作成される。   In this case, as shown in FIG. 26, the appraisal split work 106f including the billing details for which the split source amount of 194,400 yen is billed as one (that is, the split source amount is not split) is updated (FIG. 15). S7). Then, billing data 106g shown in FIG. 9 is created based on the assessment division work 106f shown in FIG.

続けて、図15のS3に戻り、図24に示す発注依頼カーソル106cの2行目の集約明細について、同様の処理が行われる。   Subsequently, the process returns to S3 in FIG. 15, and the same processing is performed for the aggregated items in the second row of the order request cursor 106c shown in FIG.

すなわち、まず、図27に示すように、発注依頼カーソル106cの2行目の集約明細が呼び出される(図15のS3)。   That is, first, as shown in FIG. 27, the aggregated details of the second line of the order request cursor 106c are called (S3 in FIG. 15).

次に、初期値設定部102c1は、前記呼び出された2行目の集約明細における発注税込金額200,000円を分割元金額に代入し、前記呼び出された2行目の集約明細における発注消費税額0円を分割元消費税額に代入し、前記分割元金額200,000円を分割残金額に代入し、前記分割元消費税額0円を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。   Next, the initial value setting unit 102c1 substitutes the order tax-included amount of 200,000 yen in the recalled aggregated line of the second row into the split source amount, and the order consumption tax amount in the aggregated detail of the second line of recall is 0 yen. Is substituted into the split source consumption tax amount, the split source amount of 200,000 yen is substituted into the split residual amount, the split source consumption tax amount of 0 yen is substituted into the split residual consumption tax amount, and the invoice split number is set to “1”. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。   Next, the rule acquisition unit 102c2 acquires the assessment division condition from the assessment division master 106d (S5 in FIG. 15).

ここで、本項目[4−1]においては、図23に示すように、発注先コード0000000002についての査定分割マスタ106dの内容は設定されていないため、規則取得部102c2は、前記査定分割条件を取得することができない。すなわち、前記査定分割条件の取得件数が0である(図15のS6:Yes)。   Here, in this item [4-1], as shown in FIG. 23, since the contents of the assessment division master 106d for the ordering party code 0000000002 are not set, the rule acquisition unit 102c2 sets the assessment division conditions. I can't get it. That is, the acquisition number of the assessment division conditions is 0 (S6 in FIG. 15: Yes).

この場合、図28に示すように、前記分割元金額200,000円を1請求とする請求明細を含む査定分割ワーク106fが更新される(図15のS7)。   In this case, as shown in FIG. 28, the assessment divided work 106f including the billing specification in which the split source amount of 200,000 yen is charged is updated (S7 in FIG. 15).

以上の処理により、発注依頼カーソル106cに残データはなくなったため(発注依頼カーソル106cにおけるすべての明細の呼出が完了したため)、処理が終了する(図15のS3:処理終了)。   With the above processing, since there is no remaining data in the order request cursor 106c (because calling of all details in the order request cursor 106c has been completed), the processing ends (S3 in FIG. 15: processing end).

[4−2.査定分割条件に当てはまらない場合]
査定分割条件に当てはまらない場合には、全額の請求が1明細作成される。概要としては、査定分割条件に当てはまらない場合には、図10に示すように、発注税込金額の合計額194,400円の全額を請求税込金額とする請求明細を含む請求データ106gが作成される。詳細な処理を以下で説明する。
[4-2. When the assessment split conditions do not apply]
If the appraisal split conditions are not met, one full claim is created. As an outline, when the assessment division condition is not satisfied, as shown in FIG. 10, billing data 106g including a billing description including the billing tax amount as the total amount of the order tax-included amount of 194,400 yen is created. Detailed processing will be described below.

まず、発注依頼入力部102aは、発注依頼の入力を受け付ける。次に、発注確定処理部102bは、図30の(画面項目)に示す発注依頼明細のうちチェックされた2つの明細についての発注の確定処理を行う。これにより、当該2つの明細が発注確定明細として発注明細ワーク106bに追加されて、発注明細ワーク106bが更新される(図15のS1)。更新された発注明細ワーク106bを、図30に示す。   First, the order request input unit 102a receives an input of an order request. Next, the order confirmation processing unit 102b performs order confirmation processing for two checked details among the order request details shown in (screen item) of FIG. Thereby, the two details are added to the order detail work 106b as the order confirmation details, and the order detail work 106b is updated (S1 in FIG. 15). FIG. 30 shows the updated order detail work 106b.

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1〜2行目の発注確定明細が集約されて、図30の発注依頼カーソル106cの1行目に格納される(図15のS2)。   Next, from the updated order detail work 106b, the combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification is the same 1-2. The order confirmation details on the line are collected and stored in the first line of the order request cursor 106c in FIG. 30 (S2 in FIG. 15).

次に、図31に示すように、発注依頼カーソル106cの1行目の集約明細が呼び出される(図15のS3)。   Next, as shown in FIG. 31, the aggregated detail of the first line of the order request cursor 106c is called (S3 in FIG. 15).

次に、初期値設定部102c1は、前記呼び出された1行目の集約明細における発注税込金額194,400円を分割元金額に代入し、前記呼び出された1行目の集約明細における発注消費税額14,400円を分割元消費税額に代入し、前記分割元金額194,400円を分割残金額に代入し、前記分割元消費税額14,400円を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。   Next, the initial value setting unit 102c1 substitutes the order tax-included amount of 194,400 yen in the called aggregated line of the called first line into the split source amount, and the order consumption tax amount in the called aggregated line of the first line of 14,400 yen Is substituted into the split source consumption tax amount, the split source amount 194,400 yen is substituted into the split residual amount, the split source consumption tax amount 14,400 yen is substituted into the split residual consumption tax amount, and the invoice split number is set to “1”. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。   Next, the rule acquisition unit 102c2 acquires the assessment division condition from the assessment division master 106d (S5 in FIG. 15).

ここで、本項目[4−2]においては、図29に示すように、査定分割マスタ106dに1つの査定分割条件が設定されているため、規則取得部102c2は、前記査定分割条件を取得することができる。すなわち、前記査定分割条件の取得件数が0ではない(図15のS6:No)。   Here, in this item [4-2], as shown in FIG. 29, since one assessment division condition is set in the assessment division master 106d, the rule obtaining unit 102c2 obtains the assessment division condition. be able to. That is, the acquisition number of the assessment division condition is not 0 (S6 in FIG. 15: No).

この場合、図32に示すように、図29の査定分割マスタ106dにおけるレコードが、査定分割カーソル106eに格納される(図15のS8)。   In this case, as shown in FIG. 32, the record in the assessment division master 106d in FIG. 29 is stored in the assessment division cursor 106e (S8 in FIG. 15).

次に、図33に示すように、査定分割カーソル106eの1行目のレコードから呼び出される(図15のS9)。また、本例においては、図32に示すように、査定分割カーソル106eのレコードの取得件数が1である(図15のS10:取得件数=1)。   Next, as shown in FIG. 33, it is called from the record on the first line of the assessment division cursor 106e (S9 in FIG. 15). In this example, as shown in FIG. 32, the number of records acquired by the assessment division cursor 106e is 1 (S10: number of acquisitions = 1 in FIG. 15).

ここで、査定分割カーソル106eの1行目のレコードにおける残金区分は、図33に示すように、「0:全体」であるため、「0:全体」の金額区分に従って、前記分割元金額194,400円が取得される。   Here, as shown in FIG. 33, the balance classification in the record of the first line of the assessment split cursor 106e is “0: total”. Therefore, according to the price category of “0: total”, the split source price of 194,400 yen Is acquired.

一方で、規則取得部102c2で取得した前記査定分割条件に含まれる金額条件および金額条件区分は、図33に示すように、それぞれ、「100,000円」および「0:未満」である。   On the other hand, as shown in FIG. 33, the money amount condition and the money amount condition classification included in the assessment division condition acquired by the rule acquisition unit 102c2 are “100,000 yen” and “less than 0:”, respectively.

この場合、前記分割元金額194,400円が規則取得部102c2で取得した条件である「100,000円未満」を満たしていないと判断される。   In this case, it is determined that the split source amount of 194,400 yen does not satisfy “less than 100,000 yen” that is the condition acquired by the rule acquisition unit 102c2.

前記条件が満たされていないと判断された場合、分割金額にS4の分割残金額194,400円が分割されずに代入され、分割消費税額にS4の前記分割残消費税額14,400円が代入され、分割残金額に0が代入され、分割パターンフラグに0が代入される(図15のS11)。そして、図16(A)に進む。   If it is determined that the above condition is not satisfied, the remaining split amount of 194,400 yen in S4 is assigned to the split amount without being split, and the remaining split consumption tax amount of S4 in S4 is assigned to the split consumption tax amount. 0 is assigned to the amount of money, and 0 is assigned to the division pattern flag (S11 in FIG. 15). Then, the process proceeds to FIG.

図16(A)に進むと、図33に示すように、S11の前記分割金額194,400を1請求とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。これにより、図33に示す査定分割ワーク106fを元にして、図10に示す請求データ106gが作成される。そして、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 33, the assessment divided work 106f including the billing specification in which the split amount 194,400 of S11 is one bill is updated (S12 of FIG. 16). Thus, billing data 106g shown in FIG. 10 is created based on the assessment divided work 106f shown in FIG. Then, the process returns to FIG.

以上の処理により、査定分割カーソル106eの残明細がなくなったため(査定分割カーソル106eにおけるすべてのレコードの呼出が完了したため)、査定分割カーソル106eの処理を抜ける(図15のS9:処理終了 次の明細の処理を開始)。そして、発注依頼カーソル106cの残明細はなくなったため(発注依頼カーソル106cにおけるすべての明細の呼出しが完了したため)、発注依頼カーソル106cの処理を抜け、全処理が終了する(図15のS3:処理終了)。   As a result of the above processing, there is no remaining detail of the assessment split cursor 106e (because all of the records have been called in the assessment split cursor 106e), the processing of the assessment split cursor 106e is exited (S9 in FIG. 15: processing is completed. Start processing). Since there are no remaining details in the order request cursor 106c (because calling of all the details in the order request cursor 106c has been completed), the process of the order request cursor 106c is exited and all the processes are completed (S3 in FIG. 15: process end). ).

[4−3.金額全額に基づく分割をする場合]
金額全額に基づく分割をする場合の概要としては、図11に示すように、発注税込金額の合計額194,400円の全額である194,400円を請求税込金額とする請求明細を含む請求データ106gが作成される。詳細な処理を以下で説明する。
[4-3. When splitting based on full amount]
As an outline in the case of division based on the total amount of money, as shown in FIG. 11, billing data 106g including billing details including 194,400 yen, which is the total of the total amount of 194,400 yen including tax included in the order, is created. The Detailed processing will be described below.

まず、発注依頼入力部102aは、発注依頼の入力を受け付ける。次に、発注確定処理部102bは、図35の(画面項目)に示す発注依頼明細のうちチェックされた2つの明細についての発注の確定処理を行う。これにより、当該2つの明細が発注確定明細として発注明細ワーク106bに追加されて、発注明細ワーク106bが更新される(図15のS1)。更新された発注明細ワーク106bを、図35に示す。   First, the order request input unit 102a receives an input of an order request. Next, the order confirmation processing unit 102b performs order confirmation processing for two checked details among the order request details shown in (screen item) of FIG. Thereby, the two details are added to the order detail work 106b as the order confirmation details, and the order detail work 106b is updated (S1 in FIG. 15). FIG. 35 shows the updated order detail work 106b.

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1〜2行目の発注確定明細が集約されて、図35の発注依頼カーソル106cの1行目に格納される(図15のS2)。   Next, from the updated order detail work 106b, the combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification is the same 1-2. The order confirmation details on the line are collected and stored in the first line of the order request cursor 106c in FIG. 35 (S2 in FIG. 15).

次に、図36に示すように、発注依頼カーソル106cの1行目の集約明細が呼び出される(図15のS3)。   Next, as shown in FIG. 36, the consolidated details in the first line of the order request cursor 106c are called (S3 in FIG. 15).

次に、初期値設定部102c1は、前記呼び出された1行目の集約明細における発注税込金額194,400円を分割元金額に代入し、前記呼び出された1行目の集約明細における発注消費税額14,400円を分割元消費税額に代入し、前記分割元金額194,400円を分割残金額に代入し、前記分割元消費税額14,400円を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。   Next, the initial value setting unit 102c1 substitutes the order tax-included amount of 194,400 yen in the called aggregated line of the called first line into the split source amount, and the order consumption tax amount in the called aggregated line of the first line of 14,400 yen Is substituted into the split source consumption tax amount, the split source amount 194,400 yen is substituted into the split residual amount, the split source consumption tax amount 14,400 yen is substituted into the split residual consumption tax amount, and the invoice split number is set to “1”. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。   Next, the rule acquisition unit 102c2 acquires the assessment division condition from the assessment division master 106d (S5 in FIG. 15).

ここで、本項目[4−3]においては、図34に示すように、査定分割マスタ106dに1つの査定分割条件が設定されているため、規則取得部102c2は、前記査定分割条件を取得することができる。すなわち、前記査定分割条件の取得件数が0ではない(図15のS6:No)。   Here, in this item [4-3], as shown in FIG. 34, since one assessment division condition is set in the assessment division master 106d, the rule acquisition unit 102c2 obtains the assessment division condition. be able to. That is, the acquisition number of the assessment division condition is not 0 (S6 in FIG. 15: No).

この場合、図37に示すように、図34の査定分割マスタ106dにおけるレコードが、査定分割カーソル106eに格納される(図15のS8)。   In this case, as shown in FIG. 37, the record in the assessment division master 106d in FIG. 34 is stored in the assessment division cursor 106e (S8 in FIG. 15).

次に、図38に示すように、査定分割カーソル106eの1行目のレコードから呼び出される(図15のS9)。また、本例においては、図37に示すように、査定分割カーソル106eのレコードの取得件数が1である(図15のS10:取得件数=1)。   Next, as shown in FIG. 38, it is called from the record in the first line of the assessment division cursor 106e (S9 in FIG. 15). In this example, as shown in FIG. 37, the number of records acquired by the assessment division cursor 106e is 1 (S10: number of acquisitions = 1 in FIG. 15).

ここで、査定分割カーソル106eの1行目のレコードにおける残金区分は、図38に示すように、「0:全体」であるため、「0:全体」の金額区分に従って、前記分割元金額194,400円が取得される。   Here, as shown in FIG. 38, the balance classification in the record of the first line of the assessment split cursor 106e is “0: total”, and therefore, according to the price classification of “0: total”, the split source price 194,400 yen. Is acquired.

ここで、規則取得部102c2で取得した前記査定分割条件に含まれる金額条件および金額条件区分は、図38に示すように、それぞれ、「200,000円」および「0:未満」である。   Here, as shown in FIG. 38, the money amount condition and the money amount condition classification included in the assessment division condition acquired by the rule acquisition unit 102c2 are “200,000 yen” and “less than 0:”, respectively.

一方で、規則取得部102c2で取得した前記査定分割条件に含まれる金額条件および金額条件区分は、図33に示すように、それぞれ、「200,000円」および「0:未満」である。   On the other hand, as shown in FIG. 33, the money amount condition and the money amount condition classification included in the assessment division condition acquired by the rule acquisition unit 102c2 are “200,000 yen” and “less than 0:”, respectively.

この場合、前記分割元金額194,400円が規則取得部102c2で取得した条件である「200,000円未満」を満たしていると判断される。   In this case, it is determined that the split source amount of 194,400 yen satisfies the condition acquired by the rule acquisition unit 102c2 “less than 200,000 yen”.

前記条件が満たされていると判断された場合、図38の査定分割カーソル106eの1行目のレコードに含まれる発生金額区分「0:金額全額」に従って、前記取得された前記分割元金額194,400円全額が分割金額に代入される(図15のS11)。なお、当該194,400円は、S4の前記分割残金額194,400円と同じ値であるため、S4の前記分割残金額194,400円が分割金額に代入されると言いかえることもできる。また、分割消費税額にS4の前記分割残消費税額14,400円が代入され、分割残金額に0が代入され、分割パターンフラグに0が代入される(図15のS11)。そして、図16(A)に進む。   If it is determined that the above condition is satisfied, the acquired split source amount of 194,400 yen according to the generated amount category “0: total amount of money” included in the first line record of the assessment split cursor 106e in FIG. The entire amount is substituted into the split amount (S11 in FIG. 15). In addition, since the said 194,400 yen is the same value as the said split remaining amount 194,400 yen of S4, it can be said that the said split remaining amount 194,400 yen of S4 is substituted for the split amount. Further, the divided remaining consumption tax amount of 14,400 yen of S4 is substituted for the divided consumption tax amount, 0 is substituted for the divided remaining amount, and 0 is substituted for the division pattern flag (S11 in FIG. 15). Then, the process proceeds to FIG.

図16(A)に進むと、図38に示すように、S11の前記分割金額194,400円を請求税込金額とする査定分割ワーク106fが更新される(図16のS12)。これにより、図38に示す査定分割ワーク106fを元にして、図11に示す請求データ106gが作成される。そして、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 38, the assessment divided work 106f in which the split amount of 194,400 yen in S11 is charged as a tax-included charge is updated (S12 in FIG. 16). Thus, billing data 106g shown in FIG. 11 is created based on the assessment divided work 106f shown in FIG. Then, the process returns to FIG.

以上の処理により、査定分割カーソル106eの残明細がなくなったため(査定分割カーソル106eにおけるすべてのレコードの呼出が完了したため)、査定分割カーソル106eの処理を抜ける(図15のS9:処理終了 次の明細の処理を開始)。そして、発注依頼カーソル106cの残明細はなくなったため(発注依頼カーソル106cにおけるすべての明細の呼出しが完了したため)、発注依頼カーソル106cの処理を抜け、全処理が終了する(図15のS3:処理終了)。   As a result of the above processing, there is no remaining detail of the assessment split cursor 106e (because all of the records have been called in the assessment split cursor 106e), the processing of the assessment split cursor 106e is exited (S9 in FIG. 15: processing is completed. Start processing). Since there are no remaining details in the order request cursor 106c (because calling of all the details in the order request cursor 106c has been completed), the process of the order request cursor 106c is exited and all the processes are completed (S3 in FIG. 15: process end). ).

[4−4.定額金額および残金全額に基づく分割をする場合]
定額金額および残金全額に基づく分割をする場合の概要としては、図12に示すように、定額金額である100,000円を請求税込金額とする請求明細と、発注税込金額の合計額194,400円から前記請求税込金額100,000円を差し引いた残額944,00円の全額944,00円を請求税込金額とする請求明細と、を含む請求データ106gが作成される。詳細な処理を以下で説明する。
[4-4. When splitting based on fixed amount and full balance]
As shown in Fig. 12, the outline of the split based on the fixed amount and the full amount of the balance is as shown in Fig. 12, from the billing details with the fixed amount of 100,000 yen charged tax included amount and the total amount of order tax included amount of 194,400 yen. Billing data 106g is created that includes billing details including the total amount of 944,00 yen of the remaining amount of 944,00 minus the tax-included amount of 100,000 yen. Detailed processing will be described below.

まず、発注依頼入力部102aは、発注依頼の入力を受け付ける。次に、発注確定処理部102bは、図40の(画面項目)に示す発注依頼明細のうちチェックされた2つの明細についての発注の確定処理を行う。これにより、当該2つの明細が発注確定明細として発注明細ワーク106bに追加されて、発注明細ワーク106bが更新される(図15のS1)。更新された発注明細ワーク106bを、図40に示す。   First, the order request input unit 102a receives an input of an order request. Next, the order confirmation processing unit 102b performs order confirmation processing for two checked details among the order request details shown in (screen item) of FIG. Thereby, the two details are added to the order detail work 106b as the order confirmation details, and the order detail work 106b is updated (S1 in FIG. 15). FIG. 40 shows the updated order detail work 106b.

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1〜2行目の発注確定明細が集約されて、図40の発注依頼カーソル106cの1行目に格納される(図15のS2)。   Next, from the updated order detail work 106b, the combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification is the same 1-2. The order confirmation details on the line are collected and stored in the first line of the order request cursor 106c in FIG. 40 (S2 in FIG. 15).

次に、図41に示すように、発注依頼カーソルの1行目の集約明細が呼び出される(図15のS3)。   Next, as shown in FIG. 41, the consolidated details in the first line of the order request cursor are called (S3 in FIG. 15).

次に、初期値設定部102c1は、前記呼び出された1行目の集約明細における発注税込金額194,400円を分割元金額に代入し、前記呼び出された1行目の集約明細における発注消費税額14,400円を分割元消費税額に代入し、前記分割元金額194,400円を分割残金額に代入し、前記分割元消費税額14,400円を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。   Next, the initial value setting unit 102c1 substitutes the order tax-included amount of 194,400 yen in the called aggregated line of the called first line into the split source amount, and the order consumption tax amount in the called aggregated line of the first line of 14,400 yen Is substituted into the split source consumption tax amount, the split source amount 194,400 yen is substituted into the split residual amount, the split source consumption tax amount 14,400 yen is substituted into the split residual consumption tax amount, and the invoice split number is set to “1”. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。   Next, the rule acquisition unit 102c2 acquires the assessment division condition from the assessment division master 106d (S5 in FIG. 15).

ここで、本項目[4−4]においては、図39に示すように、査定分割マスタ106dに2つの査定分割条件が設定されているため、規則取得部102c2は、前記査定分割条件を取得することができる。すなわち、前記査定分割条件の取得件数が0ではない(図15のS6:No)。   Here, in this item [4-4], as shown in FIG. 39, since two assessment division conditions are set in the assessment division master 106d, the rule acquisition unit 102c2 obtains the assessment division conditions. be able to. That is, the acquisition number of the assessment division condition is not 0 (S6 in FIG. 15: No).

この場合、図42に示すように、図39の査定分割マスタ106dにおけるレコードが、査定分割カーソル106eに格納される(図15のS8)。   In this case, as shown in FIG. 42, the record in the assessment division master 106d in FIG. 39 is stored in the assessment division cursor 106e (S8 in FIG. 15).

[4−4−1.査定分割カーソル106eの1行目のレコードについての処理]
次に、図43に示すように、査定分割カーソル106eの1行目のレコードから呼び出される(図15のS9)。そして、呼び出された当該1行目のレコードについて、以下で説明する処理が行われる。
[4-4-1. Processing for the first record of the assessment split cursor 106e]
Next, as shown in FIG. 43, it is called from the record in the first line of the assessment division cursor 106e (S9 in FIG. 15). And the process demonstrated below is performed about the called record of the said 1st line.

本例においては、査定分割カーソル106eのレコードの取得件数が1より大きい(図15のS10:取得件数>1)。また、本例においては、前記1行目のレコードにおける前記残金区分は、「0:全体」である(図15のS13:YES)。そして、本例においては、前記1行目のレコードにおける前記金額条件区分は、「0:未満」ではなく(図17のS14:No)、「1:以下」でもなく(図17のS17:No)、「2:以上」である(図17のS20:YES)。   In this example, the acquisition number of records of the assessment division cursor 106e is larger than 1 (S10 in FIG. 15: acquisition number> 1). In this example, the balance classification in the record in the first row is “0: entire” (S13: YES in FIG. 15). In this example, the amount condition classification in the record in the first row is not “less than 0:” (S14: No in FIG. 17), but not “1: or less” (S17: No in FIG. 17). ), “2: or more” (S20: YES in FIG. 17).

この場合、「S4で説明した前記分割元金額≧査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図17のS21)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件に含まれる残金区分0の金額区分に従って、S4で説明した前記分割元金額194,400円を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割元金額194,400円が、規則取得部102c2で取得した前記査定分割条件に含まれる前記金額条件および前記金額条件区分の組み合わせ「100,000円以上」を満たしているかを判断する。   In this case, whether or not the condition “the amount of money in the first line record of the assessment division cursor 106e described in S4” is checked is as follows (S21 in FIG. 17). ). First, the value acquisition unit 102c3 acquires the split source amount 194,400 yen described in S4 according to the amount category of the balance category 0 included in the assessment split condition acquired by the rule acquisition unit 102c2. Then, the determination unit 102c4 determines that the split source amount 194,400 yen acquired by the value acquisition unit 102c3 is equal to or greater than “100,000 yen combination of the amount condition and the amount condition category included in the assessment split condition acquired by the rule acquisition unit 102c2. ”Is determined.

前記分割元金額194,400円は100,000円以上であるため(図17のS21:Yes)、図17のS22に進む。本例においては、前記1行目のレコードにおける前記発生金額区分1に従って、前記分割パターンフラグは2となる(図17のS22)。そして、図21(A)に進む。   Since the split source amount of 194,400 yen is 100,000 yen or more (S21: Yes in FIG. 17), the process proceeds to S22 in FIG. In this example, the division pattern flag is 2 according to the generated amount category 1 in the record in the first row (S22 in FIG. 17). Then, the process proceeds to FIG.

本例においては、前段落で説明したとおり、前記分割パターンフラグは1ではなく(図21のS42:No)、2である(図21のS44:Yes)。   In this example, as described in the previous paragraph, the division pattern flag is not 1 (S42: No in FIG. 21) and 2 (S44: Yes in FIG. 21).

次に、S4で説明した前記分割残金額194,400円は、査定分割カーソル106eの1行目のレコードにおける発生金額100,000円以上であるため(図21のS45:Yes)、算出部102c5は、図43の査定分割カーソル106eの1行目のレコードに含まれる発生金額区分「1:定額金額」に従って、当該発生金額区分と対応する分割金額を算出する。すなわち、発生金額区分が「1:定額金額」である場合には、前記査定分割条件に含まれる前記発生金額が分割金額として出力されるため、算出部102c5は、前記発生金額100,000円を分割金額に代入する(図21のS46)。   Next, since the split remaining amount of 194,400 yen described in S4 is the generated amount of 100,000 yen or more in the record in the first line of the assessment split cursor 106e (S45: Yes in FIG. 21), the calculation unit 102c5 displays FIG. In accordance with the accrued amount category “1: fixed amount” included in the first line record of the assessment split cursor 106e, the divided amount corresponding to the accrued amount category is calculated. That is, when the generated amount category is “1: fixed amount”, the generated amount included in the appraisal split condition is output as the divided amount, so the calculation unit 102c5 uses the generated amount of 100,000 yen as the divided amount. (S46 in FIG. 21).

更に、更新部102c6は、S4で説明した前記分割残金額194,400円から算出部102c5で算出した前記分割金額100,000円を差し引いた値である94,400円を前記分割残金額に代入することにより、前記分割残金額を更新する(図21のS48)。そして、図16(A)に進む。   Further, the update unit 102c6 substitutes 94,400 yen, which is a value obtained by subtracting the divided amount 100,000 yen calculated by the calculation unit 102c5 from the divided remaining amount 194,400 yen described in S4, into the divided remaining amount. The remaining amount is updated (S48 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図43に示すように、S46で算出した前記分割金額100,000円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図43に示す査定分割ワーク106fを元にして、図12に示す請求データ106gにおける1行目の明細(請求番号000000000001の明細)が作成される。そして、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 43, the assessment divided work 106f including the billing details with the divided amount of 100,000 yen calculated in S46 as the amount including tax is updated (S12 in FIG. 16). Then, based on the assessment division work 106f shown in FIG. 43, the details of the first line (details of the claim number 000000000001) in the claim data 106g shown in FIG. 12 are created. Then, the process returns to FIG.

[4−4−2.査定分割カーソル106eの2行目のレコードについての処理]
図15(A)に戻ると、図44に示すように、査定分割カーソル106eの2行目のレコードが呼び出される(図15のS9)。そして、呼び出された当該2行目のレコードについて、以下で説明する処理が行われる。
[4-4-2. Processing for the second row record of the assessment split cursor 106e]
Returning to FIG. 15A, as shown in FIG. 44, the record in the second row of the assessment division cursor 106e is called (S9 in FIG. 15). And the process demonstrated below is performed about the called record of the said 2nd line.

本例においては、査定分割カーソル106eのレコードの取得件数が1より大きい(図15のS10:取得件数>1)。また、本例においては、前記2行目のレコードにおける前記残金区分は、「0:全体」ではない(図15のS13:No)。そして、本例においては、前記2行目のレコードにおける前記金額条件区分は、「0:未満」ではなく(図19のS28:No)、「1:以下」でもなく(図19のS31:No)、「2:以上」でもなく(図19のS34:No)、「3:超」でもなく(図20のS37:No)、「9:無し」である(図20のS40:Yes)。   In this example, the acquisition number of records of the assessment division cursor 106e is larger than 1 (S10 in FIG. 15: acquisition number> 1). In this example, the balance classification in the record in the second row is not “0: entire” (S13: No in FIG. 15). In this example, the amount condition classification in the record in the second row is not “less than 0:” (S28: No in FIG. 19), but not “1: or less” (S31: No in FIG. 19). ), Not “2: or more” (S34: No in FIG. 19), not “3: More” (S37: No in FIG. 20), and “9: None” (S40: Yes in FIG. 20).

ここで、値取得部102c3は、図44に示す前記査定分割条件に含まれる残金区分1の金額区分に従って、[4−4−1]で更新した前記分割残金額94,400円を取得する。   Here, the value acquiring unit 102c3 acquires the split remaining amount of 94,400 yen updated in [4-4-1] according to the amount of remaining segment 1 included in the appraisal split condition shown in FIG.

前記2行目のレコードにおける前記金額条件区分は「9:無し」であるため、当該取得した分割残金額94,400円が満たすべき条件はない。このため、図20のS41に進み、前記2行目のレコードにおける前記発生金額区分0に従って、前記分割パターンフラグは1となる。そして、図19(D)に進み、更に、図21(A)に進む。   Since the amount condition classification in the record in the second row is “9: None”, there is no condition to be satisfied by the acquired divided remaining amount of 94,400 yen. For this reason, the process proceeds to S41 in FIG. 20, and the division pattern flag is set to 1 according to the generated amount category 0 in the record in the second row. Then, the process proceeds to FIG. 19D, and further proceeds to FIG.

本例においては、前段落で説明したとおり、前記分割パターンフラグは1である(図21のS42:Yes)。   In this example, as described in the previous paragraph, the division pattern flag is 1 (S42 in FIG. 21: Yes).

次に、算出部102c5は、図44の査定分割カーソル106eの2行目のレコードに含まれる発生金額区分「0:金額全額」に従って、当該発生金額区分と対応する分割金額を算出する。すなわち、発生金額区分が「0:金額全額」である場合には、値取得部102c3で取得した値が分割金額として出力されるため、算出部102c5は、値取得部102c3で取得した前記分割残金額944,00円を前記分割金額に代入する(図21のS43)。次に、更新部102c6は、[4−4−1]で更新した分割残金額94,400円から算出部102c5で算出した分割金額94,400円を差し引いた値である0円を前記分割残金額に代入することにより、前記分割残金額を更新する(図21のS43)。そして、図16(A)に進む。   Next, the calculation unit 102c5 calculates the split amount corresponding to the generated amount category according to the generated amount category “0: total amount of money” included in the record of the second row of the assessment split cursor 106e in FIG. That is, when the generated amount category is “0: full amount of money”, the value acquired by the value acquisition unit 102c3 is output as a divided amount, and thus the calculation unit 102c5 is configured to output the remaining division amount acquired by the value acquisition unit 102c3. An amount of 944,00 yen is substituted into the divided amount (S43 in FIG. 21). Next, the updating unit 102c6 substitutes 0 yen, which is a value obtained by subtracting the divided amount 94,400 yen calculated by the calculating unit 102c5 from the divided remaining amount 94,400 yen updated in [4-4-1], into the divided remaining amount. As a result, the remaining balance is updated (S43 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図44に示すように、S43で算出した前記分割金額94,400円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図44に示す査定分割ワーク106fを元にして、図12に示す請求データ106gにおける2行目の明細(請求番号000000000002の明細)が作成される。続けて、図15(A)に進む。   When proceeding to FIG. 16 (A), as shown in FIG. 44, the assessment divided work 106f including the billing details including the divided amount of 94,400 yen calculated in S43 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 44, the details of the second line (details of the claim number 000000000002) in the claim data 106g shown in FIG. 12 are created. Subsequently, the process proceeds to FIG.

[4−4−3.処理の終了]
以上、[4−4−1]および[4−4−2]で説明した処理により、査定分割カーソル106eの残明細がなくなったため(査定分割カーソル106eにおけるすべてのレコードの呼出が完了したため)、査定分割カーソル106eの処理を抜ける(図15のS9:処理終了 次の明細の処理を開始)。そして、発注依頼カーソル106cの残明細はなくなったため(発注依頼カーソル106cにおけるすべての明細の呼出しが完了したため)、発注依頼カーソル106cの処理を抜け(図15のS3:処理終了)、全処理が終了する。
[4-4-3. End of processing]
As described above, due to the processing described in [4-4-1] and [4-4-2], the remaining details of the assessment split cursor 106e are eliminated (because calling of all records in the assessment split cursor 106e has been completed). The process of the split cursor 106e is exited (S9 in FIG. 15: the process is terminated). Since there are no remaining items in the order request cursor 106c (because calling of all the details in the order request cursor 106c has been completed), the processing of the order request cursor 106c is exited (S3 in FIG. 15: processing end), and all processing ends. To do.

[4−5.按分率および残金全額に基づく分割をする場合]
按分率および残金全額に基づく分割をする場合の概要としては、図13に示すように、発注税込金額の合計額194,400円を按分率30%で按分した金額58,320円を請求税込金額とする請求明細と、発注税込金額の合計額194,400円を按分率50%で按分した金額97,200円を請求税込金額とする請求明細と、発注税込金額の合計額194,400円から前記金額58,320円および前記金額97,200円を差し引いた残額38,880円の全額38,880円を請求税込金額とする請求明細と、を含む請求データ106gが作成される。詳細な処理を以下で説明する。
[4-5. When splitting based on prorated rate and full balance]
As shown in Fig. 13, the details of the split based on the prorated rate and the remaining balance are as follows: And the billing details with the total amount of 194,400 yen including the order tax included in the apportioning rate of 50% and the amount including tax of 97,200 yen, the total amount of order tax included 194,400 yen and the amount 58,320 yen and the amount 97,200 yen Billing data 106g including billing details including the total amount of 38,880 yen of the deducted remaining amount of 38,880 yen as the amount including tax is created. Detailed processing will be described below.

まず、発注依頼入力部102aは、発注依頼の入力を受け付ける。次に、発注確定処理部102bは、図46の(画面項目)に示す発注依頼明細のうちチェックされた2つの明細についての発注の確定処理を行う。これにより、当該2つの明細が発注確定明細として発注明細ワーク106bに追加されて、発注明細ワーク106bが更新される(図15のS1)。更新された発注明細ワーク106bを、図46に示す。   First, the order request input unit 102a receives an input of an order request. Next, the order confirmation processing unit 102b performs order confirmation processing for two checked details among the order request details shown in (screen item) of FIG. Thereby, the two details are added to the order detail work 106b as the order confirmation details, and the order detail work 106b is updated (S1 in FIG. 15). FIG. 46 shows the updated order detail work 106b.

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1〜2行目の発注確定明細が集約されて、図46の発注依頼カーソル106cの1行目に格納される(図15のS2)。   Next, from the updated order detail work 106b, the combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification is the same 1-2. The order confirmation details on the line are collected and stored in the first line of the order request cursor 106c in FIG. 46 (S2 in FIG. 15).

次に、図47に示すように、発注依頼カーソルの1行目の集約明細が呼び出される(図15のS3)。   Next, as shown in FIG. 47, the consolidated details in the first line of the order request cursor are called (S3 in FIG. 15).

次に、初期値設定部102c1は、前記呼び出された1行目の集約明細における発注税込金額194,400円を分割元金額に代入し、前記呼び出された1行目の集約明細における発注消費税額14,400円を分割元消費税額に代入し、前記分割元金額194,400円を分割残金額に代入し、前記分割元消費税額14,400円を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。   Next, the initial value setting unit 102c1 substitutes the order tax-included amount of 194,400 yen in the called aggregated line of the called first line into the split source amount, and the order consumption tax amount in the called aggregated line of the first line of 14,400 yen Is substituted into the split source consumption tax amount, the split source amount 194,400 yen is substituted into the split residual amount, the split source consumption tax amount 14,400 yen is substituted into the split residual consumption tax amount, and the invoice split number is set to “1”. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。   Next, the rule acquisition unit 102c2 acquires the assessment division condition from the assessment division master 106d (S5 in FIG. 15).

ここで、本項目[4−5]においては、図45に示すように、査定分割マスタ106dに3つの査定分割条件が設定されているため、規則取得部102c2は、前記査定分割条件を取得することができる。すなわち、前記査定分割条件の取得件数が0ではない(図15のS6:No)。   Here, in this item [4-5], as shown in FIG. 45, since three assessment division conditions are set in the assessment division master 106d, the rule acquisition unit 102c2 obtains the assessment division conditions. be able to. That is, the acquisition number of the assessment division condition is not 0 (S6 in FIG. 15: No).

この場合、図48に示すように、図45の査定分割マスタ106dにおけるレコードが、査定分割カーソル106eに格納される(図15のS8)。   In this case, as shown in FIG. 48, the record in the assessment division master 106d in FIG. 45 is stored in the assessment division cursor 106e (S8 in FIG. 15).

[4−5−1.査定分割カーソル106eの1行目のレコードについての処理]
次に、図49に示すように、査定分割カーソル106eの1行目のレコードから呼び出される(図15のS9)。そして、呼び出された当該1行目のレコードについて、以下で説明する処理が行われる。
[4-5-1. Processing for the first record of the assessment split cursor 106e]
Next, as shown in FIG. 49, it is called from the record in the first line of the assessment division cursor 106e (S9 in FIG. 15). And the process demonstrated below is performed about the called record of the said 1st line.

本例においては、査定分割カーソル106eのレコードの取得件数が1より大きい(図15のS10:取得件数>1)。また、本例においては、前記1行目のレコードにおける前記残金区分は、「0:全体」である(図15のS13:YES)。そして、本例においては、前記1行目のレコードにおける前記金額条件区分は、「0:未満」ではなく(図17のS14:No)、「1:以下」でもなく(図17のS17:No)、「2:以上」である(図17のS20:YES)。   In this example, the acquisition number of records of the assessment division cursor 106e is larger than 1 (S10 in FIG. 15: acquisition number> 1). In this example, the balance classification in the record in the first row is “0: entire” (S13: YES in FIG. 15). In this example, the amount condition classification in the record in the first row is not “less than 0:” (S14: No in FIG. 17), but not “1: or less” (S17: No in FIG. 17). ), “2: or more” (S20: YES in FIG. 17).

この場合、「S4で説明した前記分割元金額≧査定分割カーソル106eの1行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図17のS21)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件に含まれる残金区分0の金額区分に従って、S4で説明した前記分割元金額194,400円を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割元金額194,400円が、規則取得部102c2で取得した前記査定分割条件に含まれる前記金額条件および前記金額条件区分の組み合わせ「100,000円以上」を満たしているかを判断する。   In this case, whether or not the condition “the amount of money in the first line record of the assessment division cursor 106e described in S4” is checked is as follows (S21 in FIG. 17). ). First, the value acquisition unit 102c3 acquires the split source amount 194,400 yen described in S4 according to the amount category of the balance category 0 included in the assessment split condition acquired by the rule acquisition unit 102c2. Then, the determination unit 102c4 determines that the split source amount 194,400 yen acquired by the value acquisition unit 102c3 is equal to or greater than “100,000 yen combination of the amount condition and the amount condition category included in the assessment split condition acquired by the rule acquisition unit 102c2. ”Is determined.

前記分割元金額194,400円は100,000円以上であるため(図17のS21:Yes)、図17のS22に進む。本例においては、前記1行目のレコードにおける前記発生金額区分2に従って、前記分割パターンフラグは3となる(図17のS22)。そして、図21(A)に進む。   Since the split source amount of 194,400 yen is 100,000 yen or more (S21: Yes in FIG. 17), the process proceeds to S22 in FIG. In this example, the division pattern flag is 3 according to the generated amount category 2 in the record in the first row (S22 in FIG. 17). Then, the process proceeds to FIG.

本例においては、前段落で説明したとおり、前記分割パターンフラグは1ではなく(図21のS42:No)、2でもなく(図21のS44:No)、3である(図21のS49:Yes)。   In this example, as described in the previous paragraph, the division pattern flag is not 1 (S42: No in FIG. 21), but 2 (S44: No in FIG. 21), and 3 (S49 in FIG. 21: Yes).

次に、本例においては、前記1行目のレコードにおける前記残金区分は、「0:全体」であるため(図21のS50:Yes)、算出部102c5は、S4で説明した前記分割元金額194,400円×(前記1行目のレコードにおける按分率30%/100)=58,320円を、判断金額に代入する(図21のS51)。   Next, in this example, since the balance classification in the record in the first row is “0: Overall” (S50: Yes in FIG. 21), the calculation unit 102c5 determines the split source amount described in S4. Substituting 194,400 yen × (proportional rate 30% / 100 in the record in the first row) = 58,320 yen into the judgment amount (S51 in FIG. 21).

次に、本例においては、前記1行目のレコードにおける金額端数単位は0であるため、前記端数は1である(図21のS53:No)。この場合、算出部102c5は、FLOOR((前記判断金額58,320円/前記端数1)×10)/10=58,320円を、判断倍数に代入し、更に、当該判断倍数58,320円を前記1行目のレコードにおける前記端数区分により切捨することにより、判断倍数58,320円を算出する(図21のS55)。   Next, in this example, since the monetary fraction unit in the record in the first row is 0, the fraction is 1 (S53: No in FIG. 21). In this case, the calculation unit 102c5 substitutes FLOOR ((the judgment amount 58,320 yen / the fraction 1) × 10) / 10 = 58,320 yen into the judgment multiple, and further, the judgment multiple 58,320 yen in the first row. By rounding off the fraction classification in the record, a determination multiple of 58,320 yen is calculated (S55 in FIG. 21).

次に、算出部102c5は、前記端数1×前記判断倍数58,320円=58,320円を、分割金額に代入する(図21のS56)。   Next, the calculation unit 102c5 substitutes the fraction 1 × the determination multiple 58,320 yen = 58,320 yen for the split amount (S56 in FIG. 21).

次に、本例においては、「S4で説明した前記分割元金額194,400円<S56で説明した前記分割金額58,320円」が満たされずおらず(図21のS57:No)、不正な設定はされていない。また、本例においては、「S4で説明した前記分割残金額194,400円<S56で説明した前記分割金額58,320円」が満たされておらず(図21のS59:No)、不正な設定はされていない。   Next, in this example, “the split original amount 194,400 yen explained in S4 <the split amount 58,320 yen explained in S56” is not satisfied (S57: No in FIG. 21), and an incorrect setting is made. Absent. Further, in this example, “the split remaining amount 194,400 yen explained in S4 <the split amount 58,320 yen explained in S56” is not satisfied (S59: No in FIG. 21), and an incorrect setting is made. Absent.

次に、更新部102c6は、S4で説明した前記分割残金額194,400円からS56で説明した前記分割金額58,320円を差し引いた計算結果である136,080円を前記分割残金額に代入することにより前記分割残金額を更新する(図21のS61)。また、算出部102c5は、S4で説明した前記分割元消費税額14,400円×(S56で説明した前記分割金額58,320円/S4で説明した前記分割元金額194,400円)の計算結果である4,320円を分割消費税額に代入する(図21のS61)。そして、更新部102c6は、S4で説明した前記分割残消費税額14,400円から本段落で説明した前記分割消費税額4,320円を差し引いた値である10,080円を前記分割残消費税額に代入することにより前記分割残消費税額を更新する(図21のS61)。そして、図16(A)に進む。   Next, the update unit 102c6 substitutes 136,080 yen, which is a calculation result obtained by subtracting the split amount 58,320 yen described in S56 from the split residual amount 194,400 yen described in S4, into the split remaining amount. The amount is updated (S61 in FIG. 21). In addition, the calculation unit 102c5 divides 4,320 yen, which is the calculation result of the split source consumption tax amount of 14,400 yen described in S4 (the split amount of 58,320 yen described in S56 / the split source amount of 194,400 yen described in S4). Substituting into the consumption tax amount (S61 in FIG. 21). Then, the updating unit 102c6 substitutes 10,080 yen, which is a value obtained by subtracting the divided consumption tax amount of 4,320 yen described in this paragraph from the divided residual consumption tax amount of 14,400 yen described in S4, into the divided residual consumption tax amount. The divided residual consumption tax amount is updated (S61 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図49に示すように、S56で算出した前記分割金額58,320円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図49に示す査定分割ワーク106fを元にして、図13に示す請求データ106gにおける1行目の明細(請求番号000000000001の明細)が作成される。続けて、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 49, the assessment divided work 106f including the billing details with the amount of 58,320 yen calculated in S56 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 49, the details of the first line (details of the claim number 000000000001) in the claim data 106g shown in FIG. 13 are created. Subsequently, returning to FIG.

[4−5−2.査定分割カーソル106eの2行目のレコードについての処理]
図15(A)に戻ると、図50に示すように、査定分割カーソル106eの2行目のレコードが呼び出される(図15のS9)。ここで、査定分割カーソル106eの2行目のレコードは、按分率が50%である以外は、査定分割カーソル106eの1行目のレコードと同じ情報を含む。このため、[4−5−1]で説明した処理と同様の処理が行われるため、前記2行目のレコードに関して算出部102c5および更新部102c6が行う計算についてのみ以下で説明する。
[4-5-2. Processing for the second row record of the assessment split cursor 106e]
Returning to FIG. 15A, as shown in FIG. 50, the record in the second row of the assessment division cursor 106e is called (S9 in FIG. 15). Here, the record on the second line of the assessment division cursor 106e includes the same information as the record on the first line of the assessment division cursor 106e, except that the distribution ratio is 50%. For this reason, processing similar to the processing described in [4-5-1] is performed, so only the calculation performed by the calculation unit 102c5 and the update unit 102c6 regarding the record in the second row will be described below.

算出部102c5は、S4で説明した前記分割元金額194,400円×(前記2行目のレコードにおける按分率50%/100)=97,200円を、判断金額に代入する(図21のS51)。続いて、算出部102c5は、FLOOR((前記判断金額97,200円/前記端数1)×10)/10=97,200円を、判断倍数に代入し、更に、当該判断倍数97,200円を前記2行目のレコードにおける前記端数区分により切捨することにより、判断倍数97,200円を算出する(図21のS55)。続けて、算出部102c5は、前記端数1×前記判断倍数97,200円=97,200円を、分割金額に代入する(図21のS56)。   The calculation unit 102c5 substitutes the split original amount 194,400 yen described above in S4 × (apportioning ratio 50% / 100 in the record in the second row) = 97,200 yen into the determination amount (S51 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes FLOOR ((the judgment amount 97,200 yen / the fraction 1) × 10) / 10 = 97,200 yen into the judgment multiple, and further, the judgment multiple 97,200 yen in the second row. The decision multiple 97,200 yen is calculated by rounding off the fraction classification in the record (S55 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes the fraction 1 × the determination multiple of 97,200 yen = 97,200 yen for the split amount (S56 in FIG. 21).

次に、更新部102c6は、[4−5−1]のS61で更新した前記分割残金額136,080円からS56で説明した前記分割金額97,200円を差し引いた計算結果である38,800円を前記分割残金額に代入することにより前記分割残金額を更新する(図21のS61)。また、算出部102c5は、S4で説明した前記分割元消費税額14,400円×(S56で説明した前記分割金額97,200円/S4で説明した前記分割元金額194,400円)の計算結果である7,200円を前記分割消費税額に代入する(図21のS61)。そして、更新部102c6は、[4−5−1]のS61で更新した分割残消費税額10,080円から本段落で説明した前記分割消費税額7,200円を差し引いた値である2,880円を前記分割残消費税額に代入することにより前記分割残消費税額を更新する(図21のS61)。そして、図16(A)に進む。   Next, the updating unit 102c6 calculates 38,800 yen, which is the calculation result obtained by subtracting the split amount 97,200 yen described in S56 from the split remaining amount 136,080 yen updated in S61 of [4-5-1]. By substituting into the above, the split remaining amount is updated (S61 in FIG. 21). In addition, the calculation unit 102c5 calculates the 7,200 yen that is the calculation result of the split source consumption tax 14,400 yen described in S4 × (the split price 97,200 yen described in S56 / the split base price 194,400 yen described in S4). Substituting into the divided consumption tax amount (S61 in FIG. 21). Then, the update unit 102c6 uses the divided remaining consumption amount of 2,880 yen, which is a value obtained by subtracting the divided consumption tax amount of 7,200 yen described in this paragraph from the divided remaining consumption tax amount of 10,080 yen updated in S61 of [4-5-1]. The divided remaining consumption tax amount is updated by substituting it into the tax amount (S61 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図50に示すように、S56で算出した前記分割金額97,200円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図50に示す査定分割ワーク106fを元にして、図13に示す請求データ106gにおける2行目の明細(請求番号000000000002の明細)が作成される。続けて、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 50, the assessment divided work 106f including the billing details with the split amount of 97,200 yen calculated in S56 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 50, the details of the second line (details of the claim number 000000000002) in the claim data 106g shown in FIG. 13 are created. Subsequently, returning to FIG.

[4−5−3.査定分割カーソル106eの3行目のレコードについての処理]
図15(A)に戻ると、図51に示すように、査定分割カーソル106eの3行目のレコードが呼び出される(図15のS9)。そして、呼び出された当該3行目のレコードについて、以下で説明する処理が行われる。
[4-5-3. Processing for the third row record of the assessment split cursor 106e]
Returning to FIG. 15A, as shown in FIG. 51, the record in the third row of the assessment division cursor 106e is called (S9 in FIG. 15). And the process demonstrated below is performed about the called record of the said 3rd line.

本例においては、査定分割カーソル106eのレコードの取得件数が1より大きい(図15のS10:取得件数>1)。また、本例においては、前記3行目のレコードにおける前記残金区分は、「1:残金」である(図15のS13:No)。そして、本例においては、前記3行目のレコードにおける前記金額条件区分は、「0:未満」ではなく(図19のS28:No)、「1:以下」でもなく(図19のS31:No)、「2:以上」でもなく(図19のS34:No)、「3:超」でもなく(図20のS37:No)、「9:無し」である(図20のS40:Yes)。   In this example, the acquisition number of records of the assessment division cursor 106e is larger than 1 (S10 in FIG. 15: acquisition number> 1). In this example, the balance classification in the record on the third line is “1: balance” (S13 in FIG. 15: No). In this example, the amount condition classification in the record in the third row is not “less than 0:” (S28: No in FIG. 19), but not “1: or less” (S31: No in FIG. 19). ), Not “2: or more” (S34: No in FIG. 19), not “3: More” (S37: No in FIG. 20), and “9: None” (S40: Yes in FIG. 20).

ここで、値取得部102c3は、図51に示す前記査定分割条件に含まれる残金区分1の金額区分に従って、[4−5−2]で更新した前記分割残金額38,800円を取得する。   Here, the value acquisition unit 102c3 acquires the split balance 38,800 yen updated in [4-5-2] according to the balance category 1 included in the assessment split condition shown in FIG.

前記3行目のレコードにおける前記金額条件区分は「9:無し」であるため、当該取得した分割残金額38,800円が満たすべき条件はない。このため、図20のS41に進み、前記3行目のレコードにおける前記発生金額区分0に従って、前記分割パターンフラグは1となる。そして、図19(D)に進み、更に、図21(A)に進む。   Since the amount condition classification in the record in the third row is “9: None”, there is no condition to be satisfied by the acquired divided remaining amount of 38,800 yen. Therefore, the process proceeds to S41 in FIG. 20, and the division pattern flag is set to 1 according to the generated amount category 0 in the record in the third row. Then, the process proceeds to FIG. 19D, and further proceeds to FIG.

本例においては、前段落で説明したとおり、前記分割パターンフラグは1である(図21のS42:Yes)。   In this example, as described in the previous paragraph, the division pattern flag is 1 (S42 in FIG. 21: Yes).

次に、算出部102c5は、図51の査定分割カーソル106eの3行目のレコードに含まれる発生金額区分「0:金額全額」に従って、当該発生金額区分と対応する分割金額を算出する。すなわち、発生金額区分が「0:金額全額」である場合には、値取得部102c3で取得した値が分割金額として出力されるため、算出部102c5は、値取得部102c3で取得した前記分割残金額38,800円を前記分割金額に代入する(図21のS43)。次に、更新部102c6は、[4−5−2]で更新した前記分割残金額38,800円から算出部102c5で算出した前記分割金額38,800円を差し引いた値である0円を前記分割残金額に代入することにより、前記分割残金額を更新する(図21のS43)。そして、図16(A)に進む。   Next, the calculation unit 102c5 calculates the split amount corresponding to the generated amount category according to the generated amount category “0: total amount of money” included in the record of the third line of the assessment split cursor 106e in FIG. That is, when the generated amount category is “0: full amount of money”, the value acquired by the value acquisition unit 102c3 is output as a divided amount, and thus the calculation unit 102c5 is configured to output the remaining division amount acquired by the value acquisition unit 102c3. An amount of 38,800 yen is substituted into the divided amount (S43 in FIG. 21). Next, the updating unit 102c6 sets 0 yen, which is a value obtained by subtracting the divided amount 38,800 yen calculated by the calculating unit 102c5, from the divided remaining amount 38,800 yen updated in [4-5-2] as the divided remaining amount. By substituting, the split remaining amount is updated (S43 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図51に示すように、S43で算出した前記分割金額38,800円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図51に示す査定分割ワーク106fを元にして、図13に示す請求データ106gにおける3行目の明細(請求番号000000000003の明細)が作成される。続けて、図15(A)に進む。   When proceeding to FIG. 16 (A), as shown in FIG. 51, the assessment divided work 106f including the billing details with the amount of 38,800 yen calculated in S43 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 51, the details of the third line (details of the claim number 000000000003) in the claim data 106g shown in FIG. 13 are created. Subsequently, the process proceeds to FIG.

[4−5−4.処理の終了]
以上、[4−5−1]〜[4−5−3]で説明した処理により、査定分割カーソル106eの残明細がなくなったため(査定分割カーソル106eにおけるすべてのレコードの呼出が完了したため)、査定分割カーソル106eの処理を抜ける(図15のS9:処理終了 次の明細の処理を開始)。そして、発注依頼カーソル106cの残明細はなくなったため(発注依頼カーソル106cにおけるすべての明細の呼出しが完了したため)、発注依頼カーソル106cの処理を抜け(図15のS3:処理終了)、全処理が終了する。
[4-5-4. End of processing]
As described above, due to the processing described in [4-5-1] to [4-5-3], the remaining details of the assessment split cursor 106e are eliminated (because calling of all records in the assessment split cursor 106e has been completed). The process of the split cursor 106e is exited (S9 in FIG. 15: the process is terminated). Since there are no remaining items in the order request cursor 106c (because calling of all the details in the order request cursor 106c has been completed), the processing of the order request cursor 106c is exited (S3 in FIG. 15: processing end), and all processing ends. To do.

[4−6.按分率および残金全額に基づく多少複雑な分割をする場合]
按分率および残金全額に基づく多少複雑な分割をする場合の概要としては、図14に示すように、発注税込金額の合計額194,400円を按分率50%で按分した金額97,200円を請求税込金額とする請求明細と、発注税込金額の合計額194,400円から前記按分した金額97,200円を差し引いた残額97,200円を按分率30%で按分した金額29,160円を請求税込金額とする請求明細と、前記残額97,200円から前記按分した金額29,160円を差し引いた残額68,040円を按分率50%で按分した金額34,020円を請求税込金額とする請求明細と、前記残額68,040円から前記按分した金額34,020円を差し引いた残額34,020円の全額34,020円を請求税込金額とする請求明細と、を含む請求データ106gが作成される。詳細な処理を以下で説明する。
[4-6. When making a somewhat complicated split based on the proration rate and the remaining balance]
As shown in Figure 14, the sum of the order tax-included total amount of 194,400 yen is apportioned at 50% apportionment rate of 97,200 yen as the tax-included tax amount, as shown in Fig. Billing details to be charged, a billing tax amount of 29,160 yen, which is obtained by apportioning the remaining amount of 97,200 yen obtained by subtracting the apportioned amount of 97,200 yen from the total amount of order tax-included amount of 194,400 yen, and the remaining amount of 97,200 A billing statement in which an amount of 34,020 yen, which is apportioned at 50% of the apportionment rate, is calculated by subtracting the apportioned amount of 29,160 yen from the yen, and a balance amount that subtracts the apportioned amount of 34,020 yen from the remaining amount of 68,040 yen Billing data 106g including billing details with the total amount of 34,020 yen of 34,020 yen as a billing tax-included amount is created. Detailed processing will be described below.

まず、発注依頼入力部102aは、発注依頼の入力を受け付ける。次に、発注確定処理部102bは、図53の(画面項目)に示す発注依頼明細のうちチェックされた2つの明細についての発注の確定処理を行う。これにより、当該2つの明細が発注確定明細として発注明細ワーク106bに追加されて、発注明細ワーク106bが更新される(図15のS1)。更新された発注明細ワーク106bを、図53に示す。   First, the order request input unit 102a receives an input of an order request. Next, the order confirmation processing unit 102b performs order confirmation processing for two checked details among the order request details shown in (screen item) of FIG. Thereby, the two details are added to the order detail work 106b as the order confirmation details, and the order detail work 106b is updated (S1 in FIG. 15). FIG. 53 shows the updated order detail work 106b.

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1〜2行目の発注確定明細が集約されて、図53の発注依頼カーソル106cの1行目に格納される(図15のS2)。   Next, from the updated order detail work 106b, the combination of the division code, the ordering party code, the order date, the project code, the project branch number, the construction number, and the construction classification is the same 1-2. The order confirmation details on the line are collected and stored in the first line of the order request cursor 106c in FIG. 53 (S2 in FIG. 15).

次に、図54に示すように、発注依頼カーソルの1行目の集約明細が呼び出される(図15のS3)。   Next, as shown in FIG. 54, the consolidated details in the first line of the order request cursor are called (S3 in FIG. 15).

次に、初期値設定部102c1は、前記呼び出された1行目の集約明細における発注税込金額194,400円を分割元金額に代入し、前記呼び出された1行目の集約明細における発注消費税額14,400円を分割元消費税額に代入し、前記分割元金額194,400円を分割残金額に代入し、前記分割元消費税額14,400円を分割残消費税額に代入し、請求書分割番号に「1」をセットする(図15のS4)。   Next, the initial value setting unit 102c1 substitutes the order tax-included amount of 194,400 yen in the called aggregated line of the called first line into the split source amount, and the order consumption tax amount in the called aggregated line of the first line of 14,400 yen Is substituted into the split source consumption tax amount, the split source amount 194,400 yen is substituted into the split residual amount, the split source consumption tax amount 14,400 yen is substituted into the split residual consumption tax amount, and the invoice split number is set to “1”. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。   Next, the rule acquisition unit 102c2 acquires the assessment division condition from the assessment division master 106d (S5 in FIG. 15).

ここで、本項目[4−6]においては、図52に示すように、査定分割マスタ106dに5つの査定分割条件が設定されているため、規則取得部102c2は、前記査定分割条件を取得することができる。すなわち、前記査定分割条件の取得件数が0ではない(図15のS6:No)。   Here, in this item [4-6], as shown in FIG. 52, since five assessment division conditions are set in the assessment division master 106d, the rule acquisition unit 102c2 obtains the assessment division conditions. be able to. That is, the acquisition number of the assessment division condition is not 0 (S6 in FIG. 15: No).

この場合、図55に示すように、図52の査定分割マスタ106dにおけるレコードが、査定分割カーソル106eに格納される(図15のS8)。   In this case, as shown in FIG. 55, the record in the assessment division master 106d in FIG. 52 is stored in the assessment division cursor 106e (S8 in FIG. 15).

[4−6−1.査定分割カーソル106eの1行目のレコードについての処理]
次に、図56に示すように、査定分割カーソル106eの1行目のレコードから呼び出される(図15のS9)。ここで、本項目[4−6]の査定分割カーソル106eの1行目のレコードは、按分率が50%である以外は、[4−5]の査定分割カーソル106eの1行目のレコードと同じ情報を含む。このため、[4−5−1]で説明した処理と同様の処理が行われるため、図56の査定分割カーソル106eの1行目のレコードに関して算出部102c5および更新部102c6が行う計算についてのみ以下で説明する。
[4-6-1. Processing for the first record of the assessment split cursor 106e]
Next, as shown in FIG. 56, it is called from the record on the first line of the assessment division cursor 106e (S9 in FIG. 15). Here, the record on the first line of the assessment split cursor 106e in this item [4-6] is the same as the record on the first line of the assessment split cursor 106e in [4-5], except that the distribution ratio is 50%. Contains the same information. For this reason, processing similar to the processing described in [4-5-1] is performed, and therefore only the calculation performed by the calculation unit 102c5 and the update unit 102c6 regarding the first row record of the assessment division cursor 106e in FIG. I will explain it.

算出部102c5は、S4で説明した前記分割元金額194,400円×(前記1行目のレコードにおける按分率50%/100)=97,200円を、判断金額に代入する(図21のS51)。続いて、算出部102c5は、FLOOR((前記判断金額97,200円/前記端数1)×10)/10=97,200円を、判断倍数に代入し、更に、当該判断倍数97,200円を前記1行目のレコードにおける前記端数区分により切捨することにより、判断倍数97,200円を算出する(図21のS55)。続けて、算出部102c5は、前記端数1×前記判断倍数97,200円=97,200円を、分割金額に代入する(図21のS56)。   The calculation unit 102c5 substitutes the split original amount 194,400 yen described above in S4 × (apportioning ratio 50% / 100 in the record in the first row) = 97,200 yen into the determination amount (S51 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes FLOOR ((the judgment amount 97,200 yen / the fraction 1) × 10) / 10 = 97,200 yen into the judgment multiple, and further, the judgment multiple 97,200 yen is assigned to the first row. The decision multiple 97,200 yen is calculated by rounding off the fraction classification in the record (S55 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes the fraction 1 × the determination multiple of 97,200 yen = 97,200 yen for the split amount (S56 in FIG. 21).

次に、更新部102c6は、S4で説明した前記分割残金額194,400円からS56で説明した前記分割金額97,200円を差し引いた計算結果である97,200円を前記分割残金額に代入することにより前記分割残金額を更新する(図21のS61)。また、算出部102c5は、S4で説明した前記分割元消費税額14,400円×(S56で説明した前記分割金額97,200円/S4で説明した前記分割元金額194,400円)の計算結果である7,200円を分割消費税額に代入する(図21のS61)。そして、更新部102c6は、S4で説明した前記分割残消費税額14,400円から本段落で説明した前記分割消費税額7,200円を差し引いた値である7,200円を前記分割残消費税額に代入することにより前記分割残消費税額を更新する(図21のS61)。そして、図16(A)に進む。   Next, the update unit 102c6 substitutes 97,200 yen, which is a calculation result obtained by subtracting the split amount 97,200 yen described in S56 from the remaining balance amount 194,400 yen described in S4, into the remaining balance amount. The amount is updated (S61 in FIG. 21). Further, the calculation unit 102c5 divides 7,200 yen, which is a calculation result of the split source consumption tax amount described in S4 14,400 yen × (the split amount 97,200 yen described in S56 / the split source amount 194,400 yen described in S4). Substituting into the consumption tax amount (S61 in FIG. 21). Then, the updating unit 102c6 substitutes 7,200 yen, which is a value obtained by subtracting the split consumption tax amount of 7,200 yen described in this paragraph from the split residual consumption tax amount of 14,400 yen described in S4, into the split residual consumption tax amount. The divided residual consumption tax amount is updated (S61 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図56に示すように、S56で算出した前記分割金額97,200円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図56に示す査定分割ワーク106fを元にして、図14に示す請求データ106gにおける1行目の明細(請求番号000000000001の明細)が作成される。続けて、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 56, the assessment divided work 106f including the billing details with the split amount of 97,200 yen calculated in S56 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 56, the details of the first line (details of the claim number 000000000001) in the claim data 106g shown in FIG. 14 are created. Subsequently, returning to FIG.

[4−6−2.査定分割カーソル106eの2行目のレコードについての処理]
図15(A)に戻ると、図57に示すように、査定分割カーソル106eの2行目のレコードが呼び出される(図15のS9)。そして、呼び出された当該2行目のレコードについて、以下で説明する処理が行われる。
[4-6-2. Processing for the second row record of the assessment split cursor 106e]
Returning to FIG. 15A, as shown in FIG. 57, the record in the second row of the assessment division cursor 106e is called (S9 in FIG. 15). And the process demonstrated below is performed about the called record of the said 2nd line.

本例においては、査定分割カーソル106eのレコードの取得件数が1より大きい(図15のS10:取得件数>1)。また、本例においては、前記2行目のレコードにおける前記残金区分は、「1:残金」である(図15のS13:No)。そして、本例においては、前記2行目のレコードにおける前記金額条件区分は、「0:未満」である(図19のS28:Yes)。   In this example, the acquisition number of records of the assessment division cursor 106e is larger than 1 (S10 in FIG. 15: acquisition number> 1). In this example, the balance classification in the record on the second line is “1: balance” (S13: No in FIG. 15). In this example, the amount condition classification in the record in the second row is “less than 0:” (S28: Yes in FIG. 19).

この場合、「[4−6−1]のS61で更新した前記分割残金額<査定分割カーソル106eの2行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図19のS29)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件に含まれる残金区分1の金額区分に従って、[4−6−1]のS61で更新した前記分割残金額97,200円を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割残金額97,200円が、規則取得部102c2で取得した前記査定分割条件に含まれる前記金額条件および前記金額条件区分の組み合わせ「50,000円未満」を満たしているかを判断する。   In this case, whether or not the condition “the amount of division remaining updated in S61 of [4-6-1] <the amount of money condition in the second row record of the assessment division cursor 106e” is satisfied is as follows. It is checked (S29 in FIG. 19). First, the value acquisition unit 102c3 acquires the remaining balance 97,200 yen updated in S61 of [4-6-1] according to the amount classification of the balance category 1 included in the assessment split condition acquired by the rule acquisition unit 102c2. To do. Then, the determination unit 102c4 determines that the remaining balance of 97,200 yen acquired by the value acquisition unit 102c3 is a combination of the amount condition and the amount condition category included in the assessment division condition acquired by the rule acquisition unit 102c2 “less than 50,000 yen ”Is determined.

前記分割残金額97,200円は50,000未満ではないため(図19のS29:No)、図16(A)に進む。本例においては、分割金額の算出は行われていないため、図16のS12において、査定分割ワーク106fの更新は行われない。続けて、図15(A)に戻る。   Since the remaining balance of 97,200 yen is not less than 50,000 (S29 in FIG. 19: No), the process proceeds to FIG. In this example, since the split amount is not calculated, the assessment split work 106f is not updated in S12 of FIG. Subsequently, returning to FIG.

[4−6−3.査定分割カーソル106eの3行目のレコードについての処理]
図15(A)に戻ると、図58に示すように、査定分割カーソル106eの3行目のレコードが呼び出される(図15のS9)。そして、呼び出された当該3行目のレコードについて、以下で説明する処理が行われる。
[4-6-3. Processing for the third row record of the assessment split cursor 106e]
Returning to FIG. 15A, as shown in FIG. 58, the record in the third row of the assessment division cursor 106e is called (S9 in FIG. 15). And the process demonstrated below is performed about the called record of the said 3rd line.

本例においては、査定分割カーソル106eのレコードの取得件数が1より大きい(図15のS10:取得件数>1)。また、本例においては、前記3行目のレコードにおける前記残金区分は、「1:残金」である(図15のS13:No)。そして、本例においては、前記3行目のレコードにおける前記金額条件区分は、「0:未満」ではなく(図19のS28:No)、「1:以下」でもなく(図19のS31:No)、「2:以上」である(図19のS34:YES)。   In this example, the acquisition number of records of the assessment division cursor 106e is larger than 1 (S10 in FIG. 15: acquisition number> 1). In this example, the balance classification in the record on the third line is “1: balance” (S13 in FIG. 15: No). In this example, the amount condition classification in the record in the third row is not “less than 0:” (S28: No in FIG. 19), but not “1: or less” (S31: No in FIG. 19). ), “2: or more” (S34: YES in FIG. 19).

この場合、「[4−6−1]のS61で更新した前記分割残金額≧査定分割カーソル106eの3行目のレコードにおける金額条件」という条件が満たされるか否かが、以下のようにしてチェックされる(図19のS35)。まず、値取得部102c3は、規則取得部102c2で取得した前記査定分割条件に含まれる残金区分1の金額区分に従って、[4−6−1]のS61で更新した前記分割残金額97,200円を取得する。そして、判断部102c4は、値取得部102c3で取得した前記分割残金額97,200円が、規則取得部102c2で取得した前記査定分割条件に含まれる前記金額条件および前記金額条件区分の組み合わせ「50,000円以上」を満たしているかを判断する。   In this case, whether or not the condition “the amount of money in the third row record of the divisional split amount 106e updated in S61 of [4-6-1]” is satisfied is as follows. It is checked (S35 in FIG. 19). First, the value acquisition unit 102c3 acquires the remaining balance 97,200 yen updated in S61 of [4-6-1] according to the amount classification of the balance category 1 included in the assessment split condition acquired by the rule acquisition unit 102c2. To do. Then, the determination unit 102c4 determines that the split remaining amount 97,200 yen acquired by the value acquisition unit 102c3 is a combination of the amount condition and the amount condition category included in the assessment division condition acquired by the rule acquisition unit 102c2 “50,000 yen or more ”Is determined.

前記分割残金額97,200円は50,000円以上であるため(図19のS35:Yes)、図19のS36に進む。本例においては、前記3行目のレコードにおける前記金額発生区分2に従って、前記分割パターンフラグは3となる。そして、図21(A)に進む。   Since the remaining balance of 97,200 yen is 50,000 yen or more (S35 in FIG. 19: Yes), the process proceeds to S36 in FIG. In this example, the division pattern flag is 3 in accordance with the amount generation category 2 in the record in the third row. Then, the process proceeds to FIG.

本例においては、前段落で説明したとおり、前記分割パターンフラグは1ではなく(図21のS42:No)、2でもなく(図21のS44:No)、3である(図21のS49:Yes)。   In this example, as described in the previous paragraph, the division pattern flag is not 1 (S42: No in FIG. 21), but 2 (S44: No in FIG. 21), and 3 (S49 in FIG. 21: Yes).

次に、本例においては、前記3行目のレコードにおける前記残金区分は、「1:残金」であるため(図21のS50:No)、算出部102c5は、[4−6−1]のS61で更新した前記分割残金額97,200円×(前記3行目のレコードにおける按分率30%/100)=29,160円を、判断金額に代入する(図21のS52)。   Next, in this example, since the balance classification in the record on the third line is “1: balance” (S50: No in FIG. 21), the calculation unit 102c5 selects [4-6-1]. The divided remaining amount 97,200 yen updated in S61 × (apportion rate 30% / 100 in the record in the third row) = 29,160 yen is substituted into the judgment amount (S52 in FIG. 21).

次に、本例においては、前記3行目のレコードにおける金額端数単位は0であるため、前記端数は1である(図21のS53:No)。この場合、算出部102c5は、FLOOR((前記判断金額29,160円/前記端数1)×10)/10=29,160円を、判断倍数に代入し、更に、当該判断倍数29,160円を前記3行目のレコードにおける前記端数区分により切捨することにより、判断倍数29,160円を算出する(図21のS55)。   Next, in this example, since the monetary fraction unit in the record in the third row is 0, the fraction is 1 (S53: No in FIG. 21). In this case, the calculation unit 102c5 substitutes FLOOR ((the judgment amount 29,160 yen / the fraction 1) × 10) / 10 = 29,160 yen into the judgment multiple, and further, the judgment multiple 29,160 yen in the third row. A decision multiple of 29,160 yen is calculated by rounding off the fraction classification in the record (S55 in FIG. 21).

次に、算出部102c5は、前記端数1×前記判断倍数29,160円=29,160円を、分割金額に代入する(図21のS56)。   Next, the calculation unit 102c5 substitutes the fraction 1 × the determination multiple of 29,160 yen = 29,160 yen for the split amount (S56 in FIG. 21).

次に、本例においては、「S4で説明した前記分割元金額194,400円<S56で説明した前記分割金額29,160円」という条件が満たされておらず(図21のS57:No)、不正な設定がされていない。また、本例においては、「[4−6−1]のS61で更新した前記分割残金額97,200円<S56で説明した前記分割金額29,160円」という条件が満たされず(図21のS59:No)、不正な設定がされていない。   Next, in this example, the condition “the split source amount explained in S4 194,400 yen <the split amount 29,160 yen explained in S56” is not satisfied (S57: No in FIG. 21), and an incorrect setting is made. Has not been. Further, in this example, the condition that “the split remaining amount 97,200 yen updated in S61 of [4-6-1] <the split amount 29,160 yen described in S56” is not satisfied (S59: No in FIG. 21). Incorrect settings have not been made.

次に、更新部102c6は、[4−6−1]のS61で更新した前記分割残金額97,200円からS56で説明した前記分割金額29,160円を差し引いた計算結果である68,040円を前記分割残金額に代入することにより前記分割残金額を更新する(図21のS61)。また、算出部102c5は、S4で説明した前記分割元消費税額14,400円×(S56で説明した前記分割金額29,160円/S4で説明した前記分割元金額194,400円)の計算結果である2,160円を分割消費税額に代入する(図21のS61)。そして、更新部102c6は、[4−6−1]のS61で更新した分割残消費税額7,200円から本段落で説明した前記分割消費税額2,160円を差し引いた値である5,040円を前記分割残消費税額に代入することにより前記分割残消費税額を更新する(図21のS61)。そして、図16(A)に進む。   Next, the update unit 102c6 calculates 68,040 yen, which is the calculation result obtained by subtracting the split amount 29,160 yen described in S56 from the split residual amount 97,200 yen updated in S61 of [4-6-1]. By substituting into the above, the split remaining amount is updated (S61 in FIG. 21). In addition, the calculation unit 102c5 divides 2,160 yen, which is the calculation result of the split source consumption tax amount of 14,400 yen described in S4 (the split amount of 29,160 yen described in S56 / the split source amount of 194,400 yen described in S4). Substituting into the consumption tax amount (S61 in FIG. 21). Then, the updating unit 102c6 uses the divided remaining consumption amount of 5,040 yen, which is a value obtained by subtracting the divided consumption tax amount of 2,160 yen described in this paragraph from the divided remaining consumption tax amount of 7,200 yen updated in S61 of [4-6-1]. The divided remaining consumption tax amount is updated by substituting it into the tax amount (S61 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図58に示すように、S56で算出した前記分割金額29,160円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図58に示す査定分割ワーク106fを元にして、図14に示す請求データ106gにおける2行目の明細(請求番号000000000002の明細)が作成される。続けて、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 58, the assessment divided work 106f including the billing details including the split amount 29,160 yen calculated in S56 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 58, the details of the second line (details of the claim number 000000000002) in the claim data 106g shown in FIG. 14 are created. Subsequently, returning to FIG.

[4−6−4.査定分割カーソル106eの4行目のレコードについての処理]
図15(A)に戻ると、図59に示すように、査定分割カーソル106eの4行目のレコードが呼び出される(図15のS9)。ここで、査定分割カーソル106eの4行目のレコードは、按分率が50%である以外は、査定分割カーソル106eの3行目のレコードと同じ情報を含む。このため、[4−6−3]で説明した処理と同様の処理が行われるため、前記4行目のレコードに関して算出部102c5および更新部102c6が行う計算についてのみ以下で説明する。
[4-6-4. Processing for the fourth line record of the assessment split cursor 106e]
Returning to FIG. 15A, as shown in FIG. 59, the record in the fourth row of the assessment division cursor 106e is called (S9 in FIG. 15). Here, the record on the fourth line of the assessment division cursor 106e includes the same information as the record on the third line of the assessment division cursor 106e, except that the distribution ratio is 50%. For this reason, processing similar to that described in [4-6-3] is performed, and therefore only the calculation performed by the calculation unit 102c5 and the update unit 102c6 regarding the record in the fourth row will be described below.

算出部102c5は、[4−6−3]のS61で更新した前記分割残金額68,040円×(前記4行目のレコードにおける按分率50%/100)=34,020円を、判断金額に代入する(図21のS51)。続いて、算出部102c5は、FLOOR((前記判断金額34,020円/前記端数1)×10)/10=34,020円を、判断倍数に代入し、更に、当該判断倍数34,020円を前記4行目のレコードにおける前記端数区分により切捨することにより、判断倍数34,020円を算出する(図21のS55)。続けて、算出部102c5は、前記端数1×前記判断倍数34,020円=34,020円を、分割金額に代入する(図21のS56)。   The calculation unit 102c5 substitutes the split remaining amount of 68,040 yen × (distribution rate 50% / 100 in the record on the fourth line) = 34,020 yen updated in S61 of [4-6-3] ( S51 of FIG. 21). Subsequently, the calculation unit 102c5 substitutes FLOOR ((the determined amount of money 34,020 yen / the fraction 1) × 10) / 10 = 34,020 yen into the determined multiple, and further adds the determined multiple 34,020 yen to the fourth row. A decision multiple of 34,020 yen is calculated by rounding off the fraction classification in the record (S55 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes the fraction 1 × the determination multiple of 34,020 yen = 34,020 yen for the split amount (S56 in FIG. 21).

次に、更新部102c6は、[4−6−3]のS61で更新した前記分割残金額68,040円からS56で説明した前記分割金額34,020円を差し引いた計算結果である34,020円を前記分割残金額に代入することにより前記分割残金額を更新する(図21のS61)。また、算出部102c5は、S4で説明した前記分割元消費税額14,400円×(S56で説明した前記分割金額34,020円/S4で説明した前記分割元金額194,400円)の計算結果である2,520円を分割消費税額に代入する(図21のS61)。そして、更新部102c6は、[4−6−3]のS61で更新した分割残消費税額5,040円から本段落で説明した前記分割消費税額2,520円を差し引いた値である2,520円を前記分割残消費税額に代入することにより前記分割残消費税額を更新する(図21のS61)。そして、図16(A)に進む。   Next, the updating unit 102c6 calculates 34,020 yen, which is the calculation result obtained by subtracting the divided amount 34,020 yen described in S56 from the divided remaining amount 68,040 yen updated in S61 of [4-6-3]. By substituting into the above, the split remaining amount is updated (S61 in FIG. 21). The calculation unit 102c5 divides 2,520 yen, which is the calculation result of the split source consumption tax amount of 14,400 yen described in S4 x (the split amount of 34,020 yen described in S56 / the split source amount of 194,400 yen described in S4). Substituting into the consumption tax amount (S61 in FIG. 21). Then, the update unit 102c6 calculates 2,520 yen, which is a value obtained by subtracting the divided consumption tax amount of 2,520 yen described in this paragraph from the divided remaining consumption tax amount of 5,040 yen updated in S61 of [4-6-3]. The divided remaining consumption tax amount is updated by substituting it into the tax amount (S61 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図59に示すように、S56で算出した前記分割金額34,020円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図59に示す査定分割ワーク106fを元にして、図14に示す請求データ106gにおける3行目の明細(請求番号000000000003の明細)が作成される。続けて、図15(A)に戻る。   When proceeding to FIG. 16 (A), as shown in FIG. 59, the assessment divided work 106f including the billing details including the divided amount of 34,020 yen calculated in S56 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 59, the details of the third line (details of the claim number 000000000003) in the claim data 106g shown in FIG. 14 are created. Subsequently, returning to FIG.

[4−6−5.査定分割カーソル106eの5行目のレコードについての処理]
図15(A)に戻ると、図60に示すように、査定分割カーソル106eの5行目のレコードが呼び出される(図15のS9)。そして、呼び出された当該5行目のレコードについて、以下で説明する処理が行われる。
[4-6-5. Processing for the fifth line record of the assessment split cursor 106e]
Returning to FIG. 15A, as shown in FIG. 60, the record in the fifth row of the assessment division cursor 106e is called (S9 in FIG. 15). And the process demonstrated below is performed about the called record of the said 5th line.

本例においては、査定分割カーソル106eのレコードの取得件数が1より大きい(図15のS10:取得件数>1)。また、本例においては、前記5行目のレコードにおける前記残金区分は、「1:残金」である(図15のS13:No)。そして、本例においては、前記5行目のレコードにおける前記金額条件区分は、「0:未満」ではなく(図19のS28:No)、「1:以下」でもなく(図19のS31:No)、「2:以上」でもなく(図19のS34:No)、「3:超」でもなく(図20のS37:No)、「9:無し」である(図20のS40:Yes)。   In this example, the acquisition number of records of the assessment division cursor 106e is larger than 1 (S10 in FIG. 15: acquisition number> 1). In this example, the balance classification in the record on the fifth line is “1: balance” (S13 in FIG. 15: No). In this example, the amount condition classification in the record in the fifth row is not “less than 0:” (S28: No in FIG. 19), but not “1: or less” (S31: No in FIG. 19). ), Not “2: or more” (S34: No in FIG. 19), not “3: More” (S37: No in FIG. 20), and “9: None” (S40: Yes in FIG. 20).

ここで、値取得部102c3は、図60に示す前記査定分割条件に含まれる残金区分1の金額区分に従って、[4−6−4]で更新した前記分割残金額34,020円を取得する。   Here, the value acquisition unit 102c3 acquires the split remaining amount of 34,020 yen updated in [4-6-4] in accordance with the remaining amount category 1 included in the appraisal split condition shown in FIG.

前記5行目のレコードにおける前記金額条件区分は「9:無し」であるため、当該取得した分割残金額34,020円が満たすべき条件はない。このため、図20のS41に進み、前記5行目のレコードにおける前記発生金額区分0に従って、前記分割パターンフラグは1となる。そして、図19(D)に進み、更に、図21(A)に進む。   Since the amount condition classification in the record in the fifth row is “9: None”, there is no condition to be satisfied by the acquired divided remaining amount of 34,020 yen. Therefore, the process proceeds to S41 in FIG. 20, and the division pattern flag is set to 1 according to the generated amount category 0 in the record in the fifth row. Then, the process proceeds to FIG. 19D, and further proceeds to FIG.

本例においては、前段落で説明したとおり、前記分割パターンフラグは1である(図21のS42:Yes)。   In this example, as described in the previous paragraph, the division pattern flag is 1 (S42 in FIG. 21: Yes).

次に、算出部102c5は、図60の査定分割カーソル106eの5行目のレコードに含まれる発生金額区分「0:金額全額」に従って、当該発生金額区分と対応する分割金額を算出する。すなわち、発生金額区分が「0:金額全額」である場合には、値取得部102c3で取得した値が分割金額として出力されるため、算出部102c5は、値取得部102c3で取得した前記分割残金額34,020円を前記分割金額に代入する(図21のS43)。次に、更新部102c6は、[4−6−4]で更新した前記分割残金額34,020円から算出部102c5で算出した前記分割金額34,020円を差し引いた値である0円を前記分割残金額に代入することにより、前記分割残金額を更新する(図21のS43)。そして、図16(A)に進む。   Next, the calculation unit 102c5 calculates the split amount corresponding to the generated amount category according to the generated amount category “0: total amount of money” included in the record of the fifth line of the assessment split cursor 106e in FIG. That is, when the generated amount category is “0: full amount of money”, the value acquired by the value acquisition unit 102c3 is output as a divided amount, and thus the calculation unit 102c5 is configured to output the remaining division amount acquired by the value acquisition unit 102c3. An amount of 34,020 yen is substituted for the divided amount (S43 in FIG. 21). Next, the updating unit 102c6 sets 0 yen, which is a value obtained by subtracting the divided amount 34,020 yen calculated by the calculating unit 102c5 from the divided remaining amount 34,020 yen updated in [4-6-4], as the divided remaining amount. By substituting, the split remaining amount is updated (S43 in FIG. 21). Then, the process proceeds to FIG.

図16(A)に進むと、図60に示すように、S43で算出した前記分割金額34,020円を請求税込金額とする請求明細を含む査定分割ワーク106fが更新される(図16のS12)。そして、図60に示す査定分割ワーク106fを元にして、図14に示す請求データ106gにおける4行目の明細(請求番号000000000004の明細)が作成される。続けて、図15(A)に進む。   When proceeding to FIG. 16 (A), as shown in FIG. 60, the assessment divided work 106f including the billing details including the divided amount of 34,020 yen calculated in S43 as the amount including tax is updated (S12 in FIG. 16). Based on the assessment division work 106f shown in FIG. 60, the details of the fourth line (details of the claim number 000000000004) in the claim data 106g shown in FIG. 14 are created. Subsequently, the process proceeds to FIG.

[4−6−6.処理の終了]
以上、[4−6−1]〜[4−6−5]で説明した処理により、査定分割カーソル106eの残明細がなくなったため(査定分割カーソル106eにおけるすべてのレコードの呼出が完了したため)、査定分割カーソル106eの処理を抜ける(図15のS9:処理終了 次の明細の処理を開始)。そして、発注依頼カーソル106cの残明細はなくなったため(発注依頼カーソル106cにおけるすべての明細の呼出しが完了したため)、発注依頼カーソル106cの処理を抜け(図15のS3:処理終了)、全処理が終了する。
[4-6-6. End of processing]
As described above, due to the processing described in [4-6-1] to [4-6-5], the remaining details of the assessment split cursor 106e are eliminated (because calling of all records in the assessment split cursor 106e has been completed). The process of the split cursor 106e is exited (S9 in FIG. 15: the process is terminated). Since there are no remaining items in the order request cursor 106c (because calling of all the details in the order request cursor 106c has been completed), the processing of the order request cursor 106c is exited (S3 in FIG. 15: processing end), and all processing ends. To do.

[4−7.まとめ]
以上、[4−1]〜[4−6]で説明したように、本実施形態に係る業務支援装置100によれば、分割の元となる元金額を分割して複数の分割金額を出力することができる。これにより、請求書の金額の分割作業に従来要していた負担を大幅に軽減することができる。
[4-7. Summary]
As described above in [4-1] to [4-6], according to the business support apparatus 100 according to the present embodiment, the principal amount that is the source of the division is divided and a plurality of divided amounts are output. be able to. As a result, it is possible to greatly reduce the burden conventionally required for dividing the amount of the invoice.

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

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

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

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

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

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

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

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

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

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

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

本発明は、例えば、不動産業や建設業等において有用である。   The present invention is useful, for example, in the real estate industry and the construction industry.

100 業務支援装置
102 制御部
102a 発注依頼入力部
102b 発注確定処理部
102c 分割金額出力部
102c1 初期値設定部
102c2 規則取得部
102c3 値取得部
102c4 判断部
102c5 算出部
102c6 更新部
102d 書類データ作成部
102e 仕入入力部
104 通信インターフェース部
106 記憶部
106a 発注依頼データ
106b 発注明細ワーク
106c 発注依頼カーソル
106d 取引先発注時査定分割方法マスタ
106e 取引先発注時査定分割カーソル
106f 査定分割ワーク
106g 請求書データ
106h 書類データ
108 入出力インターフェース部
112 入力装置
114 出力装置
200 サーバ
300 ネットワーク
100 business support device 102 control unit
102a Order request input part
102b Order confirmation processing section
102c Split amount output part
102c1 initial value setting part
102c2 rule acquisition unit
102c3 value acquisition unit
102c4 determination unit
102c5 calculation unit
102c6 update unit
102d Document data creation part
102e Purchase input unit 104 Communication interface unit 106 Storage unit
106a Order request data
106b Order details work
106c Order request cursor
106d Assessment split method master when supplier orders
106e Assessment split cursor when ordering suppliers
106f Assessment division work
106g Invoice data
106h Document data 108 Input / output interface unit 112 Input device 114 Output device 200 Server 300 Network

Claims (5)

制御部を備える業務支援装置であって、
前記制御部は、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力手段を備え、
前記分割金額出力手段は、
前記元金額を元金額変数および残金額変数に代入する初期値設定手段と、
複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得手段と、
前記規則取得手段で取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得手段と、
前記値取得手段で取得した前記値が前記規則取得手段で取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断手段と、
前記判断手段で前記金額条件が満たされていると判断された場合、前記規則取得手段で取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得手段で取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得手段で取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得手段で取得した前記値を基に算出する算出手段と、
前記残金額変数の本処理実行時の値から前記算出手段で算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新手段と、
を備え、
前記規則取得手段、前記値取得手段、前記判断手段、前記算出手段および前記更新手段を複数回動作させること、
を特徴とする業務支援装置。
A business support device comprising a control unit,
The control unit includes split amount output means for splitting an original amount as a source of split and outputting a plurality of split amounts,
The split amount output means includes
An initial value setting means for substituting the principal amount into a principal amount variable and a remaining amount variable;
Rule acquisition means for acquiring the division rule from a division rule set including a plurality of division rules;
Of the principal amount category that means to acquire the value of the principal amount variable and the remaining amount category that means to acquire the value of the remaining amount variable, included in the division rule acquired by the rule acquisition means Value acquisition means for acquiring the value of the original amount variable or the value of the remaining amount variable at the time of the main processing according to any amount of money classification;
A determination unit that determines whether the value acquired by the value acquisition unit satisfies a money amount condition included in the division rule acquired by the rule acquisition unit;
A predetermined amount output class that means that when the determination unit determines that the amount condition is satisfied, the predetermined amount included in the division rule acquired by the rule acquisition unit is output as the divided amount; A combination of the predetermined amount, a product of the value acquired by the value acquisition unit and a predetermined ratio, which is output as the divided amount, a ratio reference amount output category and a combination of the predetermined ratio, and acquired by the value acquisition unit According to the output category included in any information of the full amount output category, which means that the value is output as the divided amount, the divided amount corresponding to the output category is acquired by the information or the value acquisition unit. Calculating means for calculating based on the value obtained;
Updating means for substituting a value obtained by subtracting the divided amount calculated by the calculating unit from the value at the time of executing the processing of the remaining amount variable into the remaining amount variable;
With
Operating the rule acquisition means, the value acquisition means, the determination means, the calculation means, and the update means a plurality of times;
Business support device characterized by
前記元金額は、デベロッパーが工事会社に発注した戸建住宅の建設工事に係る発注金額であり、
前記分割金額は、前記工事会社が前記デベロッパーに請求する前記建設工事に係る請求金額であって、前記デベロッパーが前記発注のときに前記工事会社に送る請求書に記載されるものであること、
を特徴とする請求項1に記載の業務支援装置。
The yuan amount is the order amount pertaining to the construction of a detached house that the developer has ordered from the construction company,
The split amount is a bill amount related to the construction work that the construction company charges to the developer, and is described in a bill that the developer sends to the construction company at the time of the order;
The business support apparatus according to claim 1, wherein:
表示部を備え、
前記分割金額出力手段は、前記表示部に表示されている、前記発注の内容を確定するための所定画面に前記元金額が設定されてから動作し始めること、
を特徴とする請求項2に記載の業務支援装置。
With a display,
The divided amount output means starts to operate after the principal amount is set on a predetermined screen displayed on the display unit for confirming the content of the order;
The business support apparatus according to claim 2, wherein:
制御部を備える業務支援装置で実行される分割金額出力方法であって、
前記制御部で実行される、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力ステップを含み、
前記分割金額出力ステップは、
前記元金額を元金額変数および残金額変数に代入する初期値設定ステップと、
複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得ステップと、
前記規則取得ステップで取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得ステップと、
前記値取得ステップで取得した前記値が前記規則取得ステップで取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断ステップと、
前記判断ステップで前記金額条件が満たされていると判断された場合、前記規則取得ステップで取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得ステップで取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得ステップで取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得ステップで取得した前記値を基に算出する算出ステップと、
前記残金額変数の本処理実行時の値から前記算出ステップで算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新ステップと、
を含み、
前記規則取得ステップ、前記値取得ステップ、前記判断ステップ、前記算出ステップおよび前記更新ステップは複数回実行されること、
を特徴とする分割金額出力方法。
A split amount output method executed by a business support apparatus including a control unit,
A split amount output step of outputting a plurality of split amounts by dividing a base amount as a source of split, executed by the control unit;
The split amount output step includes:
An initial value setting step of substituting the principal amount into a principal amount variable and a remaining amount variable;
A rule obtaining step of obtaining the division rule from a division rule set including a plurality of division rules;
Of the principal amount category meaning obtaining the value of the principal amount variable and the remaining amount category meaning obtaining the value of the remaining amount variable included in the division rule obtained in the rule obtaining step A value acquisition step for acquiring a value of the original amount variable or a value of the remaining amount variable at the time of executing the process according to any amount of money classification;
A determination step of determining whether the value acquired in the value acquisition step satisfies an amount condition included in the division rule acquired in the rule acquisition step;
When it is determined in the determination step that the amount condition is satisfied, a predetermined amount output class that means that a predetermined amount included in the division rule acquired in the rule acquisition step is output as the divided amount; and The combination of the predetermined amount, the product of the value acquired in the value acquisition step and the predetermined ratio is output as the divided amount, and the ratio reference amount output classification and the combination of the predetermined ratio acquired in the value acquisition step According to the output category included in any information of the full output category that means that the value is output as the split amount, the split amount corresponding to the output category is acquired in the information or the value acquisition step. A calculation step for calculating based on the obtained value;
An update step of substituting a value obtained by subtracting the split amount calculated in the calculation step from the value at the time of executing the processing of the remaining amount variable into the remaining amount variable;
Including
The rule acquisition step, the value acquisition step, the determination step, the calculation step and the update step are executed a plurality of times;
A split amount output method characterized by
制御部を備える業務支援装置に実行させるための分割金額出力プログラムであって、
前記制御部に実行させるための、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力ステップを含み、
前記分割金額出力ステップは、
前記元金額を元金額変数および残金額変数に代入する初期値設定ステップと、
複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得ステップと、
前記規則取得ステップで取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得ステップと、
前記値取得ステップで取得した前記値が前記規則取得ステップで取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断ステップと、
前記判断ステップで前記金額条件が満たされていると判断された場合、前記規則取得ステップで取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得ステップで取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得ステップで取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得ステップで取得した前記値を基に算出する算出ステップと、
前記残金額変数の本処理実行時の値から前記算出ステップで算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新ステップと、
を含み、
前記規則取得ステップ、前記値取得ステップ、前記判断ステップ、前記算出ステップおよび前記更新ステップは複数回実行されること、
を特徴とする分割金額出力プログラム。
A split amount output program for causing a business support apparatus including a control unit to execute,
A split amount output step for dividing the principal amount to be split and outputting a plurality of split amounts to be executed by the control unit;
The split amount output step includes:
An initial value setting step of substituting the principal amount into a principal amount variable and a remaining amount variable;
A rule obtaining step of obtaining the division rule from a division rule set including a plurality of division rules;
Of the principal amount category meaning obtaining the value of the principal amount variable and the remaining amount category meaning obtaining the value of the remaining amount variable included in the division rule obtained in the rule obtaining step A value acquisition step for acquiring a value of the original amount variable or a value of the remaining amount variable at the time of executing the process according to any amount of money classification;
A determination step of determining whether the value acquired in the value acquisition step satisfies an amount condition included in the division rule acquired in the rule acquisition step;
When it is determined in the determination step that the amount condition is satisfied, a predetermined amount output class that means that a predetermined amount included in the division rule acquired in the rule acquisition step is output as the divided amount; and The combination of the predetermined amount, the product of the value acquired in the value acquisition step and the predetermined ratio is output as the divided amount, and the ratio reference amount output classification and the combination of the predetermined ratio acquired in the value acquisition step According to the output category included in any information of the full output category that means that the value is output as the split amount, the split amount corresponding to the output category is acquired in the information or the value acquisition step. A calculation step for calculating based on the obtained value;
An update step of substituting a value obtained by subtracting the split amount calculated in the calculation step from the value at the time of executing the processing of the remaining amount variable into the remaining amount variable;
Including
The rule acquisition step, the value acquisition step, the determination step, the calculation step and the update step are executed a plurality of times;
A split amount output program characterized by
JP2018095845A 2018-05-18 2018-05-18 Business support device, divided amount output method and divided amount output program Active JP7122866B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018095845A JP7122866B2 (en) 2018-05-18 2018-05-18 Business support device, divided amount output method and divided amount output program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018095845A JP7122866B2 (en) 2018-05-18 2018-05-18 Business support device, divided amount output method and divided amount output program

Publications (2)

Publication Number Publication Date
JP2019200678A true JP2019200678A (en) 2019-11-21
JP7122866B2 JP7122866B2 (en) 2022-08-22

Family

ID=68613176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018095845A Active JP7122866B2 (en) 2018-05-18 2018-05-18 Business support device, divided amount output method and divided amount output program

Country Status (1)

Country Link
JP (1) JP7122866B2 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002133300A (en) * 2000-10-18 2002-05-10 Dainichi Co Ltd System for collecting construction cost for apartment house
JP2004288027A (en) * 2003-03-24 2004-10-14 Educe:Kk Accounting system, accounting program, and accounting method
JP2004334262A (en) * 2003-04-30 2004-11-25 Life:Kk Servicing card system
JP2005141712A (en) * 2003-11-10 2005-06-02 Techno Net:Kk Method of construction cost payment agency business for letting cost payment agency keep construction cost of contract construction from business owner and for letting cost payment agency pay kept construction cost to construction-related company in place of main contractor
JP2005346135A (en) * 2004-05-31 2005-12-15 Canon Inc Data processor and its method
US20090265262A1 (en) * 2008-04-22 2009-10-22 Ebay Inc. Method and system for installment payment utilization
JP2010160627A (en) * 2009-01-07 2010-07-22 Mizuho Bank Ltd Support system for loan business, method of supporting loan business, and support program for loan business
JP2011028684A (en) * 2009-07-29 2011-02-10 Bank Of Tokyo-Mitsubishi Ufj Ltd Device, program, system and method for outputting loan condition
JP2017033110A (en) * 2015-07-29 2017-02-09 株式会社名神精工 Die management system
JP2018077695A (en) * 2016-11-10 2018-05-17 株式会社オービック Device, method and program for executing proportional division processing

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002133300A (en) * 2000-10-18 2002-05-10 Dainichi Co Ltd System for collecting construction cost for apartment house
JP2004288027A (en) * 2003-03-24 2004-10-14 Educe:Kk Accounting system, accounting program, and accounting method
JP2004334262A (en) * 2003-04-30 2004-11-25 Life:Kk Servicing card system
JP2005141712A (en) * 2003-11-10 2005-06-02 Techno Net:Kk Method of construction cost payment agency business for letting cost payment agency keep construction cost of contract construction from business owner and for letting cost payment agency pay kept construction cost to construction-related company in place of main contractor
JP2005346135A (en) * 2004-05-31 2005-12-15 Canon Inc Data processor and its method
US20090265262A1 (en) * 2008-04-22 2009-10-22 Ebay Inc. Method and system for installment payment utilization
JP2010160627A (en) * 2009-01-07 2010-07-22 Mizuho Bank Ltd Support system for loan business, method of supporting loan business, and support program for loan business
JP2011028684A (en) * 2009-07-29 2011-02-10 Bank Of Tokyo-Mitsubishi Ufj Ltd Device, program, system and method for outputting loan condition
JP2017033110A (en) * 2015-07-29 2017-02-09 株式会社名神精工 Die management system
JP2018077695A (en) * 2016-11-10 2018-05-17 株式会社オービック Device, method and program for executing proportional division processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
株式会社建築資料研究社: "世界のインターネットアーカイブ|よさん主任の便利な機能", [ONLINE], JPN6022016771, 16 August 2017 (2017-08-16), JP, ISSN: 0004765796 *

Also Published As

Publication number Publication date
JP7122866B2 (en) 2022-08-22

Similar Documents

Publication Publication Date Title
JP6600534B2 (en) Deposit management system, deposit management apparatus, deposit management method and deposit management program
JP6716229B2 (en) Transfer processing device, transfer processing method, and transfer processing program
JP2017182782A (en) Journal entry creation device, journal entry creation method, and journal entry creation program
JP2017174419A (en) Accounting processing apparatus, accounting processing method, and accounting processing program
JP2017168087A (en) Expense journalizing automatic generation device, expense journalizing automatic generation method, and expense journalizing automatic generation program
JP2017174400A (en) Sales claim data expansion device, sales claim data expansion method, and sales claim data expansion program
JP7042076B2 (en) Construction price processing equipment, construction price processing method, and construction price processing program
JP2019032779A (en) Construction fee settling apparatus, construction fee settling method, and construction fee settling program
JP2018156406A (en) Sales data creating apparatus, sales data creating method, and program for creating sales data
JP2019032650A (en) Deduction amount calculation device, deduction amount calculation method and deduction amount calculation program
JP2022179705A (en) Classification data preparation device, method for creating classification data, and classification data creation program
JP7122866B2 (en) Business support device, divided amount output method and divided amount output program
JP7220113B2 (en) Deposit transfer device, deposit transfer method, and deposit transfer program
JP2022062267A (en) Construction fee processing device, construction fee processing method and construction fee processing program
JP2021185534A (en) Information processing device, information processing method and program
JP2018005519A (en) Accounting processing device, accounting processing method, and accounting processing program
JP2021056887A (en) Payment management data generation device, payment management data generation method and payment management data generation program
JP2016091384A (en) Information processor, program, and information processing method
JP7296510B1 (en) Business support device, business support method, and business support program
JP7084800B2 (en) Difference management device, difference management method, and difference management program
JP2019211956A (en) Unit price estimation device, unit price estimation method, and unit price estimation program
JP7157563B2 (en) Amount calculation device, amount calculation method, and amount calculation program
JP7240131B2 (en) Construction cost management device, construction cost management method, and construction cost management program
JP7186088B2 (en) Return settlement device, return settlement method, and return settlement program
JP7261332B2 (en) Automatic work-in-process transfer device, automatic work-in-process transfer method, and automatic work-in-process transfer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210512

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220510

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220701

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220809

R150 Certificate of patent or registration of utility model

Ref document number: 7122866

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150