JP7122866B2 - 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
JP7122866B2
JP7122866B2 JP2018095845A JP2018095845A JP7122866B2 JP 7122866 B2 JP7122866 B2 JP 7122866B2 JP 2018095845 A JP2018095845 A JP 2018095845A JP 2018095845 A JP2018095845 A JP 2018095845A JP 7122866 B2 JP7122866 B2 JP 7122866B2
Authority
JP
Japan
Prior art keywords
amount
value
split
divided
division
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018095845A
Other languages
Japanese (ja)
Other versions
JP2019200678A (en
Inventor
裕之 須藤
絵莉香 古賀
和彦 麻生
剛光 上野
Original Assignee
株式会社オービック
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社オービック filed Critical 株式会社オービック
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

Description

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

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

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

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

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

しかし、分割の仕方は、例えば固定の金額で分割したり按分率で分割したりするなど、工事会社ごとに様々であるため、これまでは、工事会社ごとに決定した分割の仕方を基に請求書の金額を手作業で分割せざるを得なかった。そして、この分割作業は、煩雑なため、大きな負担となっていた。 However, the method of division varies from construction company to construction company, such as dividing by a fixed amount or dividing by a proportional division ratio. I had to manually divide the sum of money. This dividing work is complicated and thus a heavy burden.

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

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

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

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

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

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

本発明は、請求書の金額の分割作業に要していた負担を大幅に軽減することができるという効果を奏する。 ADVANTAGE OF THE INVENTION This invention is effective in the ability to reduce the burden required for the division|segmentation work of the amount of a bill significantly.

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

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

[1.概要]
工事業、不動産業および建設業等においては、発注時に支払の内容等を決定する。戸建業界等においては、図1の「戸建デベロッパーの業務フローの概要」および「発注の業務フロー」に示すように、発注時に「発注書、請書および請求書(後日、その請求書が送られてくる)」を発注先の工事会社に渡すことが多い。その際に、請求書の金額を分割した内容で請求書を発行したいという、戸建工事業界において多い要望がある。分割する際の支払の仕方は、取引先である工事会社毎に決まることが多く、例えば、初回いくら、竣工特にいくらの2回払い等である。分割する際の金額は、例えば、定額金額や按分率に基づき算出した金額である。
[1. Overview]
In the construction business, real estate business, construction business, etc., the details of payment, etc. are determined at the time of ordering. In the detached house industry, etc., as shown in Fig. 1, "Outline of work flow for detached house developer" and "Work flow for ordering", "order form, confirmation and invoice (the invoice will be sent at a later date) at the time of placing an order. It is often handed over to the contractor's construction company. At that time, there are many requests in the detached house construction industry to issue an invoice with the contents of the amount of the invoice divided. The method of payment at the time of division is often decided for each construction company that is a business partner, for example, two payments for the first payment, especially for the completion of construction, and the like. The amount of money for division is, for example, a fixed amount or an amount calculated based on a proportional division ratio.

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

そこで、本実施形態においては、例えば、システムにより分割の定義を設定することによって、自動的に初期分割を行い、ユーザの作業負担を減らすことができる。また、本実施形態においては、例えば、発注先への支払金額を自動的に按分し、請求書に印字することもできる。以下、具体的な構成および動作について説明する。 Therefore, in this embodiment, for example, by setting the division definition by the system, the initial division can be automatically performed, and the user's workload can be reduced. Further, in this embodiment, for example, the amount to be paid to the supplier can be automatically divided proportionally and printed on the bill. Specific configurations and operations will be described below.

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

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

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

通信インターフェース部104は、ルータ等の通信装置および専用線等の有線または無線の通信回線を介して、業務支援装置100をネットワーク300に通信可能に接続する。通信インターフェース部104は、他の装置と通信回線を介してデータを通信する機能を有する。ここで、ネットワーク300は、業務支援装置100とサーバ200とを相互に通信可能に接続する機能を有し、例えばインターネットやLAN(Local Area Network)等である。なお、後述する各種マスタ等のデータは、例えばサーバ200に格納されてもよい。 The communication interface unit 104 communicably connects the business support device 100 to the network 300 via a communication device such as a router and a wired or wireless communication line such as a dedicated line. The communication interface unit 104 has a function of communicating data with another device via a communication line. Here, the network 300 has a function of connecting the business support device 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). 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 section 108 . The output device 114 can be a monitor (including a home television), a speaker, or a printer. The input device 112 can be a keyboard, a mouse, a microphone, or a monitor that realizes a pointing device function in cooperation with a mouse. In the following description, the output device 114 may be referred to as the monitor 114 as a display unit, and the input device 112 may be referred to as the keyboard 112 or the 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 performing various processes by giving commands to a CPU (Central Processing Unit) in cooperation with an OS (Operating System). As the storage unit 106, for example, memory devices such as RAM (Random Access Memory) and ROM (Read Only Memory), fixed disk devices such as hard disks, flexible disks, and optical disks can be used.

