WO2022157913A1 - Journalizing device and journalizing method - Google Patents

Journalizing device and journalizing method Download PDF

Info

Publication number
WO2022157913A1
WO2022157913A1 PCT/JP2021/002191 JP2021002191W WO2022157913A1 WO 2022157913 A1 WO2022157913 A1 WO 2022157913A1 JP 2021002191 W JP2021002191 W JP 2021002191W WO 2022157913 A1 WO2022157913 A1 WO 2022157913A1
Authority
WO
WIPO (PCT)
Prior art keywords
rule
priority
document
journalizing
matching
Prior art date
Application number
PCT/JP2021/002191
Other languages
French (fr)
Japanese (ja)
Inventor
雪野 河本
信明 鈴木
Original Assignee
株式会社KPMG Ignition Tokyo
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 株式会社KPMG Ignition Tokyo filed Critical 株式会社KPMG Ignition Tokyo
Priority to PCT/JP2021/002191 priority Critical patent/WO2022157913A1/en
Priority to JP2022576321A priority patent/JP7258322B2/en
Publication of WO2022157913A1 publication Critical patent/WO2022157913A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes

Definitions

  • the present invention relates to technology for journalizing transactions.
  • Patent Document 1 discloses a technique for recording documents that serve as proof of transactions in the journalizing process for recording transactions in a ledger.
  • journalizing process that should be executed for documents subject to journalizing differs depending on the situation. For example, in bill payment processing, the journalizing process differs depending on whether or not there is a bank statement that records the withdrawal of the billed amount from the bank account. If there is a bank statement, the journalizing process is performed as follows: "Record the expense of the billed amount on the debit side, and record the decrease in the bank account assets due to the withdrawal of the billed amount on the credit side.” On the other hand, if there is no bank statement, journal processing is performed as follows: “Debit the expense of the billed amount, and credit the account payable, which is the obligation to pay the billed amount.” In this way, the inventors of the present invention have recognized that the journalizing process is not uniquely determined from the documents to be processed, and that the accounting process can be made more efficient if there is a technique for selecting the journalizing process suitable for the situation.
  • the present invention has been made in view of this situation, and its purpose is to provide a journalizing device that can efficiently select the journalizing process suitable for the situation.
  • a journalizing device is a plurality of compound rules, each compound rule including a journalizing processing rule and a matching condition to be satisfied by an application target of the journalizing processing rule.
  • a composite rule holding unit that holds compound rules of the input
  • a compound rule selection unit that selects compound rules that include matching conditions that match the document according to the priority held in the priority storage unit, and executes journal processing based on the journal processing rules included in the selected compound rule. and a journal processing unit.
  • journalizing method comprises a plurality of compound rules, each of which includes a journal processing rule and a matching condition to be satisfied by an application target of the journal processing rule, a compound rule holding unit that holds a plurality of compound rules, and a matching condition
  • a journalizing method performed in a journalizing apparatus comprising a priority holding unit that holds the types and priorities of selects a composite rule including matching conditions that match according to the priority held in the priority holding unit; and executes journal processing based on the journal processing rule included in the selected composite rule.
  • journalizing device comprises: a first holding unit for holding journal processing rules and matching conditions to be satisfied by the applicable journal processing rules in association with each other; and a second holding unit for holding matching condition types and priorities in association with each other.
  • a selection unit that selects, from among the matching conditions held in the first holding unit, a matching condition with which the input document matches according to the priority held in the second holding unit;
  • a journalizing processing unit for executing journalizing processing based on a journalizing processing rule corresponding to the matching condition;
  • Yet another aspect of the present invention is a journalizing method.
  • This method includes a first holding unit that holds journal processing rules and matching conditions to be satisfied by the applicable journal processing rules in association with each other, and a second holding unit that holds matching condition types and priorities in association with each other.
  • a journalizing method performed in a journalizing device comprising a first holding unit, wherein a matching condition with which an input document matches is stored in a second holding unit from among the matching conditions held in the first holding unit; and a step of executing journalizing processing based on the journalizing processing rule corresponding to the matching condition selected by the selecting unit.
  • FIG. 4 is a schematic diagram illustrating bill payment processing in a company that uses an automatic journalizing service provided by a journalizing device
  • FIG. 11 is a diagram showing an example of a registration screen for compound rules.
  • FIG. 10 is a detailed registration screen for specifying information on a main document and matching rules for related documents;
  • FIG. 10 is a diagram showing a data structure of a compound rule held in a compound rule holding unit;
  • 5 is a table showing an example of priority setting in a priority holding unit by a priority setting unit;
  • FIG. 10 is a diagram showing an example of a priority setting screen in a priority holding unit via a priority setting unit; It is a flow chart which shows processing of a journalizing device.
  • FIG. 10 is a diagram showing an example of a compound rule held in a compound rule holding unit; It is a functional block diagram of a journalizing device according to a second embodiment.
  • the main purpose of this embodiment is to efficiently select a compound rule suitable for the situation when there are many compound rules that define journalizing processing methods based on various documents. For this reason, the priority is set according to the type of matching conditions included in each compound rule (specify a document of a specific type, specify a document with an amount matching condition, specify a document with a keyword matching condition, etc.) be done.
  • journal entry processing executed based on complex rules efficiently selected according to priority
  • debit information (account, amount, tax, etc.) and credit information (account, amount, tax, etc.) tax, etc.) is generated and stored in a holding unit (not shown) of the journalizing device.
  • the data generated in this manner may be used for display as described below, or may be used for subsequent tax and accounting processing.
  • FIG. 1 is a functional block diagram of the journalizing device 100 according to the first embodiment.
  • the journalizing device 100 includes a document input unit 101, a document holding unit 102, a metadata extraction unit 103, a main document acquisition unit 104, a recording unit 105, a setting unit 106, a compound rule selection unit 107, and a matching rule It includes an acquisition unit 108 , a related document search unit 109 , a journal processing unit 110 and a display control unit 111 .
  • These functional blocks are realized through cooperation between hardware resources such as the computer's central processing unit, memory, input device, output device, and peripheral devices connected to the computer, and software executed using them. . Regardless of the type of computer or installation location, each of the above functional blocks may be implemented using the hardware resources of a single computer, or may be implemented by combining hardware resources distributed among multiple computers. .
  • journalizing device 100 most of the functions of the journalizing device 100 are implemented by a server that can be accessed by user terminals such as PCs and smartphones via an information communication network such as the Internet.
  • a user inputs an operation signal to the journalizing device 100 via the input means (mouse, keyboard, touch panel, camera, etc.) of the user terminal.
  • the function of the setting unit 106 is realized by the user terminal, or the setting unit 106 provided in the journalizing apparatus 100 inputs and outputs the user terminal It is realized by using it as an interface.
  • the display screen for displaying the processing contents of the journalizing device 100 may be displayed on the display unit 20 such as an arbitrary display, but the case where it is displayed on the display of the user terminal will be described below.
  • the document input unit 101 inputs documents to be journalized and stores them in the document holding unit 102 .
  • documents are classified into main documents and related documents.
  • the main document is a document that is essential for the journalizing process to be executed, and corresponds to the documentary evidence that serves as evidence of the content of the transaction. No journal processing is performed without the main document.
  • a companion document is a document that provides information that supplements the journal processing based on the main document.
  • a supporting document can be a supporting document proving the nature of the transaction in conjunction with the main document, or it can be any supporting document not required to complete the journalizing process (e.g., correspondence or memoranda of the parties involved in the transaction).
  • journalizing process may not be executed if there is no related document, and the journalizing process may be executed even if there is no related document.
  • a supporting document can be a main document or a related document depending on the journal entry process to be performed. Therefore, the classification of main documents and related documents is not static, and may be fluid depending on the journalizing process to be performed.
  • FIG. 2 is a schematic diagram illustrating bill payment processing in a company 40 that uses the automatic journalizing service provided by the journalizing device 100.
  • the journalizing device 100 and a company staff terminal 41 of a company 40 using the automatic journalizing service are connected to communicate via a network 42 such as the Internet.
  • a company 40 using the automatic journalizing service orders products or services from a business partner 43 such as a subcontractor, and the business partner 43 provides the ordered product or service to the company 40 using the automatic journalizing service.
  • the customer 43 prepares a bill and sends it to the company 40 using the automatic journalizing service in order to claim the price of the goods and services.
  • the company 40 using the automatic journalizing service instructs the bank 44 in which it has its own bank account to transfer the amount of money described in the bill from its own bank account to the bank account of the customer 43 .
  • the bank 44 performs the transfer process.
  • the bank 44 prepares the bank statement (including, for example, the above-mentioned transfer record) of the company 40 using the automatic journalizing service on a regular basis, such as once a month, and provides it to the company 40 .
  • the main document is the invoice from the customer and the supporting document is the bank statement showing that the invoiced amount has been withdrawn to the customer's bank account.
  • both the main document and related documents are supporting documents necessary to complete the journal entry process. Journalizing processing such as recording is executed, and journalizing processing is executed to record the decrease in assets accompanying the withdrawal of the billed amount from the bank account on the credit side.
  • the refund notice from the tax authorities is the main document
  • the bank statement showing that the refund amount stated in the refund notice has been deposited into the bank account is the related document.
  • both the main document and the related documents are supporting documents necessary to complete the journal entry process, and when both documents are complete, the journal entry process will record the increase in assets associated with the deposit of the refund amount to the bank account on the debit side. is executed, and journalizing processing such as recording the income associated with the receipt of money on the credit side and recording the decrease in assets due to the reversal of deferred tax assets is performed.
  • Examples of supporting documents are shown below.
  • ⁇ Documents that indicate the details of transactions and fund transfers such as quotations, purchase orders, statements of delivery, invoices, receipts, loan agreements, tax notices, refund notices, interest rate notices, dividend payment notices, etc.
  • Banks Documents showing deposits and withdrawals of bank accounts such as transaction statements ⁇ List of capital expenses (CAPEX) subject to depreciation ⁇ New real estate acquisition, construction completion report, occupancy status, rent, income, expenditure, Documents related to real estate management such as receivables ⁇ Reports related to trusts such as trust accounts It is determined and stored in the document holding unit 102 .
  • the document type may be stored by the document input unit 101 in the document holding unit 102 by manual input by the user or automatic recognition by the computer when the document is input.
  • documents and documents mean files of any type, format, extension, and electronic documents. Therefore, documents and documents include not only document files in a narrow sense, but also non-document files such as spreadsheet files, image files, moving image files, audio files, and communication files such as e-mails and messages.
  • a document obtained by capturing a paper evidence document or the like with an image scanner is input to the document input unit 101 as an image file.
  • the metadata extraction unit 103 extracts metadata from the document stored in the document holding unit 102 by the document input unit 101 . If the document is a file containing text data such as a document file, a spreadsheet file, or a communication file, each text data that may be used for journalizing processing is extracted individually, and metadata is added with appropriate type information. Generate.
  • the document type is an invoice
  • the text data of the issuer name is "AAA”
  • the metadata "issuer name: AAA” with the type information of "issuer name” is generated.
  • the name of the recipient of the invoice is text data "BBB”
  • the metadata "destination name: BBB” with the type information of "destination name” is generated
  • the billed amount of the invoice is generated.
  • CCC text data with "CCC”
  • the metadata “Invoice amount: CCC” with type information of "Invoice amount” is generated
  • the invoice issue date is text data with "DDD”.
  • metadata “issue date: DDD” to which type information “issue date” is added is generated.
  • the non-text data may be extracted as it is as metadata.
  • the metadata extracting unit 103 uses non-text data recognition such as image recognition or voice recognition to determine the possibility of being used in the journalizing process.
  • Metadata is generated by extracting certain data from a file and adding appropriate type information.
  • OCR Optical Character Recognition
  • a document that has been captured as an image file by an image scanner such as a paper evidence document
  • text can be extracted from the image file.
  • Data can be extracted.
  • Generation of metadata based on the extracted text data can be performed in the same manner as for files containing text data described above.
  • Metadata may be non-textual data, such as image data, video data, audio data.
  • image file example instead of applying OCR, the image areas in the image file that may be used for the journalizing process are identified, and the image data of each image area is attached with appropriate type information. It may be metadata.
  • AI artificial intelligence
  • the metadata extracted from the document by the metadata extraction unit 103 as described above is associated with the document and stored in the document holding unit 102 together with the document.
  • the above is the preparation process for the journalizing process, and the following is the actual journalizing process.
  • the main document acquisition unit 104 acquires the main document to be journalized from the document holding unit 102 .
  • the order and timing in which the main document acquisition unit 104 acquires the main document from among the large number of documents held in the document holding unit 102 is arbitrary, hereafter, each time a new document is stored in the document holding unit 102 , the main document acquisition unit 104 acquires the new document as the main document.
  • the document acquired by the main document acquisition unit 104 may not be the main document as a result. Wait until the document is stored.
  • the recording unit 105 includes a compound rule storage unit 1051 and a priority storage unit 1052 .
  • the compound rule held in the compound rule holding unit 1051 and the priority held in the priority holding unit 1052 are mutually related data. Therefore, both holding units 1051 and 1052 are preferably realized by the same memory for efficient data processing, but may be realized by different memories.
  • a compound rule holding unit 1051 holds a plurality of compound rules.
  • Each composite rule includes at least a journal processing rule based on the main document and matching conditions to be satisfied by the main document and/or related documents to which the journal processing rule is applied.
  • the matching conditions include main document designation information that designates the main document, and may include matching rules for related documents. Also, the matching rule for related documents corresponds to related document designation information that designates related documents to be journalized together with the main document.
  • the priority holding unit 1052 holds the type (or type) of the matching condition and the priority in association with each other.
  • the priority is not set for each compound rule, but for the type of matching conditions included in the compound rule.
  • matching 1 between the input document and matching condition 1 of compound rule 1 is attempted, and if there is no match, matching 2 between the input document and matching condition 2 of compound rule 2 is attempted.
  • the reason why matching 1 is tried before matching 2 is that the priority of the type of matching condition 1 is higher than the priority of the type of matching condition 2, and the priority of compound rule 1 is It is not because the priority is higher than that of compound rule 2.
  • neither the compound rule 1 nor the compound rule 2 has a priority
  • neither the matching condition 1 nor the matching condition 2 has a priority.
  • Priority is set for the types of matching conditions.
  • various types of transactions can be sorted more accurately by increasing the degree of freedom in constructing rules in automatic journal entry, and the complexity of management can be suppressed by managing the priority of types. can be done.
  • the degree of freedom in rule construction may be enhanced by assigning priority to each individual and specific rule. However, in that case, as the number of rules increases, the time and effort required for setting and updating the rules also increases, and the number of priority levels also increases. It also increases the probability of making mistakes.
  • by setting priorities for types of matching conditions it is possible to increase the degree of freedom in building rules while suppressing an increase in the burden of rule setting and management.
  • the setting unit 106 includes a compound rule registration unit 1061 and a priority setting unit 1062.
  • the compound rule registration unit 1061 registers compound rules in the compound rule storage unit 1051 .
  • the compound rule registration unit 1061 performs registration processing such as creation of a new compound rule and modification or deletion of an existing compound rule according to manual operation by the user or automatic input by the computer.
  • the priority setting unit 1062 sets the priority according to the type of matching condition in the priority holding unit 1052 .
  • the priority setting unit 1062 registers a new type of matching condition, changes or deletes an existing type, assigns a new priority to each type, or changes the matching condition according to the user's manual operation or the computer's automatic input. Perform setting processing.
  • FIG. 3 and 4 show examples of registration screens for compound rules by the compound rule registration unit 1061.
  • FIG. This registration screen is displayed on the display unit 20 of the user terminal by the display control unit 111, which will be described later.
  • the transaction name display area 21 displays the name of the transaction that can be arbitrarily set by the user or computer.
  • the transaction summary display area 22 displays the summary of a transaction selected from a pull-down list prepared in advance.
  • the entity display area 23 displays entities (individuals and corporations) to which this composite rule is applied. For example, when a tax accountant corporation with many customers uses the journalizing device 100 of the present embodiment, by specifying the entity to be applied in the entity display area 23, a different compound rule for each customer (entity) of the tax accountant corporation is displayed. Can be set.
  • the journal entry display area 24 is an area for displaying the details of the journal entry process executed while associating the main document displayed in the main document display area 25 with the related document displayed in the related document display area 26, and is the main part of the composite rule. View journal processing rules as a department and accept their settings.
  • a debit display area 241 is an area for setting debit (Debit/Dr) processing
  • a credit display area 242 is an area for setting credit (Credit/Cr) processing.
  • Debit display area 241 and credit display area 242 each include a balance display portion 243, a transaction account display portion 244, a transaction subaccount display portion 245, a transaction amount display portion 246, a tax account display portion 247, and a tax amount display portion 248. , each display is editable.
  • both the items of the main document and the items of the related documents can be used for the calculation.
  • it is possible to make settings based on different items in different documents, such as "amount (item 1 of main document) - (item 3 of related document)".
  • the degree of freedom in setting the journalizing process can be increased.
  • the balance display unit 243 displays debit (Dr) and credit (Cr).
  • the transaction account display section 244 designates account items (accounts) for recording transactions.
  • the transaction sub-account display section 245 specifies sub-account items (sub-accounts) of the account items specified in the transaction account display section 244 . If the account item has no lower account items, the transaction subaccount display section 245 is left blank.
  • the transaction amount display section 246 specifies the transaction amount to be recorded in the accounts and sub-accounts specified in the transaction account display section 244 and transaction subaccount display section 245 .
  • the transaction example shown in the figure relates to the payment processing of the silent partnership investment as shown in the transaction summary display area 22, and the main document displayed in the main document display area 25 is "Notice Letter" (notice of silent partnership investment). is executed based on "NoticeAmount" displayed in the transaction amount display portion 246 of the debit display area 241 and the credit display area 242 means that the amount of the silent partnership investment described in the "Notice Letter" is the transaction amount.
  • the debit display area 241 records an increase in the ordinary deposit accompanying the payment of the silent partnership investment
  • the credit display area 242 records the increase in the silent partnership investment.
  • the debit and credit transaction amount display sections 246 must match. In a transaction with multiple debit and/or credit items, the total amount of the debit and credit transaction amount display 246 must match.
  • the tax account display section 247 designates account items (accounts) for recording taxes related to transactions.
  • the tax amount display section 248 designates the tax amount to be added to the account item designated by the tax account display section 247 . In the illustrated transaction example, no tax is incurred for the transaction, so the tax account display section 247 displays "0 - not applicable" and the tax amount display section 248 displays "0".
  • the main document display area 25 displays the type of main document to be journaled. As described above, in the illustrated example, "Notice Letter” (notice of silent partnership investment) is registered as the main document type.
  • the main document details registration screen will be described later with reference to FIG.
  • the related document display area 26 displays the types of related documents to be searched based on the related document matching rule set in advance for the main document.
  • "Bank Statement” (bank statements to which silent partnership funds are deposited) is registered as the type of related document.
  • a plurality of related documents can be registered in one compound rule, so a related document add button 261 is provided for this purpose.
  • the journalizing process can be executed without related documents, the related document display area 26 may be omitted.
  • the detailed registration screen of related documents will be described later with reference to FIG.
  • the matching condition display area 27 displays the name 271 and registration date 272 of the matching conditions registered on the registration screen for the main document specification information and related document matching rules shown in FIG. By selecting the matching condition name 271 on the screen, it is possible to transition to the detailed registration screen of FIG.
  • Fig. 4 is a detailed registration screen for the specification information of the main document and the matching rules for the related documents.
  • the matching condition name 271 can be arbitrarily set by the user or computer.
  • the main document display area 25 includes a document type 251, a metadata type (Data Key) 252, a comparison condition 253, and a comparison value 254 as setting items for main document designation information that designates the main document.
  • the document type 251 sets the type of document. For example, it is possible to select from the pull-down list the various evidence documents exemplified above. In the illustrated example, as described above, "Notice Letter" corresponding to the silent partnership investment notice is set.
  • the metadata type 252 sets the type of metadata used to specify the main document for the type of document set in the document type 251 .
  • metadata such as "issuer name: AAA”, “destination name: BBB”, “billing amount: CCC”, and “issuance date: DDD” are exemplified when the document type is an invoice.
  • type information such as “issuer name”, “destination name”, “billing amount”, and “issuance date” in the preceding stage of each metadata can be set in the metadata type 252 . Since the types of metadata mainly used for specifying the main document are limited according to the document type 251, these may be used as a pull-down list so that the user can select an appropriate one from them. In the illustrated example, "Notice Sender" (issuer name) of the notice of silent partnership investment is set.
  • the comparison condition 253 sets a comparison condition for the comparison value set in the comparison value 254 for metadata of the type set in the metadata type 252 . If the comparison value 254 is text data as shown, the comparison condition 253 sets various logic operation methods for the text data. For example, “is the same as”, “is not the same as”, “contains”, “does not contain”, “starts with”, “does not start with”, “ends with”, “does not end with”, etc. for the text of comparison value 254. Various comparison conditions can be set. Also, when the comparison value 254 is numerical data, the comparison condition 253 sets various arithmetic operation methods for the numerical data.
  • comparison condition 254 For example, simple magnitude comparison conditions such as “equal to”, “not equal to”, “larger than”, “smaller than”, “greater than or equal to”, or “less than or equal to” can be set for the numerical value of the comparison value 254.
  • FIG. A plurality of comparison values 254 may be set in the logical operation or arithmetic operation as described above.
  • the comparison condition 253 in that case can be set as a multivariable function that performs arbitrary comparison operations based on a plurality of comparison values 254 .
  • a comparison condition 253 with "contains” is set for the comparison value 254 with "XX Bank Co., Ltd.”. Therefore, this main document specification information "includes” (comparison condition 253) "XX Bank, Ltd.” (comparison value 254) as "Notice Sender” (metadata type 252) and "Notice Letter” (document type 251). It is designated as the main document. In other words, the notice of silent partnership investment issued by XX Bank Co., Ltd. is designated as the main document by this main document designation information.
  • the metadata type 252, the comparison condition 253, and the comparison value 254 are combined together to specify the metadata included in the main document (hereinafter referred to as , metadata specification conditions).
  • one line consisting of the metadata type 252, the comparison condition 253, and the comparison value 254 is one metadata specification condition.
  • metadata specification conditions such as keyword match and numeric match. As will be described later, these types of metadata specifying conditions are used to set the priority of matching condition types.
  • the related document display area 26 includes a document type 262, a metadata type 263, a comparison condition 264, and a comparison value 265 as setting items for matching rules for related documents. These setting items are equivalent to the document type 251, the metadata type 252, the comparison condition 253, and the comparison value 254 of the main document display area 25, and overlapping descriptions are omitted.
  • the document type 262 sets the type of document in the same manner as the document type 251 of the main document.
  • the main document is limited to the documentary evidence, but the related document may be any supplementary document other than the documentary evidence, so the types corresponding to them can be additionally set.
  • the "Bank Statement" regarding the deposit of the silent partnership investment is set. Two metadata specification conditions are set for this "Bank Statement".
  • the metadata type 263 is set to "Item Description”
  • the comparison condition 264 is set to “contains”
  • the comparison value 265 is set to "gaikokukankei” (foreign relations). ) is set. Therefore, this matching rule "contains” (comparison condition 264) the text “description” (comparison value 265) in “Item Description” (metadata type 263) "Bank Statement” (document type 262) is found as In other words, bank statements containing foreign-related abstracts can be retrieved as related documents by this matching rule.
  • the metadata type 263 is set to "Transaction Amount”
  • the comparison value 265 is set to "NoticeAmount” (described above).
  • the amount of silent partnership investment stated in the "Notice Letter” as the main document) is set. Therefore, this matching rule finds "Bank Statement” (document type 262) where "Transaction Amount” (metadata type 263) is “equal” (comparative condition 264) to "NoticeAmount” (comparison value 265) as a related document. is.
  • this matching rule enables a search as a related document for a bank statement containing a transaction amount (deposit amount) equal to the amount of the silent partnership investment amount described in the notice.
  • a bank statement containing a summary of foreign relations and a transaction amount equal to the amount of silent partnership investment stated in the notification can be searched as related documents.
  • the bank statement as a related document retrieved in this manner is used as evidence of the transaction displayed in the journal entry display area 24 of FIG. Become.
  • the journalizing processing of the transactions displayed in the journalizing display area 24 (the processing of depositing the silent partnership investment from XX Bank, Ltd.) is performed by the journalizing processing unit 110, which will be described later. executed.
  • the metadata type 263, the comparison condition 264, and the comparison value 265 together constitute the metadata designation condition for the metadata included in the related document. determine.
  • these types of metadata specifying conditions are used to set the priority of matching condition types.
  • a metadata specification condition can be added to the existing related document "Bank Statement” (document type 262) by using the specification condition addition button 266.
  • an existing metadata specifying condition can be deleted by a specified condition delete button 267 .
  • another related document can be added by pressing the related document addition button 261 similar to that in FIG.
  • the matching condition shown in FIG. 4 uses the text data extracted from the document as comparison values 254 and 265.
  • matching conditions can also be configured based on non-text data such as image data, moving image data, audio data, supplementary data by AI, and the like.
  • the non-text data itself may be used as comparison target data
  • a similarity determination algorithm adapted to the format of the comparison target data may be used. For example, when image data of a logotype of an organization or product is used as data to be compared, any image similarity determination algorithm can be used to search for documents containing images similar to the logotype.
  • FIG. 5 shows the data structure of the compound rule held in the compound rule holding unit 1051.
  • FIG. Each data shown in this figure was described in detail in FIGS. 3 and 4.
  • FIG. The composite rule includes basic information, journal processing rules 24, main document designation information 25 as matching conditions, and related document matching rules 26.
  • FIG. The basic information includes an ID that identifies the compound rule (for example, the name or unique symbol number entered in the transaction name display area 21) and an outline of the transaction to which the compound rule corresponds (for example, the transaction outline entered in the transaction outline display area 22). information) and each information of the entity to which the compound rule is applied (for example, the entity specified in the entity display area 23).
  • the journal processing rule 24 includes debit information 241 and credit information 242.
  • Debit information 241 and credit information 242 include debit/credit information 243, transaction account information 244, transaction sub-account information 245, transaction amount information 246, tax account information 247, and tax amount information 248, respectively.
  • the main document designation information 25 includes a document type 251 , metadata type 252 , comparison conditions 253 and comparison values 254 . There may be a plurality of these data sets 251-254. In that case, as described above, the document type 251 is the same for all data sets.
  • Related document matching rule 26 includes document type 262 , metadata type 263 , comparison condition 264 , and comparison value 265 . There may be a plurality of these data sets 262-265.
  • FIG. 6 is a table showing an example of priority setting in the priority holding unit 1052 by the priority setting unit 1062.
  • Each piece of data in this table is a rule composed of a set of priority rule ID 51, priority 52, and applicable rule type 53.
  • FIG. The priority rule ID 51 is unique identification information that identifies each rule. In the illustrated example, a serial number automatically entered by the computer is used as the priority rule ID 51 .
  • the priority 52 is a priority given to the type of matching condition specified by the applicable rule type 53.
  • the priority 52 is set by a natural number with "1" being the highest priority.
  • the same priority 52 may be set for a plurality of types.
  • the highest priority "1” is given to each type defined by each rule with priority rule IDs "001", "002" and "007", and the next highest priority "2" is given to the priority rule.
  • Each type defined by each rule of ID "003", "004", and "008” is given, then the high priority "3” is given to the type defined by the rule of priority rule ID "005", and then A high priority of "4" is given to the type defined by the rule with priority rule ID "006".
  • the journalizing device 100 attempts matching of the main documents acquired by the main document acquisition unit 104 in descending order of matching conditions belonging to the type with the highest priority.
  • the order of application of a plurality of types with the same priority is arbitrary.
  • the applicable rule type 53 specifies the type of matching condition to which the priority 52 is assigned.
  • the type of matching condition is the type or type of matching condition that should be satisfied by the application target of the journalizing processing rule.
  • the type of matching condition can be defined by at least one of the following elements (hereinafter also referred to as rule details). Elements other than the following elements may be used to define a typology. (1) Presence/absence of specification of document type of main document (2) Specific document type of main document (3) Presence/absence of metadata specification condition and type of main document (4) Whether or not related documents are requested (5) (6) Specific document type of related document (7) Presence/absence of metadata specification condition and type of related document Several rules shown in FIG. 6 will be described in detail.
  • PD is an abbreviation for Primary Document
  • SD is an abbreviation for Supporting Document, which means a related document.
  • the third rule item "no other SD required” specifies a matching condition where there are no related document matching rules 26 that specify related documents other than the "bank statement” specified in the second rule item. .
  • this rule "001" is determined to be “the main document is an invoice, and one bank statement is searched as a related document, and Specify the type of matching condition "Do not search for related documents other than And when this rule "001" is applied, "the main document must be an invoice, and one bank statement must be searched as a related document, and no other related documents must be searched.”
  • a compound rule including a matching condition matching the type is selected from the compound rule holding unit 1051 .
  • the first and second rule details are similar to rule "001" above.
  • the fourth rule detail "SD2 with keyword matching condition” designates a matching condition in which a keyword matching condition is set for "invoice” as the second related document.
  • the comparison value 265 is composed of textual keywords, and the comparison conditions 264 are "same as”, “includes”, “begins with”, “beginning with”.
  • a matching condition is specified in which a keyword matching condition such as "ends” is set.
  • an individual specific text is set as in the example of "Finding information" in FIG.
  • the only question is whether the text is set as the comparison value 265 .
  • the presence or absence of keyword matching conditions is one element that defines the types of metadata specification conditions.
  • the type of matching condition specified by the applicable rule type of rule "003" includes the type of metadata specifying condition that there is a keyword matching condition.
  • the type of matching condition can be specified based on the type of metadata specification condition of related documents. It is also possible to specify the type of matching condition based on the type of metadata specifying condition of the main document.
  • this rule "003" is determined to "look for one bank statement as the first related document and one bank statement as the first related document and The type of matching condition is designated as "searching for one bill as a document and searching for a second related document based on a keyword matching condition.” And when this rule "003" is applied, "the main document is an invoice, and one bank statement is searched as the first related document, and the invoice
  • a compound rule including a matching condition that matches the type of "finding one book and searching for a second related document based on a keyword matching condition” is selected from the compound rule holding unit 1051.
  • the second rule item "Do not require SD” specifies a matching condition for which the related document matching rule 26 is not set. In this way, the presence or absence of the related document designation information 26 is one factor that defines the type of matching condition.
  • the main document designation information 25 is basically included in the matching condition, the presence or absence of the main document designation information 25 is not an element that defines the type of matching condition.
  • this rule "004" specifies a matching condition type of "the main document is a bank statement and no related documents are searched”. Then, when this rule "004" is applied, a compound rule containing a matching condition that matches the type of "the main document is a bank statement and that related documents are not searched" is stored in the compound rule storage unit. 1051 are selected.
  • rule type invoice
  • SD1 document type bank statement
  • SD2 document type invoice
  • SD3 document type invoice
  • This rule '005' is ⁇ the main document is an invoice, and one bank statement is to be searched as the first related document, and one invoice is to be searched as the second related document, and to search for one invoice as the third related document” is specified as the type of matching condition.
  • the types of matching conditions defined by the applicable rule types shown in FIG. 6 are for at least some of the matching conditions 251 to 254 and 262 to 265 (document types 251 and 262 for rule "005"). and at least some of the matching conditions serve to pre-filter the documents to be journalized. Each concrete document is then finally identified based on the remainder of the matching conditions 251-254, 262-265.
  • the third rule item "with SD amount matching condition” specifies a matching condition in which the amount matching condition is set for the "bank statement” as the related document specified by the second rule item.
  • the metadata type 263 related to the amount such as “withdrawal amount” is set, and the specific amount is set as the comparison value 265. is set, and a matching condition such as "equal to” is set as the comparison condition 264 is specified.
  • the actual comparison value 265 is set with information representing an individual and specific amount of money.
  • this rule "007" is determined to be "the main document is an invoice, and one bank statement is searched as a related document, and the related document Specify the type of matching condition "to search for”. Then, when this rule "007" is applied, "the main document must be an invoice, one bank statement must be searched as a related document, and the related document must be searched by matching the amount. ” is selected from the compound rule holding unit 1051 .
  • the applicable rule types 53 exemplified above merely designate types of matching conditions, and do not specify individual specific matching conditions. However, when (2) and/or (6) are specified in the applicable rule type among the elements of types (1) to (7) above, this specifies part of the matching condition (document type). It is synonymous with specifying Therefore, it has the same effect as preliminarily filtering the documents to be journalized, as described above with respect to rule "005". In subsequent steps of that preliminary filtering, individual concrete documents are finally identified based on the remainder of the matching criteria. By providing step-by-step processing steps in this manner, the degree of freedom in designating documents can be dramatically improved, and the efficiency of the journalizing process can be improved. Moreover, by making it possible to set the priority 52 in this preliminary filtering step, a greater degree of freedom can be obtained.
  • FIG. 7 shows an example of a priority setting screen in the priority holding unit 1052 via the priority setting unit 1062.
  • a priority setting area 520 displays the priority 52 in FIG. 6 and accepts input of priority by the user.
  • a priority rule name setting area 54 displays the name of the priority rule in FIG. 6 and accepts any name input by the user.
  • the detail display unit 55 displays a priority rule detail setting area 530 in response to a click operation on the triangular icon. By clicking the downward triangular icon, the priority rule detail setting area 530 is expanded and displayed, and by clicking the upward triangular icon, the priority rule detailed setting area 530 is collapsed and not displayed. In the illustrated example, only the detailed setting area 530 for "corporation specific rule" is displayed.
  • a detailed setting area 530 displays the applied rule type 53 in FIG. 6 and accepts input of the type by the user.
  • the detail setting area 530 includes a rule type setting portion 531, a rule application format setting portion 532, a target item setting portion 533, a comparison condition setting portion 534, a data type setting portion 535, and a rule detail addition portion 536.
  • a set of a rule type setting section 531, a rule application format setting section 532, a target item setting section 533, a comparison condition setting section 534, and a data type setting section 535 constitutes a structural unit of the type defined by the applicable rule type 53. configure.
  • one applicable rule type 53 can include a plurality of rule details, and the rule details can be added by the rule detail adding unit 536 .
  • the rule application format setting unit 532 sets the application format of the conditions set by the target item setting unit 533, the comparison condition setting unit 534, and the data type setting unit 535. For example, it is possible to select from two applicable forms of "include” and “not include”. When “include” is selected, the conditions set in the target item setting section 533, the comparison condition setting section 534, and the data type setting section 535 become the rule details as they are. When “does not include” is selected, negation of the conditions set by the target item setting section 533, the comparison condition setting section 534, and the data type setting section 535 becomes the rule details. Note that the applicable format is not limited to "include” or “not include” described above, and may be arbitrarily set based on logic.
  • the target item setting unit 533 sets the target items of this rule detail based on the matching conditions 251-254 and 262-265.
  • the illustrated "Invoice: entity name” targets “issuer name” (metadata type 252) in “invoice” (document type 251).
  • the comparison condition setting section 534 sets comparison conditions for the target items set by the target item setting section 533 .
  • the data type setting unit 535 sets data types to which the comparison conditions set by the comparison condition setting unit 534 are applied. Any data type that meets the comparison conditions may be used, and examples include “character string type”, “numeric type”, “boolean type”, “date type”, “binary type”, and “void type”. In the illustrated example, "String” (character string type) is set. With reference to FIG. 6, it has been explained that the applicable rule type 53 merely designates the type of matching condition and does not specify individual specific matching conditions. appearing. That is, the data type setting unit 535 sets the data type (type) rather than the specific contents of the data.
  • the priority rule lists shown in FIGS. 6 and 7 are held in the priority holding unit 1052 for each instance logged in by the user of the journalizing device 100 .
  • the priority holding unit 1052 may hold the type of matching condition, the priority given to the type, and the ID specifying the customer to whom the priority is applied, in association with each other.
  • the journalizing apparatus 100 may filter the priority holding unit 1052 using the customer ID of the customer corresponding to the instance logged in by the user as a key.
  • journalizing device 100 For example, assuming that the user of the journalizing device 100 is a tax accountant belonging to a tax accountant corporation, a list of priority rules corresponding to each instance of each customer that the user is in charge of is individually prepared. This will automatically apply priority rules customized to the instance the tax accountant is logged into, allowing efficient document searches for each customer's journal entry process.
  • the compound rule selection unit 107 selects, from the compound rule storage unit 1051, a compound rule containing the matching main document specifying information for the document acquired by the main document acquisition unit 104.
  • the main document specifying information here is composed of the document type 251, the metadata type 252, the comparison condition 253, and the comparison value 254 in the main document display area 25 of FIG. Therefore, in the example of FIG. 4, if the document acquired by the main document acquisition unit 104 matches the main document designation information 251 to 254 of "notice of silent partnership investment issued by XX Bank, Ltd.” , and the compound rule shown in FIG.
  • journalizing device 100 stops further processing for that document and waits until the main document acquisition unit 104 acquires a new document.
  • the priority rules stored in the priority holding unit 1052 are used in order to efficiently perform the selection process of the compound rule selection unit 107 . That is, when a plurality of compound rules including the main document specifying information 25 matching the document acquired by the main document acquisition unit 104 are stored in the compound rule storage unit 1051, the compound rule selection unit 107 selects the priority storage unit 1052. Select compound rules containing matching conditions that belong to the type with the highest retained priority.
  • the composite rule selection unit 107 determines whether or not the documents input in order from the main document designation information 25 of the matching condition belonging to the type with the highest priority held in the priority holding unit 1052 match. is determined, and a compound rule including the matched main document specifying information 25 is selected from the compound rule holding unit 1051 .
  • the compound rule selection unit 107 identifies, from the compound rule storage unit 1051, a plurality of matching conditions including the main document designation information 25 with which the document acquired by the main document acquisition unit 104 matches, and selects the specified matching conditions. A matching condition belonging to a type with a high priority may be selected from the conditions.
  • the compound rule selection unit 107 selects compound rules including matching conditions that match the applicable rule types 53 of the priority rules "001", "002", and "007" with the highest priority "1" and stores them in the compound rule holding unit 1051. Extract from Assuming that the numbers of matching conditions that match each priority rule are N1, N2, and N7, respectively, a total of N1+N2+N7 matching conditions are candidates for matching conditions that match the document acquired by the main document acquisition unit 104. extracted. The compound rule selection unit 107 causes the main document acquisition unit 104 to acquire the main document designation information 25 (document type 251, metadata type 252, comparison condition 253, comparison value 254) for each of these N1+N2+N7 matching conditions. Determines whether or not it completely matches the document. If there is the main document specifying information 25 that completely matches, the composite rule selection unit 107 selects matching conditions including that main document specifying information 25 .
  • priority rules "001" and “007” specify “invoice” as the main document
  • priority rule "002" specifies "bank statement” as the main document. Therefore, priority rule '002' is mutually exclusive with priority rules '001' and '007'.
  • the compound rule selection unit 107 selects the priority rule with the next highest priority "2".
  • Matching conditions that match the applicable rule types 53 of “003”, “004”, and “008” are extracted from the compound rule holding unit 1051 . Assuming that the numbers of matching conditions that match each priority rule are N3, N4, and N8, respectively, a total of N3+N4+N8 matching conditions are candidates for matching conditions that match the document acquired by the main document acquisition unit 104. extracted. After that, the searching process for matching conditions is continued in the order of the priority of the type until a matching condition including the main document specifying information 25 that completely matches the document acquired by the main document acquiring unit 104 is identified.
  • the priority rule (applicable rule type 53) set for each priority can be set arbitrarily. preferable. By increasing the priority of strict priority rules, strict journal processing supported by sufficient documents and information can be preferentially executed. On the other hand, by lowering the priority of loose priority rules, provisional journal processing can be performed even when sufficient documents and information are not available.
  • the matching rule acquisition unit 108 acquires matching rules for related documents preset for the main document acquired by the main document acquisition unit 104 . Specifically, the matching rule acquisition unit 108 acquires matching rules for related documents included in the matching conditions selected by the compound rule selection unit 107 .
  • the matching rule here is composed of the document type 262, the metadata type 263, the comparison condition 264, and the comparison value 265 in the related document display area 26 of FIG.
  • the related document search unit 109 searches for related documents held in the document holding unit 102 based on the matching rule acquired by the matching rule acquisition unit 108 .
  • the related document search unit 109 outputs the abstract of foreign relations. bank statement containing a transaction amount equal to the amount of silent partnership investment stated in the notice" as a related document. If the related document is found in the document holding unit 102, the next process of the journalizing processing unit 110 is performed. Processing when no related document is found in the document holding unit 102 will be described later.
  • the journal processing unit 110 executes journal processing while associating the main document acquired by the main document acquisition unit 104 with the related documents retrieved by the related document search unit 109 . Specifically, the journalizing processing unit 110 executes journalizing processing based on the journalizing processing rule included in the composite rule including the matching condition selected by the composite rule selecting unit 107 (the journalizing processing rule corresponding to the matching condition). .
  • the journalizing processing rule referred to here is displayed in the journalizing display area 24 in FIG. 3 and 4 is selected, when the main document in the main document display area 25 and the related document in the related document display area 26 are prepared, the journal processing section 110 performs the journal processing in the journal display area 24. to run.
  • the display control unit 111 causes the display unit 20 to display the status or result of the journalizing processing executed by the journalizing processing unit 110 .
  • FIG. 8 is a flowchart showing the processing of the journalizing device 100.
  • S means "step”.
  • the document input unit 101 inputs a document to be journalized.
  • the document input in S1 is stored in the document holding unit 102.
  • the metadata extraction unit 103 extracts metadata from the document stored at S2.
  • the metadata extraction unit 103 determines the type of document (invoice, refund notice, bank statement, etc.) based on the metadata extracted in S3. This document type determination may be performed on a rule basis, or may be performed using a model obtained by machine learning. If the metadata extracted in S3 includes a document type, then that type is adopted; may be determined. Note that the metadata extracted in S3 and the document type determined in S4 are associated with the document stored in S2 and stored in the document holding unit 102 together with the document. In this embodiment, the document preparation steps of S1 to S4 and the document processing steps of S5 and thereafter are performed successively.
  • the main document acquisition unit 104 acquires the document to be journalized from the document holding unit 102.
  • the main document acquisition unit 104 determines whether or not there is an unprocessed transaction in the document acquired in S5.
  • a document contains multiple transactions, such as a bank statement, each transaction is processed sequentially.
  • the compound rule selecting unit 107 searches for a candidate compound rule among the compound rules held in the compound rule holding unit 1051. processing, which is composed of steps S71 to S75.
  • the composite rule selection unit 107 designates the highest priority "1" as the first search target.
  • the composite rule selection unit 107 identifies the priority rule given the priority “1” specified in S ⁇ b>71 from among the priority rules held in the priority holding unit 1052 .
  • priority rules "001", "002", and "007" to which priority "1" is assigned are specified.
  • the compound rule selection unit 107 selects the applicable rule types 53 (that is, , types of matching conditions) are identified or extracted. As described above, there are a total of N1+N2+N7 matching conditions that match the applicable rule types 53 of the priority rules "001", "002", and "007". In S73, a compound rule including any one matching condition that has not yet been extracted is extracted. At this time, the compound rule can be efficiently extracted by using the document type determined in S4. For example, if the document type determined in S4 is "bank statement", the priority rules "001" and "007” that set the main document as "bill" are irrelevant. Therefore, only the priority rule "002" whose main document is the document type "bank statement” determined in S4 should be the search candidate. In this case, the number of matching conditions to be searched for priority "1" is reduced from N1+N2+N7 to N2.
  • the compound rule selection unit 107 determines whether or not the main document designation information 25 included in the matching condition of the compound rule extracted in S73 matches the document acquired in S5. If it is determined that they match, the process advances to S9, and the compound rule selection unit 107 selects the compound rule that is determined to match for subsequent processing. If it is determined that they do not match, the process proceeds to S74, and if there remains a compound rule to be determined for the priority "1" (N), the process returns to S73 and another unextracted compound rule is extracted. In S74, if there is no compound rule to be judged for the priority "1" (Y), the process proceeds to S75, where a priority lower than the current priority is specified.
  • the priority is lowered to "2", which is lower than the current priority "1".
  • the processing of S72 to S74 is executed for priority "2". If there is no composite rule that is determined to be Yes (Y) in S8 even if the priority is "2", the priority is lowered to "3" in S75. In this way, the search processing of the compound rule according to the priority of the type in S7 is continued until the compound rule including the main document specifying information 25 that matches the document acquired in S5 is specified in S8. It should be noted that when the determination in S8 is Yes (Y), the document acquired in S5 is recognized as the main document corresponding to the specific compound rule.
  • the matching rule acquisition unit 108 acquires matching rules 262-265 of related documents included in the compound rule selected at S9.
  • the related document search unit 109 searches for related documents based on the matching rules 262 to 265 of the related documents acquired in S10.
  • the related document search unit 109 determines whether or not the related document is found. If the related document is found, the process proceeds to S13, and the journalizing processing section 110 executes the journalizing processing based on the journalizing processing rule displayed in the journalizing display area 24 of the composite rule selected in S9. If no related document is found, the compound rule selection unit 107 discards the currently selected compound rule and returns the process to S74.
  • the priority holding unit 1051 selects a compound rule including a matching condition that matches the input document from among the plurality of compound rules held in the compound rule holding unit 1051. A process of selecting according to the priority held in 1052 is implemented.
  • an input document matches the matching condition means that (1) if the matching condition does not include a matching rule for related documents, the input document matches the matching condition, i.e., the main document specification condition; (2) if the matching condition includes a related document matching rule, the input document matches the main document specification condition included in the matching condition and is specified by the related document matching rule. means that relevant documents are found.
  • the compound rule selection unit 107 In connection with discarding the compound rule currently selected when no related document is found in S12, strict matching conditions for the related document matching rules 262 to 265 are first extracted, and the related document matching is performed.
  • the matching condition types may be prioritized so that matching conditions with loose or no rules 262-265 are extracted later.
  • the compound rule selection unit 107 first extracts the matching conditions for which the related document matching rules 262 to 265 are strict in S73, and Matching conditions with loose or no rules 262-265 will be extracted later. In this way, it is possible to implement a process in which the presence or absence of the desired related document is first confirmed, and only when the related document is lacking, the matching rule is loose or the matching condition with no matching rule is executed. can.
  • the setting of priority regarding the designation of such related documents can also be efficiently performed by the priority rule described with reference to FIG.
  • FIG. 9 is an example of a screen showing the journalizing process status of the journalizing device 100.
  • FIG. This screen is displayed on the display unit 20 by the display control unit 111 .
  • the transaction type display area 31 corresponds to the transaction outline display area 22 in the composite rule registration screen example of FIG. 3, and displays the transaction type.
  • the date display area 32 displays the date of processing of the journalizing device 100 .
  • the settlement status display area 33 displays settlement status information. Any comment can be entered by the user in the comment display area 34 .
  • the progress display area 35 displays the progress of processing of the journalizing device 100 .
  • the journal display area 36 corresponds to the journal display area 24 in FIG. 3, and displays the details of the journal processing performed by the journal processing unit 110.
  • the journal entry display area 36 includes a difference display portion 361 that displays the difference between the total amount of debits and the total amount of credits. Since the debit and credit amounts match in correct journalizing processing, the difference display section 361 displays “0”. On the other hand, if the journalizing process is erroneous, the difference display section 361 displays a difference that is not "0".
  • the difference reason suggesting section 362 suggests the error on which the error scenario is based as the reason for the difference.
  • Error scenarios relate to changes in tax rates, for example. If the debit amount is based on the tax rate before the change (for example, 8%) and the credit amount is based on the tax rate after the change (for example, 10%), the difference display section 361 shows the difference corresponding to the difference between the tax rates before and after the change. occur.
  • the difference reason suggesting unit 362 detects that the difference matching the error scenario regarding the tax rate change (for example, the amount corresponding to the tax rate difference of 2%) has occurred in the difference display unit 361, and the tax rate change is the reason for the difference.
  • Error scenarios other than tax rate changes include differences in notation of tax excluded and tax included, and the presence or absence of tax in the case of overseas transactions.
  • the main document display area 37 corresponds to the main document display area 25 in FIG. An actual main document is attached to the main document attachment section 371 .
  • the related document display area 38 corresponds to the related document display area 26 in FIG.
  • An actual related document is attached to the related document attachment section 381 .
  • the related document summary section 382 displays summary information of related documents related to the journalizing process.
  • journalizing device 100 The configuration and action of the journalizing device 100 have been described above. Next, some specific processing examples of the journalizing device 100 will be shown. In the following description, it is assumed that the compound rule shown in FIG. 10 is held in the compound rule holding unit 1051 and the priority rule shown in FIG. 10 correspond to the symbols in FIG. 5 showing the data structure of the compound rule. In addition, the flowchart of FIG. 8 is also referred to in the explanation of the processing.
  • the compound rule selection unit 107 searches for compound rules in FIG. 10 based on the priority rules in FIG. First, the priority rules "001", “002", and “007” with a priority of "1" are specified (S71, S72). Immediately removed from search. In FIG. 10, the only matching condition belonging to the type defined by the priority rules "001" and “007" to be searched is the matching condition "TR1", which is extracted in S73. Specifically, since the matching condition of compound rule "TR1" specifies only "bank statement” as a related document, it matches the condition of priority rule "001" "no other SDs required".
  • Priority rules "003", “004", and “008” are specified for priority “2" (S71, S72), but rule “004" specifying "bank statement” as the main document is searched. Immediately removed from coverage.
  • the composite rule "TR1" already considered in the search processing with the priority "1” is also excluded from the search targets.
  • the matching conditions belonging to the type defined by the priority rules "003” and “008” to be searched are the matching conditions "TR2" and "TR6", and these are extracted in an arbitrary order in S73.
  • the matching condition of the compound rule "TR2" includes the keyword matching conditions of "billing party -contains “Party A”” and "claimant -contains PD claimant” for "invoice” as the second related document.
  • the matching condition of compound rule “TR2” is "summary contains PD” for "bank statement” as the first related document
  • the keyword matching condition of "claimer” matches the condition of "with SD keyword matching condition” of priority rule "008”
  • the matching condition of compound rule “TR6” is "bank statement" as a related document ' contains the keyword match condition of 'summary contains PD claimant', so it matches the condition of 'with SD keyword match condition' of the priority rule '008'. Since the subsequent processing has been described with reference to the flowchart of FIG. 8, description thereof will be omitted.
  • Composite rules "TR2" and “TR3” in Fig. 10 specify one invoice as the main document and another invoice as the related document, so that multiple invoices can be journalized together. .
  • the composite rule “TR2” will be specifically described with reference to examples of composite rule registration screens in FIGS. 3 and 4.
  • a bank statement that records the withdrawal from the bank account of the total billed amount of the two bills is also registered in the related document display area 26 as the first related document.
  • the first invoice (PD) and the second invoice (SD2) each include the metadata designation condition of "Billing Party contains "Party A”", so that the invoice to the same billing party "Party A” It is guaranteed that the second invoice (SD2) is an invoice from the same invoice source by including the metadata designation condition of "claimant contains PD claimant".
  • the bank statement (SD1) includes the metadata designation condition "description contains PD claimant”
  • the processing unit 110 performs a journalizing process of debiting the total billed amount of the two bills and recording the decrease in bank account assets due to the withdrawal of the total billed amount of the two bills as the credit.
  • the total amount of the two invoices is specified in both the debit and credit transaction amount display portions 246 of the journal entry display area 24 in FIG.
  • the types of matching conditions of a compound rule for collectively journalizing a plurality of documents (invoices) of the same type such as "TR2" and "TR3", and the types of matching conditions such as "TR1" Priorities can be set between types of matching conditions for compound rules that journal a single homogeneous document.
  • priority rules "001" and "007” with a small number of specified documents are given the highest priority "1", and priority rule "003" with a large number of specified documents is given priority It is set higher than "2".
  • priority rules ' may be set higher than the priority of the priority rules '001' and '007' with a smaller number of specified documents.
  • one invoice due to tax practices related to invoices and corresponding bank statements, one invoice usually corresponds to one transfer listed on the bank statement.
  • the priority of the type to which "TR1" belongs is set higher than the priority of the types to which "TR2" and "TR3" belong so that a matching condition with a high probability of matching is preferentially selected.
  • invoice A with a billing amount of 300 yen
  • bank statement B with a corresponding transfer amount of 300 yen
  • invoice C with a billing amount of 150 yen
  • the main document invoice A
  • the related document bank statement B
  • correct journal entry is performed.
  • the priority rules "007” and “008” in FIG. 6 differ only in the rule details for "bank statement” as a related document. That is, the priority rule “007” has “SD amount matching condition” as the rule detail, and the priority rule “008” has “SD keyword matching condition” as the rule detail. Therefore, by assigning a desired priority to these priority rules "007” and “008", it is possible to arbitrarily set whether the amount matching condition is emphasized or the keyword matching condition is emphasized. Normally, if the amount matching condition is met, there is a high possibility that strict accounting journal entry processing can be executed, so it is preferable to emphasize the amount matching condition. From this point of view, in FIG. 6, the priority rule "007” specifying the amount matching condition is given the highest priority "1", and the priority rule "008" specifying the keyword matching condition has the priority "2". set higher.
  • Composite rule "TR6" in Fig. 10 enables manual selection of related documents. That is, the related document search unit 109 may search not only for related documents according to preset matching rules for related documents, but also for related documents according to user operation signals. Alternatively, the user may register the related document without going through the related document search unit 109 . If the function to combine multiple invoices and process them in one journal entry is realized by users searching and adding invoices by themselves instead of automatically searching for invoices to be combined like TR2 and TR3, TR2 , TR3 is deactivated and TR6 instead accommodates such bill consolidation functionality.
  • the matching conditions of compound rules "TR4" and "TR5" in Fig. 10 each specify the bank statement of an entity's account (XXX) as the main document.
  • the matching condition of compound rule "TR4" further specifies, as a related document, a bank statement that records a credit amount equal to the main document's credit amount in another account (YYY) of the same entity. That is, compound rule "TR4" corresponds to journal entry of a transfer from account "XXX" to account “YYY" in an entity.
  • the highest priority "1” is given to the priority rule "002" to which the transfer processing compound rule "TR4" belongs, and this priority is higher than that of the priority rule "004" to which "TR5" belongs. Higher than priority "2".
  • the compound rule "TR4" for transfer processing in the same entity is selected before the general compound rule "TR5" for the bank statement of the entity is selected. Therefore, even if the bank statement for transfer processing in the same entity matches the matching conditions of both "TR4" and "TR5", the bank statement is prevented from being processed with the journal entry of compound rule "TR5". Therefore, it is possible to ensure that the transfer process is journalized as a transfer process.
  • journalizing device 100 A specific processing example of the journalizing device 100 has been described above with reference to FIGS.
  • arbitrary priority rules can be set according to the environment and situation in which the journalizing process is executed and the viewpoint to be emphasized in the journalizing process.
  • journalizing apparatus 100 a holding unit (first holding unit) holding compound rules and a holding unit (second holding unit) holding the priority of types are provided separately. .
  • first holding unit holding compound rules
  • second holding unit holding the priority of types
  • journalizing device 100 Next, some application examples of the journalizing device 100 are shown.
  • the billed amount of one bill is divided into multiple payments.
  • a compound rule is applied to execute the journalizing process for each payment process.
  • Each compound rule substantially differs only in transaction amounts.
  • the compound rule for the first payment process is that the bill (hereinafter referred to as the original bill) is the main document and the bank statement is the related document.
  • a virtual (virtual) invoice corresponding to the original invoice is newly generated and stored in the document holding unit 102 when the automatic journalizing of the first payment processing is executed.
  • the virtual invoice differs only in the invoice amount (the invoice amount of the original invoice minus the amount of the first payment) in its metadata, and the other items are the same invoice as those of the original invoice.
  • a virtual invoice may be accompanied by information (such as a flag) indicating that it is virtual, ie, an invoice that exists only within journalizing device 100 .
  • the applicable rule type 53 can specify that the document is virtual.
  • a priority 52 assigning a priority 52 to such a priority rule, it is possible to prioritize types of matching conditions included in a composite rule for journalizing virtual documents.
  • the types of matching conditions included in the composite rule for journalizing virtual documents are given at least the same priority as the types of matching conditions included in the composite rules for journalizing original documents.
  • the original invoice and the virtual invoice can be journalized with the same priority.
  • the original document is used as the type of matching condition included in the compound rules for journalizing virtual documents. It is preferable to set a higher priority than the types of matching conditions included in the combined rule.
  • journalizing process for the transaction amount "30” is executed.
  • Journalizing device 100 issues a first virtual invoice after the first journal entry process and sets the invoice amount to unpaid "70" (original invoice reduced to unpaid "70").
  • the compound rule for the second payment process is to have the first virtual invoice with the invoice amount of "70" as the main document and the bank statement as the related document.
  • “40” is paid in the second payment processing, and that withdrawal history is recorded in the bank statement. Therefore, according to the compound rule for the second payment process, the journalizing process for the transaction amount "40" is executed.
  • the journalizing device 100 issues a second virtual invoice and sets the invoice amount to unpaid "30" (reduces the original invoice to unpaid "30").
  • the compound rule for the third payment process is to have the second virtual invoice with the invoice amount of "30" as the main document and the bank statement as the related document.
  • the balance "30" is paid in the third payment processing, and the withdrawal history is recorded in the bank statement. Therefore, according to the compound rule for the third payment process, the journalizing process for the transaction amount "30" is executed.
  • the original bill with a billing amount of "100" will be paid in full.
  • virtual vouchers are used for various purposes in automatic journal entries, such as issuing virtual vouchers as placeholders for the vouchers that should exist when they do not yet exist, such as accounts receivable and accounts payable. be able to.
  • issuing virtual vouchers as placeholders for the vouchers that should exist when they do not yet exist, such as accounts receivable and accounts payable. be able to.
  • the types of virtual vouchers in addition to the vouchers with meaningful information like the above virtual invoices, there are blank vouchers with nothing written and vouchers with meaningless information. and so on.
  • FIG. 11 is a functional block diagram of the journalizing device 100 according to the second embodiment.
  • a machine learning unit 112 In addition to the configuration of the journalizing device 100 according to the first embodiment shown in FIG. 1, a machine learning unit 112, a training data providing unit 113, and an evaluation unit 114 are provided.
  • the machine learning unit 112 determines the type of matching condition (corresponding to the applicable rule type 53 in FIG. 6) included in the compound rule held in the compound rule holding unit 1051 and the priority in the journalizing process of the compound rule ( (equivalent to priority 52) can be machine-learned.
  • the machine learning unit 112 updates the priority rule held in the priority holding unit 1052 based on the result of machine learning. Specifically, in FIG. 6, the machine learning unit 112 performs update processing such as changing the priority 52 of each priority rule, changing the applicable rule type 53, generating a new priority rule, and deleting an existing priority rule. executed.
  • the training data providing unit 113 provides the machine learning unit 112 with training data for machine learning.
  • the training data includes domain knowledge graphed as reference data covering each assumed pattern of matching conditions in a compound rule and the relationship of priority or importance in the journalizing process of each pattern.
  • the machine learning unit 112 machine-learns these comprehensive training data during the initial setup and maintenance of the journalizing device 100 to determine the optimal priority rules for maximizing the efficiency or accuracy of the journalizing process.
  • a list can be stored in the priority holding unit 1052 .
  • the evaluation unit 114 searches related documents based on the compound rule selected by the compound rule selection unit 107 using the priority rules held in the priority holding unit 1052 and the matching rule of the related document included in the compound rule.
  • the related documents retrieved by the unit 109 and the contents of a part or the whole of the journalizing processing executed by the journalizing processing unit 110 based on these are evaluated, and the correctness/wrongness and appropriateness are determined.
  • the evaluation may be user-initiated or may be autonomously performed by a computer. For example, if the result of a journalizing process executed by the journalizing processing unit 110 conflicts with the result of another journalizing process that has already been executed, those journalizing processes are determined to be erroneous.
  • the evaluation unit 114 evaluates a complex rule with a high execution frequency and a complex rule with a large cumulative processing amount as having a high degree of importance, and gives a high priority to a priority rule corresponding to such a complex rule. Recommendation information on what to do may be included in the evaluation results.
  • the evaluation unit 114 sends a correction instruction to the compound rule selection unit 107, the related document search unit 109, and the journal processing unit 110. and correct each process. Also, the evaluation unit 114 feeds back the evaluation result to the training data providing unit 113 .
  • the training data providing unit 113 provides these to the machine learning unit 112 as training data. In this way, the machine learning unit 112 can continuously perform machine learning using the data used in the actual processing of the journalizing device 100, and maintain high processing accuracy.
  • priority rule group An example of setting the priority rule group is shown in FIG. 6, but as another example, the following priority rule group may be set (according to the notation in FIG. 6).
  • a priority rule group with a high priority for the type of compound rule that applies to a specific entity ⁇ Priority rule 1: Priority "1" / Applicable rule type "An entity There is a condition that the first name text is included.”
  • Priority rule 3 Priority "3" / Applicable rule type "No condition for entity name text"
  • Priority “1” / Applicable rule type “The amount of the main document and related documents is completely There are matching conditions” or “There are N1 or more keyword matching conditions”
  • Priority rule 2 Priority "2" / Applicable rule type "There is a condition that the difference in the amount of the main document and the related document is within 1%" or "There is a keyword matching condition of N2 or more smaller than N1”
  • Priority "3” / Applicable rule type There is a condition that the difference in the amount of the main document and the related document is within 3%” or "There is a keyword matching condition of N3 or more smaller than N2"
  • the applicable rule type of priority rule 3 (type of metadata specification condition) includes the applicable rule type of priority rule 2, and the applicable rule type of priority rule 2 includes the applicable rule type of priority rule 1. encompasses A higher priority is set for a priority rule with a narrower application range of the applicable rule type. This allows strict journalizing for high-priority type processes and provisional journalizing based on available information for low-priority type processes. In the example of setting the priority rule according to the amount matching condition, it is preferable to also execute the processing based on the error scenario described above with respect to the difference reason suggesting section 362 of FIG.
  • each device described in the embodiments can be realized by hardware resources or software resources, or by cooperation between hardware resources and software resources.
  • Processors, ROMs, RAMs, and other LSIs can be used as hardware resources.
  • Programs such as operating systems and applications can be used as software resources.
  • the present invention relates to technology for journalizing transactions.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A journalizing device 100 comprises: a composite rule holding unit 1051 that holds a plurality of composite rules each including a journalizing process rule and a matching condition that is required to be satisfied by a document subject to application of the journalizing process rule; a priority holding unit 1052 that holds the type and priority of the matching condition in association with each other; a composite rule selection unit 107 that selects a composite rule including a matching condition that matches an input document in accordance with the priority held in the priority holding unit 1052 from among the plurality of composite rules held in the composite rule holding unit 1051; and a journalizing process unit 110 that executes a journalizing process on the basis of the journalizing process rule included in the selected composite rule.

Description

仕訳装置、仕訳方法journalizing device, journalizing method
 本発明は、取引を仕訳する技術に関する。 The present invention relates to technology for journalizing transactions.
 商取引は金銭の移動を伴う。たとえば商品の売買の場合、商品の仕様書から始まり、見積書、納品書、請求書等、まずは商品提供側が作成する書類が存在する。一方、商品受取側は、商品の注文書、受領書、代金の振込証明書などの書類を作成する。これらの書類のやりとりを経て金銭の授受がなされ、一連の取引がいわゆる仕訳処理によって帳簿に記録される。 "Business transactions involve the movement of money." For example, in the case of buying and selling a product, there are documents created by the product provider, starting with the specifications of the product, and then including an estimate, a statement of delivery, and an invoice. On the other hand, the product receiving side prepares documents such as an order form for the product, a receipt, and a payment certificate. Money is exchanged through the exchange of these documents, and a series of transactions are recorded in a ledger by so-called journalizing processing.
 年間の売上が1億円の病院の場合、年間の仕訳数は5000にもなると言われる。メーカーの場合、一般にその数はもっと大きくなる。多数の企業の会計を引き受ける税理士は、ときに数百万という数の仕訳処理を毎年の確定申告までに終えなければならず、その労力は計り知れない。 In the case of a hospital with annual sales of 100 million yen, it is said that the annual number of journal entries is as high as 5000. For manufacturers, the number is generally higher. Tax accountants who undertake accounting for a large number of companies sometimes have to complete millions of entries by the time they file their tax returns every year, and the effort involved is immeasurable.
 特許文献1は、取引を帳簿に記録する仕訳処理において、取引の証憑となる文書を併せて記録する技術を開示する。 Patent Document 1 discloses a technique for recording documents that serve as proof of transactions in the journalizing process for recording transactions in a ledger.
特開2019-23793号公報JP 2019-23793 A
 仕訳処理対象の文書に対して実行すべき仕訳処理は状況に応じて異なる。たとえば請求書の支払処理では、その請求額の銀行口座からの出金を記録した銀行取引明細書の有無に応じて仕訳処理が異なる。銀行取引明細書がある場合、「借方に請求額の費用を計上し、貸方に請求額の出金に伴う銀行口座の資産減を計上する」という仕訳処理が行われる。一方、銀行取引明細書がない場合、「借方に請求額の費用を計上し、貸方に請求額の支払義務である買掛金を計上する」という仕訳処理が行われる。このように、仕訳処理は処理対象の文書から一意的に決まるものではなく、状況に適した仕訳処理を選択できる技術があれば会計処理を効率化できることを本発明者は認識した。 The journalizing process that should be executed for documents subject to journalizing differs depending on the situation. For example, in bill payment processing, the journalizing process differs depending on whether or not there is a bank statement that records the withdrawal of the billed amount from the bank account. If there is a bank statement, the journalizing process is performed as follows: "Record the expense of the billed amount on the debit side, and record the decrease in the bank account assets due to the withdrawal of the billed amount on the credit side." On the other hand, if there is no bank statement, journal processing is performed as follows: "Debit the expense of the billed amount, and credit the account payable, which is the obligation to pay the billed amount." In this way, the inventors of the present invention have recognized that the journalizing process is not uniquely determined from the documents to be processed, and that the accounting process can be made more efficient if there is a technique for selecting the journalizing process suitable for the situation.
 本発明はこうした状況に鑑みてなされたものであり、その目的は、状況に適した仕訳処理を効率的に選択できる仕訳装置を提供することにある。 The present invention has been made in view of this situation, and its purpose is to provide a journalizing device that can efficiently select the journalizing process suitable for the situation.
 上記課題を解決するために、本発明のある態様の仕訳装置は、複数の複合ルールであって、各複合ルールが仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを含む複数の複合ルールを保持する複合ルール保持部と、マッチング条件の類型と優先度とを対応付けて保持する優先度保持部と、複合ルール保持部に保持される複数の複合ルールの中から、入力された文書が合致するマッチング条件を含む複合ルールを、優先度保持部に保持される優先度に従って選択する複合ルール選択部と、選択された複合ルールに含まれる仕訳処理ルールに基づいて仕訳処理を実行する仕訳処理部とを備える。 In order to solve the above problems, a journalizing device according to one aspect of the present invention is a plurality of compound rules, each compound rule including a journalizing processing rule and a matching condition to be satisfied by an application target of the journalizing processing rule. a composite rule holding unit that holds compound rules of the input A compound rule selection unit that selects compound rules that include matching conditions that match the document according to the priority held in the priority storage unit, and executes journal processing based on the journal processing rules included in the selected compound rule. and a journal processing unit.
 本発明の別の態様は、仕訳方法である。この方法は、複数の複合ルールであって、各複合ルールが仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを含む複数の複合ルールを保持する複合ルール保持部と、マッチング条件の類型と優先度とを対応付けて保持する優先度保持部とを備える仕訳装置において行われる仕訳方法であって、複合ルール保持部に保持される複数の複合ルールの中から、入力された文書が合致するマッチング条件を含む複合ルールを、優先度保持部に保持される優先度に従って選択するステップと、選択された複合ルールに含まれる仕訳処理ルールに基づいて仕訳処理を実行するステップとを含む。 Another aspect of the present invention is a journalizing method. This method comprises a plurality of compound rules, each of which includes a journal processing rule and a matching condition to be satisfied by an application target of the journal processing rule, a compound rule holding unit that holds a plurality of compound rules, and a matching condition A journalizing method performed in a journalizing apparatus comprising a priority holding unit that holds the types and priorities of selects a composite rule including matching conditions that match according to the priority held in the priority holding unit; and executes journal processing based on the journal processing rule included in the selected composite rule. .
 本発明のさらに別の態様は、仕訳装置である。この装置は、仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを対応付けて保持する第1保持部と、マッチング条件の類型と優先度とを対応付けて保持する第2保持部と、第1保持部に保持されるマッチング条件の中から、入力された文書が合致するマッチング条件を、第2保持部に保持される優先度に従って選択する選択部と、選択部によって選択されたマッチング条件に対応する仕訳処理ルールに基づいて仕訳処理を実行する仕訳処理部とを備える。 Yet another aspect of the present invention is a journalizing device. This device comprises: a first holding unit for holding journal processing rules and matching conditions to be satisfied by the applicable journal processing rules in association with each other; and a second holding unit for holding matching condition types and priorities in association with each other. a selection unit that selects, from among the matching conditions held in the first holding unit, a matching condition with which the input document matches according to the priority held in the second holding unit; a journalizing processing unit for executing journalizing processing based on a journalizing processing rule corresponding to the matching condition;
 本発明のさらに別の態様は、仕訳方法である。この方法は、仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを対応付けて保持する第1保持部と、マッチング条件の類型と優先度とを対応付けて保持する第2保持部とを備える仕訳装置において行われる仕訳方法であって、第1保持部に保持されるマッチング条件の中から、入力された文書が合致するマッチング条件を、第2保持部に保持される優先度に従って選択するステップと、選択部によって選択されたマッチング条件に対応する仕訳処理ルールに基づいて仕訳処理を実行するステップとを含む。 Yet another aspect of the present invention is a journalizing method. This method includes a first holding unit that holds journal processing rules and matching conditions to be satisfied by the applicable journal processing rules in association with each other, and a second holding unit that holds matching condition types and priorities in association with each other. a journalizing method performed in a journalizing device comprising a first holding unit, wherein a matching condition with which an input document matches is stored in a second holding unit from among the matching conditions held in the first holding unit; and a step of executing journalizing processing based on the journalizing processing rule corresponding to the matching condition selected by the selecting unit.
 なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、記録媒体、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。 It should be noted that any combination of the above constituent elements, and any conversion of the expression of the present invention between methods, devices, systems, recording media, computer programs, etc. are also effective as embodiments of the present invention.
 本発明によれば、状況に適した仕訳処理を効率的に選択できる。 According to the present invention, it is possible to efficiently select the journalizing process suitable for the situation.
第1の実施形態に係る仕訳装置の機能ブロック図である。It is a functional block diagram of the journalizing device according to the first embodiment. 仕訳装置により提供される自動仕訳サービスを利用する企業における請求書の支払処理を説明する模式図である。FIG. 4 is a schematic diagram illustrating bill payment processing in a company that uses an automatic journalizing service provided by a journalizing device; 複合ルールの登録画面例を示す図である。FIG. 11 is a diagram showing an example of a registration screen for compound rules. 主文書の指定情報および関連文書のマッチングルールの詳細登録画面である。FIG. 10 is a detailed registration screen for specifying information on a main document and matching rules for related documents; FIG. 複合ルール保持部に保持される複合ルールのデータ構造を示す図である。FIG. 10 is a diagram showing a data structure of a compound rule held in a compound rule holding unit; 優先度設定部による優先度保持部への優先度の設定例を示す表である。5 is a table showing an example of priority setting in a priority holding unit by a priority setting unit; 優先度設定部を介した優先度保持部における優先度の設定画面例を示す図である。FIG. 10 is a diagram showing an example of a priority setting screen in a priority holding unit via a priority setting unit; 仕訳装置の処理を示すフローチャートである。It is a flow chart which shows processing of a journalizing device. 仕訳装置の仕訳処理の状況を示す画面例を示す図である。It is a figure which shows the example of a screen which shows the status of the journalizing process of a journalizing apparatus. 複合ルール保持部に保持される複合ルールの例を示す図である。FIG. 10 is a diagram showing an example of a compound rule held in a compound rule holding unit; 第2の実施形態に係る仕訳装置の機能ブロック図である。It is a functional block diagram of a journalizing device according to a second embodiment.
 本実施形態は、様々な文書に基づく仕訳処理方法を定める複合ルールが多数ある場合に、状況に適した複合ルールを効率的に選択することを主な目的とする。このため、各複合ルールに含まれるマッチング条件の類型(特定の種別の文書を指定する、金額一致条件で文書を指定する、キーワードマッチ条件で文書を指定する、等)に応じた優先度が設定される。 The main purpose of this embodiment is to efficiently select a compound rule suitable for the situation when there are many compound rules that define journalizing processing methods based on various documents. For this reason, the priority is set according to the type of matching conditions included in each compound rule (specify a document of a specific type, specify a document with an amount matching condition, specify a document with a keyword matching condition, etc.) be done.
 優先度に応じて効率的に選択された複合ルールに基づいて実行された仕訳処理の結果、取引ごとに、借方の情報(勘定科目、金額、税等)と貸方の情報(勘定科目、金額、税等)とが対応付けられているデータが生成され、仕訳装置の不図示の保持部に格納される。このように生成されたデータは、後述のとおり表示の用に供されてもよいし、後続の税務処理、会計処理に用いられてもよい。 As a result of journal entry processing executed based on complex rules efficiently selected according to priority, debit information (account, amount, tax, etc.) and credit information (account, amount, tax, etc.) tax, etc.) is generated and stored in a holding unit (not shown) of the journalizing device. The data generated in this manner may be used for display as described below, or may be used for subsequent tax and accounting processing.
 図1は、第1の実施形態に係る仕訳装置100の機能ブロック図である。仕訳装置100は、文書入力部101と、文書保持部102と、メタデータ抽出部103と、主文書取得部104と、記録部105と、設定部106と、複合ルール選択部107と、マッチングルール取得部108と、関連文書検索部109と、仕訳処理部110と、表示制御部111を備える。これらの機能ブロックは、コンピュータの中央演算処理装置、メモリ、入力装置、出力装置、コンピュータに接続される周辺機器等のハードウェア資源と、それらを用いて実行されるソフトウェアの協働により実現される。コンピュータの種類や設置場所は問わず、上記の各機能ブロックは、単一のコンピュータのハードウェア資源で実現してもよいし、複数のコンピュータに分散したハードウェア資源を組み合わせて実現してもよい。 FIG. 1 is a functional block diagram of the journalizing device 100 according to the first embodiment. The journalizing device 100 includes a document input unit 101, a document holding unit 102, a metadata extraction unit 103, a main document acquisition unit 104, a recording unit 105, a setting unit 106, a compound rule selection unit 107, and a matching rule It includes an acquisition unit 108 , a related document search unit 109 , a journal processing unit 110 and a display control unit 111 . These functional blocks are realized through cooperation between hardware resources such as the computer's central processing unit, memory, input device, output device, and peripheral devices connected to the computer, and software executed using them. . Regardless of the type of computer or installation location, each of the above functional blocks may be implemented using the hardware resources of a single computer, or may be implemented by combining hardware resources distributed among multiple computers. .
 本実施形態では、仕訳装置100のほとんどの機能は、PCやスマートフォン等のユーザ端末がインターネット等の情報通信ネットワークを介してアクセス可能なサーバにより実現される。ユーザは、ユーザ端末の入力手段(マウス、キーボード、タッチパネル、カメラ等)を介して仕訳装置100に操作信号を入力する。特に、ユーザ端末の入力によって後述する複合ルールや優先度を設定する場合、設定部106の機能はユーザ端末により実現されるか、または仕訳装置100に設けられた設定部106がユーザ端末を入出力インタフェースとして用いることにより実現される。また、仕訳装置100の処理の内容を表示する表示画面は、任意のディスプレイなどの表示部20に表示されてもよいが、以下ではユーザ端末のディスプレイに表示される場合を説明する。 In this embodiment, most of the functions of the journalizing device 100 are implemented by a server that can be accessed by user terminals such as PCs and smartphones via an information communication network such as the Internet. A user inputs an operation signal to the journalizing device 100 via the input means (mouse, keyboard, touch panel, camera, etc.) of the user terminal. In particular, when setting compound rules and priorities to be described later by user terminal input, the function of the setting unit 106 is realized by the user terminal, or the setting unit 106 provided in the journalizing apparatus 100 inputs and outputs the user terminal It is realized by using it as an interface. The display screen for displaying the processing contents of the journalizing device 100 may be displayed on the display unit 20 such as an arbitrary display, but the case where it is displayed on the display of the user terminal will be described below.
 文書入力部101は、仕訳処理対象の文書を入力し、文書保持部102に格納する。本実施形態では、文書は主文書と関連文書に分類される。主文書は、実行しようとする仕訳処理において必要不可欠な文書であり、取引の内容の証拠となる証憑書類が該当する。主文書がなければ仕訳処理は実行されない。関連文書は、主文書に基づく仕訳処理を補足する情報を提供する文書である。関連文書は、主文書と併せて取引の内容を証明する証憑書類でもよいし、仕訳処理の完了には必要とされない任意の補足書類(例えば、取引に関する関係者の通信記録や備忘録)でもよい。したがって、後述するように、関連文書がなければ仕訳処理が実行されない場合もあるし、関連文書がなくても仕訳処理が実行される場合もある。また、証憑書類は実行しようとする仕訳処理に応じて主文書にも関連文書にもなりうる。したがって、主文書と関連文書の分類は固定的なものではなく、実行しようとする仕訳処理に応じて変わる流動性をもつ場合もある。 The document input unit 101 inputs documents to be journalized and stores them in the document holding unit 102 . In this embodiment, documents are classified into main documents and related documents. The main document is a document that is essential for the journalizing process to be executed, and corresponds to the documentary evidence that serves as evidence of the content of the transaction. No journal processing is performed without the main document. A companion document is a document that provides information that supplements the journal processing based on the main document. A supporting document can be a supporting document proving the nature of the transaction in conjunction with the main document, or it can be any supporting document not required to complete the journalizing process (e.g., correspondence or memoranda of the parties involved in the transaction). Therefore, as will be described later, the journalizing process may not be executed if there is no related document, and the journalizing process may be executed even if there is no related document. Also, a supporting document can be a main document or a related document depending on the journal entry process to be performed. Therefore, the classification of main documents and related documents is not static, and may be fluid depending on the journalizing process to be performed.
 主文書と関連文書の簡単な具体例をいくつか示す。図2は、仕訳装置100により提供される自動仕訳サービスを利用する企業40における請求書の支払処理を説明する模式図である。この例では、仕訳装置100と自動仕訳サービス利用企業40の企業担当者端末41とはインターネットなどのネットワーク42を介して通信可能に接続されている。自動仕訳サービス利用企業40は外注先などの取引先43に商品やサービスを発注し、取引先43は発注された商品やサービスを自動仕訳サービス利用企業40に提供する。取引先43は商品やサービスの対価を請求するために請求書を作成して自動仕訳サービス利用企業40に送付する。自動仕訳サービス利用企業40は自身が銀行口座を有する銀行44に、請求書に記載の額の金銭を自身の銀行口座から取引先43の銀行口座に振り込むよう指示する。銀行44は当該振り込み処理を行う。銀行44は月一回などの頻度で定期的に自動仕訳サービス利用企業40の銀行取引明細書(例えば、上記の振り込みの記録を含む)を作成し、当該企業40に提供する。この請求書の支払処理では、取引先からの請求書が主文書となり、その請求書に記載された請求額が取引先の銀行口座に出金されたことを示す銀行取引明細書が関連文書となる。この例では、主文書および関連文書が共に仕訳処理の完了に必要な証憑書類であり、両文書が揃った段階で、借方で請求額の費用を計上する、買掛金の減少に伴う負債減を計上する等の仕訳処理が実行され、貸方で銀行口座からの請求額の出金に伴う資産減を計上する仕訳処理が実行される。 Here are some simple examples of the main document and related documents. FIG. 2 is a schematic diagram illustrating bill payment processing in a company 40 that uses the automatic journalizing service provided by the journalizing device 100. As shown in FIG. In this example, the journalizing device 100 and a company staff terminal 41 of a company 40 using the automatic journalizing service are connected to communicate via a network 42 such as the Internet. A company 40 using the automatic journalizing service orders products or services from a business partner 43 such as a subcontractor, and the business partner 43 provides the ordered product or service to the company 40 using the automatic journalizing service. The customer 43 prepares a bill and sends it to the company 40 using the automatic journalizing service in order to claim the price of the goods and services. The company 40 using the automatic journalizing service instructs the bank 44 in which it has its own bank account to transfer the amount of money described in the bill from its own bank account to the bank account of the customer 43 . The bank 44 performs the transfer process. The bank 44 prepares the bank statement (including, for example, the above-mentioned transfer record) of the company 40 using the automatic journalizing service on a regular basis, such as once a month, and provides it to the company 40 . In this invoice payment process, the main document is the invoice from the customer and the supporting document is the bank statement showing that the invoiced amount has been withdrawn to the customer's bank account. Become. In this example, both the main document and related documents are supporting documents necessary to complete the journal entry process. Journalizing processing such as recording is executed, and journalizing processing is executed to record the decrease in assets accompanying the withdrawal of the billed amount from the bank account on the credit side.
 税金の還付処理では、税務当局からの還付通知書が主文書となり、その還付通知書に記載された還付額が銀行口座に入金されたことを示す銀行取引明細書が関連文書となる。この例でも、主文書および関連文書が共に仕訳処理の完了に必要な証憑書類であり、両文書が揃った段階で、借方で銀行口座への還付額の入金に伴う資産増を計上する仕訳処理が実行され、貸方で入金に伴う収益を計上する、繰延税金資産の取り崩しに伴う資産減を計上する等の仕訳処理が実行される。 In tax refund processing, the refund notice from the tax authorities is the main document, and the bank statement showing that the refund amount stated in the refund notice has been deposited into the bank account is the related document. In this example as well, both the main document and the related documents are supporting documents necessary to complete the journal entry process, and when both documents are complete, the journal entry process will record the increase in assets associated with the deposit of the refund amount to the bank account on the debit side. is executed, and journalizing processing such as recording the income associated with the receipt of money on the credit side and recording the decrease in assets due to the reversal of deferred tax assets is performed.
 証憑書類の例を以下に示す。
 ・見積書、注文書、納品書、請求書、領収書、借入契約書、納税通知書、還付通知書、金利通知書、配当金支払通知書等の取引や資金移動の内容を示す書類
 ・銀行取引明細書等の銀行口座の入出金を示す書類
 ・減価償却の対象となる資本的経費(CAPEX)のリスト
 ・不動産の新規取得、工事完了報告書、稼働状況、賃料、収入、支出、敷金、未収金等の不動産管理に関する書類
 ・信託決算書等の信託に関する報告書
 以上のような証憑書類やその他の任意の補足書類の種類は、後述するメタデータ抽出部103がメタデータを抽出したときに判定して文書保持部102に格納する。あるいはまた、文書の種類は、文書が入力されたとき、ユーザのマニュアル入力またはコンピュータの自動認識によって、文書入力部101が文書保持部102に格納してもよい。
