Index: vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestVerkoopfactuur-export/AIF/Inbound/SalesInvoice-Create 300500 - VHBE - 20160501_091500.xml =================================================================== diff -u -r34713 -r34719 --- vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestVerkoopfactuur-export/AIF/Inbound/SalesInvoice-Create 300500 - VHBE - 20160501_091500.xml (.../SalesInvoice-Create 300500 - VHBE - 20160501_091500.xml) (revision 34713) +++ vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestVerkoopfactuur-export/AIF/Inbound/SalesInvoice-Create 300500 - VHBE - 20160501_091500.xml (.../SalesInvoice-Create 300500 - VHBE - 20160501_091500.xml) (revision 34719) @@ -20,6 +20,7 @@ EUR F300.500 1846-07-09 + F300500 01313 - HEREMANS KEUKENS 01313 @@ -39,6 +40,7 @@ EUR F300.500 1846-07-09 + F300500 703100- 703100 Index: vhUnitTest/AX/Uitgaand/VKP/VerkoopFactuur/impl/AifConverter/Test.cls.xml =================================================================== diff -u -r34717 -r34719 --- vhUnitTest/AX/Uitgaand/VKP/VerkoopFactuur/impl/AifConverter/Test.cls.xml (.../Test.cls.xml) (revision 34717) +++ vhUnitTest/AX/Uitgaand/VKP/VerkoopFactuur/impl/AifConverter/Test.cls.xml (.../Test.cls.xml) (revision 34719) @@ -58,6 +58,30 @@ ]]> + + + + - + Index: AX/Uitgaand/VKP/VerkoopFactuur/impl/AifConverter.cls.xml =================================================================== diff -u -r34717 -r34719 --- AX/Uitgaand/VKP/VerkoopFactuur/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34717) +++ AX/Uitgaand/VKP/VerkoopFactuur/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34719) @@ -130,8 +130,10 @@ set Transaction.Txt = Factuur.GeefKlant().GeefNaam() - set Transaction.DocumentNum = "F"_$extract(Factuur.GeefID(),1,3)_"."_$extract(Factuur.GeefID(),4,6) - set Transaction.Invoice = "F"_Factuur.GeefID() + #dim DocumentPrefix As %String = $$$If(Factuur.GeefFactuurCode()="F","F","CN") + + set Transaction.DocumentNum = DocumentPrefix_$extract(Factuur.GeefID(),1,3)_"."_$extract(Factuur.GeefID(),4,6) + set Transaction.Invoice = DocumentPrefix_Factuur.GeefID() set Transaction.Voucher = "F"_Factuur.GeefID() quit Transaction Index: vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestVerkoopcreditnota-export/AIF/Inbound/SalesInvoice-Create 586689 - VHBE - 20160501_091500.xml =================================================================== diff -u --- vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestVerkoopcreditnota-export/AIF/Inbound/SalesInvoice-Create 586689 - VHBE - 20160501_091500.xml (revision 0) +++ vhTestFiles/UnitTests/AX.Uitgaand.common.impl.AifGenerator.Generate/Test/TestVerkoopcreditnota-export/AIF/Inbound/SalesInvoice-Create 586689 - VHBE - 20160501_091500.xml (revision 34719) @@ -0,0 +1,59 @@ + + +
+ {12345678-ABCD-EFGH-1234-1234567890AB} + VHBE + http://schemas.microsoft.com/dynamics/2008/01/services/GeneralJournalService/create +
+ + + + + VHBE-VF + Van Hoecke verkoopfacturen interface + + Cust + 1,220.23 + 20.24 + 08D2% + prbe + EUR + F586.689 + 1846-07-09 + F586689 + + + 09283 + + 1.0000000000 + Ledger + prbe + 1846-07-09 + + F586689 + + + Ledger + 1,011.97 + 08D2% + prbe + EUR + F586.689 + 1846-07-09 + F586689 + + 703000- + 703000 + + 2.0000000000 + Ledger + prbe + 1846-07-09 + + F586689 + + + + + +
Index: vhUnitTest/AX/Uitgaand/common/impl/AifGenerator/Generate/Test.cls.xml =================================================================== diff -u -r34713 -r34719 --- vhUnitTest/AX/Uitgaand/common/impl/AifGenerator/Generate/Test.cls.xml (.../Test.cls.xml) (revision 34713) +++ vhUnitTest/AX/Uitgaand/common/impl/AifGenerator/Generate/Test.cls.xml (.../Test.cls.xml) (revision 34719) @@ -44,6 +44,24 @@ Do $$$AssertCorrectGemaakteBestanden(..GeefBestandLocatie()) ]]>
+ + + +