記憶部106には、例えば、発注依頼データ106aと、発注明細ワーク106bと、発注依頼カーソル106cと、分割規則集合としての取引先発注時査定分割方法マスタ106d(以下、単に「査定分割マスタ106d」ということがある。)と、取引先発注時査定分割カーソル106e(以下、単に「査定分割カーソル106e」ということがある。)と、査定分割ワーク106fと、請求書データ106gと、書類データ106hと、等が格納されている。 The storage unit 106 stores, for example, order request data 106a, an order detail work 106b, an order request cursor 106c, and an assessment split method master 106d (hereinafter simply referred to as "assessment split master 106d") as a set of split rules. ), an assessment division cursor 106e at the time of placing an order with a supplier (hereinafter sometimes simply referred to as an "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 device 100 according to the present embodiment, it is possible to divide the principal amount that is the basis of division and output a plurality of divided amounts.

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

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

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

発注明細ワーク106bは、例えば、前記発注依頼明細のうち、発注確定処理により発注が確定した明細である発注確定明細を含むデータである。前記発注確定明細は、図22に一部を示すように、例えば、分割コード、発注依頼Guid、発注依頼明細Guid、前記発注番号、前記発注先コード、前記発注日、前記工事のプロジェクトコード、前記工事のプロジェクト枝番、前記工事番号、前記工事区分、前記工事細目コード、前記工事細目名、前記税込区分、前記消費税率区分、前記工事の数量、前記工事の単価、前記工事の税込金額、前記工事の税抜金額、前記工事の消費税額、前記工事の完了予定日、前記明細備考および前記取引担当者コード等を含む。 The order details work 106b is, for example, data including order confirmation details, which are details of the order confirmation processing, among 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 specification Guid, the order number, the supplier code, the order date, the project code of the construction, the Project branch number of construction work, construction number, construction classification, construction detail code, construction detail name, tax-included classification, consumption tax rate classification, quantity of construction work, unit price of construction work, tax-included amount of construction work, It includes the tax-excluded amount of construction work, the consumption tax amount of the construction work, the scheduled completion date of the construction work, the remarks of the details, the code of the person in charge of 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, for example, has the same combination of the division code, the supplier code, the order date, the project code, the project branch number, the construction work number, and the work classification in the order confirmation details. It is data containing aggregated details that aggregate things. The aggregated details include the sum of the tax-included amount of the construction work, the tax-excluded amount of the construction work, and the consumption tax amount of the construction work included in the consolidated order confirmation details. For example, of the three confirmed order details included in the order detail work 106b in FIG. 24, the confirmed order details on the first and second lines have the same combination. Aggregated to the aggregated detail shown. As shown in the aggregated details on the first line of the order request cursor 106c in FIG. 194,400 yen (total amount including tax), which is the sum of the tax-included amount of 54,000 yen included in the above, and the tax-excluded amount of 130,000 yen included in the confirmed order details on the first line above and the confirmed order on the second line. The order tax-excluded amount (total tax-excluded amount) of 180,000 yen, which is the sum of the tax-excluded amount of 50,000 yen included in the details, and the consumption tax amount of 10,400 yen included in the confirmed order details on the first line above and the second line. The order consumption tax amount (total consumption tax amount) of 14,400 yen, which is the total amount of the consumption tax amount of 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 vendor code, the order date, the project code, the project branch number, the construction number, the construction division, and the 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 the conditions for determining whether or not the amount can be divided, how to divide the amount, and the like. Assessment split master 106d includes multiple split rules. As shown in FIG. 3, the division rule includes, for example, the order of accrual, which is the order of acquisition of the division rule, the balance classification (corresponding to the "amount classification" of the present invention), the combination of the amount condition and the amount condition classification (this combination corresponds to the "amount condition" of the present invention), generated amount classification (corresponds to the "output classification" of the present invention), fractional amount unit and fractional division, and the like.

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

前記金額条件は、例えば、分割基準金額(すなわち、分割してよいか否かを判断する際の基準となる金額)である。前記金額条件区分としては、図3に一部を示すように、例えば、「0:未満」、「1:以下」、「2:以上」、「3:超」および「9:無し」等が存在する。前記金額条件と前記金額条件区分の組み合わせが、分割条件となる。 The money amount condition is, for example, a division reference amount (that is, an amount that serves as a criterion for determining whether or not to divide). As the amount condition classification, as shown in part in FIG. exist. A combination of the amount condition and the amount condition category is the split 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 amount can be divided by referring to the balance category, the amount condition, and the amount condition category will be described in detail with reference to FIG. In the records on the first and second lines of the assessment division master 106d of FIG. 3, the balance category is "0: whole", the amount condition is "100,000", and the amount condition category is "less than 0". be. In this case, when the value of the acquired principal amount variable is less than 100,000 yen, it is determined that the acquired value of the principal amount variable may be divided. In the third row record of the assessment division master 106d in FIG. 3, the balance classification is "1: balance", the amount condition is "100,000", and the amount condition classification is "9: none". In this case, regardless of the value of the acquired balance amount variable, it is determined that the acquired value of the balance amount variable may be divided.

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

前記発生金額区分が「1:定額金額」の場合には、前記分割規則として、前記発生金額を設定することができる。なお、前記発生金額としては、小数点以下の値を設定することはできない。前記発生金額区分が「2:%」の場合には、前記分割規則として、前記按分率を設定することができる。なお、前記按分率としては、小数点以下4桁の値までが有効である。 When the accrued amount category is "1: fixed amount", the accrued amount can be set as the division rule. It should be noted that the value below the decimal point cannot be set as the generated amount. When the accrued amount category is "2:%", the proportional division rate can be set as the division rule. As the proportional division rate, values up to four decimal places are valid.

ここで、前記残金区分および前記発生金額区分を参照して金額の分割を行う方法について、前記元金額変数の値が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, the method of dividing the amount by referring to the balance category and the accrued amount category will be described in detail with reference to FIG. 3, assuming that the value of the principal amount variable is 194,400 yen. In the first row record of the assessment division master 106d of FIG. 3, the balance classification is "0: whole", the accrual amount classification is "2: %", and the proportional division 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. Also, in the second row record of the assessment division master 106d in FIG. 3, the balance classification is "0: whole", the accrued amount classification is "2: %", and the proportional division rate is 40%. In this case, the divided amount is the value of the principal amount variable 194,400 yen×40/100=77,760 yen. In the third row record of the assessment division master 106d of FIG. 3, the balance classification is "1: balance", and the generated amount classification is "0: full amount". In this case, the split amount is 58,320 yen, which is the total amount of "the value of the principal amount variable of 194,400 yen - the split amount of 58,320 yen - the split amount of 77,760 yen = the value of the balance amount variable of 58,320 yen".

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

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

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

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

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

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

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

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

制御部102は、機能概念的に、発注依頼の入力を受け付ける発注依頼入力手段としての発注依頼入力部102aと、発注の確定処理を行う発注確定処理手段としての発注確定処理部102bと、分割の元となる元金額を分割して複数の分割金額を出力する分割金額出力手段としての分割金額出力部102cと、前記発注書、前記請書および前記請求書の書類データを作成する書類データ作成手段としての書類データ作成部102dと、仕入内容の入力を受け付ける仕入入力手段としての仕入入力部102eと、を備えている。なお、各部が実行する処理の内容については、以下の[3.処理概要]および[4.処理詳細]で説明する。 The control unit 102 is functionally conceptually composed of an order request input unit 102a as an order request input means for accepting an input of an order request, an order confirmation processing unit 102b as an order confirmation processing means for confirming an order, A divided amount output unit 102c as divided amount output means for dividing the original principal amount and outputting a plurality of divided amounts; and a purchase input unit 102e as purchase input means for receiving input of purchase details. Details of the processing executed by each unit are described in [3. Overview of processing] and [4. processing details].

分割金額出力部102cは、前記元金額を元金額変数および残金額変数に代入する初期値設定手段としての初期値設定部102c1と、複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得手段としての規則取得部102c2と、前記規則取得手段で取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得手段としての値取得部102c3と、前記値取得手段で取得した前記値が前記規則取得手段で取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断手段としての判断部102c4と、前記判断手段で前記金額条件が満たされていると判断された場合、前記規則取得手段で取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得手段で取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得手段で取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得手段で取得した前記値を基に算出する算出手段としての算出部102c5と、前記残金額変数の本処理実行時の値から前記算出手段で算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新手段としての更新部102c6と、を備えている。なお、各部が実行する処理の内容については、以下の[3.処理概要]および[4.処理詳細]で説明する。 The division amount output unit 102c acquires the division rule from an initial value setting unit 102c1 as initial value setting means for substituting the principal amount into the principal amount variable and the balance amount variable, and from a division rule set including a plurality of division rules. A rule acquisition unit 102c2 as rule acquisition means, and acquisition of the principal amount classification and the value of the balance amount variable included in the division rule acquired by the rule acquisition means, which means acquiring the value of the principal amount variable. a value acquiring unit 102c3 as a value acquiring unit that acquires the value of the principal amount variable or the value of the balance amount variable at the time of execution of this process according to one of the balance amount categories that means to a judging unit 102c4 as judging means for judging whether the value acquired by the value acquiring means satisfies an amount condition included in the division rule acquired by the rule acquiring means; if it is determined that the division rule obtained by the rule obtaining means includes a predetermined amount output category meaning that a predetermined amount is to be output as the divided amount, and the combination of the predetermined amount, and the value acquisition. A combination of the ratio reference amount output category and the predetermined ratio, which means that the product of the value obtained by means and a predetermined ratio is output as the divided amount, and the value obtained by the value obtaining means is output as the divided amount. Calculation of calculating the divided amount corresponding to the output classification based on the information or the value obtained by the value obtaining means, according to the output classification included in any information of the full output classification that means a calculating unit 102c5 as means; an updating unit 102c6 as updating means for substituting a value obtained by subtracting the divided amount calculated by the calculating means from the value of the balance amount variable at the time of execution of this process into the balance amount variable; It has Details of the processing executed by each unit are described in [3. Overview of processing] and [4. processing details].

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

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

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

[3-3.分割金額出力処理]
次に、分割金額出力部102cは、前記元金額を分割して前記複数の分割金額を出力する。なお、分割金額出力部102cは、モニタ114に表示されている、前記発注の内容を確定するための所定画面(例えば、図5に示す発注確定画面)に[3-2]で説明したように前記元金額が設定されてから動作し始めてもよい。
[3-3. Divided amount output process]
Next, the divided amount output unit 102c divides the principal amount and outputs the plurality of divided amounts. Note that the divided 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 content of the order, as described in [3-2]. The operation may be started after the principal amount is set.

まず、発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである前記発注確定明細において、前記発注税込金額、前記発注税抜金額および前記発注消費税額がそれぞれ集約される。そして、前記組み合わせおよび集約後の金額を含む集約明細が、発注依頼カーソル106cに格納される(図15のS2)。 First, from the order details work 106b, in the confirmed order details having the same combination of the division code, the supplier code, the order date, the project code, the project branch number, the construction work number, and the work classification, The order tax-included amount, the order tax-excluded amount, and the order consumption tax amount are aggregated. Then, the aggregated 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 consolidated 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 price and the like in the called aggregated details in variables. Specifically, the initial value setting unit 102c1 converts the order tax-included amount (corresponding to the "principal amount" of the present invention) in the called aggregated specification to the divided principal amount (corresponding to the "principal amount variable" of the present invention). , assigns the order consumption tax amount in the called aggregated details to the split source consumption tax amount, assigns the split original amount to the split balance amount (equivalent to the "balance amount variable" of the present invention), and assigns the split The original consumption tax amount is substituted for the divided remaining consumption tax amount, and "1" is set in the invoice division number (S4 in FIG. 15).

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

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

これにより、発注依頼カーソル106cの前記1行目の明細についての処理は終了する。そして、図15のS3に戻り、発注依頼カーソル106cにおける2行目以降の明細についてもこれまでの説明と同様の処理が行われ、すべての明細の呼出が完了すると、処理が終了する(図15のS3:処理終了)。 As a result, the processing of the details on 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 lines of the order request cursor 106c. S3: end of processing).

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

次に、査定分割カーソル106eの1行目のレコードから呼び出される(図15のS9)。 Next, it is called from the first row record 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 acquisitions of the record of the assessment division cursor 106e is 1 (S10 in FIG. 15: number of acquisitions = 1), the division remaining amount of S4 is substituted for the division amount, and the division remaining consumption tax amount of S4 is substituted for the division consumption tax amount. is substituted, 0 is substituted for the remaining divided amount, and 0 is substituted for the division pattern flag (S11 in FIG. 15). Then, the process proceeds to FIG. 16(A).

図16(A)に進むと、前記分割パターンフラグが-1以外の場合には、査定分割ワーク106fに請求明細が1行追加される(図16のS12)。すなわち、S11の前記分割金額を1請求として査定分割ワーク106fが作成される(図16のS12)。そして、図15(A)に戻る。 Proceeding to FIG. 16A, if the division pattern flag is other than -1, one line of invoice details is added to the assessment division work 106f (S12 in FIG. 16). That is, the appraisal divided work 106f is created with the divided amount in S11 as one claim (S12 in FIG. 16). Then, return 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 of FIG. 15, if the acquired number of records of the assessment split cursor 106e is greater than 1 (S10 of FIG. 15: acquired number > 1), the balance classification in the first row record of the assessment split cursor 106e is "0: Whole" (S13 in FIG. 15). If the balance classification is 0 (S13: Yes in FIG. 15), proceed to FIG. 17A. If the balance classification is not 0 (S13 in FIG. 15: No), proceed to FIG. move on.

[3-3-3A.残金区分が0である場合]
図17(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「0:未満」であるか否かがチェックされる(図17のS14)。
[3-3-3A. If the balance category is 0]
Proceeding to FIG. 17A, it is checked whether or not the amount condition classification 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 category is 0 (S14: Yes in FIG. 17), whether or not the condition "the amount of the original split described in S4<the amount condition in the first row record of the assessment split cursor 106e" is satisfied is checked as follows (S15 in FIG. 17). First, the value acquiring unit 102c3 acquires the amount of balance category 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 acquiring unit 102c2. According to the classification, the value of the split principal amount explained in S4 (corresponding to the "principal amount variable value" of the present invention) is obtained. Then, the determination unit 102c4 determines that the value of the split principal amount acquired by the value acquisition unit 102c3 (corresponding to the "said value" of the present invention) is the assessed split condition (the "split rule" of the present invention) acquired by the rule acquisition unit 102c2. ”) and the combination of the money condition category (corresponding to the “money condition” of the present invention) is satisfied.

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

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

