Index: vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/Inbound/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml =================================================================== diff -u -r34767 -r34769 --- vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/Inbound/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml (.../PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml) (revision 34767) +++ vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/Inbound/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml (.../PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml) (revision 34769) @@ -13,11 +13,12 @@ Van Hoecke aankoopfacturen interface Vend - 0.00 - 0.00 + 105.53 + 3.17 + 10EOM3% VHBE - 1846-07-09 - FL||5005 + 2016-05-21 + 848153 05005 - BLUM JULIUS GMBH 05005 @@ -28,9 +29,9 @@ VHBE BIC G3 - 1846-07-09 + 2016-05-01 BLUM JULIUS GMBH - F1 + 1 Index: AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml =================================================================== diff -u -r34767 -r34769 --- AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34767) +++ AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34769) @@ -125,8 +125,7 @@ set Transaction.TaxItemGroup = "G3" #dim Leverancier As DOM.AKP.Leverancier = ..AankoopAPI.GeefLeverancier(Factuur.LeverancierID) - #dim KortingPercentage As %String = ##class(TECH.Math).Round(##class(TECH.PercentageUtils).PercentageVanInclusief(Factuur.KortingKontant,Factuur.Totaal),0) - set:(Factuur.KortingKontant>0) Transaction.CashDiscCode = ..Formatter.FormatCashDiscount(,Leverancier.GeefTermijnKortingKontant()) + set:(Factuur.KortingKontant>0) Transaction.CashDiscCode = ..Formatter.FormatCashDiscount(Leverancier.GeefKortingKontant(),Leverancier.GeefTermijnKortingKontant()) set Transaction.LineNum = ..Formatter.FormatNumber(ItemIndex,10)