Hi,
i have a Little Problem with Printing out Vat in % in Sales Invoice Lines.
If all Sales Invoice Lines have the same VAT% (MWst %) it must not print anything.
But if they are Different VAT% i would print out in the sales line the VAT what have the Item, and at the footer of the incoide i would print out the VAT Info (VAT AMount Line for each VAT%
Momentanly in the Sales Invoice Line if have follow code:
IF ROUND(VATAmountLine."VAT %") <> 0 THEN BEGIN
MWSTPOS := FORMAT(ROUND(VATAmountLine."VAT %")) + ' % '
END ELSE BEGIN
MWSTPOS := '';
END;
It Give me out the VAT% for each Item when VAT% is not 0
Curiosly i have intend extend this IF Expection, but then the aplication print out wrong VAT% for an Item.
Perhaps i ask for wrong way in follow Expection:
IF (VATAmountLine.VATAmountText = 'MwSt.-Betrag') THEN
CHECKMWST := TRUE;
With this Last Code (in my sales invoice line footer) i ask if they are more than one VAT%, i don't know if is this a good way for ask this.
Perhaps anybody understand what i meane and have a tipp for me.
Thanks
Comments
This report does something very smart. It prints the vat % at the end with the totals if it's the same for every line. But if you have different vat % per line it prints a vat overview at the bottum of the page.
Maybe you could do something like that.
If it was hard to write, it should be hard to understand."