Examples of supporting documents are shown below.
・Documents that indicate the details of transactions and fund transfers, such as quotations, purchase orders, statements of delivery, invoices, receipts, loan agreements, tax notices, refund notices, interest rate notices, dividend payment notices, etc. ・Banks Documents showing deposits and withdrawals of bank accounts such as transaction statements ・List of capital expenses (CAPEX) subject to depreciation ・New real estate acquisition, construction completion report, occupancy status, rent, income, expenditure, Documents related to real estate management such as receivables ・Reports related to trusts such as trust accounts It is determined and stored in the document holding unit 102 . Alternatively, the document type may be stored by the document input unit 101 in the document holding unit 102 by manual input by the user or automatic recognition by the computer when the document is input.
 なお、本実施形態において、「文書」および「書類」は、任意の種類、形式、拡張子のファイル、電子文書を意味する。したがって、文書および書類には、狭義の文書ファイルだけでなく、表計算ファイル、画像ファイル、動画ファイル、音声ファイル、電子メールやメッセージ等の通信ファイル等の非文書形式のファイルも含まれる。紙の証憑書類等をイメージスキャナで取り込んだ文書は、画像ファイルとして文書入力部101に入力される。 In this embodiment, "documents" and "documents" mean files of any type, format, extension, and electronic documents. Therefore, documents and documents include not only document files in a narrow sense, but also non-document files such as spreadsheet files, image files, moving image files, audio files, and communication files such as e-mails and messages. A document obtained by capturing a paper evidence document or the like with an image scanner is input to the document input unit 101 as an image file.
 メタデータ抽出部103は、文書入力部101が文書保持部102に格納した文書からメタデータを抽出する。文書が文書ファイル、表計算ファイル、通信ファイル等のテキストデータを含むファイルの場合、仕訳処理に用いられる可能性のある各テキストデータを個別に抽出し、適当な種別情報を付してメタデータを生成する。 The metadata extraction unit 103 extracts metadata from the document stored in the document holding unit 102 by the document input unit 101 . If the document is a file containing text data such as a document file, a spreadsheet file, or a communication file, each text data that may be used for journalizing processing is extracted individually, and metadata is added with appropriate type information. Generate.
 たとえば、文書の種類が請求書の場合、発行元の名前が「AAA」とのテキストデータだったとして、「発行元名前」との種別情報が付加されたメタデータ「発行元名前:AAA」が生成される。同様に、請求書の宛先の名前が「BBB」とのテキストデータだった場合は「宛先名前」との種別情報が付加されたメタデータ「宛先名前:BBB」が生成され、請求書の請求額が「CCC」とのテキストデータだった場合は「請求額」との種別情報が付加されたメタデータ「請求額:CCC」が生成され、請求書の発行日が「DDD」とのテキストデータだった場合は「発行日」との種別情報が付加されたメタデータ「発行日:DDD」が生成される。 For example, if the document type is an invoice, and the text data of the issuer name is "AAA", the metadata "issuer name: AAA" with the type information of "issuer name" is generated. Similarly, if the name of the recipient of the invoice is text data "BBB", the metadata "destination name: BBB" with the type information of "destination name" is generated, and the billed amount of the invoice is generated. is text data with "CCC", the metadata "Invoice amount: CCC" with type information of "Invoice amount" is generated, and the invoice issue date is text data with "DDD". In this case, metadata “issue date: DDD” to which type information “issue date” is added is generated.
 なお、文書にテキストデータ以外の非テキストデータ、例えば、団体や商品等のロゴタイプの画像データが含まれている場合は、その非テキストデータをそのままメタデータとして抽出してもよい。この際、その非テキストデータが表すもの(ロゴタイプの画像データの例では団体や商品等)を種別情報としてメタデータに含めるのが好ましい。 If the document contains non-text data other than text data, such as logotype image data of an organization or product, the non-text data may be extracted as it is as metadata. At this time, it is preferable to include what the non-text data represents (organizations, products, etc. in the example of logotype image data) as type information in the metadata.
 文書が画像ファイル、動画ファイル、音声ファイル等の通常はテキストデータを含まないファイルの場合、メタデータ抽出部103は、画像認識や音声認識等の非テキストデータ認識によって仕訳処理に用いられる可能性のあるデータをファイルから抽出し、適当な種別情報を付してメタデータを生成する。典型的な例として、紙の証憑書類等をイメージスキャナで画像ファイルとして取り込んだ文書に対し、画像認識の一種である光学文字認識(OCR:Optical Character Recognition)を適用することで、画像ファイルからテキストデータを抽出できる。抽出されたテキストデータに基づくメタデータの生成は、上記のテキストデータを含むファイルと同様に行うことができる。 If the document is a file that normally does not contain text data, such as an image file, a moving image file, or an audio file, the metadata extracting unit 103 uses non-text data recognition such as image recognition or voice recognition to determine the possibility of being used in the journalizing process. Metadata is generated by extracting certain data from a file and adding appropriate type information. As a typical example, by applying Optical Character Recognition (OCR), which is a type of image recognition, to a document that has been captured as an image file by an image scanner, such as a paper evidence document, text can be extracted from the image file. Data can be extracted. Generation of metadata based on the extracted text data can be performed in the same manner as for files containing text data described above.
 後述するように、文書のマッチング条件がテキストベースで設定される場合は、メタデータをこのようにテキストベースで抽出するのが好ましい。一方、画像や音声等の非テキストデータの認識技術の近年の進歩によって、非テキストデータのままでも文書のマッチングを行うことができる。したがって、メタデータは非テキストデータ、例えば画像データ、動画データ、音声データでもよい。上記の画像ファイルの例では、OCRを適用する代わりに、画像ファイル中で仕訳処理に用いられる可能性のある画像領域を特定し、その各画像領域の画像データに適当な種別情報を付してメタデータとしてもよい。 As described later, if the document matching conditions are set on a text basis, it is preferable to extract the metadata on a text basis in this way. On the other hand, recent advances in technology for recognizing non-text data such as images and voices have made it possible to match documents even with non-text data. Therefore, metadata may be non-textual data, such as image data, video data, audio data. In the image file example above, instead of applying OCR, the image areas in the image file that may be used for the journalizing process are identified, and the image data of each image area is attached with appropriate type information. It may be metadata.
 なお、人工知能(AI: Artificial Intelligence)技術の発展により、上記のような文書から直接抽出されたメタデータを人工知能が解釈し、仕訳処理に有用な補足データを自律的に生成することもできる。このように人工知能が生成した補足データもメタデータに含めるのが好ましい。 In addition, with the development of artificial intelligence (AI) technology, it is also possible for artificial intelligence to interpret the metadata directly extracted from the above documents and autonomously generate supplementary data useful for journalizing. . Such artificial intelligence-generated supplemental data is also preferably included in the metadata.
 以上のようにメタデータ抽出部103によって文書から抽出されたメタデータは、当該文書と関係付けられ、当該文書と共に文書保持部102に格納される。以上が仕訳処理のための準備工程であり、以下が実際の仕訳処理である。 The metadata extracted from the document by the metadata extraction unit 103 as described above is associated with the document and stored in the document holding unit 102 together with the document. The above is the preparation process for the journalizing process, and the following is the actual journalizing process.
 主文書取得部104は、文書保持部102から、仕訳処理対象の主文書を取得する。文書保持部102に保持されている多数の文書の中から、主文書取得部104が主文書を取得する順序やタイミングは任意であるが、以下、文書保持部102に新規文書が格納される都度、主文書取得部104がその新規文書を主文書として取得するものとする。なお、後述するように、主文書取得部104が取得した文書が結果的に主文書に該当しないこともあるが、その場合、仕訳装置100はその文書に基づく仕訳処理を中止して次の新規文書の格納まで待機する。 The main document acquisition unit 104 acquires the main document to be journalized from the document holding unit 102 . Although the order and timing in which the main document acquisition unit 104 acquires the main document from among the large number of documents held in the document holding unit 102 is arbitrary, hereafter, each time a new document is stored in the document holding unit 102 , the main document acquisition unit 104 acquires the new document as the main document. As will be described later, the document acquired by the main document acquisition unit 104 may not be the main document as a result. Wait until the document is stored.
 記録部105は、複合ルール保持部1051と、優先度保持部1052を備える。後述するように、複合ルール保持部1051に保持される複合ルールと、優先度保持部1052に保持される優先度は互いに関連するデータである。したがって、効率的なデータ処理のために両保持部1051、1052は同一のメモリで実現するのが好ましいが、異なるメモリで実現してもよい。 The recording unit 105 includes a compound rule storage unit 1051 and a priority storage unit 1052 . As will be described later, the compound rule held in the compound rule holding unit 1051 and the priority held in the priority holding unit 1052 are mutually related data. Therefore, both holding units 1051 and 1052 are preferably realized by the same memory for efficient data processing, but may be realized by different memories.
 複合ルール保持部1051は複数の複合ルールを保持する。各複合ルールは、少なくとも主文書に基づく仕訳処理ルールと、当該仕訳処理ルールの適用対象となる主文書および/または関連文書が満たすべきマッチング条件とを含む。マッチング条件は、主文書を指定する主文書指定情報を含み、関連文書のマッチングルールを含むことがある。また、関連文書のマッチングルールは、主文書と併せて仕訳処理されるべき関連文書を指定する関連文書指定情報に該当する。優先度保持部1052は、マッチング条件の類型(またはタイプ)と優先度とを対応付けて保持する。 A compound rule holding unit 1051 holds a plurality of compound rules. Each composite rule includes at least a journal processing rule based on the main document and matching conditions to be satisfied by the main document and/or related documents to which the journal processing rule is applied. The matching conditions include main document designation information that designates the main document, and may include matching rules for related documents. Also, the matching rule for related documents corresponds to related document designation information that designates related documents to be journalized together with the main document. The priority holding unit 1052 holds the type (or type) of the matching condition and the priority in association with each other.
 本実施形態では、複合ルールの各々に優先度を設定するのではなく、複合ルールに含まれるマッチング条件の類型に優先度を設定する。例えば、本実施形態に係る処理では、入力文書と複合ルール1のマッチング条件1とのマッチング1が試行され、合致しなければ、入力文書と複合ルール2のマッチング条件2とのマッチング2が試行される、というフローが実行されうる。ここで、マッチング1がマッチング2よりも先に試行される理由は、マッチング条件1の類型の優先度がマッチング条件2の類型の優先度よりも高いからであって、複合ルール1の優先度が複合ルール2の優先度よりも高いからではない。本実施形態ではそもそも、複合ルール1にも複合ルール2にも優先度は設定されていないし、マッチング条件1にもマッチング条件2にも優先度は設定されていない。マッチング条件の類型に優先度が設定されているのである。 In this embodiment, the priority is not set for each compound rule, but for the type of matching conditions included in the compound rule. For example, in the processing according to the present embodiment, matching 1 between the input document and matching condition 1 of compound rule 1 is attempted, and if there is no match, matching 2 between the input document and matching condition 2 of compound rule 2 is attempted. can be executed. Here, the reason why matching 1 is tried before matching 2 is that the priority of the type of matching condition 1 is higher than the priority of the type of matching condition 2, and the priority of compound rule 1 is It is not because the priority is higher than that of compound rule 2. In the present embodiment, neither the compound rule 1 nor the compound rule 2 has a priority, and neither the matching condition 1 nor the matching condition 2 has a priority. Priority is set for the types of matching conditions.
 これにより、自動仕訳においてルールの構築の自由度を高めることで様々な種類の取引をより正確に仕分けることができるようになると共に、類型の優先度を管理することで管理の煩雑化を抑えることができる。ルール構築の自由度は、個別具体的なルールの各々に優先度を付すこととすればより高まるかもしれない。しかしながら、その場合、ルールの数が増えればその分設定作業・更新作業の手間も増え、優先度のレベルの数も増えるので、ルールの設定・管理がより困難で手のかかるものとなり、人為的なミスが発生する蓋然性も高まる。本実施形態では、マッチング条件の類型に優先度を設定することで、ルールの設定や管理の負担の増大を抑えつつルールの構築の自由度を高めることができる。 As a result, various types of transactions can be sorted more accurately by increasing the degree of freedom in constructing rules in automatic journal entry, and the complexity of management can be suppressed by managing the priority of types. can be done. The degree of freedom in rule construction may be enhanced by assigning priority to each individual and specific rule. However, in that case, as the number of rules increases, the time and effort required for setting and updating the rules also increases, and the number of priority levels also increases. It also increases the probability of making mistakes. In this embodiment, by setting priorities for types of matching conditions, it is possible to increase the degree of freedom in building rules while suppressing an increase in the burden of rule setting and management.
 設定部106は、複合ルール登録部1061と、優先度設定部1062とを含む。複合ルール登録部1061は、複合ルール保持部1051に複合ルールを登録する。複合ルール登録部1061は、ユーザのマニュアル操作またはコンピュータの自動入力に応じて、新規の複合ルールの作成、既存の複合ルールの変更や削除等の登録処理を行う。優先度設定部1062は、優先度保持部1052にマッチング条件の類型に応じた優先度を設定する。優先度設定部1062は、ユーザのマニュアル操作またはコンピュータの自動入力に応じて、マッチング条件の新規の類型の登録、既存の類型の変更や削除、各類型への優先度の新規付与、変更等の設定処理を行う。 The setting unit 106 includes a compound rule registration unit 1061 and a priority setting unit 1062. The compound rule registration unit 1061 registers compound rules in the compound rule storage unit 1051 . The compound rule registration unit 1061 performs registration processing such as creation of a new compound rule and modification or deletion of an existing compound rule according to manual operation by the user or automatic input by the computer. The priority setting unit 1062 sets the priority according to the type of matching condition in the priority holding unit 1052 . The priority setting unit 1062 registers a new type of matching condition, changes or deletes an existing type, assigns a new priority to each type, or changes the matching condition according to the user's manual operation or the computer's automatic input. Perform setting processing.
 図3および図4は、複合ルール登録部1061による複合ルールの登録画面例を示す。この登録画面は、後述する表示制御部111によってユーザ端末の表示部20に表示される。取引名表示領域21は、ユーザやコンピュータが任意に設定可能な取引の名称を表示する。取引概要表示領域22は、予め用意されたプルダウンリストから選択された取引の概要を表示する。エンティティ表示領域23は、本複合ルールが適用されるエンティティ(個人や法人)を表示する。例えば、多数の顧客を抱える税理士法人が本実施形態の仕訳装置100を利用する場合、エンティティ表示領域23で適用対象のエンティティを指定することで、税理士法人の顧客(エンティティ)毎に異なる複合ルールを設定できる。一方、全ての顧客に共通の複合ルールを設定する際は、図示のように「All」を指定する。税理士法人に所属する税理士は、自身が担当するエンティティの税務を行うために自身の端末からネットワークを介して仕訳装置100にアクセスし、当該エンティティのためのインスタンスにログインする。当該インスタンスでは、当該インスタンスに対応するエンティティが適用対象となっている複合ルールのみが使用される。例えば、「甲社」のインスタンスにログインしている場合、エンティティ表示領域23で「甲社」が指定されているか「ALL」が指定されている複合ルールのみが使用される。 3 and 4 show examples of registration screens for compound rules by the compound rule registration unit 1061. FIG. This registration screen is displayed on the display unit 20 of the user terminal by the display control unit 111, which will be described later. The transaction name display area 21 displays the name of the transaction that can be arbitrarily set by the user or computer. The transaction summary display area 22 displays the summary of a transaction selected from a pull-down list prepared in advance. The entity display area 23 displays entities (individuals and corporations) to which this composite rule is applied. For example, when a tax accountant corporation with many customers uses the journalizing device 100 of the present embodiment, by specifying the entity to be applied in the entity display area 23, a different compound rule for each customer (entity) of the tax accountant corporation is displayed. Can be set. On the other hand, when setting a compound rule common to all customers, specify "All" as shown. A tax accountant belonging to a tax accountant corporation accesses the journalizing device 100 from his/her own terminal via the network and logs into the instance for the entity in order to perform taxation of the entity he/she is in charge of. In that instance, only compound rules that apply to the entity corresponding to that instance are used. For example, when logged in to an instance of "Company A", only compound rules for which "Company A" is specified or "ALL" is specified in the entity display area 23 are used.
 仕訳表示領域24は、主文書表示領域25に表示される主文書と関連文書表示領域26に表示される関連文書を関連づけながら実行される仕訳処理の内容を表示する領域であり、複合ルールの主要部としての仕訳処理ルールを表示し、その設定を受け付ける。借方表示領域241は借方(Debit/Dr)の処理を設定するための領域であり、貸方表示領域242は貸方(Credit/Cr)の処理を設定するための領域である。借方表示領域241および貸方表示領域242は、それぞれ、貸借表示部243、取引アカウント表示部244、取引サブアカウント表示部245、取引金額表示部246、税金アカウント表示部247、税金額表示部248を含み、それぞれの表示部が編集可能である。特にここでの日付や金額などの数値を指定する場合、主文書の項目および関連文書の項目の両方を演算に利用可能である。例えば、「金額=(主文書の項目1)-(関連文書の項目3)」のように、異なる文書の異なる項目に基づく設定が可能となっている。このように、仕訳表示領域24で指定される仕訳処理において主文書のみならず関連文書の情報も利用可能としたことにより、仕訳処理の設定の自由度を高めることができる。これにより、例えばより複雑な仕訳処理の自動化が可能となり、ユーザ利便性が向上する。 The journal entry display area 24 is an area for displaying the details of the journal entry process executed while associating the main document displayed in the main document display area 25 with the related document displayed in the related document display area 26, and is the main part of the composite rule. View journal processing rules as a department and accept their settings. A debit display area 241 is an area for setting debit (Debit/Dr) processing, and a credit display area 242 is an area for setting credit (Credit/Cr) processing. Debit display area 241 and credit display area 242 each include a balance display portion 243, a transaction account display portion 244, a transaction subaccount display portion 245, a transaction amount display portion 246, a tax account display portion 247, and a tax amount display portion 248. , each display is editable. Especially when specifying numerical values such as dates and amounts here, both the items of the main document and the items of the related documents can be used for the calculation. For example, it is possible to make settings based on different items in different documents, such as "amount = (item 1 of main document) - (item 3 of related document)". In this manner, by making it possible to use not only main document information but also related document information in the journalizing process specified in the journalizing display area 24, the degree of freedom in setting the journalizing process can be increased. As a result, for example, it is possible to automate more complicated journalizing processing, thereby improving user convenience.
 貸借表示部243は、借方(Dr)および貸方(Cr)の別を表示する。図示の取引例では、借方を表す借方表示領域241と貸方を表す貸方表示領域242がそれぞれ一つであるが、借方および/または貸方の項目が複数となる取引もある。その場合は、借方表示領域241および/または貸方表示領域242を複数設定できる。取引アカウント表示部244は、取引を記録する勘定科目(アカウント)を指定する。取引サブアカウント表示部245は、取引アカウント表示部244で指定された勘定科目の下位勘定科目(サブアカウント)を指定する。勘定科目に下位勘定科目がない場合、取引サブアカウント表示部245は空欄とされる。 The balance display unit 243 displays debit (Dr) and credit (Cr). In the illustrated transaction example, there is one debit display area 241 for debits and one credit display area 242 for credits, but some transactions have multiple debit and/or credit items. In that case, a plurality of debit display areas 241 and/or credit display areas 242 can be set. The transaction account display section 244 designates account items (accounts) for recording transactions. The transaction sub-account display section 245 specifies sub-account items (sub-accounts) of the account items specified in the transaction account display section 244 . If the account item has no lower account items, the transaction subaccount display section 245 is left blank.
 取引金額表示部246は、取引アカウント表示部244および取引サブアカウント表示部245で指定された勘定科目および下位勘定科目に計上されるべき取引金額を指定する。図示の取引例は、取引概要表示領域22にあるように匿名組合出資金の入金処理に関し、主文書表示領域25に表示される主文書としての「Notice Letter」(匿名組合出資金の通知書)に基づいて実行される。借方表示領域241および貸方表示領域242の取引金額表示部246に表示される「NoticeAmount」は、「Notice Letter」に記載された匿名組合出資金の金額を取引金額とすることを意味する。このとき、借方表示領域241では匿名組合出資金の入金に伴う普通預金の増加が記録され、貸方表示領域242では匿名組合出資金の増加が記録される。 The transaction amount display section 246 specifies the transaction amount to be recorded in the accounts and sub-accounts specified in the transaction account display section 244 and transaction subaccount display section 245 . The transaction example shown in the figure relates to the payment processing of the silent partnership investment as shown in the transaction summary display area 22, and the main document displayed in the main document display area 25 is "Notice Letter" (notice of silent partnership investment). is executed based on "NoticeAmount" displayed in the transaction amount display portion 246 of the debit display area 241 and the credit display area 242 means that the amount of the silent partnership investment described in the "Notice Letter" is the transaction amount. At this time, the debit display area 241 records an increase in the ordinary deposit accompanying the payment of the silent partnership investment, and the credit display area 242 records the increase in the silent partnership investment.
 この例のように、借方表示領域241および貸方表示領域242がそれぞれ一つの場合、借方および貸方の取引金額表示部246は一致しなければならない。借方および/または貸方の項目が複数となる取引では、借方および貸方の取引金額表示部246の総額が一致しなければならない。 As in this example, when there is one debit display area 241 and one credit display area 242, the debit and credit transaction amount display sections 246 must match. In a transaction with multiple debit and/or credit items, the total amount of the debit and credit transaction amount display 246 must match.
 税金アカウント表示部247は、取引に関する税金を記録する勘定科目(アカウント)を指定する。税金額表示部248は、税金アカウント表示部247で指定された勘定科目に計上されるべき税金額を指定する。図示の取引例は、取引に関する税金が発生しないため、税金アカウント表示部247は「0 - 対象外」を表示し、税金額表示部248は「0」を表示する。 The tax account display section 247 designates account items (accounts) for recording taxes related to transactions. The tax amount display section 248 designates the tax amount to be added to the account item designated by the tax account display section 247 . In the illustrated transaction example, no tax is incurred for the transaction, so the tax account display section 247 displays "0 - not applicable" and the tax amount display section 248 displays "0".
 主文書表示領域25は、仕訳処理対象の主文書の種類を表示する。前述の通り、図示の例では、主文書の種類として「Notice Letter」(匿名組合出資金の通知書)が登録されている。主文書の詳細登録画面については図4に関して後述する。 The main document display area 25 displays the type of main document to be journaled. As described above, in the illustrated example, "Notice Letter" (notice of silent partnership investment) is registered as the main document type. The main document details registration screen will be described later with reference to FIG.
 関連文書表示領域26は、主文書について予め設定された関連文書のマッチングルールに基づき検索される関連文書の種類を表示する。図示の例では、関連文書の種類として「Bank Statement」(匿名組合出資金が入金される銀行の取引明細書)が登録されている。なお、主文書とは異なり、関連文書は一つの複合ルールに複数登録できるため、そのための関連文書追加ボタン261が設けられる。また、関連文書がなくても仕訳処理が実行できる場合、関連文書表示領域26はなくてもよい。関連文書の詳細登録画面については図4にて後述する。 The related document display area 26 displays the types of related documents to be searched based on the related document matching rule set in advance for the main document. In the illustrated example, "Bank Statement" (bank statements to which silent partnership funds are deposited) is registered as the type of related document. Note that unlike the main document, a plurality of related documents can be registered in one compound rule, so a related document add button 261 is provided for this purpose. Also, if the journalizing process can be executed without related documents, the related document display area 26 may be omitted. The detailed registration screen of related documents will be described later with reference to FIG.
 マッチング条件表示領域27は、図4に示される主文書の指定情報および関連文書のマッチングルールの登録画面で登録されたマッチング条件の名称271と登録日272を表示する。画面上でマッチング条件の名称271を選択することで、図4の詳細登録画面に遷移できる。 The matching condition display area 27 displays the name 271 and registration date 272 of the matching conditions registered on the registration screen for the main document specification information and related document matching rules shown in FIG. By selecting the matching condition name 271 on the screen, it is possible to transition to the detailed registration screen of FIG.
 図4は、主文書の指定情報および関連文書のマッチングルールの詳細登録画面である。マッチング条件の名称271は、ユーザやコンピュータが任意に設定可能である。 Fig. 4 is a detailed registration screen for the specification information of the main document and the matching rules for the related documents. The matching condition name 271 can be arbitrarily set by the user or computer.
 主文書表示領域25は、主文書を指定する主文書指定情報の設定項目として、文書種別251、メタデータ種別(Data Key)252、比較条件253、比較値254を含む。文書種別251は、文書の種類を設定する。例えば、先に例示した各種の証憑書類をプルダウンリストから選択できる。図示の例では、前述の通り、匿名組合出資金の通知書に対応する「Notice Letter」が設定されている。 The main document display area 25 includes a document type 251, a metadata type (Data Key) 252, a comparison condition 253, and a comparison value 254 as setting items for main document designation information that designates the main document. The document type 251 sets the type of document. For example, it is possible to select from the pull-down list the various evidence documents exemplified above. In the illustrated example, as described above, "Notice Letter" corresponding to the silent partnership investment notice is set.
 メタデータ種別252は、文書種別251で設定された種類の文書について、主文書の指定に用いるメタデータの種類を設定する。メタデータ抽出部103の説明において、文書の種類が請求書の場合の「発行元名前:AAA」「宛先名前:BBB」「請求額:CCC」「発行日:DDD」等のメタデータを例示したが、これらの各メタデータの前段にある「発行元名前」「宛先名前」「請求額」「発行日」等の種別情報をメタデータ種別252で設定できる。文書種別251に応じて、主文書の指定に主に用いるメタデータの種類は限られるため、これらをプルダウンリストとしてユーザがその中から適当なものを選択できるようにしてもよい。図示の例では、匿名組合出資金の通知書の「Notice Sender」(発行元名前)が設定されている。 The metadata type 252 sets the type of metadata used to specify the main document for the type of document set in the document type 251 . In the description of the metadata extraction unit 103, metadata such as "issuer name: AAA", "destination name: BBB", "billing amount: CCC", and "issuance date: DDD" are exemplified when the document type is an invoice. However, type information such as “issuer name”, “destination name”, “billing amount”, and “issuance date” in the preceding stage of each metadata can be set in the metadata type 252 . Since the types of metadata mainly used for specifying the main document are limited according to the document type 251, these may be used as a pull-down list so that the user can select an appropriate one from them. In the illustrated example, "Notice Sender" (issuer name) of the notice of silent partnership investment is set.
 比較条件253は、メタデータ種別252で設定された種類のメタデータについて、比較値254で設定される比較値に対する比較条件を設定する。比較値254が図示のようにテキストデータである場合、比較条件253はテキストデータに対する各種の論理演算方法を設定する。例えば、比較値254のテキストに関し「それと同一である」「それと同一でない」「それを含む」「それを含まない」「それから始まる」「それから始まらない」「それで終わる」「それで終わらない」等の各種の比較条件を設定できる。また、比較値254が数値データである場合、比較条件253は数値データに対する各種の算術演算方法を設定する。例えば、比較値254の数値に関し「それと等しい」「それと等しくない」「それより大きい」「それより小さい」「それ以上」「それ以下」等の簡単な大小比較条件を設定できる。以上のような論理演算または算術演算において複数の比較値254を設定してもよい。その場合の比較条件253は、複数の比較値254に基づく任意の比較演算を行う多変数関数として設定できる。 The comparison condition 253 sets a comparison condition for the comparison value set in the comparison value 254 for metadata of the type set in the metadata type 252 . If the comparison value 254 is text data as shown, the comparison condition 253 sets various logic operation methods for the text data. For example, "is the same as", "is not the same as", "contains", "does not contain", "starts with", "does not start with", "ends with", "does not end with", etc. for the text of comparison value 254. Various comparison conditions can be set. Also, when the comparison value 254 is numerical data, the comparison condition 253 sets various arithmetic operation methods for the numerical data. For example, simple magnitude comparison conditions such as "equal to", "not equal to", "larger than", "smaller than", "greater than or equal to", or "less than or equal to" can be set for the numerical value of the comparison value 254. FIG. A plurality of comparison values 254 may be set in the logical operation or arithmetic operation as described above. The comparison condition 253 in that case can be set as a multivariable function that performs arbitrary comparison operations based on a plurality of comparison values 254 .
 図示の例では、「株式会社XX銀行」との比較値254に対し、「contains」(含む)との比較条件253が設定されている。したがって、この主文書指定情報は、「Notice Sender」(メタデータ種別252)として「株式会社XX銀行」(比較値254)を「含む」(比較条件253)「Notice Letter」(文書種別251)を主文書として指定するものである。換言すれば、この主文書指定情報によって株式会社XX銀行が発行した匿名組合出資金の通知書が主文書として指定される。 In the illustrated example, a comparison condition 253 with "contains" is set for the comparison value 254 with "XX Bank Co., Ltd.". Therefore, this main document specification information "includes" (comparison condition 253) "XX Bank, Ltd." (comparison value 254) as "Notice Sender" (metadata type 252) and "Notice Letter" (document type 251). It is designated as the main document. In other words, the notice of silent partnership investment issued by XX Bank Co., Ltd. is designated as the main document by this main document designation information.
 以上のように、主文書表示領域25に表示される主文書指定情報のうち、メタデータ種別252、比較条件253、比較値254は合わせて、主文書に含まれるメタデータについての指定条件(以下、メタデータ指定条件という)を一つ定める。図4の例ではメタデータ種別252、比較条件253、比較値254からなる1行が一つのメタデータ指定条件となる。メタデータ指定条件には、キーワードマッチや数値マッチなどの異なる複数の類型が存在する。後述するように、これらのメタデータ指定条件の類型は、マッチング条件の類型の優先度の設定に利用される。 As described above, of the main document specifying information displayed in the main document display area 25, the metadata type 252, the comparison condition 253, and the comparison value 254 are combined together to specify the metadata included in the main document (hereinafter referred to as , metadata specification conditions). In the example of FIG. 4, one line consisting of the metadata type 252, the comparison condition 253, and the comparison value 254 is one metadata specification condition. There are multiple types of metadata specification conditions, such as keyword match and numeric match. As will be described later, these types of metadata specifying conditions are used to set the priority of matching condition types.
 なお、図示の例では、設定項目252~254の組合せで定義されるメタデータ指定条件が一つしかないが、指定条件追加ボタン255によってメタデータ指定条件を追加できる。この際、一つの複合ルールに登録される主文書は一つであるため、必然的に文書種別251は複数のメタデータ指定条件に亘って共通となる。したがって、新たに追加するメタデータ指定条件では、メタデータ種別252、比較条件253、比較値254の三つの項目を設定すればよい。また、メタデータ指定条件削除ボタン256によって既存のメタデータ指定条件を削除できる。 In the illustrated example, there is only one metadata specification condition defined by a combination of setting items 252 to 254, but a metadata specification condition can be added using the add specification condition button 255. FIG. At this time, since one main document is registered in one compound rule, the document type 251 is inevitably common across a plurality of metadata specifying conditions. Therefore, in the newly added metadata designation condition, it is sufficient to set the three items of the metadata type 252, the comparison condition 253, and the comparison value 254. FIG. Also, the existing metadata specification condition can be deleted by a metadata specification condition delete button 256 .
 関連文書表示領域26は、主文書表示領域25と同様に、関連文書のマッチングルールの設定項目として、文書種別262、メタデータ種別263、比較条件264、比較値265を含む。これらの設定項目は、主文書表示領域25の文書種別251、メタデータ種別252、比較条件253、比較値254と同等であり、重複した説明は省略する。文書種別262は、主文書の文書種別251と同様に、文書の種類を設定する。主文書は証憑書類に限られるが、関連文書は証憑書類以外の任意の補足書類でもよいため、それらに対応する種類も追加的に設定可能である。図示の例では、前述の通り、匿名組合出資金の入金に関する「Bank Statement」が設定されている。そして、この「Bank Statement」について、二つのメタデータ指定条件が設定されている。 Similar to the main document display area 25, the related document display area 26 includes a document type 262, a metadata type 263, a comparison condition 264, and a comparison value 265 as setting items for matching rules for related documents. These setting items are equivalent to the document type 251, the metadata type 252, the comparison condition 253, and the comparison value 254 of the main document display area 25, and overlapping descriptions are omitted. The document type 262 sets the type of document in the same manner as the document type 251 of the main document. The main document is limited to the documentary evidence, but the related document may be any supplementary document other than the documentary evidence, so the types corresponding to them can be additionally set. In the illustrated example, as described above, the "Bank Statement" regarding the deposit of the silent partnership investment is set. Two metadata specification conditions are set for this "Bank Statement".
 第1のメタデータ指定条件では、メタデータ種別263に「Item Description」(摘要)が設定され、比較条件264に「contains」(含む)が設定され、比較値265に「ガイコクカンケイ」(外国関係)が設定されている。したがって、このマッチングルールは、「Item Description」(メタデータ種別263)に「ガイコクカンケイ」(比較値265)のテキストを「含む」(比較条件264)「Bank Statement」(文書種別262)を関連文書として見つけるものである。換言すれば、このマッチングルールによって外国関係の摘要を含む銀行取引明細書を関連文書として検索できる。 In the first metadata specification condition, the metadata type 263 is set to "Item Description", the comparison condition 264 is set to "contains", and the comparison value 265 is set to "gaikokukankei" (foreign relations). ) is set. Therefore, this matching rule "contains" (comparison condition 264) the text "description" (comparison value 265) in "Item Description" (metadata type 263) "Bank Statement" (document type 262) is found as In other words, bank statements containing foreign-related abstracts can be retrieved as related documents by this matching rule.
 第2のメタデータ指定条件では、メタデータ種別263に「Transaction Amount」(取引金額)が設定され、比較条件264に「=」(等しい)が設定され、比較値265に「NoticeAmount」(前述の通り、主文書としての「Notice Letter」に記載された匿名組合出資金の金額)が設定されている。したがって、このマッチングルールは、「Transaction Amount」(メタデータ種別263)が「NoticeAmount」(比較値265)に「等しい」(比較条件264)「Bank Statement」(文書種別262)を関連文書として見つけるものである。換言すれば、このマッチングルールによって通知書に記載された匿名組合出資金の金額と等しい取引金額(入金額)を含む銀行取引明細書を関連文書として検索できる。 In the second metadata specification condition, the metadata type 263 is set to "Transaction Amount", the comparison condition 264 is set to "=" (equal), and the comparison value 265 is set to "NoticeAmount" (described above). As shown, the amount of silent partnership investment stated in the "Notice Letter" as the main document) is set. Therefore, this matching rule finds "Bank Statement" (document type 262) where "Transaction Amount" (metadata type 263) is "equal" (comparative condition 264) to "NoticeAmount" (comparison value 265) as a related document. is. In other words, this matching rule enables a search as a related document for a bank statement containing a transaction amount (deposit amount) equal to the amount of the silent partnership investment amount described in the notice.
 したがって、上記の第1および第2のメタデータ指定条件の組合せによって、外国関係の摘要を含み、かつ、通知書に記載された匿名組合出資金の金額と等しい取引金額を含む銀行取引明細書を関連文書として検索できる。このように検索された関連文書としての銀行取引明細書は、主文書である株式会社XX銀行発行の匿名組合出資金の通知書と共に、図3の仕訳表示領域24に表示される取引の証憑となる。図示の例では、これらの両文書が揃った段階で、仕訳表示領域24に表示される取引(株式会社XX銀行からの匿名組合出資金の入金処理)の仕訳処理が後述する仕訳処理部110により実行される。 Therefore, by combining the above first and second metadata specification conditions, a bank statement containing a summary of foreign relations and a transaction amount equal to the amount of silent partnership investment stated in the notification Can be searched as related documents. The bank statement as a related document retrieved in this manner is used as evidence of the transaction displayed in the journal entry display area 24 of FIG. Become. In the illustrated example, at the stage when both of these documents are prepared, the journalizing processing of the transactions displayed in the journalizing display area 24 (the processing of depositing the silent partnership investment from XX Bank, Ltd.) is performed by the journalizing processing unit 110, which will be described later. executed.
 以上のように、関連文書表示領域26に表示される関連文書指定情報のうち、メタデータ種別263、比較条件264、比較値265は合わせて、関連文書に含まれるメタデータについてのメタデータ指定条件を定める。後述するように、これらのメタデータ指定条件の類型は、マッチング条件の類型の優先度の設定に利用される。 As described above, among the related document designation information displayed in the related document display area 26, the metadata type 263, the comparison condition 264, and the comparison value 265 together constitute the metadata designation condition for the metadata included in the related document. determine. As will be described later, these types of metadata specifying conditions are used to set the priority of matching condition types.
 なお、指定条件追加ボタン266によって、既存の関連文書「Bank Statement」(文書種別262)についてメタデータ指定条件を追加できる。また、指定条件削除ボタン267によって既存のメタデータ指定条件を削除できる。さらに、図3と同様の関連文書追加ボタン261によって、別の関連文書を追加することもできる。 It should be noted that a metadata specification condition can be added to the existing related document "Bank Statement" (document type 262) by using the specification condition addition button 266. In addition, an existing metadata specifying condition can be deleted by a specified condition delete button 267 . Further, another related document can be added by pressing the related document addition button 261 similar to that in FIG.
 図4に示されるマッチング条件は、文書から抽出されたテキストデータを比較値254、265とするものである。これに対し、画像データ、動画データ、音声データ、AIによる補足データ等の非テキストデータに基づいてマッチング条件を構成することもできる。この場合、比較値254、265の代わりに非テキストデータそのものを比較対象データとし、比較条件253、264の代わりに比較対象データの形式に合わせた類否判断アルゴリズムを用いればよい。例えば、団体や商品等のロゴタイプの画像データを比較対象データとする場合、任意の画像類否判断アルゴリズムを用いて、そのロゴタイプと類似の画像を含む文書を検索できる。 The matching condition shown in FIG. 4 uses the text data extracted from the document as comparison values 254 and 265. On the other hand, matching conditions can also be configured based on non-text data such as image data, moving image data, audio data, supplementary data by AI, and the like. In this case, instead of the comparison values 254 and 265, the non-text data itself may be used as comparison target data, and instead of the comparison conditions 253 and 264, a similarity determination algorithm adapted to the format of the comparison target data may be used. For example, when image data of a logotype of an organization or product is used as data to be compared, any image similarity determination algorithm can be used to search for documents containing images similar to the logotype.
 図5は、複合ルール保持部1051に保持される複合ルールのデータ構造を示す。本図に示される各データについては、図3および図4で詳述した。複合ルールは、基本情報、仕訳処理ルール24、マッチング条件としての主文書指定情報25および関連文書マッチングルール26を含む。基本情報は、複合ルールを特定するID(例えば、取引名表示領域21に入力された名称や一意の記号番号)と、複合ルールが対応する取引の概要(例えば、取引概要表示領域22に入力された情報)と、複合ルールの適用対象のエンティティ(例えば、エンティティ表示領域23で指定されたエンティティ)の各情報を含む。 FIG. 5 shows the data structure of the compound rule held in the compound rule holding unit 1051. FIG. Each data shown in this figure was described in detail in FIGS. 3 and 4. FIG. The composite rule includes basic information, journal processing rules 24, main document designation information 25 as matching conditions, and related document matching rules 26. FIG. The basic information includes an ID that identifies the compound rule (for example, the name or unique symbol number entered in the transaction name display area 21) and an outline of the transaction to which the compound rule corresponds (for example, the transaction outline entered in the transaction outline display area 22). information) and each information of the entity to which the compound rule is applied (for example, the entity specified in the entity display area 23).
 仕訳処理ルール24は、借方情報241と貸方情報242を含む。借方情報241および貸方情報242は、それぞれ、貸借情報243、取引アカウント情報244、取引サブアカウント情報245、取引金額情報246、税金アカウント情報247、税金額情報248を含む。 The journal processing rule 24 includes debit information 241 and credit information 242. Debit information 241 and credit information 242 include debit/credit information 243, transaction account information 244, transaction sub-account information 245, transaction amount information 246, tax account information 247, and tax amount information 248, respectively.
 取引に応じて実行すべき仕訳処理の内容に応じて、借方情報241および/または貸方情報242が複数あってもよい。主文書指定情報25は、文書種別251、メタデータ種別252、比較条件253、比較値254を含む。これらのデータの組251~254は複数あってもよい。その場合、前述したように、文書種別251は全てのデータの組で同一である。関連文書マッチングルール26は、文書種別262、メタデータ種別263、比較条件264、比較値265を含む。これらのデータの組262~265は複数あってもよい。 There may be a plurality of debit information 241 and/or credit information 242 depending on the contents of the journalizing process to be executed according to the transaction. The main document designation information 25 includes a document type 251 , metadata type 252 , comparison conditions 253 and comparison values 254 . There may be a plurality of these data sets 251-254. In that case, as described above, the document type 251 is the same for all data sets. Related document matching rule 26 includes document type 262 , metadata type 263 , comparison condition 264 , and comparison value 265 . There may be a plurality of these data sets 262-265.
 図6は、優先度設定部1062による優先度保持部1052への優先度の設定例を示す表である。この表の各データは、優先度ルールID51、優先度52、適用ルールタイプ53の組で構成されるルールである。優先度ルールID51は、各ルールを特定する固有の識別情報である。図示の例では、コンピュータによって自動入力されるシリアルナンバーが優先度ルールID51として使用される。 FIG. 6 is a table showing an example of priority setting in the priority holding unit 1052 by the priority setting unit 1062. FIG. Each piece of data in this table is a rule composed of a set of priority rule ID 51, priority 52, and applicable rule type 53. FIG. The priority rule ID 51 is unique identification information that identifies each rule. In the illustrated example, a serial number automatically entered by the computer is used as the priority rule ID 51 .
 優先度52は、適用ルールタイプ53で指定されるマッチング条件の類型に付される優先度である。図示の例では、「1」を最高の優先度とする自然数によって優先度52が設定される。複数の類型について同一の優先度52を設定してもよい。図示の例では、最高の優先度「1」が優先度ルールID「001」「002」「007」の各ルールで規定される各類型に付与され、次いで高い優先度「2」が優先度ルールID「003」「004」「008」の各ルールで規定される各類型に付与され、次いで高い優先度「3」が優先度ルールID「005」のルールで規定される類型に付与され、次いで高い優先度「4」が優先度ルールID「006」のルールで規定される類型に付与される。後述するように、仕訳装置100は、主文書取得部104で取得された主文書に対して、優先度が高い類型に属するマッチング条件から順にマッチングを試行する。なお、同一の優先度の複数の類型(例えば優先度「1」のルール「001」「002」「007」で規定される各類型)の適用順序は任意である。 The priority 52 is a priority given to the type of matching condition specified by the applicable rule type 53. In the illustrated example, the priority 52 is set by a natural number with "1" being the highest priority. The same priority 52 may be set for a plurality of types. In the illustrated example, the highest priority "1" is given to each type defined by each rule with priority rule IDs "001", "002" and "007", and the next highest priority "2" is given to the priority rule. Each type defined by each rule of ID "003", "004", and "008" is given, then the high priority "3" is given to the type defined by the rule of priority rule ID "005", and then A high priority of "4" is given to the type defined by the rule with priority rule ID "006". As will be described later, the journalizing device 100 attempts matching of the main documents acquired by the main document acquisition unit 104 in descending order of matching conditions belonging to the type with the highest priority. The order of application of a plurality of types with the same priority (for example, each type defined by rules "001", "002", and "007" with a priority of "1") is arbitrary.
 適用ルールタイプ53は、優先度52の付与対象としてのマッチング条件の類型を指定する。マッチング条件の類型とは、仕訳処理ルールの適用対象が満たすべきマッチング条件の型ないしタイプである。マッチング条件の類型は以下の要素(以下、ルール細目ということもある)のうちの少なくとも一つにより定義可能である。類型の定義に以下の要素以外の要素が用いられてもよい。
(1)主文書の文書種別指定の有無
(2)主文書の具体的な文書種別
(3)主文書のメタデータ指定条件の有無と類型
(4)関連文書が要求されるか否か
(5)関連文書の文書種別指定の有無
(6)関連文書の具体的な文書種別
(7)関連文書のメタデータ指定条件の有無と類型
 図6に示されるいくつかのルールについて具体的に説明する。
The applicable rule type 53 specifies the type of matching condition to which the priority 52 is assigned. The type of matching condition is the type or type of matching condition that should be satisfied by the application target of the journalizing processing rule. The type of matching condition can be defined by at least one of the following elements (hereinafter also referred to as rule details). Elements other than the following elements may be used to define a typology.
(1) Presence/absence of specification of document type of main document (2) Specific document type of main document (3) Presence/absence of metadata specification condition and type of main document (4) Whether or not related documents are requested (5) (6) Specific document type of related document (7) Presence/absence of metadata specification condition and type of related document Several rules shown in FIG. 6 will be described in detail.
 ルール「001」の適用ルールタイプは「PDドキュメントタイプ=インボイス、SDドキュメントタイプ=銀行明細書、他にSDを要求しない」である。ここで、PDはPrimary Documentの略で主文書を意味し、SDはSupporting Documentの略で関連文書を意味する。第1のルール細目「PDドキュメントタイプ=インボイス」は、主文書の文書種別251が「請求書」(インボイス)であるマッチング条件を指定する。第2のルール細目「SDドキュメントタイプ=銀行明細書」は、関連文書の文書種別262が「銀行取引明細書」(銀行明細書)であるマッチング条件を指定する。第3のルール細目「他にSDを要求しない」は、第2のルール細目で指定される「銀行取引明細書」以外の関連文書を指定する関連文書マッチングルール26が存在しないマッチング条件を指定する。以上の三つのルール細目の論理積(AND)による組合せにより、このルール「001」は「主文書が請求書であること、かつ、関連文書として銀行取引明細書を一つ探すこと、かつ、それ以外の関連文書は探さないこと」というマッチング条件の類型を指定する。そして、このルール「001」が適用される場合、「主文書が請求書であること、かつ、関連文書として銀行取引明細書を一つ探すこと、かつ、それ以外の関連文書は探さないこと」という類型に合致するマッチング条件を含む複合ルールが複合ルール保持部1051から選択される。 The applicable rule type for rule "001" is "PD document type = invoice, SD document type = bank statement, no other SD required". Here, PD is an abbreviation for Primary Document, and SD is an abbreviation for Supporting Document, which means a related document. The first rule item "PD document type=invoice" specifies a matching condition that the document type 251 of the main document is "invoice" (invoice). The second rule item "SD document type=bank statement" specifies a matching condition where the document type 262 of the related document is "bank statement" (bank statement). The third rule item "no other SD required" specifies a matching condition where there are no related document matching rules 26 that specify related documents other than the "bank statement" specified in the second rule item. . By combining the above three rule details with a logical product (AND), this rule "001" is determined to be "the main document is an invoice, and one bank statement is searched as a related document, and Specify the type of matching condition "Do not search for related documents other than And when this rule "001" is applied, "the main document must be an invoice, and one bank statement must be searched as a related document, and no other related documents must be searched." A compound rule including a matching condition matching the type is selected from the compound rule holding unit 1051 .
 ルール「003」の適用ルールタイプは「PDドキュメントタイプ=インボイス、SD1ドキュメントタイプ=銀行明細書、SD2ドキュメントタイプ=インボイス、SD2キーワードマッチ条件有り」である。第1および第2のルール細目は、上記のルール「001」と同様である。第3のルール細目「SD2ドキュメントタイプ=インボイス」は、第2のルール細目で指定される第1の関連文書(SD1)としての「銀行取引明細書」に加え、第2の関連文書(SD2)として文書種別262で「請求書」を指定するマッチング条件を指定する。第4のルール細目「SD2キーワードマッチ条件有り」は、第2の関連文書としての「請求書」についてキーワードのマッチ条件が設定されたマッチング条件を指定する。具体的には、「請求書」についての関連文書マッチングルール26において、比較値265がテキストによるキーワードで構成され、比較条件264として「それと同一である」「それを含む」「それから始まる」「それで終わる」等のキーワードのマッチ条件が設定されたマッチング条件が指定される。なお、実際の比較値265には、図3の「ガイコクカンケイ」の例にあるように個別具体的なテキストが設定されているが、本適用ルールタイプにおいては、テキストの内容は問わず、何らかのテキストが比較値265として設定されているかという点のみが問われる。キーワードのマッチ条件の有無はメタデータ指定条件の類型を定義する一要素であり、そのような要素には他に、数値のマッチ条件の有無や数値の大小関係条件の有無やデータ項目存否条件(例えば、特定のデータ項目を有する関連文書を検索するための条件)の有無やチェックボックスへのチェック存否条件(例えば、チェックボックスにチェックがある関連文書を検索するための条件)の有無などがある。ルール「003」の適用ルールタイプで指定されるマッチング条件の類型は、キーワードのマッチ条件有りというメタデータ指定条件の類型を含む。 The applicable rule type for rule "003" is "PD document type = invoice, SD1 document type = bank statement, SD2 document type = invoice, SD2 with keyword match condition". The first and second rule details are similar to rule "001" above. The third rule item "SD2 Document Type = Invoice" specifies that in addition to "bank statement" as the first related document (SD1) specified in the second rule item, the second related document (SD2 ) as a matching condition that specifies “bill” in the document type 262 . The fourth rule detail "SD2 with keyword matching condition" designates a matching condition in which a keyword matching condition is set for "invoice" as the second related document. Specifically, in the related document matching rule 26 for "bill", the comparison value 265 is composed of textual keywords, and the comparison conditions 264 are "same as", "includes", "begins with", "beginning with". A matching condition is specified in which a keyword matching condition such as "ends" is set. In the actual comparison value 265, an individual specific text is set as in the example of "Finding information" in FIG. The only question is whether the text is set as the comparison value 265 . The presence or absence of keyword matching conditions is one element that defines the types of metadata specification conditions. For example, there is a condition for retrieving related documents that have a specific data item), and there is a check presence/absence condition for a check box (for example, a condition for retrieving related documents with a check in the check box). . The type of matching condition specified by the applicable rule type of rule "003" includes the type of metadata specifying condition that there is a keyword matching condition.
 以上のように、関連文書のメタデータ指定条件の類型に基づいてマッチング条件の類型を指定できる。主文書のメタデータ指定条件の類型に基づいてマッチング条件の類型を指定することもできる。以上の四つのルール細目の組合せにより、このルール「003」は「主文書が請求書であること、かつ、第1の関連文書として銀行取引明細書を一つ探すこと、かつ、第2の関連文書として請求書を一つ探すこと、かつ、キーワードのマッチ条件により第2の関連文書を探すこと」というマッチング条件の類型を指定する。そして、このルール「003」が適用される場合、「主文書が請求書であること、かつ、第1の関連文書として銀行取引明細書を一つ探すこと、かつ、第2の関連文書として請求書を一つ探すこと、かつ、キーワードのマッチ条件により第2の関連文書を探すこと」という類型に合致するマッチング条件を含む複合ルールが複合ルール保持部1051から選択される。 As described above, the type of matching condition can be specified based on the type of metadata specification condition of related documents. It is also possible to specify the type of matching condition based on the type of metadata specifying condition of the main document. By combining the above four rule details, this rule "003" is determined to "look for one bank statement as the first related document and one bank statement as the first related document and The type of matching condition is designated as "searching for one bill as a document and searching for a second related document based on a keyword matching condition." And when this rule "003" is applied, "the main document is an invoice, and one bank statement is searched as the first related document, and the invoice A compound rule including a matching condition that matches the type of "finding one book and searching for a second related document based on a keyword matching condition" is selected from the compound rule holding unit 1051. FIG.
 ルール「004」の適用ルールタイプは「PDドキュメントタイプ=銀行明細書、SDを要求しない」である。第1のルール細目「PDドキュメントタイプ=銀行明細書」は、主文書の文書種別251が「銀行取引明細書」(銀行明細書)であるマッチング条件を指定する。第2のルール細目「SDを要求しない」は、関連文書マッチングルール26が設定されていないマッチング条件を指定する。このように、関連文書指定情報26の有無はマッチング条件の類型を定義する一要素である。一方、基本的に主文書指定情報25はマッチング条件に含まれるため、主文書指定情報25の有無はマッチング条件の類型を定義する要素とはならない。しかし、例えば主文書を複数指定できる場合は主文書の数の条件の有無がマッチング条件の類型を定義する一要素となりうる。また、主文書の文書種別251やその指定の有無や主文書のメタデータ指定条件の有無や類型はマッチング条件の類型を定義する要素となりうる。以上の二つのルール細目の組合せにより、このルール「004」は「主文書が銀行取引明細書であること、かつ、関連文書は探さないこと」というマッチング条件の類型を指定する。そして、このルール「004」が適用される場合、「主文書が銀行取引明細書であること、かつ、関連文書は探さないこと」という類型に合致するマッチング条件を含む複合ルールが複合ルール保持部1051から選択される。 The applicable rule type for rule "004" is "PD document type = bank statement, SD not required". The first rule item "PD document type=bank statement" specifies a matching condition that the document type 251 of the main document is "bank statement" (bank statement). The second rule item "Do not require SD" specifies a matching condition for which the related document matching rule 26 is not set. In this way, the presence or absence of the related document designation information 26 is one factor that defines the type of matching condition. On the other hand, since the main document designation information 25 is basically included in the matching condition, the presence or absence of the main document designation information 25 is not an element that defines the type of matching condition. However, if, for example, a plurality of main documents can be specified, the presence or absence of conditions for the number of main documents can be one of the factors that define the type of matching condition. Also, the document type 251 of the main document, whether or not it is specified, and whether or not there is a metadata specification condition for the main document and its type can be elements that define the type of the matching condition. By combining the above two rule details, this rule "004" specifies a matching condition type of "the main document is a bank statement and no related documents are searched". Then, when this rule "004" is applied, a compound rule containing a matching condition that matches the type of "the main document is a bank statement and that related documents are not searched" is stored in the compound rule storage unit. 1051 are selected.
 ルール「005」の適用ルールタイプは「PDドキュメントタイプ=インボイス、SD1ドキュメントタイプ=銀行明細書、SD2ドキュメントタイプ=インボイス、SD3ドキュメントタイプ=インボイス」である。このルール「005」は「主文書が請求書であること、かつ、第1の関連文書として銀行取引明細書を一つ探すこと、かつ、第2の関連文書として請求書を一つ探すこと、かつ、第3の関連文書として請求書を一つ探すこと」というマッチング条件の類型を指定する。主文書、第2の関連文書、第3の関連文書はいずれも請求書であるが、このように異なる文書についてルール細目の内容が同一(ドキュメントタイプ=インボイス)となっても問題ない。このルール「005」に対応する具体的な仕訳処理については後述するが、詳細なマッチング条件251~254、262~265に基づいて、最終的には異なる請求書が主文書、第2の関連文書、第3の関連文書として指定されるためである。このように、図6に示される適用ルールタイプで規定されるマッチング条件の類型は、マッチング条件251~254、262~265の少なくとも一部(ルール「005」では文書種別251、262)についてのものであり、この少なくとも一部のマッチング条件は仕訳処理すべき文書を予備的にフィルタする役割を果たす。その後、マッチング条件251~254、262~265の残りの部分に基づいて、個々の具体的な文書が最終的に特定される。 The applicable rule type for rule "005" is "PD document type = invoice, SD1 document type = bank statement, SD2 document type = invoice, SD3 document type = invoice". This rule '005' is ``the main document is an invoice, and one bank statement is to be searched as the first related document, and one invoice is to be searched as the second related document, and to search for one invoice as the third related document” is specified as the type of matching condition. The main document, the second related document, and the third related document are all invoices, but there is no problem even if the contents of rule details are the same (document type=invoice) for these different documents. The specific journalizing process corresponding to this rule "005" will be described later, but based on the detailed matching conditions 251-254 and 262-265, different invoices will eventually become the main document and the second related document. , is designated as the third related document. Thus, the types of matching conditions defined by the applicable rule types shown in FIG. 6 are for at least some of the matching conditions 251 to 254 and 262 to 265 (document types 251 and 262 for rule "005"). and at least some of the matching conditions serve to pre-filter the documents to be journalized. Each concrete document is then finally identified based on the remainder of the matching conditions 251-254, 262-265.
 ルール「007」の適用ルールタイプは「PDドキュメントタイプ=インボイス、SDドキュメントタイプ=銀行明細書、SD金額一致条件有り」である。第3のルール細目「SD金額一致条件有り」は、第2のルール細目で指定された関連文書としての「銀行取引明細書」について金額の一致条件が設定されたマッチング条件を指定する。具体的には、文書種別262として「銀行取引明細書」が指定された関連文書マッチングルール26において、「出金額」等の金額に関するメタデータ種別263が設定され、比較値265として具体的な金額を表す情報が設定され、比較条件264として「それと等しい」等の一致条件が設定されたマッチング条件が指定される。なお、実際の比較値265には、図3の「NoticeAmount」の例にあるように個別具体的な金額を表す情報が設定されているが、本適用ルールタイプにおいては、その金額の大小は問わず、何らかの具体的な金額を表す情報が比較値265として設定されているかという点のみが問われる。金額の一致条件の有無はメタデータ指定条件の類型を定義する一要素である。以上の三つのルール細目の組合せにより、このルール「007」は「主文書が請求書であること、かつ、関連文書として銀行取引明細書を一つ探すこと、かつ、金額の一致条件により関連文書を探すこと」というマッチング条件の類型を指定する。そして、このルール「007」が適用される場合、「主文書が請求書であること、かつ、関連文書として銀行取引明細書を一つ探すこと、かつ、金額の一致条件により関連文書を探すこと」という類型に合致するマッチング条件を含む複合ルールが複合ルール保持部1051から選択される。 The applicable rule type for rule "007" is "PD document type = invoice, SD document type = bank statement, with SD amount matching condition". The third rule item "with SD amount matching condition" specifies a matching condition in which the amount matching condition is set for the "bank statement" as the related document specified by the second rule item. Specifically, in the related document matching rule 26 in which "bank statement" is specified as the document type 262, the metadata type 263 related to the amount such as "withdrawal amount" is set, and the specific amount is set as the comparison value 265. is set, and a matching condition such as "equal to" is set as the comparison condition 264 is specified. As shown in the example of "NoticeAmount" in FIG. 3, the actual comparison value 265 is set with information representing an individual and specific amount of money. First, the only question is whether or not information representing some specific amount of money is set as the comparison value 265 . Whether or not there is an amount matching condition is one element that defines the type of metadata specifying condition. By combining the above three rule details, this rule "007" is determined to be "the main document is an invoice, and one bank statement is searched as a related document, and the related document Specify the type of matching condition "to search for". Then, when this rule "007" is applied, "the main document must be an invoice, one bank statement must be searched as a related document, and the related document must be searched by matching the amount. ” is selected from the compound rule holding unit 1051 .
 以上で例示した適用ルールタイプ53は、いずれもマッチング条件の類型を指定するに過ぎず、個々の具体的なマッチング条件まで特定するものではない。しかしながら、上記の(1)~(7)の類型の要素のうち、適用ルールタイプにおいて(2)および/または(6)が指定される場合、これはマッチング条件の一部(文書種別)を具体的に指定することと同義である。したがって、ルール「005」に関して前述したように、仕訳処理すべき文書を予備的にフィルタすることと同じ効果が得られる。その予備的フィルタ処理の後続ステップにおいて、マッチング条件の残りの部分に基づいて、個々の具体的な文書が最終的に特定される。このように段階的な処理ステップを設けることで、文書の指定における自由度が飛躍的に向上し、仕訳処理を効率化できる。しかも、この予備的フィルタ処理のステップにおいて優先度52を設定可能とすることで、より一層の自由度が得られる。 The applicable rule types 53 exemplified above merely designate types of matching conditions, and do not specify individual specific matching conditions. However, when (2) and/or (6) are specified in the applicable rule type among the elements of types (1) to (7) above, this specifies part of the matching condition (document type). It is synonymous with specifying Therefore, it has the same effect as preliminarily filtering the documents to be journalized, as described above with respect to rule "005". In subsequent steps of that preliminary filtering, individual concrete documents are finally identified based on the remainder of the matching criteria. By providing step-by-step processing steps in this manner, the degree of freedom in designating documents can be dramatically improved, and the efficiency of the journalizing process can be improved. Moreover, by making it possible to set the priority 52 in this preliminary filtering step, a greater degree of freedom can be obtained.
 なお、個々の適用ルールタイプ53で規定される類型に属するマッチング条件を含む複合ルールは複数存在することが想定される。したがって、適用ルールタイプ53毎に優先度52を設定することで、複数の複合ルールにまとめて同じ優先度52を設定するのと同じ効果が得られる。多数の顧客を抱える税理士法人の場合、多様な態様の取引について顧客毎に複合ルールを作成する必要があり、複合ルールの数は膨大である。このような場合に個々の複合ルールに優先度を一つずつ設定するのは煩雑で非現実的である。本実施形態によれば、共通する類型(適用ルールタイプ53)のマッチング条件を含む複数の複合ルールにまとめて優先度52を効率的に設定するのと同じ効果が得られる。 It is assumed that there are multiple compound rules that include matching conditions belonging to the types defined by the individual applicable rule types 53. Therefore, by setting the priority 52 for each applicable rule type 53, the same effect as setting the same priority 52 collectively to a plurality of compound rules can be obtained. In the case of a tax accountant corporation with many customers, it is necessary to create complex rules for each customer with respect to various types of transactions, and the number of complex rules is enormous. In such a case, it is complicated and unrealistic to set the priority for each compound rule one by one. According to this embodiment, the same effect as efficiently setting the priority 52 collectively for a plurality of compound rules including matching conditions of a common type (applied rule type 53) can be obtained.
 図7は、優先度設定部1062を介した優先度保持部1052における優先度の設定画面例を示す。本画面における各項目は優先度設定部1062への操作や入力によって任意に設定できる。優先度設定領域520は、図6における優先度52を表示し、かつ、ユーザによる優先度の入力を受け付ける。優先度ルール名設定領域54は、図6における優先度ルールの名称を表示し、かつ、ユーザによる任意の名称の入力を受け付ける。詳細表示部55は、三角形のアイコンのクリック操作に応じて、優先度ルールの詳細設定領域530を表示する。下向きの三角形のアイコンをクリックすることで優先度ルールの詳細設定領域530が展開表示され、上向きの三角形のアイコンをクリックすると優先度ルールの詳細設定領域530が畳まれて表示されなくなる。図示の例では、「法人特定ルール」の詳細設定領域530のみが表示されている。詳細設定領域530は、図6における適用ルールタイプ53を表示し、かつ、ユーザによる類型の入力を受け付ける。 FIG. 7 shows an example of a priority setting screen in the priority holding unit 1052 via the priority setting unit 1062. FIG. Each item on this screen can be arbitrarily set by operating or inputting to the priority setting unit 1062 . A priority setting area 520 displays the priority 52 in FIG. 6 and accepts input of priority by the user. A priority rule name setting area 54 displays the name of the priority rule in FIG. 6 and accepts any name input by the user. The detail display unit 55 displays a priority rule detail setting area 530 in response to a click operation on the triangular icon. By clicking the downward triangular icon, the priority rule detail setting area 530 is expanded and displayed, and by clicking the upward triangular icon, the priority rule detailed setting area 530 is collapsed and not displayed. In the illustrated example, only the detailed setting area 530 for "corporation specific rule" is displayed. A detailed setting area 530 displays the applied rule type 53 in FIG. 6 and accepts input of the type by the user.
 詳細設定領域530は、ルール種類設定部531と、ルール適用形式設定部532と、対象項目設定部533と、比較条件設定部534と、データ型設定部535と、ルール細目追加部536を含む。ルール種類設定部531、ルール適用形式設定部532、対象項目設定部533、比較条件設定部534、データ型設定部535の組が、適用ルールタイプ53で規定される類型の構成単位であるルール細目を構成する。図6で説明したように、一つの適用ルールタイプ53は複数のルール細目を含むことができ、ルール細目追加部536によってルール細目を追加できる。例えば、図6におけるルール「001」の適用ルールタイプ53は、「PDドキュメントタイプ=インボイス」「SDドキュメントタイプ=銀行明細書」「他にSDを要求しない」という三つのルール細目から構成される。 The detail setting area 530 includes a rule type setting portion 531, a rule application format setting portion 532, a target item setting portion 533, a comparison condition setting portion 534, a data type setting portion 535, and a rule detail addition portion 536. A set of a rule type setting section 531, a rule application format setting section 532, a target item setting section 533, a comparison condition setting section 534, and a data type setting section 535 constitutes a structural unit of the type defined by the applicable rule type 53. configure. As described with reference to FIG. 6, one applicable rule type 53 can include a plurality of rule details, and the rule details can be added by the rule detail adding unit 536 . For example, the application rule type 53 of rule "001" in FIG. 6 is composed of three rule details: "PD document type = invoice", "SD document type = bank statement", and "no other SD required". .
 ルール種類設定部531では、ルール細目の種類をプルダウンリストから選択できる。以下にルール細目の種類の例を示す(括弧内に図6における該当例も示す)
 ・主文書指定情報内の一つの項目(主に文書種別251)に基づくもの(ルール「001」の「PDドキュメントタイプ=インボイス」)、上記の類型の要素(1)、(2)に対応
 ・主文書指定情報内の複数の項目(主にメタデータ指定条件252~254)に基づくもの(図6に該当例なし)、上記の類型の要素(3)に対応
 ・関連文書指定情報の有無に関するもの(ルール「001」の「他にSDを要求しない」、ルール「004」の「SDを要求しない」)、上記の類型の要素(4)に対応
 ・関連文書指定情報内の一つの項目(主に文書種別262)に基づくもの(ルール「001」の「SDドキュメントタイプ=インボイス」)、上記の類型の要素(5)、(6)に対応
 ・関連文書指定情報内の複数の項目(主にメタデータ指定条件263~265)に基づくもの(ルール「003」の「SD2キーワードマッチ条件有り」、ルール「007」の「SD金額一致条件有り」)、上記の類型の要素(7)に対応
 なお、関連文書が複数ある場合は、各関連文書について上記の各種類を選択できる。
