The program uses the currency code on the sales document to find the invoice  discount terms in the corresponding currency.
Program poišče pogoje popusta na račun v ustrezni valuti s šifro valute v prodajnem dokumentu.