Index: AXimpl/AifMessage/Converter/SalesInvoiceConverter.cls.xml =================================================================== diff -u -r35581 -r35602 --- AXimpl/AifMessage/Converter/SalesInvoiceConverter.cls.xml (.../SalesInvoiceConverter.cls.xml) (revision 35581) +++ AXimpl/AifMessage/Converter/SalesInvoiceConverter.cls.xml (.../SalesInvoiceConverter.cls.xml) (revision 35602) @@ -106,6 +106,9 @@ do Table.LedgerJournalTrans.Insert(..GetLedgerTransaction(Factuur,BoekhoudRekening,BoekingIndex)) set BoekingIndex = BoekingIndex + 1 } + + Do ..CorrigeerAfrondingsVerschil(Table) + quit Table ]]> @@ -122,7 +125,7 @@ set Transaction.ADUCorrectedTaxAmount = ..Formatter.FormatNumber( Factuur.GeefTotaalBTW() / ..TotaalGoederenInclusiefPort * BoekingBedrag ,2) set Transaction.CashDiscAmount = ..Formatter.FormatNumber( -1 * ( Factuur.GeefTotaalKortingKontant() / ..TotaalGoederenInclusiefPort * BoekingBedrag ) ,2) - + set:(Factuur.GeefFactuurCode()=##class(DOM.VKP.Factuur.enu.FactuurType).Factuur()) Transaction.AmountCurCredit = ..Formatter.FormatNumber(BoekingBedrag + Transaction.ADUCorrectedTaxAmount ,2) set:(Factuur.GeefFactuurCode()=##class(DOM.VKP.Factuur.enu.FactuurType).Creditnota()) Transaction.AmountCurDebit = ..Formatter.FormatNumber(-1 * (BoekingBedrag - Transaction.ADUCorrectedTaxAmount) ,2) @@ -244,6 +247,36 @@ } ]]> + + + + + Index: vhUnitTest/AXimpl/AifMessage/Converter/SalesInvoiceConverter/Test.cls.xml =================================================================== diff -u --- vhUnitTest/AXimpl/AifMessage/Converter/SalesInvoiceConverter/Test.cls.xml (revision 0) +++ vhUnitTest/AXimpl/AifMessage/Converter/SalesInvoiceConverter/Test.cls.xml (revision 35602) @@ -0,0 +1,109 @@ + + + +vhUnitTest.TestCase + + +AXaif.LedgerGeneralJournal.AxdEntityLedgerJournalTable +1 + + + +aTestName:%String + + + + +aTestName:%String + + + + + + + + + + + + + + + + + + + + + + + + +AccountType:%String,AmountCurDebit:%Decimal,AmountCurCredit:%Decimal + + + + + +