The program calculates the invoice discount amount by summing all sales or purchase line invoice discount amounts that have a common VAT identifier.
Program izračuna znesek popusta na račun tako, da sešteje vse zneske popusta na račun v vrsticah prodaje ali nabave, ki imajo enak identifikator DDV.