Cost allocation method and cost allocation system

By obtaining the user-entered expenses and target allocation dimensions entered by the allocation management system, determining the target calculation engine and performing the allocation calculation, the problem of difficulty in adapting to different business needs and slow allocation calculation speed is solved, and a cost allocation system with flexible configuration and efficient calculation is realized.

CN119690619APending Publication Date: 2025-03-25SANY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411774140.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The existing sharing management system has a single function, the computing content is relatively simple, it is difficult to adapt to different business needs, and the sharing computing speed is slow.

Method used

Provide a cost sharing method and system, by obtaining the user input's to be shared expenses and target sharing dimensions, determine the target calculation engine, and obtain the target calculation variables and allocation rules input by the user in the target calculation engine, and perform the allocation calculation to output the cost sharing result.

Benefits of technology

It realizes the flexibly configures target calculation variables and allocation rules according to user needs, adapts to the cost sharing of different business needs, improves the efficiency of allocation calculations, and reduces the iteration cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690619A_ABST
    Figure CN119690619A_ABST
Patent Text Reader

Abstract

The invention provides a cost allocation method and a cost allocation system, and solves the technical problems that in the prior art, a cost allocation calculation mode is difficult to adapt to different business requirements, and the corresponding speed of allocation calculation is low. According to the cost allocation method provided by the invention, the target calculation variable (namely the target allocation object) and the target allocation rule can be flexibly configured according to the user demand, the allocation results of the target cost under different demands can be displayed, and the rapid business change demand can be fully met. In addition, the cost allocation rule is realized in a configuration mode, the iteration period of full-code realization is greatly reduced, and the efficiency of allocation calculation is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cost sharing, and in particular to a cost sharing method and a cost sharing system. Background Art

[0002] With the development of enterprise informatization and the improvement of enterprise management level, enterprises have become more and more strict and precise in controlling various expenditure items. The previous manual financial calculation work has been gradually adjusted to online operations. Enterprises hope to collect various expenditure items through the system and use the allocation method to allocate various cost data, so as to allocate various costs to different organizational structures.

[0003] At present, the existing apportionment management system has a single function and relatively simple calculation content, and is inefficient when performing apportionment management. When there are many data sources or a large amount of data, it is easy for the apportionment management system to respond slowly, and it often apportions expenses according to established apportionment rules, which makes it difficult to adapt to different business needs. Summary of the invention

[0004] In view of this, the present application provides a cost sharing method and a cost sharing system, which solve the technical problems in the prior art that the cost sharing calculation method is difficult to adapt to different business needs and the corresponding speed of the cost sharing calculation is slow.

[0005] As a first aspect of the present application, the present application provides a cost sharing method, including: obtaining the to-be-shared costs input by a user and the target sharing dimensions input by the user, and determining a target calculation engine corresponding to the target sharing dimensions based on the target sharing dimensions; calling the target calculation engine, and obtaining the target calculation variables and target sharing rules input by the user in the interface of the target calculation engine; obtaining variable data corresponding to the target calculation variables based on the target calculation variables; and performing sharing calculations on the target shared costs based on the variable data corresponding to the target calculation variables and the target sharing rules to output the cost sharing results.

[0006] In a possible implementation of the present application, the cost sharing method also includes: determining a target data source based on the target allocation dimension, and extracting relevant data corresponding to the target allocation dimension from the target data source; packaging the target allocation dimension and the corresponding relevant data and storing them in a basic database; wherein, obtaining variable data corresponding to the target calculation variable based on the target calculation variable includes: retrieving the variable data corresponding to the target calculation variable in the basic database based on the target calculation variable.

[0007] In a possible implementation of the present application, the target allocation dimension includes a target allocation object; wherein, the obtaining of the target calculation variables and the target allocation rules input by the user in the interface of the target calculation engine includes: determining, according to the target allocation object, the preset calculation variables of the target allocation object and the preset allocation conditions corresponding to each preset calculation variable; obtaining the target calculation variables input by the user in the interface of the target calculation engine, the target calculation variables being the calculation variables selected by the user according to the preset calculation variables; obtaining the target allocation conditions corresponding to the target calculation variables input by the user, the target allocation conditions being the allocation conditions selected by the user according to the preset allocation conditions; wherein the target allocation rules include at least one target allocation condition corresponding to the target calculation variable; wherein, the allocation calculation of the target allocation expenses according to the variable data corresponding to the target calculation variables and the target allocation rules includes: determining the target calculation method corresponding to the target allocation object according to the target allocation condition of at least one of the target calculation variables and the variable data of the target calculation variables; and calculating the expenses to be allocated according to the target calculation method of the target allocation object to generate an expense allocation result.