図17のS14に戻り、前記金額条件区分が0ではない場合(図17のS14:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「1:以下」であるか否かがチェックされる(図17のS17)。 Returning to S14 of FIG. 17, if the amount condition classification is not 0 (S14 of FIG. 17: No), whether or not the amount condition classification in the first row 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 of "said split principal amount explained in S4≦amount condition in the first row record of the assessment split cursor 106e" is satisfied is checked as follows (S18 in FIG. 17). First, the value acquiring unit 102c3 acquires the amount of balance category 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 acquiring unit 102c2. According to the classification, the value of the split principal amount explained in S4 (corresponding to the "principal amount variable value" of the present invention) is obtained. Then, the determination unit 102c4 determines that the value of the split principal amount acquired by the value acquisition unit 102c3 (corresponding to the "said value" of the present invention) is the assessed split condition (the "split rule" of the present invention) acquired by the rule acquisition unit 102c2. ”) and the combination of the money condition category (corresponding to the “money condition” of the present invention) is satisfied.

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

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

図17のS17に戻り、前記金額条件区分が1ではない場合(図17のS17:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「2:以上」であるか否かがチェックされる(図17のS20)。 Returning to S17 of FIG. 17, if the amount condition classification is not 1 (S17 of FIG. 17: No), whether or not the amount condition classification in the first row 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: Yes in FIG. 17), whether or not the condition "said divided principal amount explained in S4≧amount condition in the first row record of the assessment division cursor 106e" is satisfied is checked as follows (S21 in FIG. 17). First, the value acquiring unit 102c3 acquires the amount of balance category 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 acquiring unit 102c2. According to the classification, the value of the split principal amount explained in S4 (corresponding to the "principal amount variable value" of the present invention) is obtained. Then, the determination unit 102c4 determines that the value of the split principal amount acquired by the value acquisition unit 102c3 (corresponding to the "said value" of the present invention) is the assessed split condition (the "split rule" of the present invention) acquired by the rule acquisition unit 102c2. ”) and the combination of the money condition category (corresponding to the “money condition” of the present invention) is satisfied.

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

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

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

図18(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「3:超」であるか否かがチェックされる(図18のS23)。 Proceeding to FIG. 18A, 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: Yes in FIG. 18), whether or not the condition "the amount of the split principal described in S4>the amount condition in the first row record of the assessment split cursor 106e" is satisfied is checked as follows (S24 in FIG. 18). First, the value acquiring unit 102c3 acquires the amount of balance category 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 acquiring unit 102c2. According to the classification, the value of the split principal amount explained in S4 (corresponding to the "principal amount variable value" of the present invention) is obtained. Then, the determination unit 102c4 determines that the value of the split principal amount acquired by the value acquisition unit 102c3 (corresponding to the "said value" of the present invention) is the assessed split condition (the "split rule" of the present invention) acquired by the rule acquisition unit 102c2. ”) and the combination of the money condition category (corresponding to the “money condition” of the present invention) is satisfied.

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

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

図18のS23に戻り、前記金額条件区分が3ではない場合(図18のS23:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「9:無し」であるか否かがチェックされる(図18のS26)。 Returning to S23 of FIG. 18, if the amount condition classification is not 3 (S23 of FIG. 18: No), whether or not the amount condition classification in the first row 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)に進む。 If the amount condition class is 9 (S26 in FIG. 18: Yes), the split pattern flag is determined as follows according to the accrued amount class in the record on the first line of the assessment split cursor 106e (see FIG. 18). S27). That is, when the accrual amount category is 0, the split pattern flag is 1, when the accrual amount category is 1, the split pattern flag is 2, and when the accrual amount category is 2, the split pattern flag is 3. . Then, the process proceeds to FIG. 17(D).

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

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

