Index: AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml =================================================================== diff -u -r35000 -r35024 --- AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 35000) +++ AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 35024) @@ -61,6 +61,11 @@ set Table.Name = ..FirmaBepaler.GeefNaam()_" aankoopfacturen interface" do Table.LedgerJournalTrans.Insert(..GetVendTransaction(Factuur)) + set Iterator = ##class(TECH.ListIterator).%New(Factuur.Boekingen) + while Iterator.HasNext() { + #dim Boeking As %String = Iterator.Next() + do Table.LedgerJournalTrans.Insert(..GetLedgerTransaction(Factuur,Boeking,Iterator.Key())) + } quit Table ]]> @@ -71,17 +76,21 @@ 1 AXaif.LedgerGeneralJournal.AxdEntityLedgerJournalTrans 0 { + #dim TotaalGoederenInclusiefPort As %Numeric = Factuur.Totaal + set Transaction.CashDiscAmount = ..Formatter.FormatNumber( -1 * ( Factuur.KortingKontant / TotaalGoederenInclusiefPort * Boeking.Bedrag ) ,2) + } #dim BoekhoudRekeningId As %String = ##class(AX.common.impl.ConvertAdminToAX).ConvertLedgerCount(Boeking.BoekhoudRekeningId) set LedgerDimension = ##class(AXaif.LedgerGeneralJournal.AxdEntityLedgerJournalDimension).%New() set LedgerDimension.Account = BoekhoudRekeningId set LedgerDimension.DisplayValue = BoekhoudRekeningId_"-" do Transaction.LedgerDimension.Insert(LedgerDimension) - quit Transaction ]]> @@ -99,7 +108,6 @@ set Transaction.TaxItemGroup = "G3" set Transaction.CashDiscAmount = -1*..Formatter.FormatNumber(Factuur.KortingKontant,2) - set Transaction.AmountCurCredit = ..Formatter.FormatNumber(Factuur.Totaal,2) #dim Leverancier As DOM.AKP.Leverancier = ..AankoopAPI.GeefLeverancier(Factuur.LeverancierID) Index: vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/PurchaseInvoice/Create/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml =================================================================== diff -u -r35000 -r35024 --- vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/PurchaseInvoice/Create/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml (.../PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml) (revision 35000) +++ vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/PurchaseInvoice/Create/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml (.../PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml) (revision 35024) @@ -15,7 +15,7 @@ Vend 105.53 -3.17 - 10EOM3% + 20EOM3% VHBE 2016-05-04 2016-05-21 @@ -34,6 +34,29 @@ BLUM JULIUS GMBH 000000001 + + Ledger + 105.53 + -3.17 + 20EOM3% + VHBE + 2016-05-04 + 2016-05-21 + 848153 + + 604000- + 604000 + + 2.0000000000 + IncludeNot + Ledger + VHBE + BDOM + G3 + 2016-05-01 + BLUM JULIUS GMBH + 000000001 +