Disclosure of Invention
In order to solve the technical problems, the application provides an internal settlement method, a related device and a storage medium, which solve the problems of inaccurate settlement data and low settlement efficiency existing in different internal settlements in the related art.
In a first aspect, the present application provides an internal settlement method, comprising:
receiving a settlement request from a service provider; the settlement request carries a type identifier of a service item and an identity identifier of the service provider;
determining a settlement amount of the service provider according to the service item in response to the settlement request;
determining a plurality of service beneficiaries associated with the service provider;
calculating the apportioned amount of each service beneficiary according to the settlement total amount and the apportioning proportion of each service beneficiary;
sending a settlement confirmation bill containing the apportioned amount to each service beneficiary;
when receiving a confirmation request returned by each service beneficiary aiming at the settlement confirmation list, generating a cost certificate of each service beneficiary according to the apportioned amount, and sending the cost certificate to each service beneficiary;
and generating a income certificate of the service provider according to the settlement sum.
In a second aspect, the present application provides an internal settlement apparatus comprising:
a transceiving unit for receiving a settlement request from a service provider; the settlement request carries a type identifier of a service item and an identity identifier of the service provider;
a determination unit configured to determine a settlement amount of the service provider from the service item in response to the settlement request;
the determining unit is further configured to determine a plurality of service beneficiaries associated with the service provider;
the calculation unit is used for calculating the apportioned amount of each service beneficiary according to the settlement total amount and the apportioning proportion of each service beneficiary;
the receiving and sending unit is also used for sending a settlement confirmation bill containing the apportioned amount to each service beneficiary;
the receiving and sending unit is further configured to generate a cost certificate of each service beneficiary according to the apportioned amount and send the cost certificate to each service beneficiary when receiving a confirmation request for the settlement confirmation order from each service beneficiary;
and the generating unit is used for generating a income certificate of the service provider according to the settlement total amount.
In another aspect, the present application provides an apparatus, which can implement the internal settlement method of the first aspect. For example, the apparatus may be a chip (such as a baseband chip, or a communication chip, etc.) or a server. The above-described method may be implemented by software, hardware, or by executing corresponding software by hardware.
In one possible implementation manner, the structure of the apparatus includes a processor, a memory; the processor is configured to enable the device to perform the corresponding functions of the internal settlement method described above. The memory is used for coupling with the processor, which holds the necessary programs (instructions) and/or data for the device. Optionally, the apparatus may further include a communication interface for supporting communication between the apparatus and other network elements.
In another possible implementation manner, the apparatus may include a unit module for performing corresponding actions in the above method.
In yet another possible implementation, the wireless communication device includes a processor and a transceiver, the processor is coupled to the transceiver, and the processor is configured to execute a computer program or instructions to control the transceiver to receive and transmit information; the processor is further configured to implement the above-described method when the processor executes the computer program or instructions.
Yet another aspect of the present application provides an apparatus, comprising: a memory and a processor; wherein the memory stores a set of program codes, and the processor is configured to call the program codes stored in the memory and execute the method of the aspects.
The application further provides an electronic device comprising the above apparatus. Electronic devices include, but are not limited to, cell phones, computers, tablets, personal computers, servers or workstations, and the like.
Yet another aspect of the present application provides a computer-readable storage medium having stored therein instructions, which when executed on a computer, cause the computer to perform the method of the above-described aspects.
Yet another aspect of the present application provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of the above-described aspects.
Responding to the settlement request, determining the settlement amount of the service provider according to the service items, calculating the apportioned amount according to the apportioning proportion of each service beneficiary, sending a settlement confirmation bill containing the apportioned amount to each service beneficiary, after each service beneficiary executes validation operation on the calculation validation list, the cost voucher of each service beneficiary is respectively generated and sent to each service beneficiary, and generating a income voucher of the service provider, and sending the income voucher to the service provider, so that internal settlement and bookkeeping among all units in the enterprise are automatically realized, and the problems of low efficiency and poor accuracy caused by manual bookkeeping in the related technology are solved.
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. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance. It will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Fig. 1 shows an exemplary system architecture which can be applied to the internal settlement method or the internal settlement apparatus of the present application.
As shown in fig. 1, the system architecture may include a service provider 101, an internal settlement server 102 (hereinafter referred to as a device 102), and a plurality of service beneficiaries 103. Service provider 101 and service beneficiary 103 may be hardware or software. When the service provider 101 and the service beneficiary 103 are hardware, the service provider 101, the settlement server 102, and the service beneficiary 103 may communicate with each other via a network, which is used as a medium for providing communication links between the above-mentioned respective units. The network may include various types of wired or wireless communication links, such as: the wired communication link comprises an optical fiber, a twisted pair of wires, or a coaxial cable, and the wireless communication link comprises: a bluetooth communication link, a WIreless-FIdelity (Wi-Fi) communication link, or a microwave communication link, etc. Where the service provider 101 and the service beneficiary 103 are software, they may be applications deployed on the same physical machine or on different physical machines.
The settlement server 102 may be hardware or software. When the settlement server 102 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the settlement server 102 is software, it may be implemented as a plurality of software or software modules (for example, for providing distributed services), or may be implemented as a single software or software module, and is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. Any number of terminal devices, networks, and servers may be used, as desired for implementation.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 2, fig. 2 is a schematic flow chart of an internal settlement method provided in an embodiment of the present application, where the method includes:
s201, receiving a settlement request from a service provider.
The service provider is a subject providing services, and the provided services include, but are not limited to, products, materials, labor, and the like, for example: the service provided by the service provider is a centralized purchasing service provided for a plurality of units. The settlement server receives a settlement request from a device corresponding to the service provider, wherein the message of the settlement request can be a message processed by encryption, so that the security of information transmission is improved. The settlement request is used for requesting the settlement server to settle the service provided by the service provider, and comprises: a type identifier of the service item and an identity identifier of the service provider, the type identifier of the service item indicating a type of the service item, the service item indicating a name of a service provided by the service provider, for example: the service item is a purchase management fee, and the identity of the service provider is used for uniquely representing the identity of the service provider.
S202, responding to the settlement request, and determining the total settlement amount of the service provider according to the service items.
Wherein, the settlement server responds to the settlement request, and obtains the settlement total amount of the service provider under the service items, and the settlement total amount is generally related to the settlement time, such as: the settlement server obtains the settlement total amount of the purchase management fee of the unit A in 5 months as 1000 yuan. The settlement request can be generated by a user performing trigger operation on a service provider, and the type of the trigger operation can be book mouse operation, keyboard operation or touch operation and the like; the settlement request may also be generated by the service provider based on preset time-triggered conditions, such as: the service provider triggers the generation of a settlement request for internal settlement for the previous month at the beginning of the month.
In one possible embodiment, the settlement server stores settlement data from the service provider for each billing time and each service item, then screens out eligible settlement data from the settlement data based on the service item and the settlement time obtained, and then calculates a settlement total based on the screened settlement data.
In another possible embodiment, the settlement server obtains the service amount of each service beneficiary associated with the service provider, calculates the sum of the service amounts of each service beneficiary, and then calculates the settlement total according to the sum of the service amounts and the standard service price.
For example: the service provider is a unit A, the service beneficiary is a unit 1 and a unit 2, the service item is a purchase management fee, the service quantity is a purchase contract amount, the settlement period is 5 months, the settlement server acquires that the purchase contract amount of the unit 1 in 5 months is 400000 yuan, the purchase contract amount of the unit 2 in 5 months is 600000 yuan, the sum of the purchase contract amounts of the unit 1 and the unit 2 is 1000000 yuan, and the standard service price is 20 yuan/ten thousand yuan, so that the total settlement amount of the unit A is calculated to be 20 yuan x 100 to 2000 yuan. The settlement server can acquire the amount of the purchasing contract from the purchasing contract of each service beneficiary, the purchasing contract of each service beneficiary is stored in the block chain system, the settlement server verifies the legality of the purchasing contract after acquiring the purchasing contract from the block chain system, and after the verification is passed, the purchasing contract is analyzed to obtain the amount of the purchasing contract.
S203, determining a plurality of service beneficiaries associated with the service provider.
The settlement server may pre-store a mapping relationship between the identity of the service provider and the identity of the service beneficiary under the service item, one service provider provides services for a plurality of service beneficiaries, and the settlement server may query the plurality of service beneficiaries associated with the service provider according to the mapping relationship. Optionally, the settlement request may carry the identifiers of the multiple service beneficiaries, and the settlement server obtains the multiple service beneficiaries associated with the service provider after analyzing the settlement request.
And S204, calculating the apportioned amount of each service beneficiary according to the total settlement amount and the apportioning proportion of each service beneficiary.
Wherein, each service beneficiary in the plurality of service beneficiaries has an allocation proportion, the sum of the allocation proportions of different service beneficiaries is 1, and the allocation proportions of different service beneficiaries may be the same or different. For each service beneficiary, the apportioned amount is the total settlement amount multiplied by the apportionment ratio.
For example, if the total amount of settlement is 2000 yen, the apportionment ratio for unit 1 is 0.4, and the apportionment ratio for unit 2 is 0.6, then the apportioned amount for unit 1 is 2000 yen 0.4 to 800 yen, and the apportioned amount for unit 2 is 2000 yen 0.6 to 1200 yen.
In a possible implementation manner, the apportionment proportion of the service beneficiary and the traffic of the service beneficiary are in positive correlation, the traffic represents the number of transactions between the service provider and the service beneficiary, the greater the corresponding traffic is, the smaller the apportionment proportion is, and the calculation manner of the apportionment proportion of the service beneficiary is as follows: the service beneficiary's traffic is divided by the sum of the individual service beneficiaries' traffic.
For example, if the traffic of unit 1 is 40 and the traffic of unit 2 is 60, and the sum of the two is 100, the apportionment ratio of unit 1 is 0.4 and the apportionment ratio of unit 2 is 0.6.
S205, sending a settlement confirmation bill containing the apportioned amount to each service beneficiary.
The settlement confirmation list comprises the identity of the service provider, the service items, the identity of the service beneficiary and the apportioned amount. After the service beneficiary finishes the settlement confirmation form, checking whether each parameter in the settlement confirmation form conforms to the compliance, if so, the service beneficiary sends a confirmation request to the settlement server; if not, the service beneficiating party sends an unconfirmed request to the settlement server.
For example: the settlement confirmation bill transmitted from the settlement server to the unit 1 includes: identity of unit a, identity of unit 1, service item: "procurement service fee", amortization amount: "800 Yuan".
S206, when receiving the confirmation request aiming at the settlement confirmation list from each service beneficiary, generating the cost voucher of each service beneficiary according to the apportioned amount, and sending the cost voucher to each service beneficiary.
When receiving confirmation requests of all the service beneficiaries for the settlement confirmation list, the settlement server generates cost certificates of all the service beneficiaries, wherein the cost certificates comprise accounting subjects, identity identifiers of service providers, identity identifiers of the service beneficiaries, settlement amounts and service items. If the settlement server does not receive the confirmation request returned by any service beneficiary or receives the non-confirmation request returned by any service beneficiary within the preset time length, the settlement server generates an error prompt message, and the error prompt message contains the identity of the service beneficiary which does not send the confirmation request or sends the non-confirmation request, so that the user can clearly know the non-confirmed service beneficiary.
And S207, generating a income certificate of the service provider according to the settlement total amount.
Wherein the revenue voucher includes: identification of the service provider, identification of the plurality of service beneficiaries, settlement totals, service items, and accounting. The settlement server generates a revenue voucher and sends the revenue voucher to the service provider.
The embodiment of the application is implemented, the settlement amount of a service provider is determined according to service matters in response to a settlement request, the apportioned amount is calculated according to the apportionment proportion of each service beneficiary, a settlement confirmation list containing the apportioned amount is sent to each service beneficiary, after each service beneficiary performs confirmation operation on the settlement confirmation list, a cost certificate of each service beneficiary is generated and sent to each service beneficiary, an income certificate of the service provider is generated, the income certificate is sent to the service provider, automatic internal settlement and bookkeeping among each unit in an enterprise are realized, the problems of low efficiency and poor accuracy caused by manual bookkeeping in the related technology are solved, the application automatically performs bookkeeping on each main body participating in the internal settlement according to the preassigned apportionment principle by using the service matters, accounting efficiency and accuracy can be improved.
The internal settlement method is explained in detail in fig. 2 described above. Correspondingly, the structure of a device in the embodiment of the application is schematically shown.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an internal settlement apparatus 3 according to an embodiment of the present application, where the internal settlement apparatus 3 may include: a transceiving unit 301, a determining unit 302, a calculating unit 303, and a generating unit 304.
A transceiving unit 301 for receiving a settlement request from a service provider; the settlement request carries a type identifier of a service item and an identity identifier of the service provider;
a determining unit 302, configured to determine, in response to the settlement request, a settlement amount of the service provider according to the service item;
the determining unit 302 is further configured to determine a plurality of service beneficiaries associated with the service provider;
a calculating unit 303, configured to calculate an apportioned amount of each service beneficiary according to the total settlement amount and the apportioning proportion of each service beneficiary;
the transceiver 301 is further configured to send a settlement confirmation form including the allocated amount to each service beneficiary;
the transceiving unit 301 is further configured to generate a cost credential for each service beneficiary according to the apportioned amount and send the cost credential to each service beneficiary when receiving a confirmation request for a settlement confirmation order from each service beneficiary;
a generating unit 304, configured to generate a revenue certificate of the service provider according to the settlement total.
In one or more possible embodiments, the settlement request is generated based on a user's trigger action; or
The settlement request is generated based on a preset time trigger condition.
In one or more possible embodiments, the determining the settlement total of the service provider based on the service item includes:
acquiring the total service volume corresponding to the service provider under the service items;
and settling the settlement sum according to the standard service price associated with the service item.
In one or more possible embodiments, the calculating the apportioned amount of each service beneficiary according to the settlement total and the apportioned proportion of each service beneficiary includes:
and acquiring the traffic of each service beneficiary, and calculating the allocation proportion according to the traffic of each service beneficiary.
In one or more possible embodiments, the settlement request carries a settlement date;
wherein the determining the total amount of settlement of the service provider according to the service item comprises:
and determining the settlement total of the service provider in the settlement date according to the service item.
In one or more possible embodiments, the determining a plurality of service beneficiaries associated with the service provider comprises:
determining a plurality of service beneficiaries related to the service provider according to a preset mapping relation; or
And analyzing the settlement request to obtain a plurality of service beneficiaries related to the service provider.
In one or more possible embodiments, the generating unit 304 is further configured to: if the confirmation request from the service beneficiary is not received within the preset time length, generating an error prompt message and displaying the error prompt message through a display unit; wherein the error prompt message contains an identification of the service beneficiary.
The embodiment of the present application and the embodiment of the method in fig. 2 are based on the same concept, and the technical effects brought by the embodiment are also the same, and the specific process may refer to the description of the embodiment of the method in fig. 2, and will not be described again here.
The internal settlement device 4 may be a server or a terminal device, and the internal settlement device 4 may also be a field-programmable gate array (FPGA), an application-specific integrated chip (asic), a system on chip (SoC), a Central Processor Unit (CPU), a Network Processor (NP), a digital signal processing circuit, a Micro Controller Unit (MCU), or a Programmable Logic Device (PLD) or other integrated chips, which implement related functions.
Referring to fig. 4, a schematic structural diagram of an internal settlement apparatus is provided in the embodiment of the present application. As shown in fig. 4, the apparatus may be the settlement server in fig. 1, and the internal settlement apparatus 400 may include: at least one processor 401, at least one network interface 404, a user interface 403, memory 405, at least one communication bus 402.
Wherein a communication bus 402 is used to enable connective communication between these components.
Optionally, the user interface 403 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 403 may also include a standard wired interface and a wireless interface.
The network interface 404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 401 may include one or more processing cores, among others. The processor 401 interfaces with various components throughout the electronic device 400 using various interfaces and circuitry to perform various functions of the electronic device 400 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 405 and invoking data stored in the memory 405. Alternatively, the processor 401 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 401 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 401, but may be implemented by a single chip.
The Memory 405 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 may be used to store instructions, programs, code sets, or instruction sets. The memory 405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 405 may alternatively be at least one storage device located remotely from the aforementioned processor 401. As shown in fig. 4, the memory 405, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application program.
In the internal settlement apparatus 400 shown in fig. 4, the user interface 403 is mainly used as an interface for providing input for the user, and acquiring data input by the user; the processor 401 may be configured to call an application program stored in the memory 405 for configuring an application program interface, and specifically perform the following steps:
receiving a settlement request from a service provider through the network interface 404; the settlement request carries a type identifier of a service item and an identity identifier of the service provider;
determining a settlement total of the service provider according to the service item in response to the settlement request;
determining a plurality of service beneficiaries associated with the service provider;
calculating the apportioned amount of each service beneficiary according to the settlement total amount and the apportioning proportion of each service beneficiary;
sending a settlement confirmation form containing the apportioned amount to each service beneficiary through the network interface 404;
when receiving a confirmation request aiming at the settlement confirmation list from each service beneficiary through the network interface 404, generating a cost certificate of each service beneficiary according to the apportioned amount, and sending the cost certificate to each service beneficiary;
and generating a income certificate of the service provider according to the settlement sum.
In one or more possible embodiments, the settlement request is generated based on a user's trigger action; or
The settlement request is generated based on a preset time trigger condition.
In one or more possible embodiments, processor 401 performs said determining a settlement total for said service provider based on said service transaction, comprising:
acquiring the total service volume corresponding to the service provider under the service items;
and settling the settlement sum according to the standard service price associated with the service item.
In one or more possible embodiments, the processor 401 performs the calculating of the apportioned amount of each service beneficiary according to the settlement total and the apportioned proportion of each service beneficiary, including:
and acquiring the traffic of each service beneficiary, and calculating the allocation proportion according to the traffic of each service beneficiary.
In one or more possible embodiments, the settlement request carries a settlement date;
wherein, the processor 401 executes the determining of the settlement sum of the service provider according to the service item, including:
and determining the settlement total of the service provider in the settlement date according to the service item.
In one or more possible embodiments, the determining a plurality of service beneficiaries associated with the service provider comprises:
determining a plurality of service beneficiaries related to the service provider according to a preset mapping relation; or
And analyzing the settlement request to obtain a plurality of service beneficiaries related to the service provider.
In one or more possible embodiments, processor 401 is further configured to perform:
if the confirmation request from the service beneficiary is not received within the preset time length, generating an error prompt message and displaying the error prompt message through a display unit; wherein the error prompt message contains an identification of the service beneficiary.
The concept of this embodiment is the same as that of the embodiment of the method in fig. 2, and the technical effects brought by the embodiment are also the same, and the specific process can refer to the description of the embodiment in fig. 2, and will not be described again here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.