CN113779947A - Method, device, equipment and storage medium for automatically generating accounting document - Google Patents

Method, device, equipment and storage medium for automatically generating accounting document Download PDF

Info

Publication number
CN113779947A
CN113779947A CN202110996868.1A CN202110996868A CN113779947A CN 113779947 A CN113779947 A CN 113779947A CN 202110996868 A CN202110996868 A CN 202110996868A CN 113779947 A CN113779947 A CN 113779947A
Authority
CN
China
Prior art keywords
document
business
accounting
sub
category
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110996868.1A
Other languages
Chinese (zh)
Inventor
王跃胜
崔晓辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Industry Technical College
Original Assignee
Guangdong Industry Technical College
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 Guangdong Industry Technical College filed Critical Guangdong Industry Technical College
Priority to CN202110996868.1A priority Critical patent/CN113779947A/en
Publication of CN113779947A publication Critical patent/CN113779947A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • 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
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application is applicable to the field of data processing, and provides a method, a device, equipment and a storage medium for automatically generating an accounting document. The method comprises the following steps: acquiring a service document to be processed; determining a bill type corresponding to the business bill; determining a sub-category corresponding to the business document according to the business document and the document category; acquiring a plurality of preset query conditions corresponding to the sub-categories and certificate templates corresponding to the sub-categories; inquiring business data corresponding to each preset inquiry condition in the business document; and generating an accounting document corresponding to the business document according to the business data and the document template corresponding to each preset query condition. In the scheme, the automatic generation of the accounting documents is realized, the method is suitable for various types of business documents, the efficiency of generating the accounting documents is improved, the manpower, material resources and financial resources are saved, the two classes of the business documents are divided, a plurality of preset query conditions and document templates corresponding to the business documents are accurate, and the accuracy of the finally generated accounting documents is higher.

Description

