Commit Graph

2 Commits

Author SHA1 Message Date
Carlos Ruiz c58e96ce12
IDEMPIERE-4083 currency rate by document or by transaction (#381)
Fix jenkins build error
SQL> SP2-0027: Input is too long (> 2499 characters) - line ignored
2020-11-13 09:32:12 +01:00
Carlos Ruiz 86823a72e5
IDEMPIERE-4083 currency rate by document or by transaction (#372)
Found issue in _Bank/Cash Statement_ window, button _Create lines from_ is creating all lines (payments and receipts) positive, the correct behavior must be to create the receipts positive and payments negative.
To fix this:
* the function currencyConvertPayment was modified to use C_Payment_V instead of C_Payment
* the columns currencyrate, convertedamt and isoverridecurrencyrate were added to the view C_Payment_V
* the definition of the view C_Payment_V was moved from script to dictionary (easier to add new columns in future)
2020-11-12 09:59:03 +01:00