[0008] In a possible implementation of the present application, the target allocation dimension also includes a target allocation time range; wherein determining the target data source according to the target allocation dimension and extracting relevant data corresponding to the target allocation dimension from the target data source includes: determining the target data source according to the target allocation dimension; extracting relevant data of the target allocation dimension within the target allocation time range from the target data source according to the target allocation time range;

[0009] In a possible implementation of the present application, a target calculation method is determined based on a target allocation condition of at least one of the target calculation variables and variable data of the target calculation variable, including: obtaining a sub-target calculation variable corresponding to the target calculation variable input by a user and a sub-target allocation condition corresponding to each sub-target calculation variable; determining a sub-calculation method of the target calculation variable based on variable data of multiple sub-target calculation variables and corresponding sub-target allocation conditions; determining the target calculation method based on the variable data of each target calculation variable, the target allocation condition of each target calculation variable, and the sub-calculation method of each target calculation variable.

[0010] In a possible implementation of the present application, the target allocation dimension also includes: a target incentive item; wherein, determining the target calculation method based on the target allocation condition of at least one of the target calculation variables and the variable data of the target calculation variable includes: determining the preset incentive variable corresponding to the target incentive item and the preset incentive condition corresponding to each preset incentive variable based on the target incentive item; determining the first target calculation variable that matches the target incentive variable and the second target calculation variable that does not match the target incentive variable in the at least one target calculation variable based on the target incentive variable; determining the target calculation method based on the variable data of the first target calculation variable, the target allocation condition of the first target calculation variable and the target incentive condition, the variable data of the second target calculation variable and the target allocation condition of the second target calculation variable.

[0011] In a possible implementation of the present application, the target computing engine is called in an asynchronous manner.

[0012] In a possible implementation of the present application, the cost sharing method further includes: storing the cost sharing result in a basic database, and preloading the cost sharing result locally or in a cache.

[0013] As a second aspect of the present application, the present application also provides a cost sharing system, including: a front-end module, used to obtain the costs to be shared input by the user in the front-end module and the target sharing dimensions input by the user, and determine the target calculation engine corresponding to the target sharing dimensions based on the target sharing dimensions; a calculation engine, used to call the target calculation engine, and obtain the target calculation variables and target sharing rules input by the user in the interface of the target calculation engine; obtain variable data corresponding to the target calculation variables based on the target calculation variables; and perform sharing calculations on the target shared costs based on the variable data corresponding to the target calculation variables and the target sharing rules to output the cost sharing results.

[0014] In a possible implementation of the present application, the system also includes: a basic database for storing relevant data corresponding to the target allocation dimension and storing cost allocation results.

[0015] Based on the above content, the cost sharing method provided by this application customizes the target sharing dimension of the cost to be shared, and calls different target calculation engines according to different target sharing dimensions; after calling the target calculation engine, the user can also customize the target calculation variables and the target sharing rules corresponding to each target calculation variable; after the user defines the target calculation variable, the variable data corresponding to the target calculation variable can be obtained according to the target calculation variable, and finally the target cost can be shared and calculated according to the variable data of the target calculation variable and the target sharing rule to output the cost sharing result. This application can flexibly configure the target calculation variables (i.e., the target sharing objects) and the target sharing rules according to user needs, can display the sharing results of the target costs under different needs, and can fully meet the needs of rapid business changes. In addition, the cost sharing rules are implemented by configuration, which greatly reduces the iteration cycle of the full code implementation and further improves the efficiency of the sharing calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 A flowchart of a cost sharing method provided in accordance with an embodiment of the present application.

[0018] Figure 2 A flowchart of a cost sharing method provided for another embodiment of the present application.

[0019] Figure 3 A flowchart of a cost sharing method provided for another embodiment of the present application.

[0020] Figure 4 A flowchart of a cost sharing method provided for another embodiment of the present application.

[0021] Figure 5 A flowchart of a cost sharing method provided for another embodiment of the present application.

[0022] Figure 6 A structural block diagram of a cost sharing system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification shall have the common meanings understood by persons with ordinary skills in the field to which this specification belongs. The words "first", "second" and similar words used in the embodiments of this specification do not indicate any order, quantity or importance, but are only used to avoid confusion of constituent elements.

