It is necessary to create a processing for fixing payment by document RN, VN, ZN.
The form should display:
1. currency exchange rates (usd, eur)
2. document amount
3. Prepayment amount for the document (if any)
4. amount to be paid (document amount - prepayment amount)
5. list of goods and services with price, amount, characteristics, discount....
6. amount paid by the client (due to payment in different currencies, recalculate according to the exchange rate)
6. amount of change in UAH and in the currency of payment
Payment can be made in different currencies - it is necessary to recalculate according to the exchange rate:
If the payment is made in 1 currency, then one field, and if in several, then we use the following:
cash register, currency, amount
After payment - we create PKO or RKO documents and link them to the document so that the amount of debt on the document is settled.