In the rule type setting section 531, the type of rule details can be selected from a pull-down list. Examples of types of rule details are shown below (applicable examples in Figure 6 are also shown in parentheses)
・Based on one item (mainly document type 251) in the main document specification information (“PD document type = invoice” in rule “001”), corresponding to elements (1) and (2) of the above type・Based on multiple items (mainly metadata specification conditions 252 to 254) in main document specification information (no corresponding example in Fig. 6), corresponding to element (3) of the above type ・Presence or absence of related document specification information (Rule "001""no other SD required", rule "004""no SD required"), corresponding to element (4) of the above type ・One item in the related document specification information (mainly based on document type 262) (“SD document type = invoice” of rule “001”), corresponding to elements (5) and (6) of the above type ・Multiple items in related document specification information (mainly metadata specification conditions 263 to 265) (rule "003""SD2 keyword match condition", rule "007""SD amount match condition"), element (7) of the above type If there are multiple related documents, each of the above types can be selected for each related document.
 ルール適用形式設定部532は、対象項目設定部533、比較条件設定部534、データ型設定部535で設定される条件の適用形式を設定する。例えば「含む」「含まない」という二つの適用形式から選択できる。「含む」が選択された場合、対象項目設定部533、比較条件設定部534、データ型設定部535で設定される条件が、そのままルール細目となる。「含まない」が選択された場合、対象項目設定部533、比較条件設定部534、データ型設定部535で設定される条件の否定がルール細目となる。なお、適用形式は上記の「含む」「含まない」に限らず、論理学に基づいて任意に設定すればよい。 The rule application format setting unit 532 sets the application format of the conditions set by the target item setting unit 533, the comparison condition setting unit 534, and the data type setting unit 535. For example, it is possible to select from two applicable forms of "include" and "not include". When "include" is selected, the conditions set in the target item setting section 533, the comparison condition setting section 534, and the data type setting section 535 become the rule details as they are. When "does not include" is selected, negation of the conditions set by the target item setting section 533, the comparison condition setting section 534, and the data type setting section 535 becomes the rule details. Note that the applicable format is not limited to "include" or "not include" described above, and may be arbitrarily set based on logic.
 対象項目設定部533は、本ルール細目の対象となる項目を、マッチング条件251~254、262~265に基づいて設定する。図示の「Invoice: entity name」は、「請求書」(文書種別251)における「発行元名前」(メタデータ種別252)を対象項目とする。 The target item setting unit 533 sets the target items of this rule detail based on the matching conditions 251-254 and 262-265. The illustrated "Invoice: entity name" targets "issuer name" (metadata type 252) in "invoice" (document type 251).
 比較条件設定部534は、対象項目設定部533で設定された対象項目に対する比較条件を設定する。比較条件は任意の論理演算子または算術演算子を用いて設定できる。図示の例では「=」(それと等しい)が設定されている。 The comparison condition setting section 534 sets comparison conditions for the target items set by the target item setting section 533 . Comparison conditions can be set using any logical or arithmetic operator. In the illustrated example, "=" (equal to) is set.
 データ型設定部535は、比較条件設定部534で設定された比較条件の適用対象としてのデータ型を設定する。データ型は、比較条件に適合する任意のものでよいが、例えば「文字列型」「数値型」「ブーリアン型」「日付型」「バイナリ型」「void型」が挙げられる。図示の例では「String」(文字列型)が設定されている。なお、図6に関して、適用ルールタイプ53はマッチング条件の類型を指定するに過ぎず、個々の具体的なマッチング条件まで特定するものではない、と説明したが、その典型がデータ型設定部535に現われている。すなわち、データ型設定部535は、データの具体的な内容ではなく、データの型(類型)を設定する。 The data type setting unit 535 sets data types to which the comparison conditions set by the comparison condition setting unit 534 are applied. Any data type that meets the comparison conditions may be used, and examples include "character string type", "numeric type", "boolean type", "date type", "binary type", and "void type". In the illustrated example, "String" (character string type) is set. With reference to FIG. 6, it has been explained that the applicable rule type 53 merely designates the type of matching condition and does not specify individual specific matching conditions. appearing. That is, the data type setting unit 535 sets the data type (type) rather than the specific contents of the data.
 以上、ルール種類設定部531、ルール適用形式設定部532、対象項目設定部533、比較条件設定部534、データ型設定部535の組で設定されるルール細目について説明した。図示の例は、「主文書」(531)である「請求書の発行元名前」(533)に「何らかの文字列」(535)が「含まれている」(534)という条件を「そのまま適用する」(532)ルール細目である。このような一または複数のルール細目によって一の優先度ルール(適用ルールタイプ53)が構成される。新たな優先度ルールを作成する際は、優先度ルール追加部56によって優先度ルールを追加する。 The rule details set by the set of the rule type setting unit 531, the rule application format setting unit 532, the target item setting unit 533, the comparison condition setting unit 534, and the data type setting unit 535 have been described above. In the illustrated example, the condition that "some character string" (535) is "included" (534) in "invoice issuer name" (533), which is the "main document" (531), is "applied as is" (534). Do" (532) is a rule detail. One priority rule (applicable rule type 53) is composed of such one or more rule details. When creating a new priority rule, the priority rule is added by the priority rule adding unit 56 .
 図6および図7に示した優先度ルールのリストは、仕訳装置100のユーザがログインするインスタンス毎に異なるものを優先度保持部1052に保持するのが好ましい。このために、優先度保持部1052は、マッチング条件の類型と、該類型に付された優先度と、該優先度が適用される顧客を特定するIDとを対応付けて保持してもよい。この優先度保持部1052では、同じ類型でも顧客IDが異なると優先度も異なりうる。仕訳装置100は、ユーザがログインしたインスタンスに対応する顧客の顧客IDをキーとして優先度保持部1052をフィルタリングしてもよい。例えば、仕訳装置100のユーザとして税理士法人に所属する税理士を想定した場合、自身が担当する顧客毎のインスタンスに対応した優先度ルールのリストを個別に用意する。これによって、税理士がログインしたインスタンスに最適にカスタマイズされた優先度ルールが自動的に適用されるので、各顧客の仕訳処理における文書の探索を効率的に行える。 It is preferable that the priority rule lists shown in FIGS. 6 and 7 are held in the priority holding unit 1052 for each instance logged in by the user of the journalizing device 100 . For this reason, the priority holding unit 1052 may hold the type of matching condition, the priority given to the type, and the ID specifying the customer to whom the priority is applied, in association with each other. In this priority holding unit 1052, even if the customer ID is the same, the priority can be different for different customer IDs. The journalizing apparatus 100 may filter the priority holding unit 1052 using the customer ID of the customer corresponding to the instance logged in by the user as a key. For example, assuming that the user of the journalizing device 100 is a tax accountant belonging to a tax accountant corporation, a list of priority rules corresponding to each instance of each customer that the user is in charge of is individually prepared. This will automatically apply priority rules customized to the instance the tax accountant is logged into, allowing efficient document searches for each customer's journal entry process.
 図1に戻り、仕訳装置100の残りの構成について説明する。 Returning to FIG. 1, the rest of the configuration of the journalizing device 100 will be described.
 複合ルール選択部107は、主文書取得部104が取得した文書に対して、それが合致する主文書指定情報を含む複合ルールを複合ルール保持部1051から選択する。ここでいう主文書指定情報は、図4の主文書表示領域25における文書種別251、メタデータ種別252、比較条件253、比較値254で構成されるものである。したがって、図4の例では、主文書取得部104が取得した文書が「株式会社XX銀行が発行した匿名組合出資金の通知書」との主文書指定情報251~254に合致する場合、図3および図4に示される複合ルールが複合ルール選択部107によって選択される。 The compound rule selection unit 107 selects, from the compound rule storage unit 1051, a compound rule containing the matching main document specifying information for the document acquired by the main document acquisition unit 104. The main document specifying information here is composed of the document type 251, the metadata type 252, the comparison condition 253, and the comparison value 254 in the main document display area 25 of FIG. Therefore, in the example of FIG. 4, if the document acquired by the main document acquisition unit 104 matches the main document designation information 251 to 254 of "notice of silent partnership investment issued by XX Bank, Ltd." , and the compound rule shown in FIG.
 一方、主文書取得部104が取得した文書に合致する主文書指定情報251~254を含む複合ルールがない場合、この文書は関連文書である可能性が高い。その場合、仕訳装置100はその文書についての以降の処理を中止して、主文書取得部104が新たな文書を取得するまで待機する。 On the other hand, if there is no composite rule including the main document specifying information 251 to 254 that matches the document acquired by the main document acquisition unit 104, there is a high possibility that this document is a related document. In that case, the journalizing device 100 stops further processing for that document and waits until the main document acquisition unit 104 acquires a new document.
 前述の通り、多数の顧客を抱える税理士法人等では膨大な数の複合ルールがあり、複合ルール選択部107における複合ルールの選択処理が仕訳装置100の処理スピード向上や精度向上のボトルネックになりうる。本実施形態では、複合ルール選択部107の選択処理を効率的に行うため、優先度保持部1052に格納された優先度ルールが利用される。すなわち、複合ルール選択部107は、主文書取得部104が取得した文書が合致する主文書指定情報25を含む複合ルールが複合ルール保持部1051に複数保持されている場合、優先度保持部1052に保持されている優先度が高い類型に属するマッチング条件を含む複合ルールを選択する。より具体的には、複合ルール選択部107は、優先度保持部1052に保持されている優先度が高い類型に属するマッチング条件の主文書指定情報25から順に入力された文書が合致するか否かを判定し、合致した主文書指定情報25を含む複合ルールを複合ルール保持部1051から選択する。他の例では、複合ルール選択部107は、主文書取得部104が取得した文書が合致する主文書指定情報25を含むマッチング条件を複合ルール保持部1051から複数特定し、特定された複数のマッチング条件の中から優先度が高い類型に属するマッチング条件を選択してもよい。 As described above, a tax accountant corporation with a large number of customers has a huge number of compound rules, and the compound rule selection process in the compound rule selection unit 107 can become a bottleneck in improving the processing speed and accuracy of the journalizing device 100. . In this embodiment, the priority rules stored in the priority holding unit 1052 are used in order to efficiently perform the selection process of the compound rule selection unit 107 . That is, when a plurality of compound rules including the main document specifying information 25 matching the document acquired by the main document acquisition unit 104 are stored in the compound rule storage unit 1051, the compound rule selection unit 107 selects the priority storage unit 1052. Select compound rules containing matching conditions that belong to the type with the highest retained priority. More specifically, the composite rule selection unit 107 determines whether or not the documents input in order from the main document designation information 25 of the matching condition belonging to the type with the highest priority held in the priority holding unit 1052 match. is determined, and a compound rule including the matched main document specifying information 25 is selected from the compound rule holding unit 1051 . In another example, the compound rule selection unit 107 identifies, from the compound rule storage unit 1051, a plurality of matching conditions including the main document designation information 25 with which the document acquired by the main document acquisition unit 104 matches, and selects the specified matching conditions. A matching condition belonging to a type with a high priority may be selected from the conditions.
 図6を参照して具体的に説明する。複合ルール選択部107は、最初に、最高の優先度「1」の優先度ルール「001」「002」「007」の適用ルールタイプ53に合致するマッチング条件を含む複合ルールを複合ルール保持部1051から抽出する。各優先度ルールに合致するマッチング条件の数をそれぞれ自然数でN1、N2、N7とすれば、合計でN1+N2+N7個のマッチング条件が、主文書取得部104が取得した文書に合致するマッチング条件の候補として抽出される。複合ルール選択部107は、これらのN1+N2+N7個の各マッチング条件について、その主文書指定情報25(文書種別251、メタデータ種別252、比較条件253、比較値254)が、主文書取得部104が取得した文書に完全に合致するか否かを判定する。完全に合致する主文書指定情報25があれば、複合ルール選択部107はその主文書指定情報25を含むマッチング条件を選択する。 A specific description will be given with reference to FIG. First, the compound rule selection unit 107 selects compound rules including matching conditions that match the applicable rule types 53 of the priority rules "001", "002", and "007" with the highest priority "1" and stores them in the compound rule holding unit 1051. Extract from Assuming that the numbers of matching conditions that match each priority rule are N1, N2, and N7, respectively, a total of N1+N2+N7 matching conditions are candidates for matching conditions that match the document acquired by the main document acquisition unit 104. extracted. The compound rule selection unit 107 causes the main document acquisition unit 104 to acquire the main document designation information 25 (document type 251, metadata type 252, comparison condition 253, comparison value 254) for each of these N1+N2+N7 matching conditions. Determines whether or not it completely matches the document. If there is the main document specifying information 25 that completely matches, the composite rule selection unit 107 selects matching conditions including that main document specifying information 25 .
 この例において、優先度ルール「001」「007」は主文書として「請求書」を指定し、優先度ルール「002」は主文書として「銀行取引明細書」を指定する。したがって、優先度ルール「002」は、優先度ルール「001」「007」と相互に排他的である。このように同一の優先度が設定された優先度ルールを相互に排他的なものとすることで、効率的に複合ルールを探索できる。一方、優先度ルール「001」と「007」は、主文書だけでなく関連文書も同一のものを指定するため相互に排他的ではない。例えば、PDドキュメントタイプ=インボイス、かつ、SDドキュメントタイプ=銀行明細書、かつ、SD金額一致条件有り、かつ、他にSDを要求しない、という類型に属するマッチング条件は、優先度ルール「001」で規定される類型にも「007」で規定される類型にも属する。このような場合、優先度の設計の段階で、優先度ルール「001」、「007」のいずれを優先したとしても処理の結果は同じとなり、会計処理上の大きな問題は生じないように設計する。したがって、本実施形態では、優先度ルール「001」と「007」の間で優先度を特に決める必要はなく、任意の順序で適用すればよい。 In this example, priority rules "001" and "007" specify "invoice" as the main document, and priority rule "002" specifies "bank statement" as the main document. Therefore, priority rule '002' is mutually exclusive with priority rules '001' and '007'. By making the priority rules set with the same priority mutually exclusive in this way, it is possible to search for compound rules efficiently. On the other hand, the priority rules "001" and "007" are not mutually exclusive because they specify the same related document as well as the main document. For example, a matching condition that belongs to the type of PD document type = invoice, SD document type = bank statement, SD amount matching condition, and no other SD requirement is priority rule "001". It belongs to both the type defined in and the type defined in "007". In such a case, at the priority design stage, the processing result will be the same regardless of which of the priority rules "001" and "007" is given priority, and it will be designed so that there will be no major problems in accounting treatment. . Therefore, in this embodiment, it is not necessary to specifically determine the priority between the priority rules "001" and "007", and they can be applied in any order.
 最高の優先度「1」の探索処理において主文書取得部104が取得した文書に完全に合致するマッチング条件がなかった場合、複合ルール選択部107は、次いで高い優先度「2」の優先度ルール「003」「004」「008」の適用ルールタイプ53に合致するマッチング条件を複合ルール保持部1051から抽出する。各優先度ルールに合致するマッチング条件の数をそれぞれ自然数でN3、N4、N8とすれば、合計でN3+N4+N8個のマッチング条件が、主文書取得部104が取得した文書に合致するマッチング条件の候補として抽出される。以降は同様に、主文書取得部104が取得した文書に完全に合致する主文書指定情報25を含むマッチング条件が特定されるまで、類型の優先度順にマッチング条件の探索処理が継続される。 If there is no matching condition that completely matches the document acquired by the main document acquisition unit 104 in the search process with the highest priority "1", the compound rule selection unit 107 selects the priority rule with the next highest priority "2". Matching conditions that match the applicable rule types 53 of “003”, “004”, and “008” are extracted from the compound rule holding unit 1051 . Assuming that the numbers of matching conditions that match each priority rule are N3, N4, and N8, respectively, a total of N3+N4+N8 matching conditions are candidates for matching conditions that match the document acquired by the main document acquisition unit 104. extracted. After that, the searching process for matching conditions is continued in the order of the priority of the type until a matching condition including the main document specifying information 25 that completely matches the document acquired by the main document acquiring unit 104 is identified.
 各優先度に設定される優先度ルール(適用ルールタイプ53)は任意に設定できるが、優先度が高いほど厳しい優先度ルールを設定し、優先度が低いほど緩い優先度ルールを設定するのが好ましい。厳しい優先度ルールの優先度を高くすることで、十分な文書や情報に裏付けられた厳密な仕訳処理を優先的に実行できる。一方、緩い優先度ルールの優先度を低くすることで、十分な文書や情報が揃っていない場合でも暫定的な仕訳処理を実行できる。 The priority rule (applicable rule type 53) set for each priority can be set arbitrarily. preferable. By increasing the priority of strict priority rules, strict journal processing supported by sufficient documents and information can be preferentially executed. On the other hand, by lowering the priority of loose priority rules, provisional journal processing can be performed even when sufficient documents and information are not available.
 マッチングルール取得部108は、主文書取得部104が取得した主文書について予め設定された関連文書のマッチングルールを取得する。具体的には、マッチングルール取得部108は、複合ルール選択部107で選択されたマッチング条件に含まれる関連文書のマッチングルールを取得する。ここでいうマッチングルールは、図4の関連文書表示領域26における文書種別262、メタデータ種別263、比較条件264、比較値265で構成されるものである。 The matching rule acquisition unit 108 acquires matching rules for related documents preset for the main document acquired by the main document acquisition unit 104 . Specifically, the matching rule acquisition unit 108 acquires matching rules for related documents included in the matching conditions selected by the compound rule selection unit 107 . The matching rule here is composed of the document type 262, the metadata type 263, the comparison condition 264, and the comparison value 265 in the related document display area 26 of FIG.
 関連文書検索部109は、マッチングルール取得部108が取得したマッチングルールに基づき、文書保持部102に保持された関連文書を検索する。図3および図4に示されるマッチング条件が複合ルール選択部107によって選択され、マッチングルール取得部108によってそのマッチングルール262~265が取得された場合、関連文書検索部109は「外国関係の摘要を含み、かつ、通知書に記載された匿名組合出資金の金額と等しい取引金額を含む銀行取引明細書」を関連文書として検索する。文書保持部102内で関連文書が見つかった場合は、次の仕訳処理部110の処理に進む。文書保持部102内で関連文書が見つからなかった場合の処理については後述する。 The related document search unit 109 searches for related documents held in the document holding unit 102 based on the matching rule acquired by the matching rule acquisition unit 108 . When the matching conditions shown in FIGS. 3 and 4 are selected by the compound rule selection unit 107, and the matching rules 262 to 265 are acquired by the matching rule acquisition unit 108, the related document search unit 109 outputs the abstract of foreign relations. bank statement containing a transaction amount equal to the amount of silent partnership investment stated in the notice" as a related document. If the related document is found in the document holding unit 102, the next process of the journalizing processing unit 110 is performed. Processing when no related document is found in the document holding unit 102 will be described later.
 仕訳処理部110は、主文書取得部104が取得した主文書および関連文書検索部109が検索した関連文書を関連づけながら仕訳処理を実行する。具体的には、仕訳処理部110は、複合ルール選択部107によって選択されたマッチング条件を含む複合ルールに含まれる仕訳処理ルール(マッチング条件に対応する仕訳処理ルール)に基づいて仕訳処理を実行する。ここでいう仕訳処理ルールは、図3の仕訳表示領域24に表示されるものである。図3および図4の複合ルールが選択された場合は、主文書表示領域25の主文書と関連文書表示領域26の関連文書が揃った段階で、仕訳処理部110が仕訳表示領域24の仕訳処理を実行する。 The journal processing unit 110 executes journal processing while associating the main document acquired by the main document acquisition unit 104 with the related documents retrieved by the related document search unit 109 . Specifically, the journalizing processing unit 110 executes journalizing processing based on the journalizing processing rule included in the composite rule including the matching condition selected by the composite rule selecting unit 107 (the journalizing processing rule corresponding to the matching condition). . The journalizing processing rule referred to here is displayed in the journalizing display area 24 in FIG. 3 and 4 is selected, when the main document in the main document display area 25 and the related document in the related document display area 26 are prepared, the journal processing section 110 performs the journal processing in the journal display area 24. to run.
 表示制御部111は、仕訳処理部110が実行する仕訳処理の状況または結果を表示部20に表示させる。 The display control unit 111 causes the display unit 20 to display the status or result of the journalizing processing executed by the journalizing processing unit 110 .
 図8は、仕訳装置100の処理を示すフローチャートである。フローチャートの説明において「S」は「ステップ」を意味する。 FIG. 8 is a flowchart showing the processing of the journalizing device 100. In the explanation of the flowchart, "S" means "step".
 S1では、文書入力部101が仕訳処理対象の文書を入力する。S2では、S1で入力された文書が文書保持部102に格納される。S3では、メタデータ抽出部103がS2で格納された文書からメタデータを抽出する。S4では、S3で抽出されたメタデータに基づきメタデータ抽出部103が文書の種別(請求書、還付通知書、銀行取引明細書など)を判定する。この文書の種別の判定は、ルールベースで行われてもよいし、機械学習により得られるモデルを用いて行われてもよい。S3で抽出されたメタデータが文書の種別を含む場合はその種別が採用され、含まない場合は、文書の画像認識および/または他のメタデータの内容に基づいてルールベースまたは機械学習ベースで種別が判定されてもよい。なお、S3で抽出されたメタデータおよびS4で判定された文書種別は、S2で格納された文書と関係づけられ、当該文書と共に文書保持部102に格納される。本実施形態では、S1~S4の文書準備工程と、S5以降の文書処理工程が引き続いて行われるが、文書準備工程と文書処理工程を別工程として、それぞれを任意のタイミングで行ってもよい。 In S1, the document input unit 101 inputs a document to be journalized. In S2, the document input in S1 is stored in the document holding unit 102. FIG. At S3, the metadata extraction unit 103 extracts metadata from the document stored at S2. In S4, the metadata extraction unit 103 determines the type of document (invoice, refund notice, bank statement, etc.) based on the metadata extracted in S3. This document type determination may be performed on a rule basis, or may be performed using a model obtained by machine learning. If the metadata extracted in S3 includes a document type, then that type is adopted; may be determined. Note that the metadata extracted in S3 and the document type determined in S4 are associated with the document stored in S2 and stored in the document holding unit 102 together with the document. In this embodiment, the document preparation steps of S1 to S4 and the document processing steps of S5 and thereafter are performed successively.
 S5では、主文書取得部104が文書保持部102から仕訳処理対象の文書を取得する。S6では、主文書取得部104がS5で取得した文書について未処理取引の有無を判定する。銀行取引明細書のように、一つの文書に複数の取引が含まれる場合は、各取引が順次処理される。 In S5, the main document acquisition unit 104 acquires the document to be journalized from the document holding unit 102. In S6, the main document acquisition unit 104 determines whether or not there is an unprocessed transaction in the document acquired in S5. When a document contains multiple transactions, such as a bank statement, each transaction is processed sequentially.
 S7は、複合ルール選択部107が、優先度保持部1052に保持されている優先度ルールに基づいて、複合ルール保持部1051に保持されている複合ルールの中から適用候補の複合ルールを探索する処理であり、S71~S75の各ステップで構成される。S71では、複合ルール選択部107は、最初の探索対象として最高の優先度「1」を指定する。S72では、複合ルール選択部107は、優先度保持部1052に保持されている優先度ルールの中から、S71で指定された優先度「1」が付与された優先度ルールを特定する。図6の例では、優先度「1」が付与された優先度ルール「001」「002」「007」が特定される。 In S7, based on the priority rules held in the priority holding unit 1052, the compound rule selecting unit 107 searches for a candidate compound rule among the compound rules held in the compound rule holding unit 1051. processing, which is composed of steps S71 to S75. In S71, the composite rule selection unit 107 designates the highest priority "1" as the first search target. In S<b>72 , the composite rule selection unit 107 identifies the priority rule given the priority “1” specified in S<b>71 from among the priority rules held in the priority holding unit 1052 . In the example of FIG. 6, priority rules "001", "002", and "007" to which priority "1" is assigned are specified.
 S73では、複合ルール選択部107は、複合ルール保持部1051に保持されている複合ルールの中から、S72で特定された優先度ルール「001」「002」「007」の適用ルールタイプ53(すなわち、マッチング条件の類型)に属するマッチング条件を含む複合ルールを特定または抽出する。前述の通り、優先度ルール「001」「002」「007」の適用ルールタイプ53に合致するマッチング条件は全部でN1+N2+N7個ある。S73では、そのうちまだ抽出されていない任意の一つのマッチング条件を含む複合ルールが抽出される。このとき、S4で判定された文書種別を利用することで、効率的に複合ルールを抽出できる。例えば、S4で判定された文書種別が「銀行取引明細書」であった場合、主文書を「請求書」とする優先度ルール「001」「007」は無関係である。そこで、S4で判定された文書種別「銀行取引明細書」を主文書とする優先度ルール「002」のみを探索候補とすればよい。この場合、優先度「1」について探索すべきマッチング条件の数は、N1+N2+N7個からN2個に低減される。 In S73, the compound rule selection unit 107 selects the applicable rule types 53 (that is, , types of matching conditions) are identified or extracted. As described above, there are a total of N1+N2+N7 matching conditions that match the applicable rule types 53 of the priority rules "001", "002", and "007". In S73, a compound rule including any one matching condition that has not yet been extracted is extracted. At this time, the compound rule can be efficiently extracted by using the document type determined in S4. For example, if the document type determined in S4 is "bank statement", the priority rules "001" and "007" that set the main document as "bill" are irrelevant. Therefore, only the priority rule "002" whose main document is the document type "bank statement" determined in S4 should be the search candidate. In this case, the number of matching conditions to be searched for priority "1" is reduced from N1+N2+N7 to N2.
 S8では、複合ルール選択部107が、S73で抽出された複合ルールのマッチング条件に含まれる主文書指定情報25が、S5で取得された文書に合致するか否かを判定する。合致すると判定された場合S9に進み、複合ルール選択部107は合致すると判定された複合ルールを以降の処理のために選択する。合致しないと判定された場合、S74に進み、優先度「1」について判定すべき複合ルールが残っている場合(N)はS73に戻って未抽出の別の複合ルールが抽出される。S74で優先度「1」について判定すべき複合ルールが残っていない場合(Y)はS75に進んで現在の優先度よりも低い優先度が指定される。例えば、S75において優先度が現在の優先度「1」よりも低い「2」に引き下げられる。以降、優先度「2」についてS72~S74の処理が実行される。優先度「2」でもS8でYes(Y)と判定される複合ルールがなかった場合、S75で優先度が「3」に引き下げられる。このように、S5で取得された文書に合致する主文書指定情報25を含む複合ルールがS8で特定されるまで、S7における類型の優先度に従う複合ルールの探索処理が継続される。なお、S8でYes(Y)と判定された時点で、S5で取得された文書が、特定の複合ルールに対応する主文書と認定されたことになる。 In S8, the compound rule selection unit 107 determines whether or not the main document designation information 25 included in the matching condition of the compound rule extracted in S73 matches the document acquired in S5. If it is determined that they match, the process advances to S9, and the compound rule selection unit 107 selects the compound rule that is determined to match for subsequent processing. If it is determined that they do not match, the process proceeds to S74, and if there remains a compound rule to be determined for the priority "1" (N), the process returns to S73 and another unextracted compound rule is extracted. In S74, if there is no compound rule to be judged for the priority "1" (Y), the process proceeds to S75, where a priority lower than the current priority is specified. For example, in S75, the priority is lowered to "2", which is lower than the current priority "1". After that, the processing of S72 to S74 is executed for priority "2". If there is no composite rule that is determined to be Yes (Y) in S8 even if the priority is "2", the priority is lowered to "3" in S75. In this way, the search processing of the compound rule according to the priority of the type in S7 is continued until the compound rule including the main document specifying information 25 that matches the document acquired in S5 is specified in S8. It should be noted that when the determination in S8 is Yes (Y), the document acquired in S5 is recognized as the main document corresponding to the specific compound rule.
 S10ではマッチングルール取得部108がS9で選択された複合ルールに含まれる関連文書のマッチングルール262~265を取得する。S11では関連文書検索部109がS10で取得された関連文書のマッチングルール262~265に基づき関連文書を検索する。S12では関連文書検索部109が関連文書が見つかった否かを判定する。関連文書が見つかった場合はS13に進み、仕訳処理部110がS9で選択された複合ルールの仕訳表示領域24に表示される仕訳処理ルールに基づき仕訳処理を実行する。関連文書が見つからなかった場合は複合ルール選択部107は現在選択されている複合ルールを破棄し、S74に処理を戻す。これにより現在の優先度と同じ優先度の類型に属するマッチング条件の再選択、または優先度の変更が行われる。なお、S9で選択された複合ルールが関連文書のマッチングルールを含まない場合、S10、S11、S12はスキップされる。このように、S7からS12までの一連の処理により、複合ルール保持部1051に保持される複数の複合ルールの中から、入力された文書が合致するマッチング条件を含む複合ルールを、優先度保持部1052に保持される優先度に従って選択する処理が実現されている。本実施形態では、入力された文書がマッチング条件に合致する、とは、(1)マッチング条件が関連文書のマッチングルールを含まない場合は、入力された文書がマッチング条件すなわち主文書指定条件に合致することを意味し、(2)マッチング条件が関連文書のマッチングルールを含む場合は、入力された文書がマッチング条件に含まれる主文書指定条件に合致し、かつ、関連文書のマッチングルールで指定される関連文書が発見されることを意味する。 At S10, the matching rule acquisition unit 108 acquires matching rules 262-265 of related documents included in the compound rule selected at S9. In S11, the related document search unit 109 searches for related documents based on the matching rules 262 to 265 of the related documents acquired in S10. In S12, the related document search unit 109 determines whether or not the related document is found. If the related document is found, the process proceeds to S13, and the journalizing processing section 110 executes the journalizing processing based on the journalizing processing rule displayed in the journalizing display area 24 of the composite rule selected in S9. If no related document is found, the compound rule selection unit 107 discards the currently selected compound rule and returns the process to S74. As a result, matching conditions belonging to the same priority type as the current priority are reselected or the priority is changed. If the compound rule selected in S9 does not include the related document matching rule, S10, S11, and S12 are skipped. In this way, through the series of processes from S7 to S12, the priority holding unit 1051 selects a compound rule including a matching condition that matches the input document from among the plurality of compound rules held in the compound rule holding unit 1051. A process of selecting according to the priority held in 1052 is implemented. In the present embodiment, that an input document matches the matching condition means that (1) if the matching condition does not include a matching rule for related documents, the input document matches the matching condition, i.e., the main document specification condition; (2) if the matching condition includes a related document matching rule, the input document matches the main document specification condition included in the matching condition and is specified by the related document matching rule. means that relevant documents are found.
 その後、S6に戻り、S5で取得された文書について未処理取引がなくなるまでS7~S14の処理が繰り返される。 After that, the process returns to S6, and the processes of S7 to S14 are repeated until there are no more unprocessed transactions for the document acquired in S5.
 なお、S12で関連文書が見つからなかった場合に現在選択中の複合ルールが破棄されることに関連して、関連文書のマッチングルール262~265が厳しいマッチング条件が先に抽出され、関連文書のマッチングルール262~265が緩い、または、ないマッチング条件が後に抽出されるように、マッチング条件の類型の優先度が設定されてもよい。この場合、S7からS12のNを経由してS7に戻る処理ループにおいて、複合ルール選択部107は、S73において関連文書のマッチングルール262~265が厳しいマッチング条件を先に抽出し、関連文書のマッチングルール262~265が緩い、または、ないマッチング条件を後に抽出することとなる。このようにすれば、所期の関連文書の有無を先に確認し、関連文書が不足している場合に限ってマッチングルールが緩い、または、ないマッチング条件とのマッチングを実行するというプロセスを実現できる。このような関連文書の指定に関する優先度の設定も、図6で説明した優先度ルールによって効率的に行うことができる。 In connection with discarding the compound rule currently selected when no related document is found in S12, strict matching conditions for the related document matching rules 262 to 265 are first extracted, and the related document matching is performed. The matching condition types may be prioritized so that matching conditions with loose or no rules 262-265 are extracted later. In this case, in the processing loop from S7 to S7 via N of S12, the compound rule selection unit 107 first extracts the matching conditions for which the related document matching rules 262 to 265 are strict in S73, and Matching conditions with loose or no rules 262-265 will be extracted later. In this way, it is possible to implement a process in which the presence or absence of the desired related document is first confirmed, and only when the related document is lacking, the matching rule is loose or the matching condition with no matching rule is executed. can. The setting of priority regarding the designation of such related documents can also be efficiently performed by the priority rule described with reference to FIG.
 図9は、仕訳装置100の仕訳処理の状況を示す画面例である。この画面は、表示制御部111によって表示部20に表示される。取引タイプ表示領域31は、図3の複合ルールの登録画面例における取引概要表示領域22に対応し、取引のタイプを表示する。日付表示領域32は、仕訳装置100の処理の日付を表示する。決済ステータス表示領域33は、決済のステータス情報を表示する。コメント表示領域34には、ユーザが任意のコメントを記入できる。進捗状況表示領域35は、仕訳装置100の処理の進捗状況を表示する。 FIG. 9 is an example of a screen showing the journalizing process status of the journalizing device 100. FIG. This screen is displayed on the display unit 20 by the display control unit 111 . The transaction type display area 31 corresponds to the transaction outline display area 22 in the composite rule registration screen example of FIG. 3, and displays the transaction type. The date display area 32 displays the date of processing of the journalizing device 100 . The settlement status display area 33 displays settlement status information. Any comment can be entered by the user in the comment display area 34 . The progress display area 35 displays the progress of processing of the journalizing device 100 .
 仕訳表示領域36は、図3の仕訳表示領域24に対応し、仕訳処理部110が実行した仕訳処理の内容を表示する。仕訳表示領域36は、借方の合計金額と貸方の合計金額の差額を表示する差額表示部361を含む。正しい仕訳処理では借方と貸方の金額が一致するため、差額表示部361には「0」が表示される。一方、仕訳処理が誤っている場合は、差額表示部361に「0」ではない差額が表示される。 The journal display area 36 corresponds to the journal display area 24 in FIG. 3, and displays the details of the journal processing performed by the journal processing unit 110. The journal entry display area 36 includes a difference display portion 361 that displays the difference between the total amount of debits and the total amount of credits. Since the debit and credit amounts match in correct journalizing processing, the difference display section 361 displays “0”. On the other hand, if the journalizing process is erroneous, the difference display section 361 displays a difference that is not "0".
 差額理由示唆部362は、差額表示部361に表示された差額が、想定されるエラーシナリオに合致する場合、そのエラーシナリオの基礎となったエラーを差額理由として示唆する。エラーシナリオは例えば税率の変更に関する。借方の金額が変更前の税率(例えば8%)に基づき、貸方の金額が変更後の税率(例えば10%)に基づく場合、差額表示部361には変更前後の税率の差異に相当する差額が生じる。差額理由示唆部362は、税率の変更に関するエラーシナリオに合致する差額(例えば2%の税率差に相当する金額)が差額表示部361に生じたことを検知し、税率の変更が差額の理由と推測されることを画面上で示唆する。図示の例では、エラーシナリオに合致する差額が生じた場合、差額理由示唆部362のアイコンが画面上に現われ、そのアイコンをユーザが選択することで詳細な差額理由を確認できる。なお、税率の変更以外のエラーシナリオとしては、税抜表記と税込表記の違いによるもの、海外取引の場合の税金有無によるもの等が考えられる。 If the difference displayed in the difference display section 361 matches the expected error scenario, the difference reason suggesting section 362 suggests the error on which the error scenario is based as the reason for the difference. Error scenarios relate to changes in tax rates, for example. If the debit amount is based on the tax rate before the change (for example, 8%) and the credit amount is based on the tax rate after the change (for example, 10%), the difference display section 361 shows the difference corresponding to the difference between the tax rates before and after the change. occur. The difference reason suggesting unit 362 detects that the difference matching the error scenario regarding the tax rate change (for example, the amount corresponding to the tax rate difference of 2%) has occurred in the difference display unit 361, and the tax rate change is the reason for the difference. Suggest on the screen what is inferred. In the illustrated example, when a difference matching the error scenario occurs, an icon of the difference reason suggesting portion 362 appears on the screen, and the user can confirm the detailed reason for the difference by selecting the icon. Error scenarios other than tax rate changes include differences in notation of tax excluded and tax included, and the presence or absence of tax in the case of overseas transactions.
 主文書表示領域37は、図3の主文書表示領域25に対応し、仕訳処理部110で実行された仕訳処理に関する主文書を表示する。主文書添付部371には、実際の主文書が添付される。 The main document display area 37 corresponds to the main document display area 25 in FIG. An actual main document is attached to the main document attachment section 371 .
 関連文書表示領域38は、図3の関連文書表示領域26に対応し、仕訳処理部110で実行された仕訳処理に関する関連文書を表示する。関連文書添付部381には、実際の関連文書が添付される。また、関連文書要約部382には、仕訳処理に関する関連文書の要約情報が表示される。 The related document display area 38 corresponds to the related document display area 26 in FIG. An actual related document is attached to the related document attachment section 381 . In addition, the related document summary section 382 displays summary information of related documents related to the journalizing process.
 以上、仕訳装置100の構成および作用について説明した。つづいて、仕訳装置100の具体的な処理例をいくつか示す。以下の説明では、特に断らない限り、図10に示される複合ルールが複合ルール保持部1051に保持され、図6に示される優先度ルールが優先度保持部1052に保持されているものとする。なお、図10に付与されている符号は、複合ルールのデータ構造を示す図5の符号に対応する。また、処理の説明では図8のフローチャートも参照する。 The configuration and action of the journalizing device 100 have been described above. Next, some specific processing examples of the journalizing device 100 will be shown. In the following description, it is assumed that the compound rule shown in FIG. 10 is held in the compound rule holding unit 1051 and the priority rule shown in FIG. 10 correspond to the symbols in FIG. 5 showing the data structure of the compound rule. In addition, the flowchart of FIG. 8 is also referred to in the explanation of the processing.
 S5で「請求書」が取得された例を考える。S7では、複合ルール選択部107が、図6の優先度ルールに基づいて、図10の複合ルールを探索する。最初に優先度「1」の優先度ルール「001」「002」「007」が特定されるが(S71、S72)、このうち主文書として「銀行取引明細書」を指定するルール「002」は探索対象から直ちに除外される。図10において、探索対象である優先度ルール「001」「007」が規定する類型に属するマッチング条件は「TR1」のマッチング条件のみであり、S73ではこれが抽出される。具体的には、複合ルール「TR1」のマッチング条件は関連文書として「銀行取引明細書」のみを指定するため、優先度ルール「001」の「他にSDを要求しない」との条件に合致し、複合ルール「TR1」のマッチング条件は関連文書としての「銀行取引明細書」について「金額 = PDの請求額」という金額一致条件を含むため、優先度ルール「007」の「SD金額一致条件有り」との条件に合致する。このように、一つのマッチング条件が複数の優先度ルールに合致する場合もある。 Consider an example in which "bill" was acquired in S5. In S7, the compound rule selection unit 107 searches for compound rules in FIG. 10 based on the priority rules in FIG. First, the priority rules "001", "002", and "007" with a priority of "1" are specified (S71, S72). Immediately removed from search. In FIG. 10, the only matching condition belonging to the type defined by the priority rules "001" and "007" to be searched is the matching condition "TR1", which is extracted in S73. Specifically, since the matching condition of compound rule "TR1" specifies only "bank statement" as a related document, it matches the condition of priority rule "001" "no other SDs required". , the matching condition of compound rule "TR1" includes the amount matching condition "amount = PD invoiced amount" for "bank statement" as the related document, so priority rule "007" has "SD amount matching condition" ” meets the conditions. In this way, one matching condition may match multiple priority rules.
 S73で複合ルール「TR1」が抽出された後のS8では、S5で取得された「請求書」が、複合ルール「TR1」の主文書指定情報252~254「請求先 contains 「甲」」に完全に合致するか否かが判定される。すなわち、S5で取得された請求書の請求先に「甲」の文字が含まれていれば、S9に進んで複合ルール「TR1」が複合ルール選択部107によって選択される。一方、S8での判定結果がNo(N)であった場合、優先度「1」の類型に属するマッチング条件には所期のマッチング条件が存在しないため、S75で優先度が「2」に引き下げられる。 In S8 after the compound rule "TR1" is extracted in S73, the "invoice" acquired in S5 is completely added to the main document specification information 252-254 "Billing party contains "A"" of the compound rule "TR1". It is determined whether or not the That is, if the billing destination of the bill acquired in S5 includes the letter "K", the flow advances to S9 and the composite rule "TR1" is selected by the composite rule selector 107. FIG. On the other hand, if the determination result in S8 is No (N), there is no desired matching condition among the matching conditions belonging to the type of priority "1", so the priority is lowered to "2" in S75. be done.
 優先度「2」では、優先度ルール「003」「004」「008」が特定されるが(S71、S72)、このうち主文書として「銀行取引明細書」を指定するルール「004」は探索対象から直ちに除外される。また、優先度「1」の探索処理で既に考慮された複合ルール「TR1」も探索対象から除外される。図10において、探索対象である優先度ルール「003」「008」が規定する類型に属するマッチング条件は「TR2」「TR6」のマッチング条件であり、S73ではこれらが任意の順序で抽出される。具体的には、複合ルール「TR2」のマッチング条件は第2の関連文書としての「請求書」について「請求先 contains 「甲」」「請求者 contains PDの請求者」というキーワードマッチ条件を含むため、優先度ルール「003」の「SD2キーワードマッチ条件有り」との条件に合致し、複合ルール「TR2」のマッチング条件は第1の関連文書としての「銀行取引明細書」について「摘要 contains PDの請求者」というキーワードマッチ条件を含むため、優先度ルール「008」の「SDキーワードマッチ条件有り」との条件に合致し、複合ルール「TR6」のマッチング条件は関連文書としての「銀行取引明細書」について「摘要 contains PDの請求者」というキーワードマッチ条件を含むため、優先度ルール「008」の「SDキーワードマッチ条件有り」との条件に合致する。以降の処理については、図8のフローチャートに関して前述したので、説明を省略する。 Priority rules "003", "004", and "008" are specified for priority "2" (S71, S72), but rule "004" specifying "bank statement" as the main document is searched. Immediately removed from coverage. In addition, the composite rule "TR1" already considered in the search processing with the priority "1" is also excluded from the search targets. In FIG. 10, the matching conditions belonging to the type defined by the priority rules "003" and "008" to be searched are the matching conditions "TR2" and "TR6", and these are extracted in an arbitrary order in S73. Specifically, because the matching condition of the compound rule "TR2" includes the keyword matching conditions of "billing party -contains "Party A"" and "claimant -contains PD claimant" for "invoice" as the second related document. , matches the condition of "with SD2 keyword match condition" of priority rule "003", and the matching condition of compound rule "TR2" is "summary contains PD" for "bank statement" as the first related document Since the keyword matching condition of "claimer" is included, it matches the condition of "with SD keyword matching condition" of priority rule "008", and the matching condition of compound rule "TR6" is "bank statement" as a related document ' contains the keyword match condition of 'summary contains PD claimant', so it matches the condition of 'with SD keyword match condition' of the priority rule '008'. Since the subsequent processing has been described with reference to the flowchart of FIG. 8, description thereof will be omitted.
 図10の複合ルール「TR2」「TR3」は、主文書として一の請求書を指定し、関連文書として別の請求書を指定することで、複数の請求書をまとめて仕訳処理することができる。複合ルール「TR2」について、図3および図4の複合ルールの登録画面例を参照しながら具体的に説明する。複合ルール「TR2」では、二つの請求書のうち任意の一つが主文書として主文書表示領域25に登録され、残りの一つが第2の関連文書として関連文書表示領域26に登録される。また、二つの請求書の合計請求額の銀行口座からの出金を記録した銀行取引明細書も第1の関連文書として関連文書表示領域26に登録される。 Composite rules "TR2" and "TR3" in Fig. 10 specify one invoice as the main document and another invoice as the related document, so that multiple invoices can be journalized together. . The composite rule "TR2" will be specifically described with reference to examples of composite rule registration screens in FIGS. 3 and 4. FIG. In the combination rule "TR2", any one of the two invoices is registered in the main document display area 25 as the main document, and the remaining one is registered in the related document display area 26 as the second related document. In addition, a bank statement that records the withdrawal from the bank account of the total billed amount of the two bills is also registered in the related document display area 26 as the first related document.
 第2の関連文書のメタデータ指定条件263~265における「金額(SD2の請求額) = SD1の出金額-PDの請求額」との条件が、第1の請求書(PD)と第2の請求書(SD2)の合計請求額が、銀行取引明細書(SD1)の出金額に等しいことを担保する。また、第1の請求書(PD)と第2の請求書(SD2)がそれぞれ「請求先 contains 「甲」」とのメタデータ指定条件を含むことで、同一請求先「甲」に対する請求書であることが担保され、第2の請求書(SD2)が「請求者 contains PDの請求者」とのメタデータ指定条件を含むことで同一請求元からの請求書であることが担保される。さらに、銀行取引明細書(SD1)が「摘要 contains PDの請求者」とのメタデータ指定条件を含むことで、同一請求元(PDの請求者 = SD2の請求者)への請求額の支払が完了していることを担保する。 In the metadata specification conditions 263 to 265 of the second related document, the condition "amount (SD2 billing amount) = SD1 withdrawal amount - PD billing amount" is Ensure that the total billing amount on the invoice (SD2) equals the withdrawal amount on the bank statement (SD1). In addition, the first invoice (PD) and the second invoice (SD2) each include the metadata designation condition of "Billing Party contains "Party A"", so that the invoice to the same billing party "Party A" It is guaranteed that the second invoice (SD2) is an invoice from the same invoice source by including the metadata designation condition of "claimant contains PD claimant". In addition, if the bank statement (SD1) includes the metadata designation condition "description contains PD claimant", the payment of the invoice amount to the same claimant (PD claimant = SD2 claimant) is possible. Assure completion.
 以上の複合ルール「TR2」を満たす主文書(第1の請求書)、第1の関連文書(銀行取引明細書)、第2の関連文書(第2の請求書)が揃った段階で、仕訳処理部110は、借方に二つの請求書の合計請求額の費用を計上し、貸方に二つの請求書の合計請求額の出金に伴う銀行口座の資産減を計上する仕訳処理を実行する。このとき、図3の仕訳表示領域24の借方および貸方の取引金額表示部246では、いずれも二つの請求書の合計金額が指定される。 When the main document (first invoice), the first related document (bank statement), and the second related document (second invoice) that satisfy the above compound rule "TR2" are complete, The processing unit 110 performs a journalizing process of debiting the total billed amount of the two bills and recording the decrease in bank account assets due to the withdrawal of the total billed amount of the two bills as the credit. At this time, the total amount of the two invoices is specified in both the debit and credit transaction amount display portions 246 of the journal entry display area 24 in FIG.
 本実施形態の仕訳装置100によれば、「TR2」「TR3」のように複数の同種の文書(請求書)をまとめて仕訳処理する複合ルールのマッチング条件の類型と、「TR1」のように単数の同種の文書を仕訳処理する複合ルールのマッチング条件の類型の間で優先度を設定できる。一般に、指定される文書数が少ないマッチング条件ほど、S5で取得される主文書およびS11で検索される関連文書と合致しやすいため、迅速に仕訳処理を完了できる。図6の例では、この観点から、指定文書数が少ない優先度ルール「001」「007」に最高の優先度「1」を付与し、指定文書数が多い優先度ルール「003」の優先度「2」より高く設定している。一方、仕訳処理に要する時間が長くなっても可能な限り多数の文書をまとめて仕訳処理した方が効率的であることも想定され、そのような場合は指定文書数が多い優先度ルール「003」の優先度を、指定文書数が少ない優先度ルール「001」「007」の優先度より高くしてもよい。また、請求書とそれに対応する銀行取引明細書とに係る税務実務上、通常は一つの請求書が銀行取引明細書に記載される一つの振り込みに対応するので、このような通常の、言い換えるとマッチングの確率の高いマッチング条件が優先的に選択されるよう、「TR1」が属する類型の優先度を「TR2」や「TR3」が属する類型の優先度よりも高く設定している。例えば、請求額300円の請求書Aと、これに対応する振り込み額300円の振り込みが記載された銀行取引明細書Bと、請求額150円の請求書Cと、振り込み額450円の振り込みが記載された銀行取引明細書Dと、があり、請求書Aが仕訳対象になったとする。TR2のマッチング条件が先に試行されると、主文書=請求書A、関連文書1=銀行取引明細書D、関連文書2=請求書Cとなりうるがこれは誤った仕訳である。TR1のマッチング条件が先に試行されれば主文書=請求書A、関連文書=銀行取引明細書Bとなり、正しい仕訳が実行される。このように、本実施形態によれば、仕訳処理において重視すべき観点に応じて柔軟に優先度を設定できる。 According to the journalizing device 100 of the present embodiment, the types of matching conditions of a compound rule for collectively journalizing a plurality of documents (invoices) of the same type such as "TR2" and "TR3", and the types of matching conditions such as "TR1" Priorities can be set between types of matching conditions for compound rules that journal a single homogeneous document. In general, the smaller the number of specified documents, the more likely the matching condition is to match the main document acquired in S5 and the related document retrieved in S11, so that the journalizing process can be completed quickly. In the example of FIG. 6, from this point of view, priority rules "001" and "007" with a small number of specified documents are given the highest priority "1", and priority rule "003" with a large number of specified documents is given priority It is set higher than "2". On the other hand, even if the time required for journalizing processing is long, it is assumed that it is more efficient to journalize as many documents as possible. ' may be set higher than the priority of the priority rules '001' and '007' with a smaller number of specified documents. In addition, due to tax practices related to invoices and corresponding bank statements, one invoice usually corresponds to one transfer listed on the bank statement. The priority of the type to which "TR1" belongs is set higher than the priority of the types to which "TR2" and "TR3" belong so that a matching condition with a high probability of matching is preferentially selected. For example, invoice A with a billing amount of 300 yen, bank statement B with a corresponding transfer amount of 300 yen, invoice C with a billing amount of 150 yen, and a transfer amount of 450 yen. Suppose that there is a bank statement D listed and invoice A is subject to journal entry. If TR2's matching condition is tried first, then Main Document = Invoice A, Related Document 1 = Bank Statement D, Related Document 2 = Invoice C, which is an incorrect journal entry. If the TR1 matching condition is tried first, the main document = invoice A, the related document = bank statement B, and correct journal entry is performed. As described above, according to the present embodiment, it is possible to flexibly set the priority according to the viewpoint to be emphasized in the journalizing process.
 図6の優先度ルール「007」「008」は、関連文書としての「銀行取引明細書」についてのルール細目のみが異なる。すなわち、優先度ルール「007」は「SD金額一致条件有り」をルール細目とし、優先度ルール「008」は「SDキーワードマッチ条件有り」をルール細目とする。したがって、これらの優先度ルール「007」「008」に所望の優先順位を付けることで、金額一致条件を重視するか、キーワードマッチ条件を重視するか、を任意に設定できる。通常は金額一致条件が満たされていれば会計的に厳密な仕訳処理を実行できる可能性が高いため、金額一致条件を重視するのが好ましい。この観点から、図6では、金額一致条件を指定する優先度ルール「007」に最高の優先度「1」を付与し、キーワードマッチ条件を指定する優先度ルール「008」の優先度「2」より高く設定している。 The priority rules "007" and "008" in FIG. 6 differ only in the rule details for "bank statement" as a related document. That is, the priority rule "007" has "SD amount matching condition" as the rule detail, and the priority rule "008" has "SD keyword matching condition" as the rule detail. Therefore, by assigning a desired priority to these priority rules "007" and "008", it is possible to arbitrarily set whether the amount matching condition is emphasized or the keyword matching condition is emphasized. Normally, if the amount matching condition is met, there is a high possibility that strict accounting journal entry processing can be executed, so it is preferable to emphasize the amount matching condition. From this point of view, in FIG. 6, the priority rule "007" specifying the amount matching condition is given the highest priority "1", and the priority rule "008" specifying the keyword matching condition has the priority "2". set higher.
 図10の複合ルール「TR6」は、関連文書の手動選択を可能とする。すなわち、関連文書検索部109は、予め設定された関連文書のマッチングルールに従って関連文書を検索するだけでなく、ユーザの操作信号に応じて関連文書を検索してもよい。また、関連文書検索部109を介さずに、ユーザ自身が関連文書を登録してもよい。複数の請求書をまとめて1つの仕訳で処理する機能が、TR2やTR3のようにまとめる請求書を自動的に探すのではなく、ユーザが自分で探して追加することで実現される場合、TR2、TR3は無効化され、代わりにTR6がそのような請求書のまとめ機能に対応する。このような場合でも、「TR1」が属する優先度ルール「007」の優先度を「TR6」が属する優先度ルール「008」の優先度よりも高く設定することで、マッチングの確率の高いマッチング条件(1請求書=1振り込み)が優先的に選択されるようにすることができる。 Composite rule "TR6" in Fig. 10 enables manual selection of related documents. That is, the related document search unit 109 may search not only for related documents according to preset matching rules for related documents, but also for related documents according to user operation signals. Alternatively, the user may register the related document without going through the related document search unit 109 . If the function to combine multiple invoices and process them in one journal entry is realized by users searching and adding invoices by themselves instead of automatically searching for invoices to be combined like TR2 and TR3, TR2 , TR3 is deactivated and TR6 instead accommodates such bill consolidation functionality. Even in such a case, by setting the priority of the priority rule "007" to which "TR1" belongs higher than the priority of the priority rule "008" to which "TR6" belongs, the matching conditions with a high matching probability (1 bill = 1 transfer) can be preferentially selected.
 図10の複合ルール「TR4」「TR5」のマッチング条件はそれぞれ、主文書としてあるエンティティの口座(XXX)の銀行取引明細書を指定する。複合ルール「TR4」のマッチング条件はさらに、関連文書として、同じエンティティの別口座(YYY)に主文書の出金額と等しい入金額を記録した銀行取引明細書を指定する。すなわち、複合ルール「TR4」はあるエンティティにおける口座「XXX」から口座「YYY」への振替の仕訳に対応する。図6では振替処理の複合ルール「TR4」が属する優先度ルール「002」に最高の優先度「1」を付与しており、この優先度は、「TR5」が属する優先度ルール「004」の優先度「2」よりも高い。これにより、上記エンティティの銀行取引明細書に関する総合的な複合ルール「TR5」が選択される前に、同エンティティにおける振替処理の複合ルール「TR4」が選択される。したがって、同エンティティにおける振替処理の銀行取引明細書は「TR4」、「TR5」のいずれのマッチング条件とも合致するところ、該銀行取引明細書が複合ルール「TR5」の仕訳で処理されることが防止されるので、振替処理が振替処理として仕訳されることを担保できる。 The matching conditions of compound rules "TR4" and "TR5" in Fig. 10 each specify the bank statement of an entity's account (XXX) as the main document. The matching condition of compound rule "TR4" further specifies, as a related document, a bank statement that records a credit amount equal to the main document's credit amount in another account (YYY) of the same entity. That is, compound rule "TR4" corresponds to journal entry of a transfer from account "XXX" to account "YYY" in an entity. In FIG. 6, the highest priority "1" is given to the priority rule "002" to which the transfer processing compound rule "TR4" belongs, and this priority is higher than that of the priority rule "004" to which "TR5" belongs. Higher than priority "2". As a result, the compound rule "TR4" for transfer processing in the same entity is selected before the general compound rule "TR5" for the bank statement of the entity is selected. Therefore, even if the bank statement for transfer processing in the same entity matches the matching conditions of both "TR4" and "TR5", the bank statement is prevented from being processed with the journal entry of compound rule "TR5". Therefore, it is possible to ensure that the transfer process is journalized as a transfer process.
 以上、図6および図10を参照して、仕訳装置100の具体的な処理例を説明した。本実施形態の仕訳装置100によれば、仕訳処理の実行される環境や状況、仕訳処理において重視すべき観点に応じて、任意の優先度ルールを設定できる。これによって、入力された文書とマッチング条件とが合致するかの検証方法のきめ細かで柔軟な制御が可能となるので、自動仕訳処理を効率化、高精度化できる。 A specific processing example of the journalizing device 100 has been described above with reference to FIGS. According to the journalizing device 100 of the present embodiment, arbitrary priority rules can be set according to the environment and situation in which the journalizing process is executed and the viewpoint to be emphasized in the journalizing process. As a result, it is possible to finely and flexibly control the method of verifying whether the input document matches the matching condition, so that the efficiency and accuracy of the automatic journalizing process can be improved.
 また、本実施形態に係る仕訳装置100では、複合ルールを保持する保持部(第1保持部)と、類型の優先度を保持する保持部(第2保持部)と、を別々に設けている。これにより、複合ルール一つ一つに個別に優先度を付す態様と比較して、優先度を設定する手間を削減することができる。また、新たな複合ルールを設定する際にその複合ルールに優先度を付与する必要はないので、複合ルールの新規作成時の手間も削減できる。 Further, in the journalizing apparatus 100 according to the present embodiment, a holding unit (first holding unit) holding compound rules and a holding unit (second holding unit) holding the priority of types are provided separately. . As a result, it is possible to reduce the time and effort of setting priorities, compared to a mode in which priority is individually assigned to each compound rule. In addition, when setting a new compound rule, it is not necessary to give priority to that compound rule, so that it is possible to save time and effort when creating a new compound rule.
 また、1請求書=1振り込みを基本とすることや、条件の厳しい仕訳から先に処理することなどの自動仕訳のハイレベルの設計思想はマッチング条件の類型で表現できることから、本実施形態に係る仕訳装置100によると、自動仕訳のハイレベルの設計思想をより容易に実現することができる。 In addition, high-level design concepts of automatic journals, such as one invoice = one transfer as a basis and the processing of journals with stricter conditions first, can be expressed by the types of matching conditions. According to the journalizing device 100, the high-level design concept of automatic journalizing can be realized more easily.
 つづいて、仕訳装置100の応用例をいくつか示す。 Next, some application examples of the journalizing device 100 are shown.
 仕訳装置100の第1の応用例では、一つの請求書の請求額が複数回に分割して支払われる。この場合、各回の支払処理の都度、その仕訳処理を実行する複合ルールが適用される。各回の複合ルールは実質的に取引金額のみが異なる。第1回の支払処理の複合ルールは、請求書(以下、オリジナル請求書という)を主文書とし、銀行取引明細書を関連文書とする。第1回の支払処理の自動仕訳の実行時に、オリジナル請求書に対応するバーチャルな(仮想的な)請求書が新たに生成され、文書保持部102に格納される。バーチャルな請求書は、そのメタデータにおいて請求金額のみ(オリジナル請求書の請求金額-第1回の支払金額)が異なり、その他の項目はオリジナル請求書のそれと同じ請求書である。バーチャルな請求書は、それがバーチャルであること、すなわち仕訳装置100内においてのみ存在する請求書であることを示す情報(フラグなど)を伴ってもよい。 In the first application example of the journalizing device 100, the billed amount of one bill is divided into multiple payments. In this case, a compound rule is applied to execute the journalizing process for each payment process. Each compound rule substantially differs only in transaction amounts. The compound rule for the first payment process is that the bill (hereinafter referred to as the original bill) is the main document and the bank statement is the related document. A virtual (virtual) invoice corresponding to the original invoice is newly generated and stored in the document holding unit 102 when the automatic journalizing of the first payment processing is executed. The virtual invoice differs only in the invoice amount (the invoice amount of the original invoice minus the amount of the first payment) in its metadata, and the other items are the same invoice as those of the original invoice. A virtual invoice may be accompanied by information (such as a flag) indicating that it is virtual, ie, an invoice that exists only within journalizing device 100 .
 図6に示される優先度ルールでは、適用ルールタイプ53において文書がバーチャルであることを指定できる。そのような優先度ルールに優先度52を付与することで、バーチャルな文書を仕訳処理する複合ルールに含まれるマッチング条件の類型に優先順位を付けることができる。バーチャルな文書を仕訳処理する複合ルールに含まれるマッチング条件の類型には、オリジナル文書を仕訳処理する複合ルールに含まれるマッチング条件の類型と少なくとも同じ優先度を設定することが好ましい。このようにすれば、上記の例では、オリジナル請求書とバーチャルな請求書を同じ優先度で仕訳処理できる。また、バーチャルな文書は実在しない文書であることから、なるべく早期に仕訳処理すべきであるとすれば、バーチャルな文書を仕訳処理する複合ルールに含まれるマッチング条件の類型に、オリジナル文書を仕訳処理する複合ルールに含まれるマッチング条件の類型より高い優先度を設定することが好ましい。 In the priority rule shown in FIG. 6, the applicable rule type 53 can specify that the document is virtual. By assigning a priority 52 to such a priority rule, it is possible to prioritize types of matching conditions included in a composite rule for journalizing virtual documents. Preferably, the types of matching conditions included in the composite rule for journalizing virtual documents are given at least the same priority as the types of matching conditions included in the composite rules for journalizing original documents. In this way, in the above example, the original invoice and the virtual invoice can be journalized with the same priority. Also, since virtual documents do not actually exist, if journalizing should be performed as early as possible, the original document is used as the type of matching condition included in the compound rules for journalizing virtual documents. It is preferable to set a higher priority than the types of matching conditions included in the combined rule.
 本例では、オリジナル請求書の請求額を「100」とし、第1回の支払処理では「30」を支払い、その出金履歴が銀行取引明細書に記録されているものとする。したがって、第1回の支払処理の複合ルールでは、取引額「30」の仕訳処理が実行される。仕訳装置100は、第1回の仕訳処理後、第1のバーチャルな請求書を発行し、その請求額を未払の「70」に設定する(オリジナル請求書を未払の「70」に減額したことと等価)。つづく第2回の支払処理の複合ルールは、「70」の請求額の第1のバーチャルな請求書を主文書とし、銀行取引明細書を関連文書とする。ここで、第2回の支払処理では「40」を支払い、その出金履歴が銀行取引明細書に記録されているものとする。したがって、第2回の支払処理の複合ルールでは、取引額「40」の仕訳処理が実行される。 In this example, it is assumed that the billed amount of the original invoice is "100", the payment of "30" is paid in the first payment processing, and the withdrawal history is recorded in the bank statement. Therefore, according to the compound rule for the first payment process, the journalizing process for the transaction amount "30" is executed. Journalizing device 100 issues a first virtual invoice after the first journal entry process and sets the invoice amount to unpaid "70" (original invoice reduced to unpaid "70"). (equivalent to The compound rule for the second payment process is to have the first virtual invoice with the invoice amount of "70" as the main document and the bank statement as the related document. Here, it is assumed that "40" is paid in the second payment processing, and that withdrawal history is recorded in the bank statement. Therefore, according to the compound rule for the second payment process, the journalizing process for the transaction amount "40" is executed.
 仕訳装置100は、第2回の仕訳処理後、第2のバーチャルな請求書を発行し、その請求額を未払の「30」に設定する(オリジナル請求書を未払の「30」に減額したことと等価)。つづく第3回の支払処理の複合ルールは、「30」の請求額の第2のバーチャルな請求書を主文書とし、銀行取引明細書を関連文書とする。ここで、第3回の支払処理では残額の「30」を支払い、その出金履歴が銀行取引明細書に記録されているものとする。したがって、第3回の支払処理の複合ルールでは、取引額「30」の仕訳処理が実行される。以上の3回の支払処理によって、請求額「100」のオリジナル請求書が完済される。 After the second journal entry processing, the journalizing device 100 issues a second virtual invoice and sets the invoice amount to unpaid "30" (reduces the original invoice to unpaid "30"). (equivalent to The compound rule for the third payment process is to have the second virtual invoice with the invoice amount of "30" as the main document and the bank statement as the related document. Here, it is assumed that the balance "30" is paid in the third payment processing, and the withdrawal history is recorded in the bank statement. Therefore, according to the compound rule for the third payment process, the journalizing process for the transaction amount "30" is executed. By the above three payment processes, the original bill with a billing amount of "100" will be paid in full.
 このように、オリジナル請求書に対応する一または複数のバーチャルな請求書を発行するまたは生成することにより、分割払いの自動仕訳が可能となる。この他にも、例えば売掛、買掛の場合などあるべき証憑がまだ存在しない場合に、あるべき証憑のプレースホルダーとしてバーチャルな証憑を発行するなど、自動仕訳における様々な用途にバーチャルな証憑を用いることができる。バーチャルな証憑の種類としては、上記のバーチャルな請求書のように意味のある情報が記載された証憑の他に、何も記載されていないブランクの証憑や、意味のない情報が記載された証憑などがあってもよい。 In this way, by issuing or generating one or more virtual invoices corresponding to the original invoice, automatic journalizing of installment payments is possible. In addition to this, virtual vouchers are used for various purposes in automatic journal entries, such as issuing virtual vouchers as placeholders for the vouchers that should exist when they do not yet exist, such as accounts receivable and accounts payable. be able to. As for the types of virtual vouchers, in addition to the vouchers with meaningful information like the above virtual invoices, there are blank vouchers with nothing written and vouchers with meaningless information. and so on.
 図11は、第2の実施形態に係る仕訳装置100の機能ブロック図である。図1に示される第1の実施形態に係る仕訳装置100の構成に加えて、機械学習部112、訓練データ提供部113、評価部114が設けられる。 FIG. 11 is a functional block diagram of the journalizing device 100 according to the second embodiment. In addition to the configuration of the journalizing device 100 according to the first embodiment shown in FIG. 1, a machine learning unit 112, a training data providing unit 113, and an evaluation unit 114 are provided.
 機械学習部112は、複合ルール保持部1051に保持される複合ルールに含まれるマッチング条件の類型(図6の適用ルールタイプ53に相当)と、当該複合ルールの仕訳処理における優先度(図6の優先度52に相当)の関係を機械学習可能である。機械学習部112は、機械学習の結果に基づいて、優先度保持部1052に保持される優先度ルールを更新する。具体的には、図6において、各優先度ルールの優先度52の変更、適用ルールタイプ53の変更、新規優先度ルールの生成、既存優先度ルールの削除等の更新処理が機械学習部112によって実行される。 The machine learning unit 112 determines the type of matching condition (corresponding to the applicable rule type 53 in FIG. 6) included in the compound rule held in the compound rule holding unit 1051 and the priority in the journalizing process of the compound rule ( (equivalent to priority 52) can be machine-learned. The machine learning unit 112 updates the priority rule held in the priority holding unit 1052 based on the result of machine learning. Specifically, in FIG. 6, the machine learning unit 112 performs update processing such as changing the priority 52 of each priority rule, changing the applicable rule type 53, generating a new priority rule, and deleting an existing priority rule. executed.
 訓練データ提供部113は、機械学習のための訓練データを機械学習部112に提供する。訓練データは、複合ルールにおけるマッチング条件の想定される各類型と、当該各類型の仕訳処理における優先度ないし重要度の関係を網羅し、参考データとしてグラフ化されたドメイン知識を含む。機械学習部112は、仕訳装置100の初期セットアップやメンテナンスの際、これらの包括的な訓練データを機械学習することで、仕訳処理の効率または正確性を最大化するための最適な優先度ルールのリストを優先度保持部1052に格納できる。 The training data providing unit 113 provides the machine learning unit 112 with training data for machine learning. The training data includes domain knowledge graphed as reference data covering each assumed pattern of matching conditions in a compound rule and the relationship of priority or importance in the journalizing process of each pattern. The machine learning unit 112 machine-learns these comprehensive training data during the initial setup and maintenance of the journalizing device 100 to determine the optimal priority rules for maximizing the efficiency or accuracy of the journalizing process. A list can be stored in the priority holding unit 1052 .
 評価部114は、優先度保持部1052に保持されている優先度ルールを利用して複合ルール選択部107が選択した複合ルール、当該複合ルールに含まれる関連文書のマッチングルールに基づいて関連文書検索部109が検索した関連文書、これらに基づいて仕訳処理部110が実行した仕訳処理の一部または全部の内容を評価し、その正誤や適否を判定する。評価は、ユーザが主導してもよいし、コンピュータが自律的に行ってもよい。たとえば、仕訳処理部110が実行した仕訳処理の結果が、既に実行された他の仕訳処理の結果と矛盾する場合、それらの仕訳処理は誤りと判定される。また、仕訳処理部110が実行した仕訳処理の結果は誤りではないが、より効率的な仕訳処理方法が評価時に確認された場合、実行された仕訳処理は不適と判定される。また、評価部114は、実行頻度の高い複合ルールや、累計処理金額の大きい複合ルールを重要度が高いものと評価し、このような複合ルールに対応する優先度ルールに高い優先度が与えられるべきとの推奨情報を評価結果に含めてもよい。 The evaluation unit 114 searches related documents based on the compound rule selected by the compound rule selection unit 107 using the priority rules held in the priority holding unit 1052 and the matching rule of the related document included in the compound rule. The related documents retrieved by the unit 109 and the contents of a part or the whole of the journalizing processing executed by the journalizing processing unit 110 based on these are evaluated, and the correctness/wrongness and appropriateness are determined. The evaluation may be user-initiated or may be autonomously performed by a computer. For example, if the result of a journalizing process executed by the journalizing processing unit 110 conflicts with the result of another journalizing process that has already been executed, those journalizing processes are determined to be erroneous. Also, although the result of the journalizing process executed by the journalizing processing unit 110 is not an error, if a more efficient journalizing processing method is confirmed at the time of evaluation, the executed journalizing process is determined to be inappropriate. Moreover, the evaluation unit 114 evaluates a complex rule with a high execution frequency and a complex rule with a large cumulative processing amount as having a high degree of importance, and gives a high priority to a priority rule corresponding to such a complex rule. Recommendation information on what to do may be included in the evaluation results.
 評価によって誤りや不適と判定された複合ルール、関連文書、仕訳処理があった場合、評価部114は、複合ルール選択部107、関連文書検索部109、仕訳処理部110に対して訂正指示を発信し、それぞれの処理を訂正させる。また、評価部114は評価結果を訓練データ提供部113にフィードバックする。訓練データ提供部113は、これらを訓練データとして機械学習部112に提供する。このように、機械学習部112は、仕訳装置100の実際の処理で使われたデータを用いて継続的に機械学習でき、その処理精度を高く維持できる。 If there is a compound rule, related document, or journal processing determined to be erroneous or inappropriate by the evaluation, the evaluation unit 114 sends a correction instruction to the compound rule selection unit 107, the related document search unit 109, and the journal processing unit 110. and correct each process. Also, the evaluation unit 114 feeds back the evaluation result to the training data providing unit 113 . The training data providing unit 113 provides these to the machine learning unit 112 as training data. In this way, the machine learning unit 112 can continuously perform machine learning using the data used in the actual processing of the journalizing device 100, and maintain high processing accuracy.
 以上、本発明を実施の形態に基づいて説明した。実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。 The present invention has been described above based on the embodiment. It should be understood by those skilled in the art that the embodiments are examples, and that various modifications can be made to combinations of each component and each treatment process, and that such modifications are within the scope of the present invention. .
 図6に優先度ルール群の設定例を示したが、他の例として以下のような優先度ルール群を設定してもよい(図6の表記に倣う)。 An example of setting the priority rule group is shown in FIG. 6, but as another example, the following priority rule group may be set (according to the notation in FIG. 6).
 (1)特定のエンティティを適用対象とする複合ルールの類型を高優先度とする優先度ルール群
 ・優先度ルール1:優先度「1」/適用ルールタイプ「主文書または関連文書の摘要にエンティティ名のテキストが含まれるという条件有り」
 ・優先度ルール2:優先度「2」/適用ルールタイプ「主文書または関連文書の摘要以外の箇所にエンティティ名のテキストが含まれるという条件有り」
 ・優先度ルール3:優先度「3」/適用ルールタイプ「エンティティ名のテキストに関する条件がない」
(1) A priority rule group with a high priority for the type of compound rule that applies to a specific entity ・Priority rule 1: Priority "1" / Applicable rule type "An entity There is a condition that the first name text is included.”
・Priority rule 2: Priority “2” / Applicable rule type “There is a condition that the text of the entity name is included in a place other than the abstract of the main document or related documents”
・Priority rule 3: Priority "3" / Applicable rule type "No condition for entity name text"
 (2)請求書の支払処理において、銀行取引明細書により支払いが裏付けられているかをまず確認する優先度ルール群
 ・優先度ルール1:優先度「1」/適用ルールタイプ「関連文書を必須とし、金額一致条件有り」
 ・優先度ルール2:優先度「2」/適用ルールタイプ「関連文書を必須とし、キーワード一致条件有り」
 ・優先度ルール3:優先度「3」/適用ルールタイプ「関連文書を必須とせず、金額一致条件有り」
(2) A group of priority rules for first confirming whether payment is supported by a bank statement when processing invoice payments ・Priority rule 1: Priority “1” / Applicable rule type “Related documents are required” , there is an amount matching condition”
・Priority rule 2: Priority "2" / Applicable rule type "Related documents are required and there is a keyword matching condition"
・Priority rule 3: Priority "3" / Applicable rule type "Related documents are not required, and there is an amount matching condition"
 (3)金額一致条件やキーワード合致条件が厳しい類型ほど高い優先度を設定する優先度ルール群
 ・優先度ルール1:優先度「1」/適用ルールタイプ「主文書と関連文書の金額が完全に一致する条件有り」または「N1個以上のキーワード一致条件有り」
 ・優先度ルール2:優先度「2」/適用ルールタイプ「主文書と関連文書の金額の差が1%以内という条件有り」または「N1より小さいN2個以上のキーワード一致条件有り」
 ・優先度ルール3:優先度「3」/適用ルールタイプ「主文書と関連文書の金額の差が3%以内という条件有り」または「N2より小さいN3個以上のキーワード一致条件有り」
(3) A priority rule group in which a higher priority is set for a type with a stricter amount matching condition or keyword matching condition ・Priority rule 1: Priority “1” / Applicable rule type “The amount of the main document and related documents is completely There are matching conditions” or “There are N1 or more keyword matching conditions”
・Priority rule 2: Priority "2" / Applicable rule type "There is a condition that the difference in the amount of the main document and the related document is within 1%" or "There is a keyword matching condition of N2 or more smaller than N1"
・Priority rule 3: Priority "3" / Applicable rule type "There is a condition that the difference in the amount of the main document and the related document is within 3%" or "There is a keyword matching condition of N3 or more smaller than N2"
 この例では、優先度ルール3の適用ルールタイプ(メタデータ指定条件の類型)は優先度ルール2の適用ルールタイプを包含し、優先度ルール2の適用ルールタイプは優先度ルール1の適用ルールタイプを包含する。そして、適用ルールタイプの適用範囲が狭い優先度ルールほど高い優先度が設定される。これによって、高優先度の類型の処理では厳密な仕訳処理が可能となり、低優先度の類型の処理では利用可能な情報に基づいて暫定的な仕訳処理が可能となる。金額一致条件に応じて優先度ルールを設定する例では、図9の差額理由示唆部362に関して前述したエラーシナリオに基づく処理を併せて実行するのが好ましい。 In this example, the applicable rule type of priority rule 3 (type of metadata specification condition) includes the applicable rule type of priority rule 2, and the applicable rule type of priority rule 2 includes the applicable rule type of priority rule 1. encompasses A higher priority is set for a priority rule with a narrower application range of the applicable rule type. This allows strict journalizing for high-priority type processes and provisional journalizing based on available information for low-priority type processes. In the example of setting the priority rule according to the amount matching condition, it is preferable to also execute the processing based on the error scenario described above with respect to the difference reason suggesting section 362 of FIG.
 第1および第2の実施形態では自動仕訳処理において関連文書を指定可能な場合について説明したが、これに限られず、例えば関連文書の指定を想定していない自動仕訳処理にも第1または第2の実施形態の技術的思想を適用することができる。 In the first and second embodiments, the case where related documents can be specified in automatic journal processing has been described, but this is not the only option. The technical idea of the embodiment can be applied.
 なお、実施の形態で説明した各装置の機能構成はハードウェア資源またはソフトウェア資源により、あるいはハードウェア資源とソフトウェア資源の協働により実現できる。ハードウェア資源としてプロセッサ、ROM、RAM、その他のLSIを利用できる。ソフトウェア資源としてオペレーティングシステム、アプリケーション等のプログラムを利用できる。 It should be noted that the functional configuration of each device described in the embodiments can be realized by hardware resources or software resources, or by cooperation between hardware resources and software resources. Processors, ROMs, RAMs, and other LSIs can be used as hardware resources. Programs such as operating systems and applications can be used as software resources.
 本発明は、取引を仕訳する技術に関する。 The present invention relates to technology for journalizing transactions.
 20 表示部、24 仕訳処理ルール、25 主文書指定情報、26 関連文書マッチングルール、36 仕訳表示領域、37 主文書表示領域、38 関連文書表示領域、51 優先度ルールID、52 優先度、53 適用ルールタイプ、100 仕訳装置、101 文書入力部、102 文書保持部、103 メタデータ抽出部、104 主文書取得部、105 記録部、106 設定部、107 複合ルール選択部、108 マッチングルール取得部、109 関連文書検索部、110 仕訳処理部、111 表示制御部、112 機械学習部、113 訓練データ提供部、114 評価部、251 文書種別、252 メタデータ種別、253 比較条件、254 比較値、262 文書種別、263 メタデータ種別、264 比較条件、265 比較値、531 ルール種類設定部、532 ルール適用形式設定部、533 対象項目設定部、534 比較条件設定部、535 データ型設定部、1051 複合ルール保持部、1052 優先度保持部、1061 複合ルール登録部、1062 優先度設定部。 20 Display section, 24 Journal processing rule, 25 Main document specification information, 26 Related document matching rule, 36 Journal display area, 37 Main document display area, 38 Related document display area, 51 Priority rule ID, 52 Priority, 53 Application Rule type, 100 journalizing device, 101 document input unit, 102 document holding unit, 103 metadata extraction unit, 104 main document acquisition unit, 105 recording unit, 106 setting unit, 107 compound rule selection unit, 108 matching rule acquisition unit, 109 Related document search unit 110 Journal processing unit 111 Display control unit 112 Machine learning unit 113 Training data provision unit 114 Evaluation unit 251 Document type 252 Metadata type 253 Comparison condition 254 Comparison value 262 Document type , 263 Metadata type, 264 Comparison condition, 265 Comparison value, 531 Rule type setting part, 532 Rule application format setting part, 533 Target item setting part, 534 Comparison condition setting part, 535 Data type setting part, 1051 Composite rule holding part , 1052 priority holding unit, 1061 compound rule registration unit, 1062 priority setting unit.

Claims (12)

  1.  複数の複合ルールであって、各複合ルールが仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを含む複数の複合ルールを保持する複合ルール保持部と、
     マッチング条件の類型と優先度とを対応付けて保持する優先度保持部と、
     前記複合ルール保持部に保持される複数の複合ルールの中から、入力された文書が合致するマッチング条件を含む複合ルールを、前記優先度保持部に保持される優先度に従って選択する複合ルール選択部と、
     選択された複合ルールに含まれる仕訳処理ルールに基づいて仕訳処理を実行する仕訳処理部と
     を備える仕訳装置。
    a compound rule holding unit that holds a plurality of compound rules, each compound rule including a journal entry processing rule and a matching condition to be satisfied by an application target of the journal entry processing rule;
    a priority holding unit that associates and holds types of matching conditions and priorities;
    A composite rule selection unit that selects a composite rule including a matching condition with which an input document matches, from among a plurality of composite rules held in the composite rule holding unit according to the priority held in the priority holding unit. When,
    A journalizing device comprising: a journalizing processing unit that executes journalizing processing based on journalizing processing rules included in the selected composite rule.
  2.  前記複合ルール選択部は、入力された文書が合致するマッチング条件が複数ある場合、優先度が高い類型に属するマッチング条件を含む複合ルールを選択する
     請求項1に記載の仕訳装置。
    2. The journalizing device according to claim 1, wherein, when there are a plurality of matching conditions with which an input document matches, the compound rule selection unit selects a compound rule including matching conditions belonging to a type with a high priority.
  3.  前記複合ルール選択部は、優先度が高い類型に属するマッチング条件から順に入力された文書が合致するか否かを判定し、合致したマッチング条件を含む複合ルールを選択する
     請求項1または2に記載の仕訳装置。
    3. The compound rule selection unit according to claim 1, wherein the compound rule selection unit determines whether or not the input documents match in order from the matching condition belonging to the type with the highest priority, and selects the compound rule including the matched matching condition. Journal device.
  4.  マッチング条件は、文書に係るメタデータについてのメタデータ指定条件を含み、
     優先度は、マッチング条件に含まれるメタデータ指定条件の類型に応じて設定される
     請求項1から3のいずれかに記載の仕訳装置。
    The matching conditions include metadata specification conditions for metadata related to documents,
    4. The journalizing device according to any one of claims 1 to 3, wherein the priority is set according to the type of metadata specifying condition included in the matching condition.
  5.  優先度は、マッチング条件に含まれるメタデータ指定条件の合致の範囲が狭いほど高くなるよう設定される
     請求項4に記載の仕訳装置。
    5. The journalizing device according to claim 4, wherein the priority is set to be higher as the scope of matching of the metadata specification condition included in the matching condition is narrower.
  6.  マッチング条件は、仕訳処理対象の主文書を指定する主文書指定情報に加え、当該主文書と併せて仕訳処理されるべき関連文書を指定する関連文書指定情報を含み、
     優先度は、マッチング条件に含まれる関連文書指定情報の類型に応じて設定される
     請求項1から5のいずれかに記載の仕訳装置。
    The matching condition includes main document designation information that designates the main document to be journalized and related document designation information that designates related documents to be journalized together with the main document,
    6. The journalizing device according to any one of claims 1 to 5, wherein the priority is set according to the type of related document designation information included in the matching condition.
  7.  複合ルールに含まれるマッチング条件の類型と、当該複合ルールの仕訳処理における優先度の関係を機械学習可能な機械学習部を備え、
     前記優先度保持部が保持する優先度は、前記機械学習部によって更新可能である
     請求項1から6のいずれかに記載の仕訳装置。
    Equipped with a machine learning unit capable of machine learning the relationship between the types of matching conditions included in the compound rule and the priority in journal processing of the compound rule,
    The journalizing device according to any one of claims 1 to 6, wherein the priority held by said priority holding unit can be updated by said machine learning unit.
  8.  複数の複合ルールであって、各複合ルールが仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを含む複数の複合ルールを保持する複合ルール保持部と、
     マッチング条件の類型と優先度とを対応付けて保持する優先度保持部と
     を備える仕訳装置において行われる仕訳方法であって、
     前記複合ルール保持部に保持される複数の複合ルールの中から、入力された文書が合致するマッチング条件を含む複合ルールを、前記優先度保持部に保持される優先度に従って選択するステップと、
     選択された複合ルールに含まれる仕訳処理ルールに基づいて仕訳処理を実行するステップと
     を含む仕訳方法。
    a compound rule holding unit that holds a plurality of compound rules, each compound rule including a journal entry processing rule and a matching condition to be satisfied by an application target of the journal entry processing rule;
    A journalizing method performed in a journalizing apparatus comprising a priority holding unit that holds matching condition types and priorities in association with each other,
    a step of selecting, from among a plurality of compound rules held in the compound rule holding unit, a compound rule including matching conditions with which an input document matches according to the priority held in the priority holding unit;
    and performing journal processing based on the journal processing rules included in the selected composite rule.
  9.  仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを対応付けて保持する第1保持部と、
     マッチング条件の類型と優先度とを対応付けて保持する第2保持部と、
     前記第1保持部に保持されるマッチング条件の中から、入力された文書が合致するマッチング条件を、前記第2保持部に保持される優先度に従って選択する選択部と、
     前記選択部によって選択されたマッチング条件に対応する仕訳処理ルールに基づいて仕訳処理を実行する仕訳処理部と
     を備える仕訳装置。
    a first holding unit that associates and holds a journal processing rule and a matching condition to be satisfied by an application target of the journal processing rule;
    a second holding unit that associates and holds matching condition types and priorities;
    a selection unit that selects, from the matching conditions held in the first holding unit, a matching condition with which an input document matches according to the priority held in the second holding unit;
    A journalizing apparatus comprising: a journalizing processing unit that executes journalizing processing based on a journalizing processing rule corresponding to the matching condition selected by the selecting unit.
  10.  前記選択部は、
      前記第2保持部を参照して所定の優先度に対応する類型を特定し、
      特定された類型に属するマッチング条件を前記第1保持部から抽出し、
      入力された文書と抽出されたマッチング条件とが合致しない場合、前記第2保持部を参照して前記所定の優先度よりも低い優先度に対応する類型を特定する
     請求項9に記載の仕訳装置。
    The selection unit
    identifying a type corresponding to a predetermined priority by referring to the second holding unit;
    extracting matching conditions belonging to the specified type from the first holding unit;
    10. The journalizing device according to claim 9, wherein when the input document and the extracted matching condition do not match, the second holding unit is referred to and the type corresponding to the priority lower than the predetermined priority is specified. .
  11.  前記選択部は、
      同じ優先度に対応する複数の類型が特定された場合、それらの類型の中から入力された文書の種別に対応する類型をさらに特定し、
      さらに特定された類型に属するマッチング条件を前記第1保持部から抽出する
     請求項10に記載の仕訳装置。
    The selection unit
    If a plurality of types corresponding to the same priority are identified, further identifying a type corresponding to the type of the input document from among those types,
    The journalizing device according to claim 10, further extracting matching conditions belonging to the specified type from the first holding unit.
  12.  仕訳処理ルールと当該仕訳処理ルールの適用対象が満たすべきマッチング条件とを対応付けて保持する第1保持部と、
     マッチング条件の類型と優先度とを対応付けて保持する第2保持部と
     を備える仕訳装置において行われる仕訳方法であって、
     前記第1保持部に保持されるマッチング条件の中から、入力された文書が合致するマッチング条件を、前記第2保持部に保持される優先度に従って選択するステップと、
     選択されたマッチング条件に対応する仕訳処理ルールに基づいて仕訳処理を実行するステップと
     を含む仕訳方法。
    a first holding unit that associates and holds a journal processing rule and a matching condition to be satisfied by an application target of the journal processing rule;
    A journalizing method performed in a journalizing device comprising:
    a step of selecting a matching condition with which the input document matches from among the matching conditions held in the first holding unit according to the priority held in the second holding unit;
    and performing journal processing based on journal processing rules corresponding to selected matching criteria.
PCT/JP2021/002191 2021-01-22 2021-01-22 Journalizing device and journalizing method WO2022157913A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2021/002191 WO2022157913A1 (en) 2021-01-22 2021-01-22 Journalizing device and journalizing method
JP2022576321A JP7258322B2 (en) 2021-01-22 2021-01-22 journalizing device, journalizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2021/002191 WO2022157913A1 (en) 2021-01-22 2021-01-22 Journalizing device and journalizing method

Publications (1)

Publication Number Publication Date
WO2022157913A1 true WO2022157913A1 (en) 2022-07-28

Family

ID=82549597

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2021/002191 WO2022157913A1 (en) 2021-01-22 2021-01-22 Journalizing device and journalizing method

Country Status (2)

Country Link
JP (1) JP7258322B2 (en)
WO (1) WO2022157913A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004310186A (en) * 2003-04-02 2004-11-04 Hitachi Systems & Services Ltd Automatic journalization process, device for implementing it, its process program, and recording medium
JP2011170490A (en) * 2010-02-17 2011-09-01 Yayoi Co Ltd SaaS GENERAL ACCOUNTING SYSTEM
JP2018173935A (en) * 2017-12-05 2018-11-08 ファーストアカウンティング株式会社 Accounting processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004310186A (en) * 2003-04-02 2004-11-04 Hitachi Systems & Services Ltd Automatic journalization process, device for implementing it, its process program, and recording medium
JP2011170490A (en) * 2010-02-17 2011-09-01 Yayoi Co Ltd SaaS GENERAL ACCOUNTING SYSTEM
JP2018173935A (en) * 2017-12-05 2018-11-08 ファーストアカウンティング株式会社 Accounting processing system

Also Published As

Publication number Publication date
JP7258322B2 (en) 2023-04-17
JPWO2022157913A1 (en) 2022-07-28

Similar Documents

Publication Publication Date Title
US11176583B2 (en) System and method for sharing transaction information by object
JP6307693B2 (en) Accounting system
US10115137B2 (en) System and method for enhanced access and control for connecting entities and effecting payments in a commercially oriented entity network
AU2007275708B2 (en) Method and system for receivables management
US11803886B2 (en) System and method for enhanced access and control for connecting entities and effecting payments in a commercially oriented entity network
US20150012489A1 (en) System and method for enhanced synchronization of record organized data between disparate applications
JP7373473B2 (en) Accounting processing equipment, accounting processing methods, and accounting processing programs
WO2014152574A1 (en) Electronic payment system operative with existing accounting software and existing remote deposit capture and mobile rdc software
JP2016194802A (en) Accounting input system, terminal equipment, server device, method, and program
JP2017054469A (en) Data management system, method and program
JP2006285710A (en) Accounting device and program
JP2003091694A (en) Method for processing abstract
JP4459538B2 (en) Reorganization fund management system, reorganization fund management system program, and recording medium recording the program
JP6427247B1 (en) Electronic record account management system
JP2021121919A (en) Account settlement processing support system, account settlement processing support method, and account settlement processing support program
JP7258322B2 (en) journalizing device, journalizing method
KR100334249B1 (en) Intelligent data structure, processing apparatus, and medium using network
JP7244159B2 (en) journalizing device, journalizing method, journalizing display method, journalizing display program
TWM596397U (en) Automatic issue and import enterprise electronic invoices and digital receipts into the platform of the customer&#39;s intelligent accounting system
WO2022195901A1 (en) Accounting processing device and accounting processing method
WO2012173330A1 (en) System and method for an automatic journal service
AU2012268872A9 (en) Method and system for receivables management
JP2002342585A (en) Transaction detail management system
TWI765229B (en) Platform for enterprise eletronic invoice, digtal recepipt issuance and automatic remittance to coustomer intelligent accounting system
JP2001325419A (en) Account data preparation method, settlement file preparation method, consolidated accounts method, account data, input picture, recording medium for account data preparing program, settlement file preparing program and consolidated accounts preparing program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21921024

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022576321

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21921024

Country of ref document: EP

Kind code of ref document: A1