[0024] Unless the context requires otherwise, throughout the specification, "plurality" means "at least two", and "including" is interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" are intended to indicate that a particular feature, structure, material or characteristic associated with the embodiment or example is included in at least one embodiment or example of the specification. The schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0025] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0026] The cost sharing method provided in the implementation mode of this specification will be exemplarily described below with reference to the accompanying drawings.

[0027] Exemplary Methods

[0028] Figure 1 FIG. 1 is a flow chart of a method for allocating expenses provided by an embodiment of the present application. Figure 1 As shown, the cost sharing method includes the following steps:

[0029] S1: Obtain the expenses to be allocated entered by the user and the target allocation dimension entered by the user.

[0030] The expense sharing method of the present application is implemented in an apportionment system. The apportionment system can be deployed on a server. The computer device obtains data through a data acquisition module interface, wherein the expenses to be shared are already formed expense data. The expenses to be shared can be obtained from various expense data tables in the financial system database. The various expense data tables in the database can cover all the expenses to be shared. Or the expenses to be shared can be obtained by manually taking numbers from expense orders. Among them, the expenses to be shared can include expense categories and expense amounts corresponding to the expense categories. The expense categories can be divided according to different organizational structures, such as office area expenses or production area expenses. Specifically, the expenses can be water charges, electricity charges, property fees, travel expenses, and other expense categories that need to be shared according to different organizations. The expenses to be shared can also have a time dimension, which can include months, quarters, years, etc. For example, the expenses to be shared are 100,000 yuan in electricity bills for the office area in January.

[0031] Specifically, when the user enters the expenses to be shared on the front-end interface of the sharing system, the preset calculation dimensions that match the expenses to be shared can be searched in the database according to the expense types of the expenses to be shared, and the preset calculation dimensions can be displayed on the front-end interface of the sharing system, so that the user can select the target sharing dimensions on the interface of the sharing system. After the user enters the target sharing dimensions, the target sharing dimensions entered by the user can be obtained. For example, when the expenses to be shared are electricity charges, the preset calculation dimensions corresponding to the electricity charges may include: sharing dimensions (such as organizational structure dimensions, product dimensions, etc.), incentive items (such as giving discounts to the shared expenses of departments whose profit amounts exceed a certain value), sharing time range (such as electricity charges in December), etc.

[0032] It should be noted that when the types of expenses to be shared are different, the preset calculation dimensions may be different or the same.

[0033] S2: Determine the target calculation engine corresponding to the target allocation dimension according to the target allocation dimension;

[0034] After the target allocation dimension is determined, a target computing engine matching the target allocation dimension can be selected from multiple computing engines, that is, the interface of the target computing engine is determined.

[0035] S3: calling the target calculation engine and obtaining the target calculation variables and target allocation rules input by the user in the interface of the target calculation engine;

[0036] After the interface of the target computing engine is determined, the target computing engine can be called according to the interface of the target computing engine.

[0037] Optionally, the target calculation engine is called in an asynchronous way. When the target allocation dimension includes the target allocation time range, and the target allocation time range is annual, the amount of data involved is huge. Therefore, the target calculation engine is called in an asynchronous way through the system front end calling the asynchronous interface, which can ensure that the system response time is within the preset time (for example, within 2 minutes).

[0038] After the target calculation engine is called, the interface of the target calculation engine can be displayed on the display interface of the allocation system; the user can enter the target calculation variable and the target allocation rule corresponding to each target calculation variable on the interface of the target calculation engine. For example, the target allocation dimension corresponding to the target calculation engine is the organizational structure dimension and the department (that is, the allocation expenses are allocated according to the departments in the organizational structure), then the target calculation variables are department one (for example, it can be represented by the organizational structure code of department one), department two (for example, it can be represented by the organizational structure code of department two), and department three (for example, it can be represented by the organizational structure code of department three). The target allocation rules corresponding to the target calculation variables can be the target allocation rule of department one, the target allocation rule of department two, and the target allocation rule of department three.

[0039] S4: Obtain variable data corresponding to the target calculation variable according to the target calculation variable;

[0040] Once the target calculation variable is determined, the variable data corresponding to the target calculation variable can be obtained, such as the number of personnel in Department 1 and each person's work data (such as working hours, occupied workstation area, length of time using the conference room, etc.), the number of personnel in Department 2 and each person's work data, etc.

[0041] S5: Calculate the target allocation cost according to the variable data corresponding to the target calculation variable and the target allocation rule to output the cost allocation result.

[0042] After determining the target calculation variable, the variable data of the target calculation variable and the target allocation rule of each target calculation variable, the target allocation cost can be allocated and calculated according to the variable data corresponding to the target calculation variable and the target allocation rule, and the cost allocation result can be output.