図19(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「0:未満」であるか否かがチェックされる(図19のS28)。 Proceeding to FIG. 19A, it is checked whether or not the amount condition classification 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: Yes in FIG. 19), it is determined whether or not the condition "divided balance amount explained in S4<amount condition in the first row record of the assessment division cursor 106e" is satisfied. , are checked as follows (S29 in FIG. 19). First, the value acquiring unit 102c3 acquires the amount of the balance category 1 (corresponding to the “balance 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 classification, the value (corresponding to the "value of the balance amount variable at the time of execution of this process" of the present invention) obtained when executing the process for obtaining the value of the divided balance amount described in S4 is obtained. Then, the determination unit 102c4 determines that the value of the divided balance amount obtained by the value obtaining unit 102c3 at the time of execution of the value obtaining process (corresponding to the "value" of the present invention) is the assessment division condition ( It is determined whether the combination of the money amount condition and the money amount condition category (corresponding to the "money 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)に進む。 If the determining unit 102c4 determines that the condition is satisfied (S29 in FIG. 19: Yes), the split pattern flag is determined as follows according to the accrued amount category in the record on the first line of the assessment split cursor 106e. (S30 in FIG. 19). That is, when the accrual amount category is 0, the split pattern flag is 1, when the accrual amount category is 1, the split pattern flag is 2, and when the accrual amount category is 2, the split pattern flag is 3. . Then, the process proceeds to FIG. 21(A).

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

図19のS28に戻り、前記金額条件区分が0ではない場合(図19のS28:No)、査定分割カーソル106eのレコードにおける前記金額条件区分が「1:以下」であるか否かがチェックされる(図19のS31)。 Returning to S28 of FIG. 19, if the amount condition classification is not 0 (S28 of FIG. 19: No), it is checked whether or not the amount condition classification 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: Yes in FIG. 19), whether or not the condition "the divided balance amount explained in S4≦the amount condition in the first row record of the assessment division cursor 106e" is satisfied is checked as follows (S32 in FIG. 19). First, the value acquiring unit 102c3 acquires the amount of the balance category 1 (corresponding to the “balance 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 classification, the value (corresponding to the "value of the balance amount variable at the time of execution of this process" of the present invention) obtained when executing the process for obtaining the value of the divided balance amount described in S4 is obtained. Then, the determination unit 102c4 determines that the value of the divided balance amount obtained by the value obtaining unit 102c3 at the time of execution of the value obtaining process (corresponding to the "value" of the present invention) is the assessment division condition ( It is determined whether the combination of the money amount condition and the money amount condition category (corresponding to the "money 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)に進む。 If the determining unit 102c4 determines that the condition is satisfied (S32 in FIG. 19: Yes), the split pattern flag is determined as follows according to the accrued amount category in the record on the first line of the assessment split cursor 106e. (S33 in FIG. 19). That is, when the accrual amount category is 0, the split pattern flag is 1, when the accrual amount category is 1, the split pattern flag is 2, and when the accrual amount category is 2, the split pattern flag is 3. . Then, the process proceeds to FIG. 21(A).

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

図19のS31に戻り、前記金額条件区分が1ではない場合(図19のS31:No)、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「2:以上」であるか否かがチェックされる(図19のS34)。 Returning to S31 of FIG. 19, if the amount condition classification is not 1 (S31 of FIG. 19: No), it 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), the following is determined whether the condition "the divided balance amount described in S4≧the amount condition in the record of the assessment division cursor 106e" is satisfied. It is checked in this way (S35 in FIG. 19). First, the value acquiring unit 102c3 acquires the amount of the balance category 1 (corresponding to the “balance 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 classification, the value (corresponding to the "value of the balance amount variable at the time of execution of this process" of the present invention) obtained when executing the process for obtaining the value of the divided balance amount described in S4 is obtained. Then, the determination unit 102c4 determines that the value of the divided balance amount obtained by the value obtaining unit 102c3 at the time of execution of the value obtaining process (corresponding to the "value" of the present invention) is the assessment division condition ( It is determined whether the combination of the money amount condition and the money amount condition category (corresponding to the "money 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 the determining unit 102c4 determines that the conditions are satisfied (S35 in FIG. 19: Yes), the split pattern flag is determined as follows according to the accrued amount category in the record on the first line of the assessment split cursor 106e. (S36 in FIG. 19). That is, when the accrual amount category is 0, the split pattern flag is 1, when the accrual amount category is 1, the split pattern flag is 2, and when the accrual amount category is 2, the split pattern flag is 3. . Then, the process proceeds to FIG. 21(A).

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

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

図20(A)に進むと、査定分割カーソル106eの1行目のレコードにおける前記金額条件区分が「3:超」であるか否かがチェックされる(図20のS37)。 Proceeding to FIG. 20A, 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" (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: Yes in FIG. 20), whether or not the condition "the divided balance explained in S4>the amount condition in the first row record of the assessment division cursor 106e" is satisfied is checked as follows (S38 in FIG. 20). First, the value acquiring unit 102c3 acquires the amount of the balance category 1 (corresponding to the “balance 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 classification, the value (corresponding to the "value of the balance amount variable at the time of execution of this process" of the present invention) obtained when executing the process for obtaining the value of the divided balance amount described in S4 is obtained. Then, the determination unit 102c4 determines that the value of the divided balance amount obtained by the value obtaining unit 102c3 at the time of execution of the value obtaining process (corresponding to the "value" of the present invention) is the assessment division condition ( It is determined whether the combination of the money amount condition and the money amount condition category (corresponding to the "money 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)に進む。 If the determination unit 102c4 determines that the conditions are satisfied (S38 in FIG. 20: Yes), the split pattern flag is determined as follows according to the accrued amount category in the record on the first line of the assessment split cursor 106e. (S39 in FIG. 20). That is, when the accrual amount category is 0, the split pattern flag is 1, when the accrual amount category is 1, the split pattern flag is 2, and when the accrual amount category is 2, the split pattern flag is 3. . Then, the process proceeds to FIG. 19B.

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

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

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

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

[3-3-4.算出処理および更新処理]
図21(A)に進むと、前記分割パターンフラグが1であるか否かがチェックされる(図21のS42)。
[3-3-4. Calculation processing and update processing]
Proceeding to FIG. 21A, it is checked whether 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 split pattern flag is 1 (the accrued amount category is 0)]
When the division pattern flag is 1 (S42 in FIG. 21: Yes), values are set (substituted) in the division amount and the division remaining amount as follows. First, the calculation unit 102c5 acquires the accrued amount category 0 (corresponding to the “full 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 acquisition unit 102c2. According to the output classification included in the information, the divided amount corresponding to the output classification is calculated based on the information or the value obtained by the value obtaining unit 102c3. Specifically, the calculation unit 102c5 substitutes the value of the divided balance amount into the divided amount (S43 in FIG. 21). Next, the updating unit 102c6 subtracts the divided amount calculated by the calculating unit 102c5 from the value of the divided balance amount (corresponding to the "balance amount variable" of the present invention) at the time of execution of the update process, (corresponding to the "remaining amount variable" of the present invention), the divided remaining amount is updated. Specifically, the split balance amount is updated by substituting the value obtained by subtracting the split amount calculated by the calculation unit 102c5 from the split balance amount (S43 in FIG. 21). .

一方で、前記分割パターンフラグが1ではない場合(図21のS42:No)、前記分割パターンフラグが2であるか否かがチェックされる(図21のS44)。 On the other hand, if the division pattern flag is not 1 (S42 in FIG. 21: No), it is checked whether 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 split pattern flag is 2 (the accrued amount category is 1)]
If the split pattern flag is 2 (S44: Yes in FIG. 21), whether or not the condition "the split balance amount explained in S4≧the accrued amount in the first row record of the assessment split 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)に進む。 If the above conditions are satisfied (S45 in FIG. 21: Yes), values are set (assigned) to the divided amount and the remaining divided amount as follows. First, the calculating unit 102c5 obtains the accrued 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 the accrued amount of money (equivalent to the "predetermined amount" of the present invention), according to the output classification included in the combination information, the divided amount corresponding to the output classification is determined based on the information or the value obtained by the value obtaining unit 102c3. Calculate to Specifically, the calculation unit 102c5 substitutes the accrued amount in the record on the first line of the assessment division cursor 106e into the division amount (S46 in FIG. 21). Next, the updating unit 102c6 subtracts the divided amount calculated by the calculating unit 102c5 from the value of the divided balance amount (corresponding to the "balance amount variable" of the present invention) at the time of execution of the update process, (corresponding to the "remaining amount variable" of the present invention), the divided remaining amount is updated. Specifically, the split balance amount is updated by substituting a value obtained by subtracting the split amount calculated by the calculation unit 102c5 from the split balance amount (S48 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

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

分割パターンフラグが3である場合(図21のS49:Yes)、査定分割カーソル106eの1行目のレコードにおける前記残金区分が「0:全体」であるか否かがチェックされる(図21のS50)。 If the split pattern flag is 3 (S49 of FIG. 21: Yes), it is checked whether the balance classification in the record on the first line of the assessment split cursor 106e is "0: whole" (see 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 judgment amount as follows. That is, the calculation unit 102c5 substitutes the split principal amount described in S4×(the accrued amount in the first row record of the assessment split cursor 106e/100) into the judgment amount (S51 in FIG. 21).

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

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

一方で、前記端数が0ではない場合(図21のS53:No)、以下のようにして、値がセット(代入)される。すなわち、算出部102c5は、FLOOR((前記判断金額/前記端数)×10)/10の値を、判断倍数に代入し、更に、当該判断倍数を査定分割カーソル106eのレコードにおける前記端数区分により端数処理することにより、判断倍数を算出する(図21のS55)。 On the other hand, if the fraction is not 0 (S53 in FIG. 21: No), a value is set (assigned) as follows. That is, the calculation unit 102c5 substitutes the value of FLOOR ((said judgment amount/said fraction) x 10)/10 for the judgment multiple, and furthermore, substitutes the judgment multiple for the judgment multiple according to the fraction classification in the record of the assessment division cursor 106e. By processing, the judgment 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 obtains the accrued amount category 2 (corresponding to the "ratio reference amount output category" of the present invention) included in the assessment split condition (corresponding to the "split rule" of the present invention) ) and the proportional division ratio (corresponding to the “predetermined ratio” of the present invention), the divided amount corresponding to the output classification is obtained by the information or the value obtained by the value obtaining unit 102c3 calculated based on Specifically, the calculation unit 102c5 substitutes the calculation result of the fraction×the determination multiple into the divided amount (S56 in FIG. 21).

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

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

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

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

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

[3-3-5.分割金額出力処理の終了]
図16(A)に進むと、前記分割パターンフラグが-1以外の場合には、査定分割ワーク106fに請求明細が1行追加される(図16のS12)。すなわち、S11の前記分割金額を1請求として査定分割ワーク106fが作成される(図16のS12)。そして、図15(A)に戻る。
[3-3-5. End of divided amount output processing]
Proceeding to FIG. 16A, if the division pattern flag is other than -1, one line of invoice details is added to the assessment division work 106f (S12 in FIG. 16). That is, the appraisal divided work 106f is created with the divided amount in S11 as one claim (S12 in FIG. 16). Then, return 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 records on the second and subsequent rows of the assessment division cursor 106e, and when all records have been called, the processing of the assessment division cursor 106e is terminated. (S9 in FIG. 15: end of processing, start processing of the next statement). Then, the process returns to S3 in 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 lines of the order request cursor 106c. :Processing Exit).

以上のようにして、分割金額出力部102cは、規則取得部102c2、値取得部102c3、判断部102c4、算出部102c5および更新部102c6を複数回動作させることにより、複数の分割金額を出力することができる。なお、前記分割金額出力処理は、図6に示す査定分割入力画面を通して行うことができる。 As described above, the split amount output unit 102c operates 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, thereby outputting a plurality of split amounts. can be done. The split amount output process can be performed through the assessment split input screen shown in FIG.

そして、前記複数の分割金額を請求税込金額として含む査定分割ワーク106fが更新され、更新された査定分割ワーク106fを基にして請求データ106gが作成される。 Then, the assessment divided work 106f that includes the plurality of divided amounts as billing tax-included amounts is updated, and billing data 106g is created based on the updated assessment divided 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 of the purchase order, the confirmation, and the invoice. An example of the document data is shown in FIG. As for the document data of the invoice, only the division of assessment can be created. Further, the document data of the invoice includes the divided amount calculated by the calculation unit 102c5 in [3-3] as the billed amount, as shown in (1) to (3) of FIG.

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

[4.処理詳細]
本項目では、業務支援装置100で実行される処理の詳細について説明する。
[4. Processing details]
In this section, the details of the processing executed by the business support device 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 in the appraisal split master 106d, a full invoice will be created for one item. As an overview, if the appraisal division master 106d is not set, as shown in FIG. 9, the billing data 106g including the billing details with the total billing amount including the billing amount of 194,400 yen including the total purchase amount including tax is created. . Detailed processing is described below.

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

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

次に、図25に示すように、発注依頼カーソル106cの1行目の集約明細が呼び出される(図15のS3)。 Next, as shown in FIG. 25, the consolidated details on 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 amount of 194,400 yen in the summed up details on the first line that has been called up for the divided principal amount, and the order consumption tax amount of 14,400 yen in the summed up details on the first line that has been called up. to the split amount of consumption tax, assign the above split amount of 194,400 yen to the split remaining amount, assign the above split amount of 14,400 yen to the split remaining consumption tax amount, and set "1" to the invoice split number. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。 Next, the rule acquisition unit 102c2 acquires the assessment split conditions from the assessment split 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, the content of the assessment split master 106d for the supplier code 0000000001 is not set, so the rule acquisition unit 102c2 sets the assessment split condition. cannot be obtained. That is, the number of acquisitions of the assessment division condition is 0 (S6: Yes in FIG. 15).

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

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

すなわち、まず、図27に示すように、発注依頼カーソル106cの2行目の集約明細が呼び出される(図15のS3)。 That is, first, as shown in FIG. 27, the consolidated details on 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 amount of 200,000 yen in the summed up details on the second line, into the division principal amount, and the order consumption tax amount of 0 yen in the summed up details on the second line. to the split amount of consumption tax, assign the above split amount of 200,000 yen to the split remaining amount, assign the above split amount of 0 yen to the split remaining consumption tax amount, and set "1" to the invoice division number. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。 Next, the rule acquisition unit 102c2 acquires the assessment split conditions from the assessment split 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, the content of the assessment split master 106d for the supplier code 0000000002 is not set, so the rule acquisition unit 102c2 sets the assessment split condition. cannot be obtained. That is, the number of acquisitions of the assessment division condition is 0 (S6: Yes in FIG. 15).

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

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

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

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

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1~2行目の発注確定明細が集約されて、図30の発注依頼カーソル106cの1行目に格納される(図15のS2)。 Next, from the updated order detail work 106b, 1 to 2 with the same combination of the division code, supplier code, order date, project code, project branch number, construction number and construction division The confirmed order details of the row are aggregated and stored in the first row 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 consolidated details on 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 amount of 194,400 yen in the summed up details on the first line that has been called up for the divided principal amount, and the order consumption tax amount of 14,400 yen in the summed up details on the first line that has been called up. to the split amount of consumption tax, assign the above split amount of 194,400 yen to the split remaining amount, assign the above split amount of 14,400 yen to the split remaining consumption tax amount, and set "1" to the invoice split number. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。 Next, the rule acquisition unit 102c2 acquires the assessment split conditions from the assessment split 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, one assessment split condition is set in the assessment split master 106d, so the rule acquisition unit 102c2 acquires the assessment split condition. be able to. That is, the number of acquisitions 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 split master 106d of FIG. 29 is stored in the assessment split cursor 106e (S8 of FIG. 15).

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

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

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

この場合、前記分割元金額194,400円が規則取得部102c2で取得した条件である「100,000円未満」を満たしていないと判断される。 In this case, it is determined that the above-mentioned split principal amount of 194,400 yen does not satisfy the condition "less than 100,000 yen" 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 conditions are not satisfied, the remaining split amount of 194,400 yen in S4 is substituted as the split amount, and the remaining split consumption tax amount of 14,400 yen in S4 is substituted as the split consumption tax amount. 0 is substituted for the amount, and 0 is substituted for the division pattern flag (S11 in FIG. 15). Then, the process proceeds to FIG. 16(A).

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

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

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

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

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1~2行目の発注確定明細が集約されて、図35の発注依頼カーソル106cの1行目に格納される(図15のS2)。 Next, from the updated order detail work 106b, 1 to 2 with the same combination of the division code, supplier code, order date, project code, project branch number, construction number and construction division The confirmed order details of the row are aggregated and stored in the first row 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 on 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 amount of 194,400 yen in the summed up details on the first line that has been called up for the divided principal amount, and the order consumption tax amount of 14,400 yen in the summed up details on the first line that has been called up. to the split amount of consumption tax, assign the above split amount of 194,400 yen to the split remaining amount, assign the above split amount of 14,400 yen to the split remaining consumption tax amount, and set "1" to the invoice split number. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。 Next, the rule acquisition unit 102c2 acquires the assessment split conditions from the assessment split 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, one assessment split condition is set in the assessment split master 106d, so the rule acquisition unit 102c2 acquires the assessment split condition. be able to. That is, the number of acquisitions 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 split master 106d of FIG. 34 is stored in the assessment split cursor 106e (S8 of FIG. 15).

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

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

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

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

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

前記条件が満たされていると判断された場合、図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 obtained split principal amount of 194,400 yen is determined according to the accrued amount classification "0: full amount" included in the record on the first line of the assessment split cursor 106e of FIG. The total amount is substituted for the split amount (S11 in FIG. 15). In addition, since the 194,400 yen is the same value as the 194,400 yen divided balance amount in S4, it can be said that the 194,400 yen divided balance amount in S4 is substituted for the divided amount. Also, 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).

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

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

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

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

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1~2行目の発注確定明細が集約されて、図40の発注依頼カーソル106cの1行目に格納される(図15のS2)。 Next, from the updated order detail work 106b, 1 to 2 with the same combination of the division code, supplier code, order date, project code, project branch number, construction number and construction division The confirmed order details of the row are aggregated and stored in the first row 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 on 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 amount of 194,400 yen in the summed up details on the first line that has been called up for the divided principal amount, and the order consumption tax amount of 14,400 yen in the summed up details on the first line that has been called up. to the split amount of consumption tax, assign the above split amount of 194,400 yen to the split remaining amount, assign the above split amount of 14,400 yen to the split remaining consumption tax amount, and set "1" to the invoice split number. (S4 in FIG. 15).

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

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

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

本例においては、査定分割カーソル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 number of acquired records of the assessment division cursor 106e is greater than 1 (S10 in FIG. 15: number of acquired records>1). Further, in this example, the balance category in the record of the first row is "0: whole" (S13: YES in FIG. 15). In this example, the amount condition classification in the record of the first row is neither "0: less than" (S14: No in FIG. 17) nor "1: less than or equal to" (S17: No in FIG. 17). ), and "2: greater than or equal to" (S20 of FIG. 17: YES).

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

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

本例においては、前段落で説明したとおり、前記分割パターンフラグは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 in FIG. 21: No) but 2 (S44 in FIG. 21: Yes).

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

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

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

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

本例においては、査定分割カーソル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 number of acquired records of the assessment division cursor 106e is greater than 1 (S10 in FIG. 15: number of acquired records>1). Also, in this example, the balance classification in the second row record is not "0: whole" (S13 of FIG. 15: No). In this example, the amount condition classification in the record on the second line is neither "0: less than" (S28: No in FIG. 19) nor "1: less than or equal to" (S31: No in FIG. 19). ), neither "2: more than" (S34: No in FIG. 19), neither "3: over" (S37: No in FIG. 20), and "9: none" (S40: Yes in FIG. 20).

