CN104700187A - Bill generation method - Google Patents

Bill generation method Download PDF

Info

Publication number
CN104700187A
CN104700187A CN201310667525.6A CN201310667525A CN104700187A CN 104700187 A CN104700187 A CN 104700187A CN 201310667525 A CN201310667525 A CN 201310667525A CN 104700187 A CN104700187 A CN 104700187A
Authority
CN
China
Prior art keywords
document
retrography
rule
source
wall scroll
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
CN201310667525.6A
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201310667525.6A priority Critical patent/CN104700187A/en
Publication of CN104700187A publication Critical patent/CN104700187A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses a bill generation method. The bill generation method includes the steps of judging whether set rules have bill dividing conditions or not, dividing bills meeting same bill dividing conditions if yes, and generating the divided bills into one bill; acquiring corresponding mapping rules in a centralized manner from mapping rules among different types of bills according to types of source bills and target bills, and mapping the source bills into intermediate bills according to the mapping rules; judging whether the set rules have bill merging conditions or not, and if yes, subjecting the intermediate bills meeting same bill merging conditions to bill merging processing to obtain the target bills.

Description

A kind of document generation method
Technical field
The present invention relates to data processing field, in particular to a kind of document generation method.
Background technology
In the application of enterprise, often exist between various document, miscellaneous service and reverse.And for the exploitation of software, all write in code the torsion of the document between different business, if demand has amendment like this, or user has had new configuration rule, need to safeguard code, required workload is comparatively large, cost is higher, the construction cycle is longer.
Summary of the invention
The invention provides a kind of document generation method, in order to improve the efficiency carrying out between various document, miscellaneous service reversing.
For achieving the above object, the invention provides a kind of document generation method, comprising the following steps:
Judge whether the rule arranged has a point wall scroll part, is if the determination result is YES then divided by the document with identical point of wall scroll part and is singly generated on same document;
Concentrate according to the type of source documents and the type of target document the mapping ruler obtaining correspondence from the mapping ruler between different types of bills, according to mapping ruler, source documents is mapped as middle document;
Judge whether the rule arranged has and close wall scroll part, if judged result is be, single process is closed to the middle document with identical conjunction wall scroll part, obtains target document.
Optionally, when carrying out point list according to a point wall scroll part, source documents information corresponding for target document is preserved, when mapping, the execution amount field of each source documents is kept in the source-information record of corresponding middle document, and when closing single by closes the middle document of list source-information record merge.
Optionally, the middle document that involutory wall scroll part is identical carry out closing singly process time, close single process to the field of conjunction wall scroll part non-in middle document according to the rule of configuration, the rule wherein configured comprises following at least one:
Gather, by all to close single data sum up process;
Mean value, will close single data calculate its mean value by all;
Maximal value, selects the maximal value will closed in single data;
Minimum value, selects the minimum value will closed in single data;
Article 1, the Article 1 data will closed in single data are selected;
The last item, selects the last item data will closed in single data;
Splicing, will close single all data and use connector to stitch together;
Formula, the formula according to configuration carries out calculating obtained result.
Optionally, when preserving the target document generated, retrography process being carried out to the source documents of correspondence, the production Methods between target document and source documents is saved in production Methods table.
Optionally, adopt general retrography to carry out retrography process, general retrography is source field corresponding in the result write retrography rule obtained by the retrography formula by configuration.
Optionally, employing is checked and write off retrography and is carried out retrography process, and checking and writing off retrography is the value of source field is added or deducted source field corresponding in the value write retrography rule by retrography formulae discovery.
Optionally, judging that multiple source documents is further comprising the steps of before whether being provided with point wall scroll part:
Receive user to the setting of general parameter by User Interface, general parameter comprises following at least one item:
Abnormality processing mode, for selecting processing mode during document failed regeneration;
Repeatedly generate control, for repeating for same document the parameter generating follow-up document;
Menu list, for configure pull-type raw single time menu list page ID;
Raw single type, for arranging the type of source documents, target document;
Go out single order, the order that the rule for controlling current setting shows when going out list;
Raw single order, for controlling the order of rule display when life is single of current setting.
In the above embodiment of the present invention, user configures by simple document create-rule, the conversion that can realize between polytype document generates, and can meet the torsion of polytype document between complicated operation flow, complete corresponding business fast; Be applicable to ERP(Enterprise ResourcePlanning, enterprise resource planning) in the business in different document is reversed, increase adaptability of software, reduce maintenance cost, system can run more flexibly and easy-to-use.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is that the document of one embodiment of the invention generates method flow diagram;
Fig. 2 is that the document of one embodiment of the invention reverses schematic diagram;
Fig. 3 is process flow diagram source documents being carried out to retrography process of one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not paying the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In one embodiment of the invention, first the rule that business paper reverses can be carried out the configuration at interface, just can be undertaken by the rule of configuration when reversing between such document.If different user has different twist process, can be realized by simple alteration ruler, maintenance cost is zero substantially, also can increase document and reverse adaptation of methods.
Some parameters in rule definition in main definitions document generative process and the data processing rule in document generative process, specifically comprise:
1) general parameter
Preserve abnormality processing mode: select processing mode during document failed regeneration.
Repeatedly generate control: the parameter repeating to generate follow-up document for same document.
Menu list (form): for configure pull-type raw single time menu list page ID.
Raw single type: raw single type (comprise detail to detail, master meter arrives master meter to detailed, master meter to master meter, detail) is set.
Go out single order: the order that the rule controlling current setting shows when going out list.
Raw single order: the order controlling rule display when life is single of current setting.
2) data-mapping rule
What configure here is the rule that upstream document obtains data when being torqued into downstream document, and can realize the some fields of simple upstream document and directly map, the formula that also can be provided by us carries out complicated mapping source.
3) document divides folk prescription case
Point folk prescription case, refers to that the document of selection meets certain condition, can be generated to same document and get on, be divided into groups by the document in all sources exactly according to certain condition.The configuration of point wall scroll part be point folk prescription case of document, mainly control just can be generated on same document when those are consistent.
4) Merge Scenarios
Merge Scenarios, refers to the data after to point list, carries out the process merged according to certain condition, exactly all target documents after point list are carried out merging treatment according to certain condition.Merge Scenarios configures, and is whether to carry out for the document generated the control that merges, if carry out merging the scheme controlling to arrange merging, be average, maximal value, minimum value or be configured by the formula provided.
5) execution amount field
Here be the place that this secondary single general data of configuration stores field, i.e. target document execution amount corresponding field (quantity on such as order), to be convenient to operational query analysis as the foundation of source documents implementation status.Such as will inquire about the size of order of order form, the order amount of money, then can arrange the create-rule that purchase requisition generates purchase order, the quantity on purchase order, the amount of money measure field as execution.
6) retrography rule
Here arrange after generating target document, the rule of source documents corresponding document item retrography.Provide two kinds of retrography modes: general retrography and check and write off retrography.General retrography can be configured to the relevant document item of target document, also can be configured to formula.Check and write off retrography to be divided into and to add, subtract execution and measure two kinds (as source documents stored the quantity generated).
7) additive term is arranged
For arranging the additive term of raw single process, the additive term after interpolation can configure in data-mapping rule, and this also can show in raw single-row table.This provide two kinds of additive terms, the additive term of target is that the value that can generate respective field in generative process facilitates subsequent treatment, and the additive term in source is the expansion to non-data storehouse field in generative process, can go in these field mappings to target.
Fig. 1 is that the document of one embodiment of the invention generates method flow diagram, and as shown in the figure, the method comprises the following steps:
S110, judges whether the rule arranged has a point wall scroll part, is if the determination result is YES then divided by the document with identical point of wall scroll part and is singly generated on same document;
When concrete this step of enforcement, folk prescription case can be divided by the document that single gauge was then arranged when previous existence, a point list is carried out to the document chosen in raw single-row table.Reserved interface can be called before carrying out point list, data be carried out process (mainly for the interface that the specific demand in the raw single process of difference is reserved).If there is a point wall scroll part, carry out a point list, if there is no then skip this step.As in Fig. 2, seven documents such as a, b, c, d, e, f, g, identical according to point wall scroll part arranging a, b, c, d tetra-documents of point wall scroll part, point wall scroll part of e, f, g tri-is identical, divide the result after list exactly these 7 documents to be divided into two documents, the meeting that point wall scroll part is identical is put into above same.
S120, concentrates according to the type of source documents and the type of target document the mapping ruler obtaining correspondence, according to mapping ruler, source documents is mapped as middle document from the mapping ruler between different types of bills;
During concrete this step of enforcement, reserved interface can be called before mapping, data be carried out process (mainly for the interface that the specific demand in the raw single process of difference is reserved).Carry out the mapping of data according to the configuration of create-rule, or can carry out being mapped in respective field after these fields being processed by formula by any field (comprise the source arranged in rule and add entry value) of the boss in source table.As in Fig. 2, a, b, c, d are a1, b1, c1, d1 document after a document maps respectively.
S130, judges whether the rule arranged has and closes wall scroll part, if judged result is be, closes single process, obtain target document to the middle document with identical conjunction wall scroll part.
During concrete this step of enforcement, reserved interface can be called before carrying out closing list, data be carried out process (mainly for the interface that the specific demand in the raw single process of difference is reserved).Close list if be provided with in rule, the meeting of closing wall scroll part identical is carried out closing single process, and the field of non-conjunction wall scroll part can carry out closing single process according to the rule of configuration.
The conjunction single gauge that the field of non-conjunction wall scroll part configures then has following several types:
Gather, by all to close single data sum up process;
Mean value, will close single data calculate its mean value by all;
Maximal value, selects the maximal value will closed in single data;
Minimum value, selects the minimum value will closed in single data;
Article 1, the Article 1 data will closed in single data are selected;
The last item, selects the last item data will closed in single data;
Splicing, will close single all data and use connector to stitch together;
Formula, the formula according to configuration carries out calculating obtained result.
As the data in Fig. 2 merge, are ab by a1 and b1 according to the data after rule merges.
Such as, when to carry out point single, source documents information corresponding for target document can also be retained, can the execution amount field in each source is retained in the record of source-information during mapping, the source of all merging can be merged when closing single.
In addition, when preserving the target document generated, retrography process can also be carried out to the source documents of correspondence, the production Methods between target document and source documents is saved in production Methods table.Fig. 3 is process flow diagram source documents being carried out to retrography process of one embodiment of the invention.As shown in the figure, carrying out retrography process to adopting general retrography or check and write off retrography when source documents being carried out to retrography process, general retrography refers to the result obtained by the retrography formula of configuration, source field corresponding in write retrography rule; Check and write off retrography and have two kinds, one adds computing, and another kind subtracts computing.Refer to the value value of source field added or deducted by retrography formulae discovery.Check and write off retrography and mainly record the accumulative quantity that to generate, all data of checking and writing off retrography must be value types, otherwise can not carry out computing.
In the above embodiment of the present invention, user configures by simple document create-rule, the conversion that can realize between polytype document generates, and can meet the torsion of polytype document between complicated operation flow, complete corresponding business fast; Be applicable to reverse the business in different document in ERP, increase adaptability of software, reduce maintenance cost, it is more flexible and easy-to-use that system can be run.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the device in embodiment can describe according to embodiment and be distributed in the device of embodiment, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in previous embodiment, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of embodiment of the present invention technical scheme.