[0043] The expense sharing method provided in this application customizes the target sharing dimension of the expense to be shared, and calls different target calculation engines according to different target sharing dimensions; after calling the target calculation engine, the user can also customize the target calculation variables and the target sharing rules corresponding to each target calculation variable; after the user defines the target calculation variable, the variable data corresponding to the target calculation variable can be obtained according to the target calculation variable, and finally the target expense can be shared and calculated according to the variable data of the target calculation variable and the target sharing rule to output the expense sharing result. This application can flexibly configure the target calculation variable (i.e., the target sharing object) and the target sharing rule according to user needs, can display the sharing results of the target expense under different needs, and can fully meet the needs of rapid business changes. In addition, the expense sharing rules are implemented by configuration, which greatly reduces the iteration cycle of the full code implementation and further improves the efficiency of the sharing calculation.

[0044] In a possible implementation of the present application, Figure 2 As shown, the cost sharing method also includes the following steps:

[0045] S10: determining a target data source according to the target allocation dimension, and extracting relevant data corresponding to the target allocation dimension from the target data source;

[0046] Specifically, the relevant data corresponding to each allocation dimension may need to be retrieved from the corresponding data source. For example, if the allocation dimension is the organizational structure dimension, then the organizational structure is each department. The target data source corresponding to the organizational structure dimension may include: human resources library. According to the organizational structure code of each department, the relevant data corresponding to each department can be queried in the human resources library, such as the number of department heads in each department, the workstation area of ​​each department staff, the working hours of each department staff, the length of time each department staff uses the conference room, etc. For another example, when the allocation dimension is the product dimension, the data source corresponding to the product dimension may include: product database. According to the name of the product, the relevant data of each product can be queried in the product database, such as actual production costs, production quantity, sales quantity, profit margin, management expenses, other expenses, etc.

[0047] Optionally, when the target allocation dimension includes a target allocation time range, for example, November 2024; S10 (determining a target data source according to the target allocation dimension, and extracting relevant data corresponding to the target allocation dimension from the target data source) specifically includes the following steps:

[0048] S101: Determine the target data source according to the target allocation dimension;

[0049] S102: Extract relevant data of the target allocation dimension within the target allocation time range from the target data source according to the target allocation time range. For example, only relevant data of the target allocation dimension within the target allocation time range is extracted from the target data source, such as the working hours of each department staff of Department 1 in November 2024, the length of time the conference room is used, etc.

[0050] S11: Pack and store the target allocation dimensions and corresponding related data in the basic database;

[0051] After the relevant data corresponding to the target allocation dimension is obtained through query, the target allocation dimension and the corresponding relevant data can be packaged and stored in the basic database.

[0052] At this time, S4 (obtaining variable data corresponding to the target calculation variable according to the target calculation variable) includes the following steps:

[0053] S41: Retrieving variable data corresponding to the target calculation variable in the basic database according to the target calculation variable.

[0054] After calculating the variable according to the target input by the user, the corresponding variable data can be directly retrieved in the basic database according to the target calculation variable. For example, if the target calculation variable is department one, the data corresponding to department one can be directly retrieved from the relevant data in the file package of the organizational structure in the basic database as the variable data corresponding to department one (such as the number of department staff in department one, the workstation area of ​​department staff in department one, working hours, and the length of time using the conference room, etc.).

[0055] The expense sharing method of this embodiment can cache the relevant data of the expenses to be shared from the data source (such as the human resources database, the production database) in advance into the basic database through the basic database. When the variable data corresponding to the target calculation variable is called, the corresponding variable data can be directly extracted from the basic database according to the target calculation variable, thereby further improving the sharing efficiency.

[0056] In a possible implementation of the present application, Figure 3 As shown, the target allocation dimension includes target allocation objects; for example, when the target allocation dimension includes the organizational structure dimension, the target allocation objects included in the target allocation dimension may be Department 1, Department 2, and Department 3.

[0057] The specific method for obtaining the target allocation rule, namely S3 (obtaining the target calculation variables and target allocation rule input by the user in the interface of the target calculation engine) specifically includes the following steps:

[0058] S31: determining, according to the target allocation object, preset calculation variables of the target allocation object and preset allocation conditions corresponding to each preset calculation variable;

[0059] Once the target allocation object is determined, the preset calculation variables corresponding to the target allocation object (such as the number of people in the department, the work area of ​​each department staff, etc.) and the preset allocation conditions of each preset calculation variable (for example, 60% (i.e., the allocation weight) of the work area of ​​department staff is allocated to the expenses, etc.) can be displayed on the display interface of the allocation engine for user selection.

