Options

Print Out VAT % in Sales Invoice Lines

elToritoelTorito Member Posts: 191
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
(Oo)=*=(oO)

Comments

  • Options
    eromeineromein Member Posts: 589
    Did you have a look at the standaard Navision report?

    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.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Options
    elToritoelTorito Member Posts: 191
    Yes i have seen the standard report, and did make it so at the bottom of the page, but i would not print the VAT Text or VAT Identifier if alle the items have the same VAT , only i want them print out only when there are items with different VAT.
    (Oo)=*=(oO)
Sign In or Register to comment.