Bug in function payment-request

it seems as if there is an error concerning the amount in the function “payment-request”. The error can adjusted as follows:

  • Create Sales Order with Total amount = 1000; Total Taxes and Charges = 1190 (19% VAT)
  • Create payment request(#1) for sales order with the amount of 500
  • Create corresponding advance payment with the amount of 500
  • Create another payment request (#2) for sales order -> you will notice a proposed amount of 190 (not the outstanding 690). Futhermore you are unable to set the outstanding amount 690 (Error: Total Payment Request amount cannot be greater than Sales Order amount)

*currency is EUR for company and customer in my case (doesn’t matter for the testcase)