[0060] S32: Acquire a target calculation variable input by a user in an interface of a target calculation engine, where the target calculation variable is a calculation variable selected by the user according to preset calculation variables;

[0061] The user can input the required target calculation variables on the interface of the target calculation engine, so that the user can flexibly configure the target calculation variables corresponding to each target allocation object.

[0062] The target calculation variable is at least one calculation variable selected by the user based on the preset calculation variables.

[0063] S33: Obtaining a target allocation condition corresponding to the target calculation variable input by the user, where the target allocation condition is an allocation condition selected by the user according to a preset allocation condition;

[0064] After the user selects the target calculation variable, the user can select the target allocation condition according to the preset allocation condition corresponding to the target calculation variable. For example, the preset calculation variable corresponding to the target allocation object (such as the number of department personnel, the workstation area of ​​each department personnel, etc.), when the user selects the number of department personnel as the target calculation variable, then the preset allocation condition corresponding to the number of department personnel can be: preset allocation weight, the preset allocation weight can be a specific value, such as 30%, 40%, 50%; the preset allocation weight can also be a preset allocation weight corresponding to different department personnel, for example, when the department score is less than 30 people, the preset allocation weight can be 10%, 20%; when the number of department personnel is between 30-50 people, the preset allocation weight can be 25%, 30%, 35%; when the number of department personnel is more than 50 people, the preset allocation weight can be 40%, 45%. The user can select the preset allocation condition (such as preset allocation weight) required according to the number of department personnel as the target allocation condition (i.e., target allocation weight) of the number of department personnel.

[0065] Similarly, when the target allocation object corresponds to multiple target calculation variables, the target allocation conditions for each target calculation variable are as described above and will not be repeated here.

[0066] After the target allocation condition of each target calculation variable is determined, the target allocation rule of the target allocation object can be determined. The target allocation rule includes at least one target allocation condition corresponding to the target calculation variable.

[0067] In this case, the specific calculation process of the allocation calculation, namely S5 (calculating the target allocation cost according to the variable data corresponding to the target calculation variable and the target allocation rule), includes:

[0068] S51: determining a target calculation method for a target allocation object according to a target allocation condition of at least one target calculation variable and variable data of the target calculation variable;

[0069] After determining the target allocation conditions for each target calculation variable, the variable data of the target calculation variable and the target calculation method can be determined.

[0070] For example, when the target allocation object is Department One, the target calculation variables of the target allocation object are: the number of department personnel, the workstation area of ​​department personnel, and the length of time the department personnel use the conference room; the target allocation conditions corresponding to each target calculation variable are: the target allocation weight corresponding to the number of department personnel is 30%, the target allocation weight corresponding to the workstation area of ​​department personnel is 60%, and the target allocation weight corresponding to the length of time the department personnel use the conference room is 10%. Then, the target calculation method of the target allocation object (i.e., Department One) can be determined based on the variable data of the target calculation variables and the target allocation conditions of the target calculation variables. For example, the target calculation method of Department One = 30% * number of department personnel + 60% * workstation area of ​​department personnel + 10% * length of time the department personnel use the conference room.

[0071] S52: Calculate the expenses to be shared according to the target calculation method to generate the expense sharing result.

[0072] After the target calculation method for each target allocation object is determined, the allocated expenses can be allocated and calculated according to the target calculation method of each target allocation object to generate the expense allocation result.

[0073] Specifically, the number of target allocation objects selected by the user can be 1 or more. Optionally, the target allocation object can be determined according to the attributes of the to-be-allocated expenses. For example, if the to-be-allocated expenses input by the user are the total electricity charges of the office area, then the target allocation objects that the user can select can be multiple, such as multiple departments in the office area. If the to-be-allocated expenses input by the user are the total electricity charges of the finance department, then the target allocation object that the user can select is only the finance department.

[0074] The expense sharing method provided in the embodiment of the present application can input the expenses to be shared and flexibly configure the sharing objects and sharing rules according to the needs of the user, so that financial personnel or management personnel can input the expenses to be shared and flexibly configure the sharing objects and sharing rules according to the needs at any time, so as to grasp the sharing results shared by different sharing rules and sharing objects.

[0075] Optionally, different target allocation objects have different target calculation variables. The target calculation variable may not further include multiple sub-target calculation variables, or may further include multiple sub-target calculation variables. For example, the target allocation dimension is the product dimension, the target allocation object is the production area, the target calculation variable can be factory one, factory two, etc., and the sub-target calculation variables included in the target calculation variable can be: the usable area of ​​the workshop, the working hours of the workers in the workshop, etc.