Claims (7)

1. a document generation method, is characterized in that, comprise the following steps:
Judge whether the rule arranged has a point wall scroll part, is if the determination result is YES then divided by the document with identical point of wall scroll part and is singly generated on same document;
Concentrate according to the type of source documents and the type of target document the mapping ruler obtaining correspondence from the mapping ruler between different types of bills, according to described mapping ruler, source documents is mapped as middle document;
Judge whether the rule arranged has and close wall scroll part, if judged result is be, single process is closed to the middle document with identical conjunction wall scroll part, obtains target document.
2. document generation method according to claim 1, it is characterized in that, when carrying out point list according to a point wall scroll part, source documents information corresponding for target document is preserved, when mapping, the execution amount field of each source documents is kept in the source-information record of corresponding middle document, and when closing single by closes the middle document of list source-information record merge.
3. document generation method according to claim 1, it is characterized in that, the middle document that involutory wall scroll part is identical carry out closing singly process time, close single process to the field of conjunction wall scroll part non-in middle document according to the rule of configuration, the rule of wherein said configuration comprises following at least one:
Gather, by all to close single data sum up process;
Mean value, will close single data calculate its mean value by all;
Maximal value, selects the maximal value will closed in single data;
Minimum value, selects the minimum value will closed in single data;
Article 1, the Article 1 data will closed in single data are selected;
The last item, selects the last item data will closed in single data;
Splicing, will close single all data and use connector to stitch together;
Formula, the formula according to configuration carries out calculating obtained result.
4. document generation method according to claim 1, is characterized in that, when preserving the target document generated, carrying out retrography process, be saved in production Methods table by the production Methods between target document and source documents the source documents of correspondence.
5. document generation method according to claim 4, is characterized in that, adopts general retrography to carry out retrography process, and described general retrography is source field corresponding in the result write retrography rule obtained by the retrography formula by configuration.
6. document generation method according to claim 4, it is characterized in that, employing is checked and write off retrography and is carried out retrography process, described in check and write off retrography be the value of source field is added or deducted the source field by corresponding in the value of retrography formulae discovery write retrography rule.
7. the document generation method according to any one of claim 1-6, is characterized in that, is judging that multiple source documents is further comprising the steps of before whether being provided with point wall scroll part:
Receive user to the setting of general parameter by User Interface, described general parameter comprises following at least one item:
Abnormality processing mode, for selecting processing mode during document failed regeneration;
Repeatedly generate control, for repeating for same document the parameter generating follow-up document;
Menu list, for configure pull-type raw single time menu list page ID;
Raw single type, for arranging the type of source documents, target document;
Go out single order, the order that the rule for controlling current setting shows when going out list;
Raw single order, for controlling the order of rule display when life is single of current setting.
CN201310667525.6A 2013-12-10 2013-12-10 Bill generation method Pending CN104700187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310667525.6A CN104700187A (en) 2013-12-10 2013-12-10 Bill generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310667525.6A CN104700187A (en) 2013-12-10 2013-12-10 Bill generation method

