Hi, we struggle a littel with Tax (Vat) crosschecks between ledgerbookings and taxtransbookings.
I was looking to create a Report in SQL something like "Select all taxbookings from taxtrans in relation to a generaljournalentry"
My first attemt failed, coz linking generaljournalentry and SubledgerVoucherGeneralJournalEntry for the voucher and the link on the taxtrans didnt work, coz of multiple ledgerbookings ...
Then i tried to link Generaljournalentry via TaxTransGeneralJournalAccountEntry to taxtrans ..
looked good, but seems not all bookings have an entry in TaxTransGeneralJournalAccountEntry ..
im a littl lost ..
We created a view :
***
select
...
...
..
from
GeneralJournalAccountEntry
join
GeneralJournalEntry
on
GeneralJournalEntry.RecId = GeneralJournalAccountEntry.GeneralJournalEntry
join
SubledgerVoucherGeneralJournalEntry
on
SubledgerVoucherGeneralJournalEntry.GeneralJournalEntry = GeneralJournalEntry.RecId
And i want to linkt this somehow to the bookings in taxtrans ..
(as i told voucher does not work )
Any one haveing an idea?
Thanks
Pirmin