[0076] At this time, the specific determination method of the target calculation method of the target allocation object, that is, S51 (determining the target calculation method of the target allocation object according to the target allocation condition of at least one target calculation variable and the variable data of the target calculation variable) specifically includes the following steps:

[0077] S511: Obtain sub-goal calculation variables corresponding to the target calculation variable input by the user and sub-goal allocation conditions corresponding to each sub-goal calculation variable;

[0078] S512: Determine a sub-calculation method of the target calculation variable according to variable data of multiple sub-target calculation variables and corresponding sub-target allocation conditions;

[0079] S513: Determine the target calculation method according to the variable data of each target calculation variable, the target allocation condition of each target calculation variable, and the sub-calculation method of each target calculation variable.

[0080] This application can further flexibly configure allocation conditions and further configure allocation rules by configuring the child calculation variables corresponding to each parent calculation variable.

[0081] Another option, such as Figure 5 As shown, the target allocation dimension also includes: target incentive items; that is, when selecting the target allocation dimension, the user selects the target incentive item in addition to the target allocation object. The target incentive item refers to a certain discount given for cost allocation after the preset requirements are completed. Then, when determining the target calculation method for the target allocation object, it is necessary to consider the incentive conditions corresponding to the target incentive item, that is, S51 (determining the target calculation method based on the target allocation condition of at least one target calculation variable and the variable data of the target calculation variable) specifically includes the following steps:

[0082] S515: Determine, according to the target incentive item, a preset incentive variable corresponding to the target incentive item and a preset incentive condition corresponding to each preset incentive variable;

[0083] For example, the target allocation dimension is the product dimension, and the target allocation object is the production area. When selecting the target incentive item, the user selects the target incentive item as profit.

[0084] After the target incentive item is selected, the preset measurement incentive variable corresponding to the target incentive item and the preset incentive condition corresponding to each preset incentive variable can be determined according to the target incentive item.

[0085] Specifically, the preset incentive condition can be only one preferential amount, for example, when the actual profit amount exceeds the preset profit amount by 20%, a 30% preferential amount will be given. The preset incentive condition can also be a gradient data, for example, when the actual profit amount exceeds the preset profit amount by 30%, a 20% preferential amount, a 30% preferential amount, or a 40% preferential amount will be given; when the actual profit amount exceeds the preset profit amount by 40%, a 30% preferential amount or a 50% preferential amount will be given.

[0086] S516: according to the target incentive variable input by the user and the target incentive condition corresponding to the target incentive variable;

[0087] The user can select a target incentive variable, such as profit amount, from the preset incentive variables. And can select the target incentive condition corresponding to the profit amount (target incentive variable) (for example, you can choose to give a 20% discount when the actual profit amount exceeds the preset profit amount by 30%, and give a 50% discount when the actual profit amount exceeds the preset profit amount by 40%).

[0088] S517: determining, according to the target stimulus variable, a first target calculation variable that matches the target stimulus variable and a second target calculation variable that does not match the target stimulus variable from at least one target calculation variable;

[0089] After the target incentive variable is determined, it is necessary to determine a first target calculation variable that matches the target incentive variable and a second target calculation variable that does not match the target incentive variable in at least one target calculation variable according to the target incentive variable. That is, according to the target incentive variable, at least one calculation variable is divided into a first target calculation variable that can be given incentive and a second target calculation variable that is not given incentive.

[0090] S518: Determine the target calculation method according to the variable data of the first target calculation variable, the target allocation condition and the target incentive condition of the first target calculation variable, the variable data of the second target calculation variable and the target allocation condition of the second target calculation variable.

[0091] After determining the first target calculation variable that can be incentivized and the second target calculation variable that cannot be incentivized, the target incentive conditions can be mentioned based on the variable data and target allocation conditions of the first target calculation variable, and the variable data and target allocation conditions of the second target calculation variable can be used to determine the target calculation method.

[0092] Incentive items are set in this application. When allocating expenses, target incentive variables can be set to give target calculation variables that match the target incentive variables a cost preferential strategy when allocating expenses. For example, when the profit of a product exceeds the preset profit, the cost sharing calculation method for the production quantity and profit of the product corresponding to the flexible allocation can be used to calculate the shared expenses. For example, the profit of the product in January exceeds the preset profit, and the cost sharing calculation method for the production quantity and profit of the product corresponding to the flexible allocation is 90% of the original shared expenses. The preset profits can also be divided into levels, such as primary profits, secondary profits, etc. When the profit of the product meets a certain level of profit, the preferential cost sharing policy for that level is adopted.