Publications (1)

Publication Number Publication Date
CN104700187A true CN104700187A (en) 2015-06-10

Family

ID=53347283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310667525.6A Pending CN104700187A (en) 2013-12-10 2013-12-10 Bill generation method

Country Status (1)

Country Link
CN (1) CN104700187A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303369A (en) * 2015-11-03 2016-02-03 用友网络科技股份有限公司 Multi-business-source-bill merging bill-pulling device and method
CN106933788A (en) * 2015-12-30 2017-07-07 航天信息软件技术有限公司 A kind of document generation method and document generating means
CN110033145A (en) * 2018-01-10 2019-07-19 顺丰数据服务(武汉)有限公司 The single method and device of the shared operation point of finance, equipment and storage medium
CN110889648A (en) * 2019-12-09 2020-03-17 金蝶软件(中国)有限公司 Document numbering method, server and storage medium
CN112529644A (en) * 2020-12-23 2021-03-19 安徽航天信息有限公司 Electronic invoice issuing method, device and storage medium
CN113793109A (en) * 2021-02-03 2021-12-14 北京京东振世信息技术有限公司 Receipt processing method and device, computer-readable storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949214A (en) * 2006-09-26 2007-04-18 北京北大方正电子有限公司 Information merging method and system
CN101944208A (en) * 2010-09-21 2011-01-12 用友软件股份有限公司 Method and device for dividing document
CN101944212A (en) * 2010-09-29 2011-01-12 用友软件股份有限公司 Method and device for generating changed receipt
CN102222060A (en) * 2011-06-28 2011-10-19 用友软件股份有限公司 Receipt conversion device and receipt conversion method
CN102486777A (en) * 2010-12-02 2012-06-06 金蝶软件(中国)有限公司 Method and device for merging bills
CN102508850A (en) * 2011-09-29 2012-06-20 用友软件股份有限公司 Form data processing device and form data processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949214A (en) * 2006-09-26 2007-04-18 北京北大方正电子有限公司 Information merging method and system
CN101944208A (en) * 2010-09-21 2011-01-12 用友软件股份有限公司 Method and device for dividing document
CN101944212A (en) * 2010-09-29 2011-01-12 用友软件股份有限公司 Method and device for generating changed receipt
CN102486777A (en) * 2010-12-02 2012-06-06 金蝶软件(中国)有限公司 Method and device for merging bills
CN102222060A (en) * 2011-06-28 2011-10-19 用友软件股份有限公司 Receipt conversion device and receipt conversion method
CN102508850A (en) * 2011-09-29 2012-06-20 用友软件股份有限公司 Form data processing device and form data processing method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303369A (en) * 2015-11-03 2016-02-03 用友网络科技股份有限公司 Multi-business-source-bill merging bill-pulling device and method
CN106933788A (en) * 2015-12-30 2017-07-07 航天信息软件技术有限公司 A kind of document generation method and document generating means
CN110033145A (en) * 2018-01-10 2019-07-19 顺丰数据服务(武汉)有限公司 The single method and device of the shared operation point of finance, equipment and storage medium
CN110033145B (en) * 2018-01-10 2024-02-02 顺丰数据服务(武汉)有限公司 Financial sharing job order separating method and device, equipment and storage medium
CN110889648A (en) * 2019-12-09 2020-03-17 金蝶软件(中国)有限公司 Document numbering method, server and storage medium
CN112529644A (en) * 2020-12-23 2021-03-19 安徽航天信息有限公司 Electronic invoice issuing method, device and storage medium
CN113793109A (en) * 2021-02-03 2021-12-14 北京京东振世信息技术有限公司 Receipt processing method and device, computer-readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
Acquaye et al. A quantitative model for environmentally sustainable supply chain performance measurement
CN104700187A (en) Bill generation method
Hulten et al. Accounting for growth in the age of the internet: The importance of output-saving technical change
CN110457666B (en) Report generation method, system, electronic equipment and storage medium
CN106062711A (en) Compound controls
CN103310315A (en) Automatic process approval tool based on workflows
CN110390564A (en) Build project quick self-checking method, system and computer readable storage medium in pricing
CN106327100A (en) Change list generation method and device
Gandhi et al. Green supply chain management practices and its impact on business performance
CN104391731A (en) Editing method based on C# and irrelevant to data types
CN102567825B (en) A kind of method and apparatus of work process flow configuration
CA3017606A1 (en) Rule based hierarchical configuration
D’Avino et al. Revised MRP for reducing inventory level and smoothing order releases: a case in manufacturing industry
CN103440197B (en) A kind of method automatically generating difference test report based on contrast test
CN103425490B (en) Based on the management method running object data in crm system
CN105426453A (en) Method for controlling log output grade through configuration item
Zapp et al. A reference model for collaborative capacity planning between automotive and semiconductor industry
Asmild Frontier differences and the global Malmquist index
CN102968305A (en) Logical processing method, logical processing device and evaluation system
CN102662807A (en) Java card stack performance test application program and making method for framework thereof
CN106933544B (en) Method and system for generating statement form
CN110109884A (en) A kind of file reading, device, equipment and medium
CN111598729B (en) Method for conveniently compiling settlement change list
James New methodologies for human factors in process safety
Kren Tracking value created by efficiency improvements in a traditional overhead cost management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150610