Method, device, equipment and storage medium for automatically generating accounting document
Technical Field
The present application belongs to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for automatically generating an accounting document.
Background
Accounting documents are an important task in enterprise management. In the traditional mode, financial staff is required to manually make accounting documents according to the contents of business documents (such as warehousing documents, delivery documents and the like). Specifically, various information required for making the accounting document, such as collection information, payment information and the like, is manually extracted, and then the corresponding accounting document is made through operations of copying, pasting, splicing and the like. The method for manufacturing the accounting document has the advantages of large workload of financial staff, low efficiency of manufacturing the accounting document and high error rate of the accounting document.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a device, and a storage medium for automatically generating an accounting document, so as to solve the problems in the prior art that the workload of financial staff is large, the efficiency of accounting document making is low, and the error rate of accounting documents is high due to manual accounting document making.
A first aspect of an embodiment of the present application provides a method for automatically generating an accounting document, including:
acquiring a service document to be processed;
determining a bill type corresponding to the business bill;
determining a sub-category corresponding to the business document according to the business document and the document category, wherein the sub-category is used for expressing business corresponding to the business document;
acquiring a plurality of preset query conditions corresponding to the sub-category and a certificate template corresponding to the sub-category;
inquiring business data corresponding to each preset inquiry condition in the business document;
and generating an accounting document corresponding to the business document according to the business data corresponding to each preset query condition and the document template.
Optionally, the generating an accounting document corresponding to the business document according to the business data corresponding to each preset query condition and the document template includes:
filling the business data corresponding to each preset query condition into the voucher template to obtain a target accounting voucher;
and when the fact that the business data corresponding to each preset query condition in the target accounting document meet preset requirements is detected, generating the accounting document based on the target accounting document.
Optionally, after the business data corresponding to each preset query condition is filled into the credential template to obtain the target accounting credential, the method further includes:
when the fact that the business data corresponding to any preset query condition in the target accounting document does not meet the preset requirement is detected, the business data which do not meet the preset requirement in the target accounting document are adjusted;
generating the accounting document based on the adjusted target accounting document.
Optionally, before the obtaining of the plurality of preset query conditions corresponding to the sub-category and the credential template corresponding to the sub-category, the method further includes:
acquiring each accounting item corresponding to the sub-category;
generating a program statement corresponding to each accounting item;
and generating a plurality of preset query conditions corresponding to the sub-categories according to the program statements corresponding to each accounting item.
Optionally, before the obtaining of the plurality of preset query conditions corresponding to the sub-category and the credential template corresponding to the sub-category, the method further includes:
acquiring each accounting item corresponding to the sub-category;
and generating a voucher template corresponding to the sub-category according to each accounting item.
Optionally, the business document comprises a medical document.
Optionally, after generating an accounting document corresponding to the business document according to the business data and the document template corresponding to each preset query condition, the method further includes:
and generating a log according to the business document and the accounting document.
A second aspect of an embodiment of the present application provides an apparatus for automatically generating an accounting document, including:
the first acquisition unit is used for acquiring a service document to be processed;
the first determining unit is used for determining the bill type corresponding to the business bill;
the second determining unit is used for determining a sub-category corresponding to the business document according to the business document and the document category, wherein the sub-category is used for representing business corresponding to the business document;
the second obtaining unit is used for obtaining a plurality of preset query conditions corresponding to the sub-category and a certificate template corresponding to the sub-category;
the query unit is used for querying the business data corresponding to each preset query condition in the business document;
and the generating unit is used for generating the accounting document corresponding to the business document according to the business data corresponding to each preset inquiry condition and the document template.
A third aspect of embodiments of the present application provides an apparatus for automatically generating an accounting document, comprising a memory, a processor and a computer program stored in the memory and operable on the processor, wherein the processor, when executing the computer program, implements the steps of the method for automatically generating an accounting document according to the first aspect.
A fourth aspect of embodiments of the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method for automatically generating accounting documents as described in the first aspect above.
A fifth aspect of embodiments of the present application provides a computer program product, which, when run on an apparatus for automatically generating an accounting document, causes the apparatus to perform the steps of the method for automatically generating an accounting document according to the first aspect.
The method, the device, the equipment and the storage medium for automatically generating the accounting document have the following beneficial effects:
acquiring a service document to be processed; determining a bill type corresponding to the business bill; determining a sub-category corresponding to the business document according to the business document and the document category; acquiring a plurality of preset query conditions corresponding to the sub-categories and certificate templates corresponding to the sub-categories; inquiring business data corresponding to each preset inquiry condition in the business document; and generating an accounting document corresponding to the business document according to the business data and the document template corresponding to each preset query condition. In the scheme, the business document is classified twice to obtain an accurate classification result, a plurality of preset query conditions and certificate templates corresponding to the business document are accurately searched according to the classification result, then the business data is queried in the business document according to the preset query conditions, and the accounting document is generated according to the queried business data and certificate templates. The automatic generation of the accounting documents is realized, the automatic generation of the accounting documents is suitable for various types of business documents, the efficiency of generating the accounting documents is improved, manpower, material resources and financial resources are saved, two categories of the business documents are divided, a plurality of preset query conditions and document templates corresponding to the business documents are accurate, and the accuracy of the finally generated accounting documents is higher.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a method for automatically generating accounting documents provided by an exemplary embodiment of the present application;
FIG. 2 is a flowchart illustrating in detail step S106 of a method for automatically generating accounting documents according to an exemplary embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a method for generating a plurality of preset query conditions corresponding to sub-categories in accordance with an exemplary embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating a method for generating a credential template corresponding to a sub-category in accordance with an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of an apparatus for automatically generating accounting documents according to an embodiment of the present application;
fig. 6 is a schematic diagram of an apparatus for automatically generating accounting documents according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the description of the embodiments of the present application, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for automatically generating accounting documents according to an exemplary embodiment of the present application. The execution main body of the method for automatically generating the accounting document is equipment for automatically generating the accounting document, wherein the equipment comprises but is not limited to mobile terminals such as smart phones, tablet computers, Personal Digital Assistants (PDAs), desktop computers and the like, and the equipment can also comprise various types of servers. For example, the server may be an independent server, or may be a cloud service that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform.
In the embodiments of the present application, an execution subject is taken as an example of a computer terminal.
The method for automatically generating accounting documents as shown in fig. 1 may comprise: s101 to S106 are as follows:
s101: and acquiring a to-be-processed business document.
The business document to be processed is also referred to as financial document, and belongs to the original voucher. The business document to be processed is the written basis for each economic business and is reflected in finance as the document.
Illustratively, the terminal obtains a service document to be processed. For example, when detecting an instruction of generating an accounting document, the terminal acquires a business document to be processed. The instruction for generating the accounting document refers to an instruction for commanding the terminal to generate the accounting document.
The generate accounting document instruction may be triggered by the user, such as the user clicking on a generate accounting document option in the terminal. The acquiring of the to-be-processed business document can be a business document uploaded to the terminal by a user, or can be a file identifier included in an accounting document generating instruction detected by the terminal, acquiring a file corresponding to the file identifier, and extracting the business document in the file.
The form of the business document to be processed may be an electronic document originally, or an electronic document obtained by scanning a paper business document, which is not limited herein.
S102: and determining the bill type corresponding to the business bill.
Exemplarily, the to-be-processed business document may specifically be: the bill of reimbursement, the bill of debit, the voucher of expenditure, the certificate of expenditure, the application bill of check acceptance, the original bill of paper, the sales bill, the delivery bill, the purchase bill, the warehouse entry bill, the receivable, the accounts payable, the logistics bill, etc.
The reimbursement, borrowing, and expenditure proof … … logistics, which are the types of documents corresponding to the business documents, are usually displayed at the head of the business documents. And obtaining the document type of the business document by identifying the header of the business document.
Optionally, in a possible implementation manner, the identification information of the business document may also be acquired, and the document category corresponding to the business document is determined according to the identification information. Illustratively, identification information corresponding to each document type is set for documents of different document types such as a reimbursement note, a debit note, a payment voucher, a payment certificate … … logistics document and the like in advance, and a corresponding relation between each document type and the identification information is established.
The identification information is usually presented in the header of the business document. And after identifying the identification information corresponding to the business document, searching the document type corresponding to the identification information according to the pre-established corresponding relationship between each document type and the identification information.
S103: and determining the sub-category corresponding to the business document according to the business document and the document category, wherein the sub-category is used for expressing the business corresponding to the business document.
And further classifying the business documents according to the content of the business documents on the basis of the document types corresponding to the business documents to obtain sub-types corresponding to the business documents. The sub-category is used for representing the business corresponding to the business document.
Illustratively, the subcategories may be medical and non-medical. The non-medical treatment can also comprise houses, machinery, living goods, office supplies, raw materials, home furnishing and the like. It can be understood that the service corresponding to the service document may be a medical service or a non-medical service.
For example, the document category corresponding to a certain business document is determined as an incoming document, item information (for example, a certain medical apparatus name) in the business document is further identified, and if the incoming document is determined as the incoming document in the medical document according to the item information, the sub-category corresponding to the business document is medical.
For another example, if the document type corresponding to a certain business document is determined as an reimbursement document, the article information (e.g., a certain office supply name) in the business document is further identified, and the reimbursement document is determined as an reimbursement document in a non-medical document (office supply document) according to the article information, then the sub-type corresponding to the business document is office supply.
Optionally, the business document to be processed may include a medical document. Specifically, the medical document may be a medical purchase order, a medical reimbursement order, a medical debit order, a medical expenditure voucher, a medical expenditure certification order, a medical check acceptance application order, a medical original document pasting order, a medical sales order, a medical delivery order, a medical purchase order, or the like.
For the business documents of the type, the documents belong to medical business, and the sub-categories are determined, so that the document categories and the sub-categories corresponding to the business documents of the type can be quickly determined. For example, the document category corresponding to the medical invoice is the invoice, and the sub-category is the medical; the bill category corresponding to the medical reimbursement bill is reimbursement, and the sub-category is medical. The description is given for illustrative purposes only and is not intended to be limiting.
S104: and acquiring a plurality of preset query conditions corresponding to the sub-categories and the certificate templates corresponding to the sub-categories.
For example, the preset query condition is pre-designed according to the sub-category corresponding to the business document, and a plurality of pre-designed preset query conditions may be stored in a local database or in a server. The terminal can call a plurality of preset query conditions corresponding to the sub-category corresponding to the business document in a local database or a server.
Illustratively, the voucher template is pre-designed according to the sub-category corresponding to the business document, and the pre-designed voucher template can be stored in a local database or a server. The terminal can call the voucher template corresponding to the sub-category corresponding to the business document in a local database or a server.
S105: and inquiring the business data corresponding to each preset inquiry condition in the business document.
The business data is the data needed for generating the accounting document, and the business data corresponding to each preset query condition is queried in the business document one by one according to a plurality of preset query conditions.
For example, the preset query conditions may include: inquiring document number, inquiring document date, inquiring document number, inquiring using department, inquiring debit department, inquiring abstract, inquiring lender department, inquiring specification model, inquiring purchase registration number, inquiring asset type, inquiring whether to put in storage, inquiring document state, inquiring acceptance state, inquiring warehouse, inquiring accessory uploading state, inquiring equipment code, inquiring equipment name and the like.
And inquiring the service data corresponding to each preset inquiry condition one by one in the service bill according to the preset inquiry condition. For example, the document number inquired in the business document according to the inquired document number is as follows: XXX; and inquiring the document date in the business document according to the document inquiring date as follows: XX month XX day XX year etc. The specifically found data is the service data corresponding to the preset query condition. The description is given for illustrative purposes only and is not intended to be limiting.
S106: and generating an accounting document corresponding to the business document according to the business data and the document template corresponding to each preset query condition.
Illustratively, the voucher template includes items such as debit subject, abstract, credit subject, document number, document date, document number, credit subject, specification model, purchase registration number, asset class, document status, acceptance status, secondary accounting, device code, device name, etc. And the terminal fills the acquired business data corresponding to each preset query condition into the corresponding position in the voucher template, and generates an accounting voucher corresponding to the business document based on the voucher template filled with the business data.
Optionally, after generating the accounting document, the terminal stores the accounting document in a local database, and may also upload the accounting document to the server for storage. After the storage is finished, the terminal displays the accounting document on a terminal display interface for a user to look up the accounting document.
In the scheme, the business document is classified twice to obtain an accurate classification result, a plurality of preset query conditions and certificate templates corresponding to the business document are accurately searched according to the classification result, then the business data is queried in the business document according to the preset query conditions, and the accounting document is generated according to the queried business data and certificate templates. The automatic generation of the accounting documents is realized, the automatic generation of the accounting documents is suitable for various types of business documents, the efficiency of generating the accounting documents is improved, manpower, material resources and financial resources are saved, two categories of the business documents are divided, a plurality of preset query conditions and document templates corresponding to the business documents are accurate, and the accuracy of the finally generated accounting documents is higher.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of the present application, specifically illustrating step S106 of a method for automatically generating an accounting document; optionally, in some possible implementations of the present application, the S106 may include S1061 to S1062, which are as follows:
s1061: and filling the business data corresponding to each preset query condition into a voucher template to obtain the target accounting voucher.
And the terminal fills the acquired business data corresponding to each preset query condition into the corresponding position in the voucher template, and generates a target accounting voucher corresponding to the business document based on the voucher template filled with the business data.
When the business data in the target accounting document is not wrong, the target accounting document is the accounting document corresponding to the finally generated business document; when the business data in the target accounting document has errors, the accounting document corresponding to the final business document can be generated only after the erroneous business data is adjusted.
S1062: and when the fact that the business data corresponding to each preset query condition in the target accounting document meet the preset requirements is detected, generating the accounting document based on the target accounting document.
Whether the business data corresponding to each preset query condition in the target accounting document meets the preset requirement is detected, and when the business data corresponding to each preset query condition in the target accounting document meets the preset requirement, the current target accounting document is used as the accounting document.
Illustratively, the preset requirements may include requirements for the format, font, location, specific content, etc. of the service data. And detecting whether the format, font, position and the like of each business data in the target accounting document are correct one by one, and for specific content, comparing the business data inquired according to a preset inquiry condition with the business data corresponding to the preset inquiry condition in the target accounting document to see whether the business data are consistent.
Optionally, it may also be detected whether the service data corresponding to each preset query condition in the target accounting document meets a preset requirement in a manner that the user previews the target accounting document. For example, the target accounting document is displayed on the current interface, and the user autonomously detects all business data in the current target accounting document.
And when all the service data in the target accounting document are detected to meet the preset requirements, the target accounting document is proved to have no problem, and the current target accounting document is used as the accounting document.
In the above embodiment, the target accounting document is generated based on the business data and the document template corresponding to each preset query condition, all the business data in the target accounting document are detected, and if no error exists, the accounting document is generated, so that the correctness of the accounting document generated finally can be ensured, the error rate of the accounting document generated finally is reduced, and the accuracy of the accounting document generated finally is higher.
Optionally, in some possible implementations of the present application, S1061 may further include S1063 to S1064, and it is worth to say that S1063 to S1064 are parallel to S1062, and are not executed after S1062, and according to different situations, S1063 to S1064 or S1062 is selected to be executed after S1061. S1063-S1064 are as follows:
s1063: and when the business data corresponding to any preset query condition in the target accounting document is detected to be not in accordance with the preset requirement, adjusting the business data which is not in accordance with the preset requirement in the target accounting document.
Illustratively, whether the format, font, position and the like of each business data in the target accounting document are correct or not is detected one by one. And when the business data corresponding to any preset query condition in the target accounting document does not meet any preset requirement, proving that the target accounting document has a problem.
And adjusting the business data with problems in the target accounting document. For example, the format of a certain service data is a digital format, and the format of the service data in the current target accounting document is Chinese characters, so that the service data is changed into a digital representation.
For another example, for a certain business data (document date), the document date inquired in the business document according to the document inquiry date is: XX month XX day XX year, while the document date in the current target accounting document is: XX month XY day of XX year, change the document date to XX month XX day of XX year.
The description is given for illustrative purposes only and is not intended to be limiting.
S1064: generating an accounting document based on the adjusted target accounting document.
Illustratively, after business data of the target accounting document which does not meet the preset requirement are adjusted, the accounting document is generated according to the adjusted target accounting document.
Optionally, the adjusted target accounting document may be checked again. For example, whether the business data corresponding to each preset query condition in the adjusted target accounting document meets the preset requirement is detected. If so, generating an accounting document according to the target accounting document at the moment; if not, continuing to adjust until generating accounting documents when the accounting documents are in accordance.
Illustratively, the preset requirements may include requirements for the format, font, location, specific content, etc. of the service data. And detecting whether the format, font, position and the like of each business data in the target accounting document are correct one by one, and for specific content, comparing the business data inquired according to a preset inquiry condition with the business data corresponding to the preset inquiry condition in the target accounting document to see whether the business data are consistent.
Optionally, in a possible implementation manner, after S106, the method for automatically generating an accounting document provided by the present application may further include: and generating a log according to the business document and the accounting voucher.
Illustratively, the log is used to record the association between each business document and its corresponding accounting document. The journal may also record the conversion process of each business document into accounting documents. For example, the log records the time and place of generating the accounting document for each business document, the main content of the accounting document (business data queried according to the preset query condition), the document category and subcategory corresponding to the business document, and the like.
In the embodiment, the incidence relation between each business document and the corresponding accounting document is recorded through the log, and the conversion process of each business document into the accounting document is realized, so that the accounting document related to each business document can be visually checked through the log by a subsequent user, the financial data can be conveniently sorted and processed, and the conversion process of each business document can be traced.
Optionally, in a possible implementation manner, when a plurality of business documents are processed simultaneously, that is, when a batch of business documents all need to generate their corresponding accounting documents, the accounting documents may be generated on a case-by-case basis. For example, the processes in S101 to S106 are sequentially performed for each business document, and an accounting voucher corresponding to each business document is generated. The mode of generating the accounting document one by one reduces the error rate of the generated accounting document and enables the accuracy rate of the finally generated accounting document to be higher.
Or, all business documents are processed in S101-S105 at the same time, and finally accounting documents corresponding to all business documents are generated together. The mode of generating a plurality of accounting documents in parallel promotes the efficiency of making the accounting documents.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a method for generating a plurality of preset query conditions corresponding to sub-categories according to an exemplary embodiment of the present application; optionally, in some possible implementations of the present application, before S104, the method for automatically generating an accounting document provided by the present application may further include: the method for generating the plurality of preset query conditions corresponding to the sub-categories specifically comprises the following steps:
s201: and acquiring each accounting item corresponding to the sub-category.
The accounting item is a category for performing classification accounting on specific contents of the accounting element object. For example, accounting items may include: debit subject, abstract, credit subject, document number, document date, document number, credit subject, specification model, purchase registration document number, asset class, document status, acceptance status, auxiliary accounting, equipment code, equipment name, etc.
Since the sub-category is further determined on the basis of determining the document category corresponding to the business document, the method for acquiring the accounting items corresponding to the sub-category can also be understood as acquiring the accounting items corresponding to both the document category corresponding to the business document and the sub-category.
Illustratively, different business documents will have different corresponding accounting items. The method comprises the steps of obtaining a plurality of business documents of different document types and sub-types in advance, and extracting accounting items corresponding to each business document. The user can also customize the corresponding accounting items for the business documents of different document categories and sub-categories.
S202: and generating a program statement corresponding to each accounting item.
Illustratively, each accounting item is converted into a program statement, i.e., a computer statement.
For example, each accounting item is converted into a dynamic Structured Query Language (SQL) corresponding to the accounting item.
S203: and generating a plurality of preset query conditions corresponding to the sub-categories according to the program statements corresponding to each accounting item.
And aiming at each business document, converting a plurality of accounting items corresponding to the document category and the sub-category into program statements, and taking the converted program statements as a plurality of preset query conditions corresponding to the sub-category.
Illustratively, the preset query conditions are associated with the bill category and the sub-category, so that when the business bills of the bill category and the sub-category are encountered subsequently, the corresponding preset query conditions can be found quickly.
In the above embodiment, different preset query conditions can be set according to the business documents of different document types and sub-types, which is convenient for subsequent processing of any type of business documents, that is, according to any type of business documents, the business data corresponding to the business documents are queried, and then the business data are filled into the corresponding voucher template, so as to generate the corresponding accounting voucher. And a conversion program does not need to be designed for the business document subsequently and independently, so that the efficiency of generating the accounting document is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart illustrating a method for generating a credential template corresponding to a sub-category according to an exemplary embodiment of the present application; optionally, in some possible implementations of the present application, before S104, the method for automatically generating an accounting document provided by the present application may further include: the method for generating the credential template corresponding to the sub-category specifically comprises the following steps:
s301: and acquiring each accounting item corresponding to the sub-category.
S301 in this embodiment is the same as that described in S201, please refer to the description in S201, and details are not repeated here.
S302: and generating a voucher template corresponding to the sub-category according to each accounting item.
The voucher template comprises a plurality of accounting items corresponding to the voucher categories and the sub-categories, except that the accounting items have no specific business data. The positions, sizes and the like of the accounting items can be set in the blank table according to the requirements of the client or the preference of the user, and the voucher templates corresponding to the document categories and the sub-categories are obtained.
And performing the processing on the business documents of different document types and sub-types to obtain a plurality of voucher templates. Each voucher template corresponds to a document type and sub-type.
In the actual application process, after business data is inquired in the business document, the business data is correspondingly filled in each accounting item column of the voucher template, and then the accounting voucher can be obtained.
Optionally, the voucher template is associated with the document category and the sub-category, so that when business documents of the document category and the sub-category are encountered subsequently, the corresponding voucher template can be found quickly.
In the embodiment, different voucher templates can be set according to the business documents of different document types and sub-types, so that any type of business document can be conveniently processed subsequently, namely, the accounting voucher is generated according to any type of business document. And a conversion program does not need to be designed for the business document subsequently and independently, so that the efficiency of generating the accounting document is improved.
Referring to fig. 5, fig. 5 is a schematic diagram of an apparatus for automatically generating an accounting document according to an embodiment of the present application. The audio generating device comprises units for performing the steps in the embodiments corresponding to fig. 1-4. Please refer to the related description of the embodiments corresponding to fig. 1 to 4. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 5, it includes:
a first obtaining unit 410, configured to obtain a service document to be processed;
a first determining unit 420, configured to determine a document category corresponding to the business document;
a second determining unit 430, configured to determine, according to the service document and the document category, a sub-category corresponding to the service document, where the sub-category is used to indicate a service corresponding to the service document;
a second obtaining unit 440, configured to obtain a plurality of preset query conditions corresponding to the sub-category and a credential template corresponding to the sub-category;
the query unit 450 is configured to query, in the service document, service data corresponding to each preset query condition;
the generating unit 460 is configured to generate an accounting document corresponding to the business document according to the business data corresponding to each preset query condition and the document template.
Optionally, the generating unit 460 is specifically configured to:
filling the business data corresponding to each preset query condition into the voucher template to obtain a target accounting voucher;
and when the fact that the business data corresponding to each preset query condition in the target accounting document meet preset requirements is detected, generating the accounting document based on the target accounting document.
Optionally, the apparatus further comprises:
the detection unit is used for adjusting the business data which does not meet the preset requirement in the target accounting document when the business data which corresponds to any preset query condition in the target accounting document is detected to not meet the preset requirement;
an adjusting unit for generating the accounting document optionally based on the adjusted target accounting document, the apparatus further comprising:
the third acquisition unit is used for acquiring each accounting item corresponding to the sub-category;
a program statement generating unit, configured to generate a program statement corresponding to each accounting item;
and the preset query condition generating unit is used for generating a plurality of preset query conditions corresponding to the sub-categories according to the program statements corresponding to the accounting items.
Optionally, the apparatus further comprises:
the fourth acquisition unit is used for acquiring each accounting item corresponding to the sub-category;
and the voucher template generating unit is used for generating voucher templates corresponding to the sub-categories according to each accounting item.
Optionally, the business document comprises a medical document.
Optionally, the apparatus further comprises:
and the log generating unit is used for generating a log according to the business document and the accounting document.
Referring to fig. 6, fig. 6 is a schematic diagram of an apparatus for automatically generating an accounting document according to another embodiment of the present application. As shown in fig. 6, the apparatus 5 for automatically generating an accounting document of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps of the various embodiments of the method for automatically generating accounting documents described above, such as S101-S106 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the units in the above embodiments, such as the functions of the units 410 to 460 shown in fig. 5.
Illustratively, the computer program 52 may be divided into one or more units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more units may be a series of computer instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the device 5. For example, the computer program 52 may be divided into a first acquisition unit, a first determination unit, a second acquisition unit, an inquiry unit, and a generation unit, and the specific functions of the units are as described above.
The apparatus may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 6 is merely an example of a device 5 and does not constitute a limitation of the device and may include more or fewer components than shown, or some components in combination, or different components, e.g., the device may also include input output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the device, such as a hard disk or a memory of the device. The memory 51 may also be an external storage terminal of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the device. Further, the memory 51 may also include both an internal storage unit and an external storage terminal of the apparatus. The memory 51 is used for storing the computer instructions and other programs and data required by the terminal. The memory 51 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application further provides a computer storage medium, the computer storage medium may be non-volatile or volatile, the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the above method embodiments for automatically generating an accounting document.
The present application also provides a computer program product for causing an apparatus to perform the steps of the above-described method embodiments for automatically generating accounting documents when the computer program product is run on the apparatus.
An embodiment of the present application further provides a chip or an integrated circuit, where the chip or the integrated circuit includes: and the processor is used for calling and running the computer program from the memory so that the device provided with the chip or the integrated circuit executes the steps in each embodiment of the method for automatically generating the accounting document.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not cause the essential features of the corresponding technical solutions to depart from the spirit scope of the technical solutions of the embodiments of the present application, and are intended to be included within the scope of the present application.