ここで、値取得部102c3は、図44に示す前記査定分割条件に含まれる残金区分1の金額区分に従って、[4-4-1]で更新した前記分割残金額94,400円を取得する。 Here, the value acquisition unit 102c3 acquires the split balance amount of 94,400 yen updated in [4-4-1] according to the amount category of the balance category 1 included in the assessment 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 on the second line is "9: none", there is no condition that the acquired divided balance amount of 94,400 yen should satisfy. Therefore, the process proceeds to S41 of FIG. 20, and the division pattern flag is set to 1 according to the accrued amount category 0 in the second row record. Then, the process proceeds to FIG. 19(D) and then to FIG. 21(A).

本例においては、前段落で説明したとおり、前記分割パターンフラグは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 divided amount corresponding to the incurred amount category "0: full amount" included in the record on the second line of the assessment division cursor 106e in FIG. That is, when the accrual amount category is "0: full amount", the value obtained by the value obtaining unit 102c3 is output as the divided amount. The amount of 944,00 yen is substituted for the divided amount (S43 in FIG. 21). Next, the update unit 102c6 substitutes 0 yen, which is a value obtained by subtracting the divided balance amount of 94,400 yen calculated by the calculation unit 102c5 from the divided balance amount of 94,400 yen updated in [4-4-1], into the divided balance amount. By doing so, the divided balance amount is updated (S43 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

[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 a result of the processing described in [4-4-1] and [4-4-2] above, there is no remaining detail in the assessment split cursor 106e (because all records in the assessment split cursor 106e have been called). The process of the division cursor 106e is exited (S9 in FIG. 15: end of process, start of next detail process). Then, since there are no remaining details in the order request cursor 106c (because all the details in the order request cursor 106c have been called), the processing of the order request cursor 106c is exited (S3 in FIG. 15: end of processing), and all processing is completed. 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 dividing based on the proportional division rate and the total amount of the balance]
As an overview of splitting based on the apportionment rate and the total amount of the remaining balance, as shown in Figure 13, the total amount including the order tax of 194,400 yen is apportioned at a 30% apportionment rate, and the amount of 58,320 yen is the billing statement with the billing amount including tax. , the billing statement with the invoice tax amount of 97,200 yen obtained by dividing the total order tax included amount of 194,400 yen at a proportional division rate of 50%, and Billing data 106g including a billing statement of the total amount of 38,880 yen including the billing tax of 38,880 yen is created. Detailed processing is described below.

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

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1~2行目の発注確定明細が集約されて、図46の発注依頼カーソル106cの1行目に格納される(図15のS2)。 Next, from the updated order detail work 106b, 1 to 2 with the same combination of the division code, supplier code, order date, project code, project branch number, construction number and construction division The confirmed order details of the row are aggregated and stored in the first row 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 on 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 amount of 194,400 yen in the summed up details on the first line that has been called up for the divided principal amount, and the order consumption tax amount of 14,400 yen in the summed up details on the first line that has been called up. to the split amount of consumption tax, assign the above split amount of 194,400 yen to the split remaining amount, assign the above split amount of 14,400 yen to the split remaining consumption tax amount, and set "1" to the invoice split number. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。 Next, the rule acquisition unit 102c2 acquires the assessment split conditions from the assessment split 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, three assessment split conditions are set in the assessment split master 106d, so the rule acquisition unit 102c2 acquires the assessment split conditions. be able to. That is, the number of acquisitions 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 split master 106d of FIG. 45 is stored in the assessment split cursor 106e (S8 of FIG. 15).

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

本例においては、査定分割カーソル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 number of acquired records of the assessment division cursor 106e is greater than 1 (S10 in FIG. 15: number of acquired records>1). Further, in this example, the balance category in the record of the first row is "0: whole" (S13: YES in FIG. 15). In this example, the amount condition classification in the record of the first row is neither "0: less than" (S14: No in FIG. 17) nor "1: less than or equal to" (S17: No in FIG. 17). ), and "2: greater than or equal to" (S20 of FIG. 17: YES).

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

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

