1b.app
Link copied -

Rate the functionality improvements for the "Add Payment" and "Edit Payment" windows

It is necessary to refine the functionality for the "Add Payment" and "Edit Payment" windows by adding a new field "Rate (for processes)" and implementing its logic in accordance with the described requirements.
Requirements
1.Adding a new field:
-Add a field called "Rate (for processes)" to the "Add Payment" and "Edit Payment" windows.
-The field must be available for manual editing by the user.
2. Field activation via BP parameter:
-The "Rate (for processes)" field should be active if the corresponding option is enabled in the business process settings (checkmark, as in the screenshot https://i.imgur.com/W8I8BY2.png ).
-If the checkbox is not enabled, the "Rate (for processes)" field does not affect the logic.
3.Automatic calculation of the value:
-The value in the previously created field "For the amount (in process currency)" should be calculated based on the filled in data:
"Course (for processes)".
"Payment amount".
-The calculation is carried out for payments tied to processes according to the algorithm that was implemented upon request https://1b.app/ua/forum/business-processes/6807-nuzhna-dorabotka-po-kursam-oplat... and looks like the screenshot https://i.imgur.com/NMlTrta.png .
4. Special conditions of logic:
-If the "Exchange rate (for processes)" field is not filled in or equal to 0, but the check box is enabled in the BP parameters, the value in the "Amount (in process currency)" field is not overwritten and remains unchanged.
5.Import payments:
This field should be available when importing payments.
-The "Rate (for processes)" field must be stored in all payments, including those not tied to processes.
-At the same time, the calculation of the field "For the amount (in the process currency)" is carried out only for payments tied to processes.
6. Reverse calculation:
-Reverse calculation for the "Rate (for processes)" field is not required. If the field is not filled in manually, it should remain empty.
Original question is available on version: ua

Answers:

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment