Foreign exchange transaction cash flow processing method and device, electronic equipment and storage medium
By using version management to process foreign exchange transaction cash flow information in the transaction management system, the problem of the inability to compare and manage new and old versions of cash flow in the existing technology is solved, and the version backtracking and clearing efficiency is improved.
Patent Information
- Application Number
- CN202510324764.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-06-20
AI Technical Summary
In the prior art, the transaction management system cannot effectively compare and manage the cash flow of the new and old versions, resulting in the inability to display the cash flow corresponding to the transaction information before modification, and cannot support viewing all versions of foreign exchange transaction cash flow.
By determining the cash flow information of foreign exchange transactions during the transaction period and processing them in a version management manner, we ensure that the version information of the cash flow information of foreign exchange transactions is consistent with the version information of the transaction information. Specifically, it includes determining the trigger conditions for version management, responding to the trigger conditions to perform state flow, and data comparison and management through the interest comparison mechanism and the cash flow number generation mechanism.
Version backtracking is implemented, data redundancy is reduced, clearing efficiency is improved, and cash flow of foreign exchange transactions is supported, which solves the problem of unclear version comparison and management mechanisms in the existing technology.
Smart Images

Figure CN120182002A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of foreign exchange trading cash flow, and particularly to a method, device, electronic device, and storage medium for processing foreign exchange trading cash flow. Background Art
[0002] Transaction cash flow refers to all the cash outflows and cash inflows that occur during the entire lifespan of a transaction. Usually, one cash flow corresponds to one settlement process.
[0003] In the transaction management system in the related art, when transaction information is modified, a corresponding cash flow will be generated. However, the comparison mechanism for the cash flows of the new and old versions is not clear. It only supports viewing the latest transaction information and its cash flow, and cannot display the cash flow corresponding to the transaction information before the modification. Summary of the Invention
[0004] Embodiments of this application provide a method, device, electronic device, and storage medium for processing foreign exchange trading cash flow to achieve version backtracking, reduce data redundancy, and improve settlement efficiency.
[0005] Embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a method for processing foreign exchange trading cash flow, where the processing method includes:
[0007] Determine the foreign exchange trading cash flow information during the transaction duration;
[0008] Process the foreign exchange trading cash flow information during the transaction duration in a version management manner;
[0009] According to the processing result of the version management, make the version information of the foreign exchange trading cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange trading cash flow information.
[0010] In some embodiments, the processing the foreign exchange trading cash flow information during the transaction duration in a version management manner includes:
[0011] Determine the trigger condition for the version management;
[0012] In response to the trigger condition for the version management, perform state transition on the foreign exchange trading cash flow information between the new and old versions;
[0013] Wherein, the trigger condition includes at least one of the following: modifying transaction information, modifying cash flow elements, adding, deleting, or modifying transaction fees, adding or deleting differential adjustment cash flows.
[0014] In some embodiments, the processing result according to the version management, which makes the version information of the foreign exchange transaction cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information, includes:
[0015] Judge the new version status in the processing result of the version management;
[0016] If the new version status is draft status, the new version is not effective and the old version is effective;
[0017] If the new version status is generated status, the old version is locked and the modification is generated in the new version;
[0018] If the new version status is approved status, the new version status starts to take effect and the old version becomes invalid;
[0019] If the new version status is not approved status, the old version continues to be effective and the new version reverts to draft status.
[0020] In some embodiments, the processing by the version management method further includes:
[0021] Through the interest comparison mechanism, numerically compare the interest calculation result with the interest value of the external transaction message;
[0022] If the comparison is inconsistent, restrict further processing and remind the user.
[0023] In some embodiments, the processing by the version management method further includes:
[0024] Through the cash flow number generation mechanism, generate a cash flow number in the new version and the cash flow number remains the same as the old version;
[0025] Determine the key features of the cash flow, and the key features at least include one of the following: cash flow type, payment amount, payment date, start date, end date, currency;
[0026] Keep the cash flow numbers of the cash flows with the same key features consistent.
[0027] In some embodiments, generating a cash flow number in the new version and the cash flow number remaining the same as the old version includes:
[0028] When generating cash flows for the new version of a transaction that has reached the approved status, compare the key features of each newly generated cash flow with those of each cash flow in the original version of the transaction;
[0029] If the key features are consistent, replicate the number of the original cash flow;
[0030] If the key features are inconsistent, a new cash flow number is generated.
[0031] In some embodiments, generating a cash flow number in the new version and maintaining the same cash flow number as the old version includes:
[0032] Comparing the key features of the old version of the cash flow of transactions that have been modified multiple times during the transaction duration but not submitted with the new cash flow;
[0033] If the key features of the cash flow are consistent, replicating the cash flow number of the confirmed version based on the new cash flow;
[0034] If the key features of the cash flow are inconsistent, comparing the key features of the new cash flow with those of the original cash flow;
[0035] If the key features of the new cash flow are the same as those of the original cash flow, the new cash flow replicates the cash flow number of the original cash flow;
[0036] If the key features of the new cash flow are different from those of the original cash flow, a new cash flow is calculated.
[0037] In a second aspect, an embodiment of the present application further provides a processing device for foreign exchange transaction cash flows, where the processing device includes:
[0038] A determination module for determining foreign exchange transaction cash flow information during the transaction duration;
[0039] A version management module for processing according to the foreign exchange transaction cash flow information during the transaction duration in a version management manner;
[0040] A processing module for making the version information of the foreign exchange transaction cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information according to the processing result of the version management.
[0041] In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor; and a memory arranged to store computer-executable instructions, where the executable instructions, when executed, cause the processor to execute the above method.
[0042] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device is caused to execute the above method.
[0043] The above at least one technical solution adopted in the embodiments of the present application can achieve the following beneficial effects: Determine the foreign exchange transaction cash flow information during the transaction duration, and then process it in a version management manner according to the foreign exchange transaction cash flow information during the transaction duration. Through the processing result of the version management, the version information of the foreign exchange transaction cash flow information is made consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information. Through the above method, viewing all versions of the foreign exchange transaction cash flow is supported. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:
[0045] Figure 1 It is a schematic flowchart of the method for processing foreign exchange transaction cash flow in the embodiments of the present application;
[0046] Figure 2 It is a schematic structural diagram of the device for processing foreign exchange transaction cash flow in the embodiments of the present application;
[0047] Figure 3 It is a schematic structural diagram of an electronic device in the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0048] To make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0049] The technical terms involved in the embodiments of the present application are as follows:
[0050] Transaction fees: Refer to the fees directly related to transaction activities during the operation of an enterprise, such as transaction handling fees, commissions, etc. These fees are necessary expenditures for an enterprise to conclude transactions and promote business activities.
[0051] Foreign exchange spot transaction: Also known as spot exchange transaction, it refers to a form of foreign exchange transaction in the foreign exchange market where both the buyer and the seller complete the delivery on the same day or the second business day after the transaction is concluded. Spot foreign exchange transaction is the most common form of transaction in the international foreign exchange market, and its basic function is to complete the currency exchange. Its role is to meet temporary payment needs and realize the international transfer of currency purchasing power.
[0052] Foreign exchange forward transaction: It refers to a trading behavior of buying and selling forward foreign exchange in the foreign exchange market. Generally, the buyer and seller first enter into a sales contract, stipulating the quantity, term, exchange rate, etc. of the foreign exchange transaction, and only deliver the foreign exchange at the agreed exchange rate on the agreed date. The delivery term of forward transactions is generally 1 month, 3 months, 6 months, and in some cases, it can be up to 1 year.
[0053] Foreign exchange swap transaction: A foreign exchange swap transaction refers to a form of transaction in which the two parties to the transaction agree to exchange foreign exchange assets at a future date. More precisely, a swap transaction is a foreign exchange transaction in which, while buying or selling spot foreign exchange, the seller or buyer simultaneously sells or buys forward foreign exchange of the same currency to prevent exchange rate risks.
[0054] Credit interbank borrowing: Credit interbank borrowing is a credit activity in which banks or other financial institutions adjust their position funds with each other during the operation process. This is a temporary adjustment lending business, where the bank or other financial institution with a shortage of positions borrows funds from the bank or other financial institution with an excess of positions. In China, it mainly refers to the interbank borrowing business carried out among financial institutions.
[0055] The following will, in conjunction with the accompanying drawings, elaborate on the technical solutions provided by each embodiment of the present application.
[0056] The method for processing the cash flow of foreign exchange transactions in the embodiments of the present application is used in the funds business system.
[0057] The funds business system in the embodiments of the present application mainly focuses on 4 business varieties: foreign exchange spot, foreign exchange forward, foreign exchange swap, and credit interbank borrowing to carry out system design. In the cash flow module, the logic for generating cash flows is designed respectively for the common characteristics and differentiated features of the 4 business varieties. In the back-end implementation, the strategy pattern and template method are used to develop the cash flow module, and the data fields of the differences of different business varieties are encapsulated and the entity classes are built. The above 4 business varieties are only examples and are not used to limit the types of foreign exchange transaction cash that the funds business system can handle.
[0058] The embodiments of the present application provide a method for processing the cash flow of foreign exchange transactions, as Figure 1 shown, provides a schematic flow chart of the method for processing the cash flow of foreign exchange transactions in the embodiments of the present application. The method at least includes the following steps S110 to step S140:
[0059] Step S110, determine the foreign exchange transaction cash flow information during the transaction duration.
[0060] For the transaction duration, it refers to all operations and states during the period from the order placement to the completion of liquidation of a foreign exchange transaction, so as to ensure the legality and security of the transaction and ensure the smoothness and stability of the transaction process. For the foreign exchange transaction cash flow, it is necessary to determine the foreign exchange transaction cash flow information during the transaction duration.
[0061] Step S120: Processing the foreign exchange transaction cash flow information during the transaction duration in a version management manner.
[0062] By using version management to process the foreign exchange transaction cash flow information during the transaction period, it can be understood that there may be multiple ways to trigger the generation of a new transaction version for the foreign exchange transaction cash flow information during the transaction period. After Dangdang generates these triggering methods, the transaction version will change. For example, the version number +1.
[0063] Version management not only includes version backtracking, but also includes the management of single cash flow and interest comparison within the current version.
[0064] Step S130: according to the processing result of the version management, the version information of the foreign exchange transaction cash flow information is made consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information.
[0065] According to the processing result of version management, the version information of the foreign exchange transaction cash flow information can be the same as the version information of the transaction information corresponding to the foreign exchange transaction cash flow information. In other words, the version management method is adopted for the foreign exchange transaction cash flow during the duration, so that the cash flow version corresponds to the corresponding transaction information version one by one, so as to facilitate the later version backtracking and tracing.
[0066] Through the above method, version management is adopted to support the viewing of all versions of cash flows. When the transactions of foreign exchange trading cash flow varieties are entered into this system, during the initial generation of foreign exchange trading cash flow and the processing of the adjustment of the duration, version management is adopted to support the viewing of the foreign exchange trading cash flow corresponding to all transaction versions, so that the cash flow and transaction information are one-to-one corresponding.
[0067] In addition, foreign exchange trading products include, but are not limited to, foreign exchange spot, foreign exchange forward, foreign exchange swap, and credit lending, which are not specifically limited in the embodiments of the present application.
[0068] Different from the related art, the version backtracking in the transaction management system is difficult and does not support the problem of viewing the cash flow corresponding to the historical transaction information. Through the above method, the one-to-one correspondence between the transaction information and its cash flow during the modification period of the duration is guaranteed, so as to facilitate the tracing of historical versions.
[0069] In an embodiment of the present application, the foreign exchange transaction cash flow information according to the transaction duration is processed in a version management manner, including: determining the trigger condition for version management; in response to the trigger condition for version management, performing state transition of the foreign exchange transaction cash flow information between new and old versions; wherein the trigger condition includes at least one of the following: modifying transaction information, modifying cash flow elements (such as modifying the payment date of a single cash flow), adding, deleting or modifying transaction fees, and adding or deleting differential adjustment cash flows.
[0070] If operations such as modifying transaction information, modifying cash flow elements, adding, deleting or modifying transaction fees, or adding or deleting differential adjustment cash flows occur, they will all trigger the generation of a new version of the transaction. In response to the trigger condition for version management, the foreign exchange transaction cash flow information is subjected to state transition between new and old versions, making the version management of cash flows clearer.
[0071] The trigger conditions for modifying transaction information, modifying cash flow elements, adding, deleting or modifying transaction fees, and adding or deleting differential adjustment cash flows are described in detail below.
[0072] Scenario 1, if it is version management after modifying transaction information: For a transaction that has passed verification, after the client user modifies the transaction information on the transaction information entry interface, saving or submitting through the transaction entry interface will promptly trigger the generation of a new version. On the server side, in response to the trigger condition for version management to modify transaction information, the foreign exchange transaction cash flow information is subjected to state transition between new and old versions.
[0073] Scenario 2, if it is version management after modifying cash flow elements: For a transaction that has passed verification, after the client user modifies the cash flow elements on the cash flow interface, saving or submitting through the transaction entry interface will promptly trigger the generation of a new version. It should be noted that the "cash flow elements" here include, but are not limited to, operations such as modifying the payment date of a certain cash flow and the remarks of a certain cash flow. On the server side, in response to the trigger condition for version management to modify cash flow elements, the foreign exchange transaction cash flow information is subjected to state transition between new and old versions.
[0074] Scenario 3, if it is version management after adding, deleting or modifying transaction fees: For a transaction that has passed verification, after the client user modifies the transaction fee information bound to this transaction, saving or submitting through the transaction entry interface will promptly trigger the generation of a new version. It should be noted that the "transaction fee information" includes, but is not limited to, the amount, time, type, etc. of this transaction fee. On the server side, in response to the trigger condition for version management to add, delete or modify transaction fees, the foreign exchange transaction cash flow information is subjected to state transition between new and old versions.
[0075] Scenario 4, if it is the version management for adjusting cash flow by the difference between addition and deletion: For transactions that have passed verification, after the client user adds or deletes the difference-adjusted cash flow, saving or submitting through the transaction entry interface will trigger the generation of a new version in a timely manner. On the server side, in response to the trigger condition for the version management of adding and deleting the difference-adjusted cash flow, the foreign exchange transaction cash flow information will be transferred between the new and old versions in terms of status.
[0076] It should be noted that the "difference-adjusted cash flow" refers to the cash flow manually inserted by the trader to address the minor differences in the matching of accounts receivable and payable, and its bookkeeping entry is on the cash flow interface of each transaction.
[0077] By adopting the version management method, it is ensured that there is a one-to-one correspondence between the transaction information and its cash flow during the modification period of the duration; by introducing the cash flow number comparison mechanism, the repeated generation of liquidation applications is avoided, redundant data is reduced, and the system processing efficiency is improved.
[0078] In an embodiment of the present application, making the version information of the foreign exchange transaction cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information according to the processing result of the version management includes: judging the new version status in the processing result of the version management; if the new version status is the draft status, the new version does not take effect and the old version takes effect; if the new version status is the generated status, the old version is locked and the modification is generated in the new version; if the new version status is the approved status, the new version status begins to take effect and the old version becomes invalid; if the new version status is the disapproved status, the old version continues to take effect and the new version reverts to the draft status.
[0079] For the status transfer between the new and old versions, when a new transaction version is generated according to the above four methods, the processing process during the switching period between the new and old transaction versions includes:
[0080] When the new version status triggered during the transaction duration is being entered, that is, the draft status does not take effect immediately. At this time, the old version is still in the approved status and still takes effect, and the subsequent liquidation process is carried out.
[0081] When the new version is generated, the old version is locked and no modification can be made to the old version. The user can only continue to modify in the new version. Multiple modifications to the new version before submission for review do not trigger the generation of a new version and are regarded as overwriting the original content.
[0082] If the new version is submitted for review and approved, the new version status begins to take effect and the old version becomes invalid.
[0083] If the approval of the new version is not passed, the old version continues to take effect and the new version reverts to the draft status.
[0084] In one embodiment of the present application, the version management processing also includes: using an interest comparison mechanism, numerically comparing the interest calculation result with the interest value of the external transaction message; if the comparison is inconsistent, restricting further processing and reminding the user.
[0085] Especially for credit lending transactions, an interest comparison mechanism is used to solve the problem of clearing failure caused by the inconsistency between the interest calculation result of this system and the interest value in the external transaction message.
[0086] For credit lending transactions imported from external systems, a numerical comparison mechanism is embedded. That is, the interest calculation result of the system itself is numerically compared with the interest value of the external transaction message. If the comparison is inconsistent, the user is restricted from entering the next link and a reminder of the inconsistent comparison is given, so as to provide early warning for possible unsuccessful matching of the current account and real-time prevention and control.
[0087] In addition, a manual cash flow entry mechanism is used as a safety net, and the type is "difference adjustment", which facilitates adjustments to inconsistent matches and ensures that the subsequent interest settlement process is complete and smooth.
[0088] For example, the value A1 of the own system is the absolute value of the sum of the payment amount of the cash flow type "interest" + the payment amount of the cash flow type "difference adjustment-interest".
[0089] Value B1 of the external system:
[0090] Reuters downside transactions: Reuters call message "Volume of Interest" (call interest).
[0091] Downward transactions of the foreign exchange trading center: "10002AccruedInterestTotalAmt" (accrued interest) in the foreign exchange trading center's borrowing message.
[0092] Transactions imported from Excel: Accrued interest in Excel files.
[0093] If the value A1 of the own system is different from the value B1 of the external system, if it is the first submission of the transaction, the transaction cannot be submitted, and a prompt "The interest calculation result of this system is not equal to the external transaction interest, and the transaction cannot be submitted" is displayed, and the value of the own system and the value of the external system are displayed separately, both rounded to 2 decimal places. If it is a transaction submission during the duration, a prompt "The interest calculation result of this system is not equal to the external transaction interest" is displayed, and the value of the own system and the value of the external system are displayed separately, both rounded to 2 decimal places.
[0094] The above prompt information is only an example and is not intended to limit the protection scope of the embodiments of the present application.
[0095] In one embodiment of the present application, the processing of the version management method further includes: through a cash flow number generation mechanism, generating a cash flow number in the new version and maintaining the same cash flow number as the old version; determining the key features of the cash flow, where the key features at least include one of the following: cash flow type, payment amount, payment date, start date, end date, currency; keeping the cash flow numbers of the cash flows with the same key features consistent.
[0096] Adopted a generation mechanism for the cash flow number of the new version: The generation mechanism of the cash flow number is an important part of the cash flow version management. The cash flow number, as the only field identifying the cash flow, is also an important identifier for the subsequent generation of settlement instructions, that is, one cash flow number generates one settlement application. In order not to generate duplicate settlement applications during the transaction duration, the cash flow comparison mechanism is introduced in the generation of the cash flow number in the new version of the system itself. For the cash flows with the core elements in the key features unchanged, new cash flow numbers are not regenerated, and the same cash flow number as the previous version is maintained, avoiding duplicate settlement applications. The specific cash flow number comparison rules are as follows:
[0097] Core fields of the cash flow: For the cash flows generated by foreign exchange spot, forward, swap and credit borrowing and the key elements of the settlement application, 6 core fields of the cash flow are summarized at the same time: "cash flow type", "payment amount", "payment date", "start date", "end date", "currency".
[0098] It can be understood that the cash flow numbers of the cash flows with the same core fields among these 6 key features are preferably kept consistent.
[0099] In one embodiment of the present application, generating a cash flow number in the new version and maintaining the same cash flow number as the old version includes: when generating cash flows for the new version of the transaction that has reached the approved state, comparing the key features of each newly generated cash flow with each cash flow of the original version of the transaction; if the key features are consistent, replicating the number of the original cash flow; if the key features are inconsistent, generating a new cash flow number.
[0100] For the transaction that has reached the approved state, when generating cash flows for the new version, a comparison mechanism is inserted once: The system will first compare each newly generated cash flow with the 6 fields of "cash flow type", "payment amount", "payment date", "start date", "end date", "currency" of each cash flow of the original version of the transaction. If the 6 fields are exactly the same, replicating the number of the original cash flow; if the 6 fields are inconsistent, generating a new cash flow number.
[0101] It can be understood that for the content of the remaining fields other than the cash flow number, it is normally generated by the system, and only the cash flow number is replicated for non-duplicate generation of liquidation applications.
[0102] It can be understood that the above at least 6 fields are only examples and are not used to limit the protection scope in the embodiments of the present application.
[0103] In an embodiment of the present application, generating a cash flow number in the new version and keeping the cash flow number the same as the old version includes: comparing the key features of the cash flow of the old version (confirmed version) of the transaction that has been modified multiple times during the transaction duration but not submitted with the new cash flow; if the key features of the cash flow are the same, replicating the cash flow number of the confirmed version based on the new cash flow; if the key features of the cash flow are different, comparing the new cash flow with the key features of the original cash flow; if the key features of the new cash flow are the same as those of the original cash flow, the new cash flow replicates the cash flow number of the original cash flow; if the key features of the new cash flow are different from those of the original cash flow, calculating to obtain the new cash flow.
[0104] For transactions that have been modified multiple times during the duration but not submitted, insert two comparison mechanisms during subsequent multiple saves: First, compare at least 6 fields of the "cash flow type", "payment amount", "payment date", "start date", "end date", and "currency" of the old version of the transaction, that is, the currently effective cash flow and the new cash flow at this time.
[0105] If at least 6 fields are exactly the same, the new cash flow will replicate the cash flow number of the effective version, that is, the cash flow number is the same as the effective cash flow.
[0106] If the content of at least 6 fields is inconsistent, then compare the new cash flow with 6 fields of the original cash flow, that is, the previous result of the new version. If at least 6 fields of the new cash flow are the same as those of the original cash flow, the new cash flow will replicate the cash flow number of the original cash flow v1; if at least 6 fields are different, directly calculate the new cash flow according to the system, that is, the cash flow number is different from both the effective cash flow and the original cash flow.
[0107] It can be understood that the above at least 6 fields are only examples and are not used to limit the protection scope in the embodiments of the present application.
[0108] The embodiment of the present application also provides a processing device 200 for foreign exchange transaction cash flows, as Figure 2 shown, which provides a structural schematic diagram of the processing device for foreign exchange transaction cash flows in the embodiment of the present application. The processing device 200 for foreign exchange transaction cash flows at least includes: a determination module 210, a version management module 220, and a processing module 230, where:
[0109] In an embodiment of the present application, the determining module 210 is specifically configured to: determine the foreign exchange transaction cash flow information during the transaction duration period.
[0110] For the transaction duration period, it refers to all operations and states during the period from placing an order to completing the settlement of a foreign exchange transaction, so as to ensure the legality and security of the transaction and ensure the smoothness and stability of the transaction process. For the foreign exchange transaction cash flow, it is necessary to determine the foreign exchange transaction cash flow information during the transaction duration period.
[0111] In an embodiment of the present application, the version management module 220 is specifically configured to: process according to the foreign exchange transaction cash flow information during the transaction duration period by using the version management method.
[0112] It can be understood that for the foreign exchange transaction cash flow information during the transaction duration period obtained by processing using the version management method, there may be various ways to trigger the generation of a new transaction version for the foreign exchange transaction cash flow information during the transaction duration period. When these triggering methods occur, the transaction version will change. For example, the version number is incremented by 1.
[0113] For version management, it not only includes version backtracking but also includes the management of single cash flows within the current version, interest comparison, etc.
[0114] In an embodiment of the present application, the processing module 230 is specifically configured to: according to the processing result of the version management, make the version information of the foreign exchange transaction cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information.
[0115] According to the processing result of the version management, the version information of the foreign exchange transaction cash flow information can be the same as the version information of the transaction information corresponding to the foreign exchange transaction cash flow information. That is to say, the version management method is adopted for the foreign exchange transaction cash flow during the duration period, so that the cash flow version corresponds one-to-one with the corresponding transaction information version, thus facilitating later version backtracking and tracing.
[0116] In an embodiment of the present application, the version management module 220 is further configured to:
[0117] Determine the triggering condition of the version management;
[0118] In response to the triggering condition of the version management, perform state transition of the foreign exchange transaction cash flow information between the new and old versions;
[0119] Wherein, the triggering condition includes at least one of the following: modifying transaction information, modifying cash flow elements, adding, deleting, or modifying transaction fees, adding or deleting differential adjustment cash flows.
[0120] In one embodiment of the present application, the processing module 230 is further configured to:
[0121] Judge the new version status in the processing result of the version management;
[0122] If the new version status is the draft status, the new version does not take effect and the old version takes effect;
[0123] If the new version status is the generated status, the old version is locked and the modification is generated in the new version;
[0124] If the new version status is the approved status, the new version status begins to take effect and the old version becomes invalid;
[0125] If the new version status is the disapproved status, the old version continues to take effect and the new version reverts to the draft status.
[0126] In one embodiment of the present application, the version management module 220 is further configured to:
[0127] Through the interest comparison mechanism, numerically compare the interest calculation result with the interest value of the external transaction message;
[0128] If the comparison is inconsistent, restrict further processing and remind the user.
[0129] In one embodiment of the present application, the version management module 220 is further configured to:
[0130] Through the cash flow number generation mechanism, generate a cash flow number in the new version and the cash flow number remains the same as the old version;
[0131] Determine the key features of the cash flow, and the key features at least include one of the following: cash flow type, payment amount, payment date, start date, end date, currency;
[0132] Keep the cash flow numbers of the cash flows with the same key features consistent.
[0133] In one embodiment of the present application, the version management module 220 is further configured to:
[0134] When generating the cash flow for the new version of the transaction that has reached the approved status, compare the key features of each newly generated cash flow with the key features of each cash flow of the original version of the transaction;
[0135] If the key features are consistent, replicate the number of the original cash flow;
[0136] If the key features are inconsistent, generate a new cash flow number.
[0137] In one embodiment of the present application, the version management module 220 is further configured to:
[0138] Compare the cash flow (confirmed version) of the old version of the transaction that has been modified multiple times during the transaction duration but not submitted with the key features of the new cash flow;
[0139] If the key features of the cash flow are consistent, replicate the cash flow number of the confirmed version based on the new cash flow;
[0140] If the key features of the cash flow are inconsistent, compare the new cash flow with the key features of the original cash flow;
[0141] If the key features of the new cash flow are the same as those of the original cash flow, the new cash flow replicates the cash flow number of the original cash flow;
[0142] If the key features of the new cash flow are different from those of the original cash flow, calculate the new cash flow.
[0143] It can be understood that the above-mentioned processing device for foreign exchange transaction cash flow can implement each step of the processing method for foreign exchange transaction cash flow provided in the foregoing embodiment. The relevant explanations regarding the processing method for foreign exchange transaction cash flow are applicable to the processing device for foreign exchange transaction cash flow, and will not be elaborated here.
[0144] Figure 3 It is a schematic structural diagram of an electronic device according to an embodiment of the present application. Please refer to Figure 3 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include internal memory, such as high-speed random access memory (Random-Access Memory, RAM), and may also include non-volatile memory, such as at least one disk memory, etc. Of course, the electronic device may also include other hardware required for other services.
[0145] The processor, network interface, and memory can be interconnected through the internal bus, and the internal bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 3 only a bidirectional arrow is used in
[0146] A memory for storing programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include a memory and a non-volatile memory, and provide instructions and data to the processor.
[0147] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a processing device for foreign exchange transaction cash flows at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0148] Determine the foreign exchange transaction cash flow information during the transaction duration;
[0149] Process the foreign exchange transaction cash flow information during the transaction duration in a version management manner;
[0150] According to the processing result of the version management, make the version information of the foreign exchange transaction cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information.
[0151] The above as in this application Figure 1The method executed by the foreign exchange transaction cash flow processing device disclosed in the illustrated embodiment can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above method can be completed through the integrated logic circuit of the hardware in the processor or instructions in the form of software. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by the hardware decoding processor, or executed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.
[0152] The electronic device can also execute Figure 1 the method executed by the foreign exchange transaction cash flow processing device in Figure 1 the illustrated embodiment and implement the functions of the foreign exchange transaction cash flow processing device in
[0153] The embodiments of the present application also propose a computer-readable storage medium that stores one or more programs. The one or more programs include instructions that, when executed by an electronic device including multiple application programs, can enable the electronic device to execute Figure 1 the method executed by the foreign exchange transaction cash flow processing device in the illustrated embodiment, and specifically used to execute:
[0154] Determine the foreign exchange transaction cash flow information during the transaction duration;
[0155] Process according to the foreign exchange transaction cash flow information during the transaction duration by using version management;
[0156] Based on the processing result of the version management, the version information of the foreign exchange transaction cash flow information is made consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information.
[0157] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.
[0158] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in one Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0159] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in one Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0161] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and a memory.
[0162] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0163] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0164] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0165] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0166] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for processing cash flow of foreign exchange transactions, wherein: The processing method comprises: Determine cash flow information of foreign exchange transactions during the transaction life; Processing is done in a version management manner based on the cash flow information of foreign exchange transactions during the duration of the transaction; According to the processing result of the version management, the version information of the foreign exchange transaction cash flow information is made consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information.
2. The method of claim 1, wherein: The foreign exchange transaction cash flow information during the transaction duration is processed in a version management manner, including: Determining a trigger condition for the version management; In response to a trigger condition of the version management, transferring the foreign exchange transaction cash flow information between the new version and the old version; Among them, the triggering conditions include at least one of the following: modifying transaction information, modifying cash flow elements, adding, deleting or modifying transaction fees, and adding, deleting or modifying difference to adjust cash flow.
3. The method of claim 2, wherein: The processing result according to the version management makes the version information of the foreign exchange transaction cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information, including: Determining the new version status in the processing result of the version management; If the new version is in draft status, the new version will not take effect and the old version will take effect; If the new version is in the generated state, the old version is locked and the modification is generated in the new version; If the new version status is approved, the new version status will take effect and the old version will become invalid; If the status of the new version is a failed approval status, the old version continues to be effective and the new version returns to a draft status.
4. The method of claim 1, wherein: The version management method also includes: Through the interest comparison mechanism, the interest calculation result is compared with the interest value of the external transaction message; If the comparison is inconsistent, the processing is restricted and the user is reminded.
5. The method of claim 1, wherein: The version management method also includes: Through the cash flow number generation mechanism, a cash flow number is generated in the new version and the cash flow number remains the same as that of the old version; Determine the key characteristics of the cash flow, wherein the key characteristics include at least one of the following: cash flow type, payment amount, payment date, start date, end date, and currency; Keep the cash flow numbers consistent for cash flows with the same key characteristics.
6. The method of claim 5, wherein: The cash flow number is generated in the new version and the cash flow number is maintained the same as the old version, including: When a new version of a transaction that has reached the approved status is generating cash flows, the key features of each new cash flow generated are compared with the key features of each cash flow of the original version of the transaction; If the key features are the same, the number of the original cash flow is copied; If the key characteristics are inconsistent, a new cash flow number is generated.
7. The method of claim 5, wherein: The cash flow number is generated in the new version and the cash flow number is maintained the same as the old version, including: Compare the cash flows of old versions of transactions that were modified multiple times during the transaction life but not committed with the key features of the new cash flows; If the key features of the cash flow are consistent, the cash flow number of the confirmed version is copied based on the new cash flow; If the key characteristics of the cash flows are inconsistent, compare the key characteristics of the new cash flows with those of the original cash flows; If the new cash flow has the same key characteristics as the original cash flow, the new cash flow will copy the cash flow number of the original cash flow; If the new cash flow is different from the original cash flow in key characteristics, the new cash flow is calculated.
8. A device for processing foreign exchange transaction cash flow, wherein: The processing device comprises: A determination module, used to determine the cash flow information of foreign exchange transactions in the transaction duration; A version management module, used for processing the foreign exchange transaction cash flow information during the transaction duration in a version management manner; A processing module is used to make the version information of the foreign exchange transaction cash flow information consistent with the version information of the transaction information corresponding to the foreign exchange transaction cash flow information according to the processing result of the version management.
9. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, which when executed cause the processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to execute any one of the methods of claims 1 to 7.