本例においては、前段落で説明したとおり、前記分割パターンフラグは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 of FIG. 21: No) nor 2 (S44 of FIG. 21: No) but is 3 (S49 of 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 first row record is "0: whole" (S50 in FIG. 21: Yes), the calculation unit 102c5 194,400 yen x (proportional division ratio 30%/100 in the first row record) = 58,320 yen is substituted for 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 amount fractional unit in the first row record is 0, the fractional number is 1 (S53 in FIG. 21: No). In this case, the calculation unit 102c5 substitutes FLOOR ((the judgment amount 58,320 yen/the fraction 1) × 10)/10 = 58,320 yen for the judgment multiple, and further substitutes the judgment multiple 58,320 yen for the first line. A judgment multiple of 58,320 yen is calculated by rounding down according to the fraction division in the record (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 divided 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 condition "the split amount of 194,400 yen explained in S4<the split amount of 58,320 yen explained in S56" is not satisfied (S57 in FIG. 21: No), and an illegal setting is made. do not have. Also, in this example, the condition "the divided balance amount of 194,400 yen explained in S4<the divided amount of 58,320 yen explained in S56" is not satisfied (S59 of FIG. 21: No), and an illegal setting has not been made. do not have.

次に、更新部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 updating unit 102c6 substitutes 136,080 yen, which is the result of subtracting the divided balance amount of 194,400 yen described in S4 from the divided balance amount of 58,320 yen described in S56, into the divided balance amount. The amount is updated (S61 in FIG. 21). In addition, the calculation unit 102c5 divides 4,320 yen, which is the result of calculating the above-mentioned consumption tax amount 14,400 yen described in S4 × (the above-mentioned split amount 58,320 yen described in S56/the above-mentioned split amount 194,400 yen described in S4). Substitute into the amount of consumption tax (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 remaining consumption tax amount of 14,400 yen described in S4, into the divided remaining consumption tax amount. The divided remaining consumption tax amount is updated (S61 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

[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 record on the second row of the assessment division cursor 106e]
Returning to FIG. 15A, as shown in FIG. 50, the record on the second line of the assessment division cursor 106e is called (S9 in FIG. 15). Here, the record on the second line of the assessment split cursor 106e contains the same information as the record on the first line of the assessment split cursor 106e, except that the apportionment rate is 50%. Therefore, since the same processing as the processing described in [4-5-1] is performed, only the calculation performed by the calculating unit 102c5 and the updating unit 102c6 for the second row record 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 principal amount of 194,400 yen described in S4×(the apportionment rate of 50%/100 in the second row record)=97,200 yen into the judgment 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 for the judgment multiple, and further substitutes the judgment multiple 97,200 yen for the second line. A judgment multiple of 97,200 yen is calculated by rounding down according to the fraction division in the record (S55 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes the fraction 1×the determination multiple 97,200 yen=97,200 yen for the division 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 update unit 102c6 subtracts the divided balance amount of 97,200 yen described in S56 from the divided balance amount of 136,080 yen updated in S61 of [4-5-1], and subtracts the divided balance amount of 38,800 yen from the divided balance amount of 38,800 yen. to update the divided balance amount (S61 in FIG. 21). Further, the calculation unit 102c5 calculates 7,200 yen, which is the calculation result of 14,400 yen for the divided consumption tax amount described in S4×(97,200 yen for the divided amount described in S56/194,400 yen for the divided amount described in S4). Substitute into the divided consumption tax amount (S61 in FIG. 21). Then, the updating unit 102c6 subtracts the divided consumption tax amount of 7,200 yen described in this paragraph from the remaining divided consumption tax amount of 10,080 yen updated in S61 of [4-5-1], and adds 2,880 yen to the remaining divided consumption tax amount of 2,880 yen. By substituting for the tax amount, the remaining divided consumption tax amount is updated (S61 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

[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 division cursor 106e]
Returning to FIG. 15A, as shown in FIG. 51, the record on the third line of the assessment division cursor 106e is called (S9 in FIG. 15). Then, the process described below is performed on the called record of the third row.

本例においては、査定分割カーソル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 number of acquired records of the assessment division cursor 106e is greater than 1 (S10 in FIG. 15: number of acquired records>1). Also, in this example, the balance category in the third row record is "1: balance" (S13 in FIG. 15: No). In this example, the amount condition classification in the third row record is neither "0: less than" (S28: No in FIG. 19) nor "1: less than or equal to" (S31: No in FIG. 19). ), neither "2: more than" (S34: No in FIG. 19), neither "3: more than" (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 amount of 38,800 yen updated in [4-5-2] according to the amount category of 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 of the third row is "9: none", there is no condition that the acquired divided balance amount of 38,800 yen should satisfy. Therefore, the process proceeds to S41 of FIG. 20, and the division pattern flag is set to 1 according to the accrued amount classification 0 in the record of the third row. Then, the process proceeds to FIG. 19(D) and then to FIG. 21(A).

本例においては、前段落で説明したとおり、前記分割パターンフラグは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 divided amount corresponding to the incurred amount category "0: full amount" included in the third row record of the assessment division cursor 106e in FIG. That is, when the accrual amount category is "0: full amount", the value obtained by the value obtaining unit 102c3 is output as the divided amount. The amount of 38,800 yen is substituted for the divided amount (S43 in FIG. 21). Next, the update unit 102c6 sets 0 yen, which is the value obtained by subtracting the divided balance amount of 38,800 yen calculated by the calculation unit 102c5 from the divided balance amount of 38,800 yen updated in [4-5-2], to the divided balance amount. By substituting, the divided balance amount is updated (S43 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

[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 a result of the processing described in [4-5-1] to [4-5-3] above, there is no remaining detail in the assessment split cursor 106e (because all records in the assessment split cursor 106e have been called). The process of the division cursor 106e is exited (S9 in FIG. 15: end of process, start of next detail process). Then, since there are no remaining details in the order request cursor 106c (because all the details in the order request cursor 106c have been called), the processing of the order request cursor 106c is exited (S3 in FIG. 15: end of processing), and all processing is completed. 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 performing a somewhat complicated division based on the pro rata ratio and the total amount of the balance]
As an overview of a somewhat complicated division based on the apportionment rate and the total amount of the remaining balance, as shown in Fig. 14, the total amount including the order tax of 194,400 yen is apportioned at a rate of 50%, resulting in an amount of 97,200 yen, which is the billing amount including tax. and the balance of 97,200 yen obtained by subtracting the above-mentioned apportioned amount of 97,200 yen from the total order tax-included amount of 194,400 yen. Billing statement with billing tax amount of 34,020 yen, which is the balance of 68,040 yen obtained by subtracting the apportioned amount of 29,160 yen from yen, and the amount of 34,020 yen obtained by apportioning the apportionment rate of 50%, and the balance of the above balance of 68,040 yen minus the apportioned amount of 34,020 yen. Billing data 106g including a billing statement with the total amount of 34,020 yen including billing tax of 34,020 yen is created. Detailed processing is described below.

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

次に、更新された発注明細ワーク106bから、前記分割コード、前記発注先コード、前記発注日、前記プロジェクトコード、前記プロジェクト枝番、前記工事番号および前記工事区分の組み合わせが同じである1~2行目の発注確定明細が集約されて、図53の発注依頼カーソル106cの1行目に格納される(図15のS2)。 Next, from the updated order detail work 106b, 1 to 2 with the same combination of the division code, supplier code, order date, project code, project branch number, construction number and construction division The confirmed order details of the row are aggregated and stored in the first row 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 on 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 amount of 194,400 yen in the summed up details on the first line that has been called up for the divided principal amount, and the order consumption tax amount of 14,400 yen in the summed up details on the first line that has been called up. to the split amount of consumption tax, assign the above split amount of 194,400 yen to the split remaining amount, assign the above split amount of 14,400 yen to the split remaining consumption tax amount, and set "1" to the invoice split number. (S4 in FIG. 15).

次に、規則取得部102c2は、査定分割マスタ106dから査定分割条件を取得する(図15のS5)。 Next, the rule acquisition unit 102c2 acquires the assessment split conditions from the assessment split 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, five assessment split conditions are set in the assessment split master 106d, so the rule acquisition unit 102c2 acquires the assessment split conditions. be able to. That is, the number of acquisitions 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 split master 106d of FIG. 52 is stored in the assessment split cursor 106e (S8 of 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 record on the first row of the assessment division cursor 106e]
Next, as shown in FIG. 56, it is called from the first row record of the assessment division cursor 106e (S9 in FIG. 15). Here, the record on the first line of the assessment division cursor 106e of this item [4-6] is the same as the record on the first line of the assessment division cursor 106e of [4-5] except that the apportionment rate is 50%. contain the same information. Therefore, since the same processing as the processing described in [4-5-1] is performed, only the calculation performed by the calculating unit 102c5 and the updating unit 102c6 for the first row record of the assessment division cursor 106e in FIG. will explain.

算出部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 principal amount 194,400 yen described in S4×(proportional division ratio 50%/100 in the first row record)=97,200 yen for the judgment 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 for the judgment multiple, and further substitutes the judgment multiple 97,200 yen for the first line. A judgment multiple of 97,200 yen is calculated by rounding down according to the fraction division in the record (S55 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes the fraction 1×the determination multiple 97,200 yen=97,200 yen for the division 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 updating unit 102c6 substitutes 97,200 yen, which is the result of subtracting the divided balance amount of 97,200 yen described in S56 from the divided balance amount of 194,400 yen described in S4, into the divided balance amount. The amount is updated (S61 in FIG. 21). In addition, the calculation unit 102c5 divides 7,200 yen, which is the result of calculation of the consumption tax amount 14,400 yen (the divided amount described in S56) x (the divided amount 97,200 yen described in S56/the divided amount 194,400 yen described in S4). Substitute into the amount of consumption tax (S61 in FIG. 21). Then, the updating unit 102c6 substitutes 7,200 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 14,400 yen described in S4, into the divided remaining consumption tax amount. The divided remaining consumption tax amount is updated (S61 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

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

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

この場合、「[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 divided balance amount updated in S61 of [4-6-1]<the amount condition in the second row record of the assessment division cursor 106e'' is satisfied is determined as follows. It is checked (S29 in FIG. 19). First, the value acquisition unit 102c3 acquires the split balance amount of 97,200 yen updated in S61 of [4-6-1] according to the amount category of balance category 1 included in the assessment split condition acquired by the rule acquisition unit 102c2. do. Then, the determination unit 102c4 decides that the divided balance amount of 97,200 yen acquired by the value acquisition unit 102c3 is "less than 50,000 yen", which is the combination of the amount condition and the amount condition category included in the assessment division condition acquired by the rule acquisition unit 102c2. ” is satisfied.

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

[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 division cursor 106e]
Returning to FIG. 15A, as shown in FIG. 58, the record on the third line of the assessment division cursor 106e is called (S9 in FIG. 15). Then, the process described below is performed on the called record of the third row.

本例においては、査定分割カーソル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 number of acquired records of the assessment division cursor 106e is greater than 1 (S10 in FIG. 15: number of acquired records>1). Also, in this example, the balance category in the third row record is "1: balance" (S13 in FIG. 15: No). In this example, the amount condition classification in the third row record is neither "0: less than" (S28: No in FIG. 19) nor "1: less than or equal to" (S31: No in FIG. 19). ), and "2: greater than or equal to" (S34 of FIG. 19: YES).

この場合、「[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 divided balance amount updated in S61 of [4-6-1]≧the amount condition in the third row record of the assessment division cursor 106e" is satisfied is determined as follows. It is checked (S35 in FIG. 19). First, the value acquisition unit 102c3 acquires the split balance amount of 97,200 yen updated in S61 of [4-6-1] according to the amount category of balance category 1 included in the assessment split condition acquired by the rule acquisition unit 102c2. do. Then, the determination unit 102c4 determines that the divided balance amount of 97,200 yen acquired by the value acquisition unit 102c3 is "50,000 yen or more" in the combination of the amount condition and the amount condition category included in the assessment division condition acquired by the rule acquisition unit 102c2. ” is satisfied.

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

本例においては、前段落で説明したとおり、前記分割パターンフラグは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 of FIG. 21: No) nor 2 (S44 of FIG. 21: No) but is 3 (S49 of 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 of the third row is "1: Balance" (S50 in FIG. 21: No), the calculation unit 102c5 performs [4-6-1]. The divided balance amount 97,200 yen updated in S61×(proportional division ratio 30%/100 in the third row record)=29,160 yen is substituted for 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 amount fraction unit in the third row record is 0, the fraction is 1 (S53 in FIG. 21: No). In this case, the calculation unit 102c5 substitutes FLOOR ((the judgment amount 29,160 yen/the fraction 1) × 10)/10 = 29,160 yen for the judgment multiple, and further substitutes the judgment multiple 29,160 yen for the third line. A judgment multiple of 29,160 yen is calculated by rounding down according to the fraction division 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 29,160 yen=29,160 yen for the divided 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 above-mentioned division amount of 194,400 yen explained in S4<the above-mentioned division amount of 29,160 yen explained in S56" is not satisfied (S57 in FIG. 21: No), and the setting is incorrect. is not done. In addition, in this example, the condition "97,200 yen for the remaining split amount updated in S61 of [4-6-1]<29,160 yen for the split amount explained in S56" is not satisfied (S59 in FIG. 21: No). , is not configured incorrectly.

次に、更新部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 updating unit 102c6 subtracts the divided balance amount of 29,160 yen described in S56 from the divided balance amount of 97,200 yen updated in S61 of [4-6-1], and subtracts the divided balance amount of 68,040 yen from the divided balance amount of 68,040 yen. to update the divided balance amount (S61 in FIG. 21). Further, the calculation unit 102c5 divides 2,160 yen, which is the result of calculation of the above-mentioned split source consumption tax amount of 14,400 yen described in S4 × (the above-mentioned split amount of 29,160 yen described in S56/the above-mentioned split base amount of 194,400 yen described in S4). Substitute into the amount of consumption tax (S61 in FIG. 21). Then, the updating unit 102c6 subtracts the divided remaining consumption tax amount of 7,200 yen updated in S61 of [4-6-1] from the divided remaining consumption tax amount of 2,160 yen described in this paragraph, which is 5,040 yen. By substituting for the tax amount, the remaining divided consumption tax amount is updated (S61 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

[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 row record of the assessment division cursor 106e]
Returning to FIG. 15A, as shown in FIG. 59, the record on the fourth line of the assessment division cursor 106e is called (S9 in FIG. 15). Here, the record on the fourth line of the assessment split cursor 106e contains the same information as the record on the third line of the assessment split cursor 106e, except that the apportionment rate is 50%. Therefore, since the same processing as the processing described in [4-6-3] is performed, only the calculation performed by the calculating unit 102c5 and the updating unit 102c6 for the fourth row record 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 divided balance amount 68,040 yen updated in S61 of [4-6-3] × (proportional division ratio 50%/100 in the record of the fourth row) = 34,020 yen for the judgment amount ( S51 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes FLOOR ((the judgment amount of 34,020 yen/the fraction 1)×10)/10=34,020 yen into the judgment multiple, and further substitutes the judgment multiple of 34,020 yen into the fourth line. A judgment multiple of 34,020 yen is calculated by rounding down according to the fractional division in the record (S55 in FIG. 21). Subsequently, the calculation unit 102c5 substitutes 34,020 yen = 34,020 yen for the fraction 1 x the judgment multiple (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 update unit 102c6 subtracts the divided balance amount of 34,020 yen described in S56 from the divided balance amount of 68,040 yen updated in S61 of [4-6-3], and subtracts the divided balance amount of 34,020 yen from the divided balance amount of 34,020 yen. to update the divided balance amount (S61 in FIG. 21). In addition, the calculation unit 102c5 divides 2,520 yen, which is the result of calculation of the consumption tax amount of 14,400 yen (the divided amount of 34,020 yen described in S56/the divided amount of 194,400 yen described in S4). Substitute into the amount of consumption tax (S61 in FIG. 21). Then, the updating unit 102c6 subtracts 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], and adds 2,520 yen to the divided remaining consumption tax amount of 2,520 yen. By substituting for the tax amount, the remaining divided consumption tax amount is updated (S61 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

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

本例においては、査定分割カーソル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 number of acquired records of the assessment division cursor 106e is greater than 1 (S10 in FIG. 15: number of acquired records>1). Also, in this example, the balance category in the record on the fifth line is "1: Balance" (S13 in FIG. 15: No). In this example, the amount condition classification in the fifth row record is neither "0: less than" (S28: No in FIG. 19) nor "1: less than or equal to" (S31: No in FIG. 19). ), neither "2: more than" (S34: No in FIG. 19), neither "3: over" (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 balance amount of 34,020 yen updated in [4-6-4] according to the amount category of the balance category 1 included in the assessment 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 on the fifth line is "9: None", there is no condition that the acquired divided balance amount of 34,020 yen should satisfy. Therefore, the process proceeds to S41 in FIG. 20, and the division pattern flag is set to 1 according to the accrued amount category 0 in the record of the fifth row. Then, the process proceeds to FIG. 19(D) and then to FIG. 21(A).

本例においては、前段落で説明したとおり、前記分割パターンフラグは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 divided amount corresponding to the incurred amount category "0: full amount" included in the record on the fifth line of the assessment division cursor 106e in FIG. That is, when the accrual amount category is "0: full amount", the value obtained by the value obtaining unit 102c3 is output as the divided amount. The 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 the value obtained by subtracting the divided balance amount of 34,020 yen calculated by the calculation unit 102c5 from the divided balance amount of 34,020 yen updated in [4-6-4], to the divided balance amount. By substituting, the divided balance amount is updated (S43 in FIG. 21). Then, the process proceeds to FIG. 16(A).

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

[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 a result of the processing described in [4-6-1] to [4-6-5] above, there is no remaining detail in the assessment split cursor 106e (because all records in the assessment split cursor 106e have been called). The process of the division cursor 106e is exited (S9 in FIG. 15: end of process, start of next detail process). Then, since there are no remaining details in the order request cursor 106c (because all the details in the order request cursor 106c have been called), the processing of the order request cursor 106c is exited (S3 in FIG. 15: end of processing), and all processing is completed. 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 device 100 according to the present embodiment, the principal amount to be divided is divided and a plurality of divided amounts are output. be able to. As a result, it is possible to greatly reduce the burden that has conventionally been required for dividing the bill amount.

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

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

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

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

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

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

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

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

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

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

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

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

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 unit
102b Order Confirmation Processing Unit
102c division amount output unit
102c1 Initial value setting part
102c2 Rule Acquisition Unit
102c3 value acquisition unit
102c4 decision unit
102c5 calculator
102c6 update part
102d document data creation unit
102e purchase input unit 104 communication interface unit 106 storage unit
106a Order request data
106b Order details work
106c Order request cursor
106d Master of assessment division method at the time of customer order
106e Assessment division cursor when placing an order with a customer
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 (4)

制御部を備える業務支援装置であって、
前記制御部は、分割の元となる元金額を複数の支払時期に分割して複数の分割金額を出力する分割金額出力手段を備え、
前記分割金額出力手段は、
前記元金額を元金額変数および残金額変数に代入する初期値設定手段と、
複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得手段と、
前記規則取得手段で取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得手段と、
前記値取得手段で取得した前記値が前記規則取得手段で取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断手段と、
前記判断手段で前記金額条件が満たされていると判断された場合、前記規則取得手段で取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得手段で取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得手段で取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得手段で取得した前記値を基に算出する算出手段と、
前記残金額変数の本処理実行時の値から前記算出手段で算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新手段と、
を備え、
前記規則取得手段、前記値取得手段、前記判断手段、前記算出手段および前記更新手段を複数回動作させ、
前記元金額は、デベロッパーが工事会社に発注した戸建住宅の建設工事に係る発注金額であり、
前記分割金額は、前記工事会社が前記デベロッパーに請求する前記建設工事に係る請求金額であって、前記デベロッパーが前記発注のときに前記工事会社に送る請求書に記載されるものであること、
を特徴とする業務支援装置。
A business support device comprising a control unit,
The control unit comprises split amount output means for outputting a plurality of split amounts by splitting the principal amount that is the basis for splitting into a plurality of payment periods ,
The divided amount output means is
initial value setting means for substituting the principal amount into a principal amount variable and a balance amount variable;
rule acquisition means for acquiring the division rule from a division rule set including a plurality of division rules;
Among the principal amount classification meaning to obtain the value of the principal amount variable and the balance amount classification meaning to obtain the value of the balance amount variable included in the division rule obtained by the rule obtaining means a value acquiring means for acquiring the value of the principal amount variable or the value of the balance amount variable at the time of execution of this process according to any of the amount categories;
judgment means for judging whether the value acquired by the value acquisition means satisfies an amount condition included in the division rule acquired by the rule acquisition means;
a predetermined amount output classification, which means that a predetermined amount included in the division rule obtained by the rule obtaining unit is output as the divided amount when the determining means determines that the amount condition is satisfied; and The combination of the predetermined amount, the ratio reference amount output category meaning that the product of the value obtained by the value obtaining means and a predetermined ratio is output as the divided amount, the combination of the predetermined ratio, and the value obtained by the value obtaining means Acquisition of the divided amount corresponding to the output classification by the information or the value obtaining means according to the output classification included in any information of the full output classification meaning that the value is output as the divided amount a calculation means for calculating based on the value obtained;
updating means for substituting, into the balance amount variable, a value obtained by subtracting the divided amount calculated by the calculation means from the value of the balance amount variable at the time of execution of this processing;
with
operating the rule acquisition means, the value acquisition means, the determination means, the calculation means, and the update means a plurality of times ;
The principal amount is the order amount for the construction work of the detached house ordered by the developer to the construction company,
The divided amount is the amount billed by the construction company to the developer for the construction work, and is described in the invoice sent by the developer to the construction company when placing the order;
A business support device characterized by:
表示部を備え、
前記分割金額出力手段は、前記表示部に表示されている、前記発注の内容を確定するための所定画面に前記元金額が設定されてから動作し始めること、
を特徴とする請求項に記載の業務支援装置。
Equipped with a display,
The divided amount output means starts operating after the principal amount is set on a predetermined screen for confirming the contents of the order displayed on the display unit;
The business support device according to claim 1 , characterized by:
制御部を備える業務支援装置で実行される分割金額出力方法であって、
前記制御部で実行される、分割の元となる元金額を複数の支払時期に分割して複数の分割金額を出力する分割金額出力ステップを含み、
前記分割金額出力ステップは、
前記元金額を元金額変数および残金額変数に代入する初期値設定ステップと、
複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得ステップと、
前記規則取得ステップで取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得ステップと、
前記値取得ステップで取得した前記値が前記規則取得ステップで取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断ステップと、
前記判断ステップで前記金額条件が満たされていると判断された場合、前記規則取得ステップで取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得ステップで取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得ステップで取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得ステップで取得した前記値を基に算出する算出ステップと、
前記残金額変数の本処理実行時の値から前記算出ステップで算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新ステップと、
を含み、
前記規則取得ステップ、前記値取得ステップ、前記判断ステップ、前記算出ステップおよび前記更新ステップは複数回実行され、
前記元金額は、デベロッパーが工事会社に発注した戸建住宅の建設工事に係る発注金額であり、
前記分割金額は、前記工事会社が前記デベロッパーに請求する前記建設工事に係る請求金額であって、前記デベロッパーが前記発注のときに前記工事会社に送る請求書に記載されるものであること、
を特徴とする分割金額出力方法。
A divided amount output method executed by a business support device comprising a control unit,
including a split amount output step of outputting a plurality of split amounts by splitting the principal amount that is the basis for splitting into a plurality of payment periods , 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 balance amount variable;
a rule acquisition step of acquiring the splitting rule from a splitting rule set including a plurality of splitting rules;
Among the principal amount classification meaning to obtain the value of the principal amount variable and the balance amount classification meaning to obtain the value of the balance amount variable included in the split rule obtained in the rule obtaining step a value acquisition step of acquiring the value of the principal amount variable or the value of the balance amount variable at the time of execution of this process according to one of the amount categories;
a judgment step of judging whether the value acquired in the value acquisition step satisfies an amount condition included in the division rule acquired in the rule acquisition step;
if it is determined in the determining step that the money amount condition is satisfied, a predetermined amount output classification that means that a predetermined amount is to be output as the divided amount included in the division rule acquired in the rule acquiring step; and The combination of the predetermined amount, the ratio reference amount output category meaning that the product of the value obtained in the value obtaining step and a predetermined ratio is output as the divided amount, the combination of the predetermined ratio, and the value obtained in the value obtaining step Acquiring the divided amount corresponding to the output classification in the information or the value obtaining step according to the output classification included in any information of the full output classification meaning that the value is output as the divided amount. A calculation step of calculating based on the value obtained;
an update step of substituting, into the balance amount variable, a value obtained by subtracting the divided amount calculated in the calculation step from the value of the balance amount variable at the time of execution of this process;
including
the rule acquisition step, the value acquisition step, the determination step, the calculation step, and the update step are performed multiple times ;
The principal amount is the order amount for the construction work of the detached house ordered by the developer to the construction company,
The divided amount is the amount billed by the construction company to the developer for the construction work, and is described in the invoice sent by the developer to the construction company when placing the order;
A split amount output method characterized by:
制御部を備える業務支援装置に実行させるための分割金額出力プログラムであって、
前記制御部に実行させるための、分割の元となる元金額を複数の支払時期に分割して複数の分割金額を出力する分割金額出力ステップを含み、
前記分割金額出力ステップは、
前記元金額を元金額変数および残金額変数に代入する初期値設定ステップと、
複数の分割規則を含む分割規則集合から前記分割規則を取得する規則取得ステップと、
前記規則取得ステップで取得した前記分割規則に含まれる、前記元金額変数の値を取得することを意味する元金額区分および前記残金額変数の値を取得することを意味する残金額区分のうちのいずれかの金額区分に従って、前記元金額変数の値または前記残金額変数の本処理実行時の値を取得する値取得ステップと、
前記値取得ステップで取得した前記値が前記規則取得ステップで取得した前記分割規則に含まれる金額条件を満たしているかを判断する判断ステップと、
前記判断ステップで前記金額条件が満たされていると判断された場合、前記規則取得ステップで取得した前記分割規則に含まれる、所定金額を前記分割金額として出力することを意味する所定額出力区分および前記所定金額の組み合わせ、前記値取得ステップで取得した前記値と所定比率の積を前記分割金額として出力することを意味する比率基準額出力区分および前記所定比率の組み合わせならびに前記値取得ステップで取得した前記値を前記分割金額として出力することを意味する全額出力区分のうちのいずれかの情報に含まれる出力区分に従って、前記出力区分と対応する前記分割金額を、前記情報または前記値取得ステップで取得した前記値を基に算出する算出ステップと、
前記残金額変数の本処理実行時の値から前記算出ステップで算出した前記分割金額を差し引いた値を前記残金額変数に代入する更新ステップと、
を含み、
前記規則取得ステップ、前記値取得ステップ、前記判断ステップ、前記算出ステップおよび前記更新ステップは複数回実行され、
前記元金額は、デベロッパーが工事会社に発注した戸建住宅の建設工事に係る発注金額であり、
前記分割金額は、前記工事会社が前記デベロッパーに請求する前記建設工事に係る請求金額であって、前記デベロッパーが前記発注のときに前記工事会社に送る請求書に記載されるものであること、
を特徴とする分割金額出力プログラム。
A divided amount output program to be executed by a business support device having a control unit,
including a split amount output step of outputting a plurality of split amounts by splitting the principal amount that is the basis for splitting into a plurality of payment periods, for execution 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 balance amount variable;
a rule acquisition step of acquiring the splitting rule from a splitting rule set including a plurality of splitting rules;
Among the principal amount classification meaning to obtain the value of the principal amount variable and the balance amount classification meaning to obtain the value of the balance amount variable included in the split rule obtained in the rule obtaining step a value acquisition step of acquiring the value of the principal amount variable or the value of the balance amount variable at the time of execution of this process according to one of the amount categories;
a judgment step of judging whether the value acquired in the value acquisition step satisfies an amount condition included in the division rule acquired in the rule acquisition step;
if it is determined in the determining step that the money amount condition is satisfied, a predetermined amount output classification that means that a predetermined amount is to be output as the divided amount included in the division rule acquired in the rule acquiring step; and The combination of the predetermined amount, the ratio reference amount output category meaning that the product of the value obtained in the value obtaining step and a predetermined ratio is output as the divided amount, the combination of the predetermined ratio, and the value obtained in the value obtaining step Acquiring the divided amount corresponding to the output classification in the information or the value obtaining step according to the output classification included in any information of the full output classification meaning that the value is output as the divided amount. A calculation step of calculating based on the value obtained;
an update step of substituting, into the balance amount variable, a value obtained by subtracting the divided amount calculated in the calculation step from the value of the balance amount variable at the time of execution of this process;
including
the rule acquisition step, the value acquisition step, the determination step, the calculation step, and the update step are performed multiple times ;
The principal amount is the order amount for the construction work of the detached house ordered by the developer to the construction company,
The divided amount is the amount billed by the construction company to the developer for the construction work, and is described in the invoice sent by the developer to the construction company when placing the order;
A divided 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 JP2019200678A (en) 2019-11-21
JP7122866B2 true 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004288027A (en) 2003-03-24 2004-10-14 Educe:Kk Accounting system, accounting program, and accounting method
US20090265262A1 (en) 2008-04-22 2009-10-22 Ebay Inc. Method and system for installment payment utilization
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

Family Cites Families (5)

* 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
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
JP4920704B2 (en) * 2009-01-07 2012-04-18 株式会社みずほ銀行 Loan business support system, loan business support method, and loan business support program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004288027A (en) 2003-03-24 2004-10-14 Educe:Kk Accounting system, accounting program, and accounting method
US20090265262A1 (en) 2008-04-22 2009-10-22 Ebay Inc. Method and system for installment payment utilization
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

Also Published As

Publication number Publication date
JP2019200678A (en) 2019-11-21

Similar Documents

Publication Publication Date Title
JP7093434B2 (en) Accounting equipment, accounting methods, and accounting programs
JP7445713B2 (en) Allocation work support device, allocation work support method, and allocation work support program
JP2017168087A (en) Expense journalizing automatic generation device, expense journalizing automatic generation method, and expense journalizing automatic generation program
JP7426460B2 (en) Journal data creation device, journal data creation method, and journal data creation program
JP7060951B2 (en) Rebate management device, rebate management method, and rebate management program
JP7122866B2 (en) Business support device, divided amount output method and divided amount output program
JP7220091B2 (en) Billing data generation device, billing data generation method and billing data generation program
JP7220113B2 (en) Deposit transfer device, deposit transfer method, and deposit transfer program
JP2018005519A (en) Accounting processing device, accounting processing method, and accounting processing 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
JP7261332B2 (en) Automatic work-in-process transfer device, automatic work-in-process transfer method, and automatic work-in-process transfer program
JP7296510B1 (en) Business support device, business support method, and business support program
JP7190825B2 (en) Contract-related information management device, contract-related information management method, and contract-related information management program
JP7384706B2 (en) Excess amount reflection device, excess amount reflection method, and excess amount reflection program
JP7084800B2 (en) Difference management device, difference management method, and difference management program
JP7200025B2 (en) Claims management device, claims management method, and claims management program
JP7324162B2 (en) Cost output device, cost output method, and cost output program
JP7445578B2 (en) Net amount - sales recording/journal accounting device, net amount - sales recording/journal accounting method, and net amount - sales recording/journal accounting program
JP7237677B2 (en) Business support device, business support program and business support method
JP7412315B2 (en) Cost accounting device, cost accounting method, and cost accounting program
JP7186088B2 (en) Return settlement device, return settlement method, and return settlement program
JP7328827B2 (en) Sales/Estimated Cost Calculation Device, Sales/Estimated Cost Calculation Method, and Sales/Estimated Cost Calculation Program
JP7149091B2 (en) FB remittance data creation device, FB remittance data creation method, and FB remittance data creation program
JP2023111374A (en) Residual value set credit management device, residual value set credit management method, and residual value set credit management 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