Claims (10)

1. A method of automatically generating accounting documents, comprising:
acquiring a service document to be processed;
determining a bill type corresponding to the business bill;
determining a sub-category corresponding to the business document according to the business document and the document category, wherein the sub-category is used for expressing business corresponding to the business document;
acquiring a plurality of preset query conditions corresponding to the sub-category and a certificate template corresponding to the sub-category;
inquiring business data corresponding to each preset inquiry condition in the business document;
and generating an accounting document corresponding to the business document according to the business data corresponding to each preset query condition and the document template.
2. The method of claim 1, wherein the generating an accounting document corresponding to the business document according to the business data corresponding to each preset query condition and the document template comprises:
filling the business data corresponding to each preset query condition into the voucher template to obtain a target accounting voucher;
and when the fact that the business data corresponding to each preset query condition in the target accounting document meet preset requirements is detected, generating the accounting document based on the target accounting document.
3. The method of claim 2, wherein after filling the business data corresponding to each of the predetermined query conditions into the document template to obtain the target accounting document, the method further comprises:
when the fact that the business data corresponding to any preset query condition in the target accounting document does not meet the preset requirement is detected, the business data which do not meet the preset requirement in the target accounting document are adjusted;
generating the accounting document based on the adjusted target accounting document.
4. The method according to any one of claims 1 to 3, wherein before the obtaining of the plurality of preset query conditions corresponding to the sub-category and the credential template corresponding to the sub-category, the method further comprises:
acquiring each accounting item corresponding to the sub-category;
generating a program statement corresponding to each accounting item;
and generating a plurality of preset query conditions corresponding to the sub-categories according to the program statements corresponding to each accounting item.
5. The method according to any one of claims 1 to 3, wherein before the obtaining of the plurality of preset query conditions corresponding to the sub-category and the credential template corresponding to the sub-category, the method further comprises:
acquiring each accounting item corresponding to the sub-category;
and generating a voucher template corresponding to the sub-category according to each accounting item.
6. The method of claim 1, wherein the business document comprises a medical document.
7. The method of claim 1, wherein after generating the accounting document corresponding to the business document according to the business data corresponding to each of the preset query conditions and the document template, the method further comprises:
and generating a log according to the business document and the accounting document.
8. An apparatus for automatically generating accounting documents, comprising:
the first acquisition unit is used for acquiring a service document to be processed;
the first determining unit is used for determining the bill type corresponding to the business bill;
the second determining unit is used for determining a sub-category corresponding to the business document according to the business document and the document category, wherein the sub-category is used for representing business corresponding to the business document;
the second obtaining unit is used for obtaining a plurality of preset query conditions corresponding to the sub-category and a certificate template corresponding to the sub-category;
the query unit is used for querying the business data corresponding to each preset query condition in the business document;
and the generating unit is used for generating the accounting document corresponding to the business document according to the business data corresponding to each preset inquiry condition and the document template.
9. An apparatus for automatically generating an accounting document comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110996868.1A 2021-08-27 2021-08-27 Method, device, equipment and storage medium for automatically generating accounting document Pending CN113779947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110996868.1A CN113779947A (en) 2021-08-27 2021-08-27 Method, device, equipment and storage medium for automatically generating accounting document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110996868.1A CN113779947A (en) 2021-08-27 2021-08-27 Method, device, equipment and storage medium for automatically generating accounting document

