Document processing method and device, computer equipment, readable storage medium and program product
By monitoring the document status of product transaction documents and generating receivable documents, and obtaining warehouse-out documents and resource transfer documents based on document identification for write-off, the problem of low write-off efficiency in the receivable confirmation process of traditional e-commerce platforms is solved, and a more efficient implementation is achieved. Efficient and accurate write-off process.
Patent Information
- Application Number
- CN202410883859.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
AI Technical Summary
In the receivables confirmation process of traditional e-commerce platforms, the write-off efficiency is low and requires manual downloading of orders and processing of sales data, receivables data and collection data at regular intervals, resulting in low efficiency.
By monitoring the document status of product transaction documents, we obtain write-off conditions, generate receivable documents, and obtain warehouse-out orders and resource transfer documents based on document identification for real-time write-off, improving the real-time and efficiency of write-off, and enhancing the accuracy of write-off. sex.
Real-time associated write-off of product transaction orders, outbound orders and resource transfer orders is realized, which improves the efficiency and accuracy of write-offs and is more real-time and granular than traditional solutions.
Smart Images

Figure CN118735643A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a document processing method, apparatus, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] With the development of computer technology, more and more companies provide commodity transactions or services through e-commerce platforms. In the field of e-commerce, receivables confirmation is particularly critical. Receivables confirmation refers to the process of formally recording the resource transfer generated by the transaction into its financial statements after the sale of goods or the provision of services.
[0003] In traditional technology, orders are manually downloaded from e-commerce platforms, and the corresponding sales delivery orders are obtained through shipping processing. Then, sales data, receivables data, and receipts data are manually exported on a monthly basis for write-off, which results in low write-off efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a document processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of verification in response to the above technical problems.
[0005] In a first aspect, the present application provides a document processing method, comprising:
[0006] Monitor the document status of product transaction orders;
[0007] Based on the document attributes corresponding to the product transaction order, obtain the product write-off conditions corresponding to the product transaction order;
[0008] When the current document status of the product transaction sheet meets the product write-off conditions, a product receivable document is generated based on the product transaction sheet;
[0009] Based on the document ID corresponding to the product transaction order, obtain the product delivery order and resource transfer order corresponding to the product transaction order;
[0010] Write-off the product A / R, product delivery order and resource transfer order to obtain the write-off voucher corresponding to the product transaction order.
[0011] In a second aspect, the present application further provides a document processing device, comprising:
[0012] The monitoring module is used to monitor the document status of product transaction orders;
[0013] The condition acquisition module is used to obtain the product write-off conditions corresponding to the product transaction order based on the document attributes corresponding to the product transaction order;
[0014] A receivables bill generation module is used to generate a product receivables bill based on the product transaction bill when the current document status of the product transaction bill meets the product write-off conditions;
[0015] The document acquisition module is used to obtain the product delivery order and resource transfer order corresponding to the product transaction order based on the document identifier corresponding to the product transaction order;
[0016] The write-off module is used to write-off product receivables, product delivery orders and resource transfer orders, and obtain the write-off vouchers corresponding to the product transaction orders.
[0017] In a third aspect, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned document processing method when executing the computer program.
[0018] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned document processing method are implemented.
[0019] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned document processing method when executed by a processor.
[0020] The above-mentioned document processing method, device, computer equipment, computer-readable storage medium and computer program product obtain the product write-off conditions corresponding to the product transaction order based on the document attributes corresponding to the product transaction order by monitoring the document status of the product transaction order. Then, when the current document status of the product transaction order meets the corresponding product write-off conditions, a product receivable order is generated based on the product transaction order. Then, based on the document identifier corresponding to the product transaction order, the document identifier corresponding to the product transaction order is obtained, and the product delivery order and resource transfer order corresponding to the product transaction order are obtained. The product receivable order, product delivery order and resource transfer order are written off to obtain the write-off voucher corresponding to the product transaction order. In this way, by monitoring the document status of the product transaction order in real time, when it is monitored that the document status meets the product write-off conditions, the product transaction order is immediately written off. Compared with the method of timed unified write-off in the traditional scheme, the real-time and efficiency of the write-off can be effectively improved. In addition, based on the document identifier corresponding to the product transaction order, the corresponding product delivery order and resource transfer order are obtained for write-off. Compared with the traditional solution in which the product transaction order, product delivery order and resource transfer order are directly summarized and recorded separately, when the write-off time is reached, the general ledgers corresponding to the product transaction order, product delivery order and resource transfer order are written off respectively. In this solution, the product transaction order, product delivery order and resource transfer order are linked together through the document identifier, which can improve the granularity and accuracy of the write-off. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0022] FIG1 is an application environment diagram of a document processing method in one embodiment;
[0023] Figure 2 A schematic diagram of a process flow of a document processing method in one embodiment;
[0024] FIG3 is a schematic diagram of the core workflow of the accounts receivable workstation in one embodiment;
[0025] FIG4 is a schematic diagram of a process for configuring product write-off conditions in one embodiment;
[0026] FIG5 is a schematic diagram of configuring a document attribute group in one embodiment;
[0027] FIG6 is a schematic diagram of a configuration mode and a verification time in one embodiment;
[0028] FIG7 is a schematic diagram of a receivable business manuscript in one embodiment;
[0029] FIG8 is a schematic diagram of a receivable business manuscript in another embodiment;
[0030] FIG9 is a schematic flow chart of a document processing method in a specific embodiment;
[0031] FIG10 is a schematic diagram of a product receivables list in one embodiment;
[0032] FIG11 is a block diagram of a document processing device in one embodiment;
[0033] FIG12 is a diagram showing the internal structure of a computer device in one embodiment;
[0034] FIG. 13 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] The document processing method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 monitors the document status of the product transaction order, and obtains the product write-off conditions corresponding to the product transaction order from the server 104 based on the document attributes corresponding to the product transaction order. When the terminal 102 monitors that the current document status of the product transaction order meets the product write-off conditions, the terminal 102 generates a product receivable order based on the product transaction order. Based on the document identifier corresponding to the product transaction order, the terminal 102 obtains the product delivery order and resource transfer order corresponding to the product transaction order from the server 104. The terminal 102 performs write-off processing on the product receivable order, the product delivery order and the resource transfer order to obtain the write-off voucher corresponding to the product transaction order. The terminal 102 can send the write-off voucher corresponding to the product transaction order to the server 104, and the server 104 can store the received write-off voucher. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0037] In an exemplary embodiment, Figure 2 As shown, a document processing method is provided, which is described by taking the method applied to the terminal in FIG. 1 as an example, and includes the following steps 202 to 210. Among them:
[0038] Step 202, monitoring the document status of the product transaction order.
[0039] Among them, the product transaction order refers to a document to be written off that records the product transaction details, and the product transaction details include but are not limited to at least one of the document identification, product transaction time, transaction amount, transaction product, transaction type, etc. For example, as shown in Figure 3, the accounts receivable business manuscript includes multiple product transaction orders, and the product transaction order can be a delivery order, a reissue order, a return warehouse order, a replacement order, a positive review cashback order, a refund only after delivery, an offline manual order, etc.
[0040] The document status refers to the status determined based on the field value of a specific field in the product transaction order, which is used to determine whether the product verification conditions are met. For example, the document status can be the platform transaction status, logistics receipt status, refund status, product warehousing status, etc.
[0041] For example, the terminal monitors the document change log of the target database corresponding to the product trading platform in real time through the big data analysis platform. Based on the monitored document change information, multiple document information to be written off is determined from the target database, and the corresponding product transaction order is generated based on the document information to be written off. The document status corresponding to each product transaction order on the product trading platform is monitored in real time through the big data analysis platform, and the product transaction order is updated in real time based on the monitored document status.
[0042] Step 204: based on the document attribute corresponding to the product transaction order, obtain the product write-off condition corresponding to the product transaction order.
[0043] The document attribute refers to the attribute information of the document used to classify the document. For example, the document attribute can be the store name corresponding to the document, the document type determined according to the purpose of the document, the transaction link corresponding to the document, and so on.
[0044] The product write-off conditions are used to determine whether the product transaction process corresponding to the product transaction order is completed, and whether the transaction amount corresponding to the product transaction order should be classified as accounts receivable. In order to meet different business needs, different product write-off conditions can be set for product transaction orders with different document attributes. For example, for product transaction orders corresponding to phone card recharge services, knowledge payment services and other businesses, the product write-off conditions can be set to confirm the accounts receivable after the platform transaction is successfully completed; for product transaction orders corresponding to the customized home furnishing industry, the accounts receivable can be confirmed according to the logistics receipt time; and so on.
[0045] Exemplarily, the terminal matches the product write-off condition corresponding to the product transaction form according to the document attribute corresponding to the product transaction form. Specifically, the document attribute corresponding to the product transaction form is compared with the document attribute corresponding to each product write-off condition, and the product write-off condition corresponding to the document attribute with the highest similarity is used as the product write-off condition corresponding to the product transaction form.
[0046] Step 206: When it is detected that the current document status of the product transaction sheet meets the product write-off condition, a product receivable document is generated based on the product transaction sheet.
[0047] The current document status refers to the document status of the currently monitored product transaction order. The product receivable order refers to a document mainly used to record the receivables corresponding to the product transaction order.
[0048] Exemplarily, when the terminal monitors that the current document status of the product transaction form meets the product write-off conditions corresponding to the product transaction form, the terminal generates a product receivable based on the product transaction form. Specifically, firstly, an initial receivable corresponding to the product transaction form is generated, and relevant information corresponding to the receivables is obtained from the product transaction form and entered into the initial receivable. For example, relevant information corresponding to the receivables includes, but is not limited to, document type, nature of the funds, payment method, settlement method, product details, and other information.
[0049] Step 208: Based on the document identifier corresponding to the product transaction order, obtain the product delivery order and resource transfer order corresponding to the product transaction order.
[0050] Among them, the document identifier refers to the unique identifier used to distinguish different product transaction orders. The product delivery order refers to the document used to record the actual product delivery situation. The resource transfer order refers to the document used to record the actual resource transfer situation. In the actual implementation process, the product delivery order can record the product delivery quantity, specifications, batch, and detailed information of the consignee. The resource transfer order records the fund transaction information between the merchant and the customer, which can include the amount paid by the customer, the amount refunded by the merchant, the payment method, the collection date and other information.
[0051] Exemplarily, the terminal obtains a document identifier corresponding to the product transaction sheet, and based on the document identifier corresponding to the product transaction sheet, obtains a product delivery sheet and a resource transfer sheet matching the product transaction sheet from a database.
[0052] Step 210, write-off the product receivables, product delivery orders and resource transfer orders, and obtain the write-off vouchers corresponding to the product transaction orders.
[0053] Among them, the write-off voucher refers to the voucher used to record the corresponding relationship between product receivables, product delivery orders and resource transfer orders and their write-off results.
[0054] Exemplarily, the terminal verifies the resource transfer amounts corresponding to the products shipped out in the product delivery order and the resource transfer orders based on the product identifiers and resource transfer amounts corresponding to the products in the product receivables, i.e., the collection amount or remittance amount, and obtains the verification voucher corresponding to the product transaction order. The verification voucher ensures the match and consistency between the receivable resource transfer amount and the actual resource transfer amount, and also ensures the match and consistency between the product information shipped out and the actual product information shipped out.
[0055] In the above document processing method, by monitoring the document status of the product transaction order, the product write-off conditions corresponding to the product transaction order are obtained based on the document attributes corresponding to the product transaction order. Then, when the current document status of the product transaction order meets the corresponding product write-off conditions, a product receivable order is generated based on the product transaction order. Then, based on the document identifier corresponding to the product transaction order, the document identifier corresponding to the product transaction order is obtained, and the product delivery order and resource transfer order corresponding to the product transaction order are obtained. The product receivable order, product delivery order and resource transfer order are written off to obtain the write-off voucher corresponding to the product transaction order. In this way, by monitoring the document status of the product transaction order in real time, when it is monitored that the document status meets the product write-off conditions, the product transaction order is immediately written off. Compared with the method of timed and unified write-off in the traditional solution, the real-time and efficiency of the write-off can be effectively improved. In addition, based on the document identifier corresponding to the product transaction order, the corresponding product delivery order and resource transfer order are obtained for write-off. Compared with the traditional solution in which the product transaction order, product delivery order and resource transfer order are directly summarized and recorded separately, when the write-off time is reached, the general ledgers corresponding to the product transaction order, product delivery order and resource transfer order are written off respectively. In this solution, the product transaction order, product delivery order and resource transfer order are linked together through the document identifier, which can improve the granularity and accuracy of the write-off.
[0056] In an exemplary embodiment, based on the document attribute corresponding to the product transaction sheet, obtaining the product write-off condition corresponding to the product transaction sheet includes:
[0057] The document attributes corresponding to the product transaction order are compared with each candidate document attribute group, and a target document attribute group matching the product transaction order is determined in each candidate document attribute group; the product write-off condition corresponding to the target document attribute group is used as the product write-off condition corresponding to the product transaction order.
[0058] Among them, the document attribute group refers to a set of one or more document attributes. The candidate document attribute group refers to multiple pre-configured document attribute groups, each of which is configured with corresponding product write-off conditions. The target document attribute group refers to the document attribute group that matches the product transaction order.
[0059] Exemplarily, the terminal compares the document attributes corresponding to the product transaction form with each candidate document attribute group. If each document attribute included in the candidate document attribute group is consistent with each document attribute corresponding to the product transaction form, the candidate document attribute group is determined as the target document attribute group that matches the product transaction form. The terminal uses the product write-off condition corresponding to the target document attribute group as the product write-off condition corresponding to the product transaction form.
[0060] In this embodiment, according to each document attribute corresponding to the product transaction form, multiple candidate document attribute groups are pre-set, and corresponding product write-off conditions are set for each candidate document attribute group, which can improve the flexibility and rationality of document write-off, making the write-off process more reasonable and more in line with business needs. After obtaining the product transaction form, the document attributes corresponding to the product transaction form are compared with each candidate document attribute group, and the target document attribute group to which the product transaction form belongs can be quickly determined, and then the product write-off conditions that match the business needs of the product transaction form can be quickly obtained according to the target document attribute group, thereby improving the efficiency of write-off.
[0061] In an exemplary embodiment, as shown in FIG4 , the document processing method includes steps 402 to 408. Among them:
[0062] Step 402: In response to the document attribute selection operation, at least one selected document attribute is grouped into a document attribute group.
[0063] Among them, the document attribute selection operation refers to the operation of selecting a document attribute when configuring a document attribute group to obtain a document attribute group. For example, the configuration process of the document attribute group is shown in Figure 5. The operation of configuring document attributes such as store name and document type is the document attribute selection operation, and the set consisting of the configured store name and document type is the document attribute group. Each document attribute group can include one or more document attributes. You can set corresponding product write-off conditions for a document attribute group, or you can configure multiple document attribute groups and set the same product write-off conditions for multiple document attribute groups at the same time, thereby improving the flexibility of configuring product write-off conditions.
[0064] Exemplarily, the terminal displays a configuration page corresponding to the product verification condition, and the user triggers a document attribute selection operation in the condition group configuration area in the configuration page. In response to the document attribute selection operation, the terminal generates a document attribute group according to the document attribute selected in the document attribute selection operation.
[0065] Step 404 , in response to the write-off mode selection operation for the document attribute group, a target write-off mode determined from candidate write-off modes is displayed.
[0066] Step 406 , in response to the write-off time configuration operation for the target write-off mode, the target write-off time configured for the target write-off mode is displayed.
[0067] Step 408: The target write-off mode and the target write-off duration are combined into a product write-off condition for the document attribute group.
[0068] The write-off mode selection operation refers to the operation of selecting the corresponding target write-off mode for the document attribute group. The write-off mode refers to the condition that triggers the generation of the product receivable document. For example, as shown in Figure 5, the write-off mode can be reconciliation write-off confirmation receivable, logistics receipt confirmation receivable, delivery confirmation receivable, platform transaction success confirmation receivable, refund success confirmation receivable, and after warehousing confirmation receivable.
[0069] Candidate write-off modes refer to multiple write-off modes that can be selected. Target write-off mode is the write-off mode selected by the write-off mode selection operation.
[0070] The write-off time configuration operation refers to the operation of configuring the waiting time for the target write-off mode. The write-off time is used to indicate how long it takes to trigger the generation of the product receivable when the current document status of the product transaction order meets the write-off mode in the product write-off condition. The target write-off time refers to the write-off time configured for the target write-off mode. For example, as shown in Figure 6, after "Logistics receipt confirmation receivable" is determined as the target write-off mode, the corresponding target write-off time can be set for the target write-off mode. In the figure, the target write-off time is set to 0 days, indicating that when the logistics confirmation receipt is signed, the product receivable corresponding to the product transaction order is immediately generated. In addition, the corresponding target write-off time can also be set for special circumstances. When the material receipt status cannot be obtained, the preset waiting time can be set according to the actual situation. After the product in the product transaction order is shipped, wait for the corresponding preset waiting time to end, and immediately generate the product receivable corresponding to the product transaction order.
[0071] Exemplarily, the terminal displays a configuration page corresponding to the product write-off condition, and the user triggers a write-off mode selection operation in the write-off mode configuration area in the configuration page. In response to the write-off mode selection operation, the terminal displays the target write-off mode selected in the write-off mode selection operation from among the candidate write-off modes in the write-off mode configuration area. In response to the user triggering a write-off duration configuration operation in the write-off duration configuration area in the configuration page, the terminal displays the target write-off duration configured for the target write-off mode in the write-off duration configuration area. In response to the write-off condition submission operation triggered by the user on the configuration page, the terminal combines the target write-off mode and the target write-off duration into a product write-off condition for the document attribute group.
[0072] In this embodiment, by first configuring the condition group and then configuring the corresponding target write-off mode and target write-off duration for each product transaction form belonging to the condition group, batch configuration of product write-off conditions is achieved. Corresponding product write-off conditions can be configured for a large number of product transaction forms belonging to the condition group at the same time, which not only makes the configuration strategy of the product write-off conditions more flexible, but also improves the efficiency of the product write-off condition configuration.
[0073] In an exemplary embodiment, the document processing method further includes:
[0074] At the end of the current write-off cycle, the current write-off mode and the current write-off duration are obtained from the product write-off conditions; when the current document status of the product transaction order and the current write-off mode match successfully, the write-off time corresponding to the product transaction order is determined based on the current write-off duration; when the current time reaches or exceeds the write-off time, it is determined that the current document status of the product transaction order meets the product write-off conditions.
[0075] The current write-off cycle refers to the write-off cycle at the current moment. The write-off cycle refers to the cycle for writing off product transaction orders. The current write-off mode refers to the product write-off mode included in the product write-off conditions, and the current write-off duration refers to the product write-off duration included in the product write-off conditions. The write-off time refers to the time when the product receivable corresponding to the product transaction order is generated. The current time refers to the time corresponding to the end of the current write-off cycle.
[0076] Exemplarily, at the end of the current write-off cycle, the terminal obtains the current write-off mode and the current write-off duration from the product write-off conditions corresponding to the product transaction order. When the current document status of the product transaction order and the current write-off mode match successfully, the write-off time corresponding to the product transaction order is calculated based on the current time and the current write-off duration. Specifically, the sum of the current time and the current write-off duration is used as the write-off time corresponding to the product transaction order. When the current time reaches or exceeds the write-off time, it is determined that the current document status of the product transaction order meets the product write-off conditions. When the current time does not reach the write-off time, wait for the end of the next write-off cycle, and continue to determine whether the write-off time has been reached or exceeded, until the write-off time is reached or exceeded, and it is determined that the current document status of the product transaction order meets the product write-off conditions.
[0077] In this embodiment, according to the verification cycle, the product transaction order is regularly checked to see if it meets the product verification conditions, which can effectively reduce the occupation of computer resources. At the same time, the regular detection can also realize batch detection of each product transaction order, improve data processing efficiency, and thus improve verification efficiency.
[0078] In an exemplary embodiment, the document processing method further includes:
[0079] The document change log corresponding to the monitoring target database detects the first document change information that meets the accounts receivable confirmation conditions according to the document change log, and sends the target document information corresponding to the first document change information to the first message queue; reads the current first document information from the first message queue; adds a product transaction order corresponding to the current first document information in the accounts receivable business draft; monitors the document status of the product transaction order, including: monitoring the document status corresponding to each product transaction order in the accounts receivable business draft.
[0080] The target database refers to the database that stores the transaction documents generated during the transaction process. The document change log refers to the log file in the target database that records all modification operations (such as addition, deletion, and modification), which can be a binary log file.
[0081] The receivables confirmation condition refers to the judgment condition used to determine whether the document has reached the receivables confirmation stage. The receivables confirmation stage refers to the stage of determining whether the product transaction process corresponding to the document is completed based on the product write-off conditions. Therefore, the receivables confirmation condition is determined based on the candidate product write-off conditions at the upstream of the entire business process among the candidate product write-off conditions. For example, the business process of product transaction is that the customer places an order on the platform, the merchant ships the product after the order is successfully placed, the customer signs for the logistics after receiving the product, and finally the customer confirms the receipt of the product and the merchant receives the payment. When the product write-off conditions include the platform successfully placing an order to confirm the receivables, the shipment confirms the receivables, the logistics sign-off confirms the receivables, and the reconciliation write-off confirms the receivables, it is necessary to determine the receivables confirmation condition based on the candidate product write-off conditions at the upstream of the business process, that is, the successful order confirmation of the receivables, that is, the product write-off mode corresponding to the product write-off condition of the successful order confirmation of the receivables is determined as the receivables confirmation condition. For example, when the first document change information corresponding to the target document indicates that the document status corresponding to the target document is updated to a successful order, the target unit price information corresponding to the target document needs to be sent to the first message queue to determine whether the target document meets the candidate product write-off conditions at the upstream of the business process. When the product write-off conditions include shipment confirmation receivables, logistics receipt confirmation receivables, and reconciliation write-off confirmation receivables, the product write-off mode corresponding to the shipment confirmation receivables product write-off condition is determined as the receivable confirmation condition.
[0082] Document change information refers to the document change record obtained from the target database. First document change information refers to the document change information that meets the A / R confirmation conditions. First document information refers to the document information corresponding to the document to which the first document change information belongs in the target database. First message queue refers to the message queue used to store the first document change information. A / R business draft refers to the document set including each product transaction order to be written off.
[0083] Exemplarily, the terminal monitors the document change log corresponding to the target database through the big data analysis platform. When the first document change information that meets the receivable confirmation conditions is monitored according to the document change log, the target document information corresponding to the first document change information in the target database is sent to the first message queue, that is, written to the end of the first message queue. Read the current first document information from the first message queue. The current first document information refers to the first document information read from the head of the first message queue. Based on the current first document information, add the corresponding product transaction order to the receivable business draft. For example, as shown in Figure 7, the receivable business draft 702 contains multiple product transaction orders, and each product transaction order is displayed on the terminal page in the form of a list. It can be understood that the document status of the monitored product transaction order is the document status corresponding to each product transaction in the monitored receivable business draft.
[0084] In some embodiments, in response to a document viewing operation for a target product transaction sheet triggered on the receivable business draft, the terminal determines the fields to be displayed based on the document type of the target product transaction sheet, obtains the document information corresponding to each field to be displayed corresponding to the target product transaction sheet from the target database based on the document identifier corresponding to the target product transaction sheet, and displays the obtained document information corresponding to the target product transaction sheet on the same page as the receivable business draft. As shown in FIG7, in response to a document viewing operation for a return order, the terminal displays the document information corresponding to the return order on the page, including order details, returned goods, exchanged goods, refund details, operation logs and other information. As shown in FIG8, in response to a document viewing operation for a sales order, the terminal displays the document information corresponding to the sales order on the page, including basic information, product details, payment details, operation logs and other information. In this way, while displaying the receivable business draft, it can respond to the viewing operation for product transaction sheets of different document types, and display the detailed information of each product transaction sheet on the same page, without having to view the detailed information of the product transaction sheet through other pages. For example, you can exit the display page of the accounts receivable business draft first, and then enter the document query page to query the detailed information of a certain document through various functional modules provided by the business system. In this way, the document query process can be simplified, the efficiency of document query can be improved, and computer resources can be effectively saved.
[0085] In this embodiment, the document change log is monitored through the big data analysis platform. When the first document change information that meets the receivable confirmation conditions appears, the corresponding product transaction order is generated based on the target document information corresponding to the first document change information, and added to the receivable business manuscript, and then the document status corresponding to each product transaction order in the receivable business manuscript is monitored to perform document write-off. In this way, only when the target document meets the receivable confirmation conditions, the product transaction order corresponding to the target document is generated and added to the receivable business manuscript for monitoring, instead of monitoring the document status of all documents. This can reduce the number of product transaction orders that need to be monitored, effectively reduce the occupation of computer resources, improve monitoring efficiency, and thus improve write-off efficiency.
[0086] In an exemplary embodiment, monitoring the document status of a product transaction document includes:
[0087] When the second document change information of the product transaction form for the cancellation condition field is monitored, the second document change information is sent to the second message queue; the current second document change information is read from the second message queue; based on the current second document change information, the document status of the product transaction form corresponding to the current second document change information in the accounts receivable business draft is updated.
[0088] The write-off condition field refers to the field corresponding to the product write-off condition in the product transaction form. For example, for the product write-off condition of logistics receipt confirmation of receivables, the corresponding write-off condition field is logistics status, for the product write-off condition of platform transaction successful confirmation of receivables, the corresponding write-off condition field is platform transaction status, and so on.
[0089] The second document change information refers to the document change information in which the field value corresponding to the write-off condition field changes. The second message queue refers to the message queue used to store the second document change information.
[0090] Exemplarily, the terminal monitors the document change log corresponding to the target database through the big data analysis platform. When the second document change information of the product transaction form in the accounts receivable business draft for the write-off condition field is monitored according to the document change log, the second document change information is sent to the end of the second message queue. The current second document change information is read from the head of the second message queue. Based on the current second document change information, the document status of the product transaction form corresponding to the current second document change information in the accounts receivable business draft is updated.
[0091] In this embodiment, the second document change information of each product transaction form in the receivable business manuscript for the write-off condition field is monitored in real time through the big data analysis platform. The monitored second document change information is sent to the second message queue, and the terminal can consume the second document change information from the second message queue in sequence and update the document status of the corresponding product transaction form. In this way, only the second document change information for the write-off condition field needs to be monitored, which can save computer resources. At the same time, the document change information is transmitted through the message queue, which can not only ensure the order of message processing, but also prevent system overload, and increase the flexibility and stability of document status maintenance.
[0092] In an exemplary embodiment, product receivables, product delivery orders, and resource transfer orders are written off to obtain a write-off voucher corresponding to the product transaction order, including:
[0093] Obtain the product ID of the product to be written off corresponding to the product to be written off in the product A / R; based on the product A / R, write off the product delivery information corresponding to the product ID of the product to be written off in the product delivery order to obtain the product write-off result; based on the product A / R, write off the resource transfer information corresponding to the product ID of the product to be written off in the resource transfer order to obtain the resource write-off result; integrate the product write-off result and the resource write-off result to obtain the write-off voucher corresponding to the product transaction order.
[0094] Among them, the product identification to be written off refers to the product identification corresponding to each product in the product receivable form. The product outbound information refers to the product outbound record corresponding to each product in the product outbound form. The product write-off result is used to indicate whether the outbound product information matches the actual outbound product information. The resource transfer information refers to the resource transfer record corresponding to each product in the resource transfer form. The resource write-off result is used to indicate whether the receivable resource transfer amount matches the actual resource transfer amount.
[0095] Exemplarily, the terminal obtains the product identifier to be written off corresponding to the product to be written off in the product receivables. The product outbound information matching the product identifier to be written off is obtained in the product outbound order. If the matching product outbound information cannot be obtained, it is determined that the product write-off result corresponding to the product identifier to be written off is a write-off failure. If the matching product outbound information is obtained, the product receivables information corresponding to the product identifier to be written off in the product receivables and the product outbound information corresponding to the product identifier to be written off in the product outbound order are compared. If the comparison is successful, the remaining product identifiers to be written off in the product transaction order are continued to be written off until the verification of all product identifiers to be written off is completed, and the product write-off result is obtained. The product write-off result records the product write-off status corresponding to each product identifier to be written off.
[0096] The terminal obtains the resource transfer information that matches the product identifier to be written off in the resource transfer order. If the matching resource transfer information cannot be obtained, the resource write-off result corresponding to the product identifier to be written off is determined to be a write-off failure. If the matching resource transfer information is obtained, the resource transfer information corresponding to the product identifier to be written off in the resource transfer order and the resource transfer information corresponding to the product identifier to be written off in the resource transfer order are compared. If the comparison is successful, the remaining product identifiers to be written off in the resource transfer order are continued to be written off until the verification of all product identifiers to be written off is completed and the resource transfer result is obtained. The resource transfer result records the resource write-off status corresponding to each product identifier to be written off.
[0097] The terminal integrates the product write-off results and resource write-off results to obtain the write-off voucher corresponding to the product transaction order.
[0098] In this embodiment, based on the product identifiers corresponding to the products to be written off in the product receivables, each product to be written off in the product receivables is written off separately, which can improve the precision of the write-off and thus improve the accuracy of the write-off.
[0099] In a specific embodiment, the document processing method proposed in this application can be applied to a cloud enterprise resource planning (CERP) system to implement document verification on an e-commerce platform. As shown in FIG9 , the document processing method includes the following steps:
[0100] 1. Monitor the document status
[0101] The cloud enterprise resource planning system monitors the binary log files of the database used to store delivery orders, return orders, refund orders, etc. in the e-commerce platform in real time through the big data analysis platform Flink. After the big data platform monitors the first document change information that meets the receivable confirmation conditions, it sends the first document information corresponding to the first document change information to the cloud enterprise resource planning system through the message queue Kafka.
[0102] 2. Write the product transaction order into the accounts receivable business manuscript and match the product write-off conditions
[0103] The cloud enterprise resource planning system reads the first document information from the message queue to generate the corresponding product transaction order, and adds the product transaction order to the accounts receivable business draft. For each product receivable in the accounts receivable business draft, you can set different document attribute groups in advance and configure the corresponding product write-off conditions for different document attribute groups. As shown in Figure 3, the write-off mode and write-off duration need to be configured when the product write-off conditions are used.
[0104] 3. Monitor and update the document status of product transaction orders
[0105] The cloud enterprise resource planning system monitors the second document change information of each product transaction form in the accounts receivable business draft in real time through the big data analysis platform for the write-off condition field, and sends the second document change information to the cloud enterprise resource planning system through the message queue Kafka. The cloud enterprise resource planning system reads the second document change information from the corresponding message queue, and updates the document status of the corresponding product transaction form in the accounts receivable business draft based on the second document change information. As shown in Figure 3, the logistics tracking track and order statement corresponding to the product transaction form can be monitored, and the document status of the corresponding product transaction form can be updated in real time.
[0106] 4. Triggering product write-off conditions
[0107] At the end of the current write-off cycle, the cloud enterprise resource planning system obtains the current write-off mode and current write-off duration from the product write-off conditions corresponding to the product transaction order in the accounts receivable business manuscript. When the current document status of the product transaction order successfully matches the current write-off mode, the write-off time corresponding to the product transaction order is determined based on the current write-off duration. When the current time reaches or exceeds the write-off time, it is determined that the current document status of the product transaction order meets the product write-off conditions. And record the relevant information such as the receivable confirmation time and receivable confirmation status corresponding to the product receivable order.
[0108] 5. Generate business receivables
[0109] The cloud enterprise resource planning system generates corresponding product A / Rs based on product transaction orders that meet the product write-off conditions. A product A / R list is generated and displayed based on each product A / R group. For example, the product A / R list is shown in FIG10, and operations such as batch export, review, deletion, and refresh of product A / Rs can be performed. Each product A / R is converted into a corresponding financial A / R through the financial accounting system, and the corresponding financial receipt (i.e., resource transfer order) and product delivery order are obtained based on the document identifier corresponding to the financial A / R. The financial A / R, the product delivery order corresponding to the financial A / R, and the financial receipt are written off to obtain a write-off voucher.
[0110] In the above embodiment, the corresponding product write-off conditions can be configured for the product transaction form according to the document attributes corresponding to the product transaction form, so as to meet the receivable confirmation requirements of different e-commerce industries and make the document write-off more reasonable and accurate. In addition, the product write-off conditions corresponding to the product transaction form can be flexibly configured, which can improve the flexibility of write-off.
[0111] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0112] Based on the same inventive concept, the embodiment of the present application also provides a document processing device for implementing the document processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more document processing device embodiments provided below can refer to the limitations on the document processing method above, and will not be repeated here.
[0113] In an exemplary embodiment, as shown in FIG11 , a document processing device is provided, comprising: a monitoring module, a condition acquisition module, an A / R generation module, a document acquisition module and a write-off module, wherein:
[0114] The monitoring module is used to monitor the document status of product transaction orders.
[0115] The condition acquisition module is used to obtain the product write-off conditions corresponding to the product transaction order based on the document attributes corresponding to the product transaction order.
[0116] The receivables bill generation module is used to generate a product receivable bill based on the product transaction sheet when it is monitored that the current document status of the product transaction sheet meets the product write-off conditions.
[0117] The document acquisition module is used to obtain the product delivery order and resource transfer order corresponding to the product transaction order based on the document identifier corresponding to the product transaction order.
[0118] The write-off module is used to write-off product receivables, product delivery orders and resource transfer orders, and obtain the write-off vouchers corresponding to the product transaction orders.
[0119] In one embodiment, the condition acquisition module is further used to:
[0120] The document attributes corresponding to the product transaction order are compared with each candidate document attribute group, and a target document attribute group matching the product transaction order is determined in each candidate document attribute group; the product write-off condition corresponding to the target document attribute group is used as the product write-off condition corresponding to the product transaction order.
[0121] In one embodiment, the document processing device further includes:
[0122] The condition configuration module is used to, in response to a document attribute selection operation, group at least one selected document attribute into a document attribute group; in response to a write-off mode selection operation for the document attribute group, display a target write-off mode determined from candidate write-off modes; in response to a write-off duration configuration operation for the target write-off mode, display a target write-off duration configured for the target write-off mode; and group the target write-off mode and the target write-off duration into a product write-off condition for the document attribute group.
[0123] In one embodiment, the document processing device further includes:
[0124] The condition judgment module is used to obtain the current write-off mode and the current write-off duration from the product write-off conditions at the end of the current write-off cycle; when the current document status of the product transaction order and the current write-off mode match successfully, the corresponding write-off time of the product transaction order is determined based on the current write-off duration; when the current time reaches or exceeds the write-off time, it is determined that the current document status of the product transaction order meets the product write-off conditions.
[0125] In one embodiment, the document processing device further includes:
[0126] The draft maintenance module is used to monitor the document change log corresponding to the target database; when the first document change information that meets the accounts receivable confirmation conditions is monitored according to the document change log, the target document information corresponding to the first document change information is sent to the first message queue; the current first document information is read from the first message queue; a product transaction order corresponding to the current first document information is added to the accounts receivable business draft; and the document status of the product transaction order is monitored, including: monitoring the document status corresponding to each product transaction order in the accounts receivable business draft.
[0127] In one embodiment, the monitoring module is further used to:
[0128] When the second document change information of the product transaction form for the cancellation condition field is monitored, the second document change information is sent to the second message queue; the current second document change information is read from the second message queue; based on the current second document change information, the document status of the product transaction form corresponding to the current second document change information in the accounts receivable business draft is updated.
[0129] In one embodiment, the write-off module is further configured to:
[0130] Obtain the product ID of the product to be written off corresponding to the product to be written off in the product A / R; based on the product A / R, write off the product delivery information corresponding to the product ID of the product to be written off in the product delivery order to obtain the product write-off result; based on the product A / R, write off the resource transfer information corresponding to the product ID of the product to be written off in the resource transfer order to obtain the resource write-off result; integrate the product write-off result and the resource write-off result to obtain the write-off voucher corresponding to the product transaction order.
[0131] Each module in the above-mentioned document processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0132] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG12. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as document status and document attributes. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a document processing method is implemented.
[0133] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG13. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a document processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0134] Those skilled in the art will understand that the structures shown in FIGS. 12 and 13 are merely block diagrams of partial structures related to the scheme of the present application, and do not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than those shown in the figures, or combine certain components, or have a different arrangement of components.
[0135] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0137] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0139] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0140] 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 application.
[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A document processing method, characterized in that: The method comprises: Monitor the document status of product transaction orders; Based on the document attribute corresponding to the product transaction order, obtaining the product write-off condition corresponding to the product transaction order; When it is monitored that the current document status of the product transaction form meets the product write-off condition, generating a product receivable document based on the product transaction form; Based on the document identifier corresponding to the product transaction order, obtain the product delivery order and resource transfer order corresponding to the product transaction order; The product receivable order, the product delivery order and the resource transfer order are written off to obtain a write-off voucher corresponding to the product transaction order.
2. The method according to claim 1, characterized in that The acquiring the product write-off condition corresponding to the product transaction order based on the document attribute corresponding to the product transaction order includes: Compare the document attributes corresponding to the product transaction form with each candidate document attribute group, and determine a target document attribute group matching the product transaction form from each candidate document attribute group; The product write-off conditions corresponding to the target document attribute group are used as the product write-off conditions corresponding to the product transaction order.
3. The method according to claim 2, characterized in that The method further comprises: In response to a document attribute selection operation, forming a document attribute group with at least one selected document attribute; In response to a write-off mode selection operation for the document attribute group, displaying a target write-off mode determined from candidate write-off modes; In response to a write-off time configuration operation for the target write-off mode, displaying a target write-off time configured for the target write-off mode; The target write-off mode and the target write-off duration are combined into a product write-off condition for the document attribute group.
4. The method according to claim 1, characterized in that: The method further comprises: At the end of the current write-off cycle, the current write-off mode and the current write-off duration are obtained from the product write-off conditions; When the current document status of the product transaction order and the current write-off mode match successfully, determining the write-off time corresponding to the product transaction order based on the current write-off duration; When the current time reaches or exceeds the write-off time, it is determined that the current document status of the product transaction order meets the product write-off condition.
5. The method according to claim 1, characterized in that: The method further comprises: Monitor the document change log corresponding to the target database; When first document change information that meets the receivable confirmation condition is monitored according to the document change log, target document information corresponding to the first document change information is sent to the first message queue; Reading current first document information from the first message queue; Add a product transaction sheet corresponding to the current first document information in the accounts receivable business manuscript; The document status of the monitored product transaction order includes: Monitor the document status corresponding to each product transaction order in the accounts receivable business manuscript.
6. The method according to claim 5, characterized in that The document status of the monitored product transaction order includes: When monitoring the second document change information of the product transaction document for the cancellation condition field, sending the second document change information to the second message queue; Read the current second document change information from the second message queue; Based on the current second document change information, the document status of the product transaction document corresponding to the current second document change information in the accounts receivable business draft is updated.
7. The method according to claim 1, characterized in that The write-off process of the product receivable form, the product delivery form and the resource transfer form to obtain the write-off voucher corresponding to the product transaction form includes: Obtain the product ID of the product to be written off corresponding to the product to be written off in the product receivable document; Based on the product receivables, the product delivery information corresponding to the product identifier to be written off in the product delivery order is written off to obtain a product write-off result; Based on the product receivables, write off the resource transfer information corresponding to the product identifier to be written off in the resource transfer order to obtain a resource write-off result; The product write-off result and the resource write-off result are integrated to obtain a write-off voucher corresponding to the product transaction order.
8. A document processing device, characterized in that: The device comprises: The monitoring module is used to monitor the document status of product transaction orders; A condition acquisition module, used for acquiring the product write-off condition corresponding to the product transaction order based on the document attribute corresponding to the product transaction order; A receivables bill generating module, configured to generate a product receivables bill based on the product transaction bill when it is detected that the current bill status of the product transaction bill meets the product write-off condition; A document acquisition module, used for acquiring a product delivery order and a resource transfer order corresponding to the product transaction order based on a document identifier corresponding to the product transaction order; The write-off module is used to write-off the product receivable form, the product delivery form and the resource transfer form to obtain the write-off voucher corresponding to the product transaction form.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