[0093] In some embodiments, the above-mentioned cost sharing method also includes the following steps: storing the cost sharing results in a basic database, and preloading the cost sharing results locally or in a cache, using the preloading method to speed up the response speed of the front-end when continuously querying data, thereby speeding up the front-end response.

[0094] In some implementations, the cost allocation method may further include: displaying the time taken to calculate the cost allocation result. The user may query the cost allocation result cyclically according to the process ID and display the time taken.

[0095] Exemplary Systems

[0096] In some embodiments of the present application, Figure 6 As shown, a cost sharing system 6 is provided, which includes:

[0097] The front-end module 61 is used to obtain the to-be-allocated expenses input by the user in the front-end module and the target allocation dimension input by the user, and determine the target calculation engine corresponding to the target allocation dimension according to the target allocation dimension;

[0098] The calculation engine 62 is used to call the target calculation engine and obtain the target calculation variables and target allocation rules input by the user in the interface of the target calculation engine; obtain the variable data corresponding to the target calculation variables according to the target calculation variables; and allocate the target allocation expenses according to the variable data corresponding to the target calculation variables and the target allocation rules to output the expense allocation results.

[0099] The expense sharing system provided in this embodiment belongs to the same application concept as the expense sharing method provided in the above embodiments of this application, and can execute the expense sharing method provided in any of the above embodiments of this application, and has the corresponding functional units and beneficial effects of executing the expense sharing method. For technical details not fully described in this embodiment, please refer to the specific processing content of the expense sharing method provided in the above embodiments of this application, and will not be repeated here.

[0100] In some embodiments of the present application, the above-mentioned cost sharing system may further include a basic database 63 for storing relevant data corresponding to the target sharing dimension and storing the cost sharing results.

[0101] Through the basic database 63, relevant data on the expenses to be apportioned can be obtained in advance from the data source (such as the human resources database, the production database) and cached in the basic database in advance, further improving the apportionment efficiency.

[0102] In addition, the cost allocation results can also be stored in the basic database to speed up the response speed when the front end continuously queries data.

[0103] The expense sharing system provided in this embodiment realizes the decoupling of the expression layer (i.e., the front-end module 61, through which the expenses to be shared, the sharing dimensions, the calculation variables corresponding to each sharing dimension, etc. can be input), the logical calculation layer (i.e., the calculation engine 62), and the database layer (i.e., the basic database 63). Accounting business personnel do not need to perform manual calculations, but only need to flexibly configure the sharing rules, sharing objects and other operating conditions according to the needs in the front-end module. The calculation engine will perform sharing calculations according to the operating conditions and output the sharing results. When the user clicks the query button, if the sharing engine calculation is completed, the sharing result will be displayed. If the sharing engine calculation is not completed, it will be displayed as being calculated, which is convenient for users to query. At the same time, the sharing rules are implemented by configuration, which greatly reduces the iteration cycle of the full code implementation and can fully meet the needs of rapid business changes.

[0104] Exemplary Electronic Devices

[0105] In some embodiments of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned cost sharing methods when executing the computer program.

[0106] Specifically, the electronic device may further include: a bus, a communication interface, an input device and an output device. The processor, the memory, the communication interface, the input device and the output device are interconnected through the bus. The bus may include a path to transmit information between various components of the computer system.

[0107] The processor may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.

[0108] The processor may include a main processor and may also include a baseband chip, a modem, etc.

[0109] The memory stores a computer program for executing the technical solution of the present application, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes computer operation instructions. More specifically, the memory may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.

[0110] The computer program may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the embodiments of the present specification, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0111] The input device may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.

[0112] Output devices may include means that allow information to be output to a user, such as display screens, printers, speakers, etc.

[0113] The communication interface may include using any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0114] The processor executes the program stored in the memory and calls other devices, which can be used to implement the various steps of the cost sharing method provided in the above-mentioned implementation mode of the present application.

[0115] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0116] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, etc. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software functional module. The present disclosure is not limited to any particular form of combination of hardware and software.

[0117] Unless otherwise defined, all terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.

[0118] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.

Claims

1. A cost sharing method, characterized in that: include: Acquire the to-be-allocated expenses input by the user and the target allocation dimension input by the user, and determine the target calculation engine corresponding to the target allocation dimension according to the target allocation dimension; Calling the target calculation engine and obtaining the target calculation variables and target allocation rules input by the user in the interface of the target calculation engine; Acquire variable data corresponding to the target calculation variable according to the target calculation variable; The target allocated expense is allocated and calculated according to the variable data corresponding to the target calculation variable and the target allocation rule to output the expense allocation result.