Publications (1)

Publication Number Publication Date
CN113779947A true CN113779947A (en) 2021-12-10

Family

ID=78839661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110996868.1A Pending CN113779947A (en) 2021-08-27 2021-08-27 Method, device, equipment and storage medium for automatically generating accounting document

Country Status (1)

Country Link
CN (1) CN113779947A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049563A (en) * 2012-12-31 2013-04-17 深圳中兴网信科技有限公司 Server, accounting document generating system and accounting document generating method
CN105512890A (en) * 2015-11-30 2016-04-20 深圳市金蝶友商电子商务服务有限公司 Method and system for generating accounting voucher
CN107437219A (en) * 2017-08-28 2017-12-05 山东浪潮通软信息科技有限公司 The voucher generation method and device of a kind of business paper
CN110490721A (en) * 2019-08-06 2019-11-22 万翼科技有限公司 Financial affairs receipt generation method and Related product
CN110717321A (en) * 2019-09-19 2020-01-21 秦滢珺 Accounting document generation method
CN111210329A (en) * 2019-12-31 2020-05-29 航天信息软件技术有限公司 Accounting document generation method and device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049563A (en) * 2012-12-31 2013-04-17 深圳中兴网信科技有限公司 Server, accounting document generating system and accounting document generating method
CN105512890A (en) * 2015-11-30 2016-04-20 深圳市金蝶友商电子商务服务有限公司 Method and system for generating accounting voucher
CN107437219A (en) * 2017-08-28 2017-12-05 山东浪潮通软信息科技有限公司 The voucher generation method and device of a kind of business paper
CN110490721A (en) * 2019-08-06 2019-11-22 万翼科技有限公司 Financial affairs receipt generation method and Related product
CN110717321A (en) * 2019-09-19 2020-01-21 秦滢珺 Accounting document generation method
CN111210329A (en) * 2019-12-31 2020-05-29 航天信息软件技术有限公司 Accounting document generation method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10546351B2 (en) System and method for automatic generation of reports based on electronic documents
US10528626B2 (en) Document processing
US12026772B2 (en) Systems and methods for managing a loan application
CN111078140B (en) Nuclear power station file uploading management method and device, terminal equipment and medium
CN110765750B (en) Report data input method and terminal equipment
CN108897729B (en) Transaction template sharing method and device, electronic equipment and storage medium
CN113239400A (en) Asset management method, device and system and electronic equipment
CN114187082A (en) Financial accounting and reimbursement method and system
CN116167860A (en) Account checking processing method and device, electronic equipment and storage medium
CN109214362B (en) Document processing method and related equipment
US20190294594A1 (en) Identity Data Enhancement
CN107818502A (en) A kind of automatic check method of the admission fee amount of tax to be paid of bill
CN109947797B (en) Data inspection device and method
CN115439264A (en) Insurance business customization method, device and system
CN110457332B (en) Information processing method and related equipment
US10558880B2 (en) System and method for finding evidencing electronic documents based on unstructured data
CN112258151B (en) Pampas-based account checking method, device, computer equipment and storage medium
CN113779947A (en) Method, device, equipment and storage medium for automatically generating accounting document
CN114511318A (en) Account accounting method and device and electronic equipment
CN114493551A (en) Contract generation method and device, electronic equipment and storage medium
US10387561B2 (en) System and method for obtaining reissues of electronic documents lacking required data
CN113362025B (en) Data accounting system, method, computer-readable storage medium, and electronic device
CN110942274B (en) Method and device for generating court proposal report
CN113362025A (en) Data accounting system, method, computer readable storage medium, electronic device
KR20170118408A (en) Transaction Information Managing System using Optical Character Reader System and Computerized Transaction Information Managing Method using It

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination