Index: vhUnitTest/AX/Uitgaand/common/impl/AifGenerator/Generate/Test.cls.xml =================================================================== diff -u -r34759 -r34767 --- vhUnitTest/AX/Uitgaand/common/impl/AifGenerator/Generate/Test.cls.xml (.../Test.cls.xml) (revision 34759) +++ vhUnitTest/AX/Uitgaand/common/impl/AifGenerator/Generate/Test.cls.xml (.../Test.cls.xml) (revision 34767) @@ -79,6 +79,36 @@ Do $$$AssertCorrectGemaakteBestanden(..GeefBestandLocatie()) ]]> + + + + Index: DOM/AKP/AankoopFactuur/impl/AankoopFactuurRepository.cls.xml =================================================================== diff -u --- DOM/AKP/AankoopFactuur/impl/AankoopFactuurRepository.cls.xml (revision 0) +++ DOM/AKP/AankoopFactuur/impl/AankoopFactuurRepository.cls.xml (revision 34767) @@ -0,0 +1,13 @@ + + + +TECH.Persistentie.Repository + + +%String +DOM.AKP.AankoopFactuur.data.AankoopFactuur + + + + + Index: DOM/AKP/AankoopFactuur/data/BoekhoudBoeking.cls.xml =================================================================== diff -u --- DOM/AKP/AankoopFactuur/data/BoekhoudBoeking.cls.xml (revision 0) +++ DOM/AKP/AankoopFactuur/data/BoekhoudBoeking.cls.xml (revision 34767) @@ -0,0 +1,46 @@ + + + +%SerialObject + + +%Decimal + + + + +%String + + + +Bedrag:%Decimal=0,BoekhoudRekeningId:%String="" +1 +1 +%Status +1 + + + + +%Library.CacheSerialState +BoekhoudBoekingState +^DOM.AKP.Aa7589.BoekhoudBoeE779S + +listnode + + +Bedrag + + +BoekhoudRekeningId + + + + + + + Index: DOM/AKP/AankoopFactuur/data/AankoopFactuur.cls.xml =================================================================== diff -u --- DOM/AKP/AankoopFactuur/data/AankoopFactuur.cls.xml (revision 0) +++ DOM/AKP/AankoopFactuur/data/AankoopFactuur.cls.xml (revision 34767) @@ -0,0 +1,103 @@ + + + +persistent +TECH.Persistent + + +%String + + + +%String + + + +%String + + + +%String + + + +%String + + + +%String + + + +%String + + + +%String + + + +%String + + + +%String + + + +DOM.AKP.AankoopFactuur.data.BoekhoudBoeking +list + + + +%Library.CacheStorage +^DOM.AKP.Aan7589.AankoopFactuurD +AankoopFactuurDefaultData +^DOM.AKP.Aan7589.AankoopFactuurD +^DOM.AKP.Aan7589.AankoopFactuurI +^DOM.AKP.Aan7589.AankoopFactuurS + + +%%CLASSNAME + + +FactuurIdLeverancier + + +Datum + + +VervalDatum + + +Totaal + + +MaatstafVanHeffing + + +BTW + + +KortingKontant + + +Munt + + +BoekingPeriode + + +LeverancierID + + + +Boekingen +subnode +"Boekingen" + + + + + + Index: vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/Inbound/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml =================================================================== diff -u --- vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/Inbound/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml (revision 0) +++ vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestPurchaseInvoice-Create/AIF/Inbound/PurchaseInvoice-Create 1 - VHBE - 20160501_091500.xml (revision 34767) @@ -0,0 +1,39 @@ + + +
+ {12345678-ABCD-EFGH-1234-1234567890AB} + VHBE + http://schemas.microsoft.com/dynamics/2008/01/services/GeneralJournalService/create +
+ + + + + VHBE-AF + Van Hoecke aankoopfacturen interface + + Vend + 0.00 + 0.00 + VHBE + 1846-07-09 + FL||5005 + + 05005 - BLUM JULIUS GMBH + 05005 + + 1.0000000000 + IncludeNot + Ledger + VHBE + BIC + G3 + 1846-07-09 + BLUM JULIUS GMBH + F1 + + + + + +
Index: AX/Uitgaand/common/impl/AifGenerator.cls.xml =================================================================== diff -u -r34762 -r34767 --- AX/Uitgaand/common/impl/AifGenerator.cls.xml (.../AifGenerator.cls.xml) (revision 34762) +++ AX/Uitgaand/common/impl/AifGenerator.cls.xml (.../AifGenerator.cls.xml) (revision 34767) @@ -78,6 +78,7 @@ set:Command="Customer/Create" Message.Body.MessageParts.Customer = Converter.Convert(Id) set:Command="SalesInvoice/Create" Message.Body.MessageParts.LedgerGeneralJournal = Converter.Convert(Id) + set:Command="PurchaseInvoice/Create" Message.Body.MessageParts.LedgerGeneralJournal = Converter.Convert(Id) set:Command="Customer/Read" Message.Body.MessageParts.EntityKeyList = ..GeefEntityKeyList(Id) #dim Path As %String = ##class(TECH.Files).AppendSubPath(##class(TECH.Config.ConfigMgr).Instance().GeefString("AX_AIF"),"Inbound") @@ -98,6 +99,7 @@ @@ -109,6 +111,7 @@ Index: AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml =================================================================== diff -u --- AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml (revision 0) +++ AX/Uitgaand/BKH/AankoopFactuur/impl/AifConverter.cls.xml (revision 34767) @@ -0,0 +1,157 @@ + + + +TECH.RegisteredObject + + +AX.common.impl.FirmaBepaler +1 + + + +DOM.AKP.AankoopAPI +1 + + + +DOM.AKP.AankoopFactuur.impl.AankoopFactuurRepository +1 + + + +AX.common.impl.Formatter +1 + + + +FirmaBepaler:AX.common.impl.FirmaBepaler,AankoopFactuurRepository:DOM.AKP.AankoopFactuur.impl.AankoopFactuurRepository,AankoopAPI:DOM.AKP.AankoopAPI +1 +1 +%Status +1 + + + + +FactuurId:%String +AXaif.LedgerGeneralJournal.AxdLedgerGeneralJournal + + + + +Factuur:DOM.AKP.AankoopFactuur.data.AankoopFactuur +AXaif.LedgerGeneralJournal.AxdEntityLedgerJournalTable + + + + +Factuur:DOM.AKP.AankoopFactuur.data.AankoopFactuur,Boeking:DOM.AKP.AankoopFactuur.data.BoekhoudBoeking,BoekingIndex:%Integer +1 +AXaif.LedgerGeneralJournal.AxdEntityLedgerJournalTrans + + + + +Factuur:DOM.AKP.AankoopFactuur.data.AankoopFactuur +1 +AXaif.LedgerGeneralJournal.AxdEntityLedgerJournalTrans + + + + +Factuur:DOM.AKP.AankoopFactuur.data.AankoopFactuur,ItemIndex:%Integer +1 +AXaif.LedgerGeneralJournal.AxdEntityLedgerJournalTrans +0) Transaction.CashDiscCode = ..Formatter.FormatCashDiscount(,Leverancier.GeefTermijnKortingKontant()) + + set Transaction.LineNum = ..Formatter.FormatNumber(ItemIndex,10) + + set Transaction.TransDate = Factuur.Datum + set Transaction.Due = Factuur.VervalDatum + + set Transaction.Txt = ..AankoopAPI.GeefLeverancier(Factuur.LeverancierID).GeefNaam() + + set Transaction.Invoice = Factuur.FactuurIdLeverancier + set Transaction.Voucher = Factuur.GeefID() + + set Transaction.Listcode = "IncludeNot" + + quit Transaction +]]> + + + +Factuur:DOM.AKP.AankoopFactuur.data.AankoopFactuur +1 +%String + + + + + +