2. The cost sharing method according to claim 1, characterized in that: The cost sharing method also includes: Determine a target data source according to the target allocation dimension, and extract relevant data corresponding to the target allocation dimension from the target data source; Packaging and storing the target allocation dimensions and corresponding related data in a basic database; Wherein, obtaining variable data corresponding to the target calculation variable according to the target calculation variable includes: The variable data corresponding to the target calculation variable is retrieved in the basic database according to the target calculation variable.

3. The cost sharing method according to claim 2, characterized in that: The target allocation dimension includes the target allocation object; The step of obtaining the target calculation variables and target allocation rules input by the user in the interface of the target calculation engine includes: According to the target allocation object, determining preset calculation variables of the target allocation object and preset allocation conditions corresponding to each preset calculation variable; Acquire a target calculation variable input by a user in an interface of the target calculation engine, wherein the target calculation variable is a calculation variable selected by the user according to the preset calculation variable; Acquire a target allocation condition corresponding to the target calculation variable input by a user, wherein the target allocation condition is an allocation condition selected by the user according to the preset allocation condition; wherein the target allocation rule includes at least one target allocation condition corresponding to the target calculation variable; The step of calculating the target allocation cost based on the variable data corresponding to the target calculation variable and the target allocation rule includes: Determining a target calculation method corresponding to the target allocation object according to a target allocation condition of at least one of the target calculation variables and variable data of the target calculation variable; The to-be-allocated expenses are calculated according to the target calculation method of the target allocation object to generate an expense allocation result.

4. The cost sharing method according to claim 3, characterized in that: The target allocation dimension also includes a target allocation time range; The step of determining a target data source according to the target allocation dimension and extracting relevant data corresponding to the target allocation dimension from the target data source includes: Determine the target data source according to the target allocation dimension; According to the target allocation time range, relevant data of the target allocation dimension within the target allocation time range is extracted from the target data source.

5. The cost sharing method according to claim 3, characterized in that: Determining a target calculation method according to a target allocation condition of at least one of the target calculation variables and variable data of the target calculation variable includes: Obtaining the sub-goal calculation variables corresponding to the target calculation variables input by the user and the sub-goal allocation conditions corresponding to each sub-goal calculation variable; Determining a sub-calculation method of the target calculation variable according to variable data of multiple sub-target calculation variables and corresponding sub-target allocation conditions; The target calculation method is determined according to the variable data of each target calculation variable, the target allocation condition of each target calculation variable, and the sub-calculation method of each target calculation variable.

6. The cost sharing method according to claim 3, characterized in that: The target allocation dimension also includes: target incentive items; Wherein, determining the target calculation method according to the target allocation condition of at least one of the target calculation variables and the variable data of the target calculation variable includes: According to the target incentive item, determining a preset incentive variable corresponding to the target incentive item and a preset incentive condition corresponding to each preset incentive variable; According to the target incentive variable input by the user and the target incentive condition corresponding to the target incentive variable; Determining, according to the target stimulus variable, a first target computation variable that matches the target stimulus variable and a second target computation variable that does not match the target stimulus variable from among the at least one target computation variable; The target calculation method is determined according to the variable data of the first target calculation variable, the target allocation condition of the first target calculation variable and the target incentive condition, the variable data of the second target calculation variable and the target allocation condition of the second target calculation variable.

7. The cost sharing method according to claim 1, characterized in that: The target computing engine is called in an asynchronous manner.

8. The cost sharing method according to claim 2, characterized in that: The cost allocation method further includes: storing the cost allocation result in a basic database, and preloading the cost allocation result locally or in a cache.

9. A cost sharing system, characterized in that: include: The front-end module is used to obtain the to-be-allocated expenses input by the user in the front-end module and the target allocation dimension input by the user, and determine the target calculation engine corresponding to the target allocation dimension according to the target allocation dimension; A calculation engine, used to call the target calculation engine and obtain the target calculation variables and target allocation rules input by the user in the interface of the target calculation engine; Acquire variable data corresponding to the target calculation variable according to the target calculation variable; And the target allocation cost is allocated and calculated according to the variable data corresponding to the target calculation variable and the target allocation rule to output the cost allocation result.

10. The cost sharing system according to claim 9, characterized in that: The system further comprises: The basic database is used to store relevant data corresponding to the target allocation dimension and the cost allocation results.