PdcPurchaseInvoiceLine.VATAmount: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
 
Line 7: Line 7:
== Notes ==
== Notes ==
The VAT amount of the invoice line is automatically calculated with the amount and the VAT percentage.
The VAT amount of the invoice line is automatically calculated with the amount and the VAT percentage.
But can also be set after setVATCode. To support a alternative vat amount.


== Code example ==
== Code example ==

Latest revision as of 11:31, 27 September 2018

Declaration

VAT as double

Description

The VAT amount of the invoice line.

Notes

The VAT amount of the invoice line is automatically calculated with the amount and the VAT percentage. But can also be set after setVATCode. To support a alternative vat amount.

Code example

  set objPI = Pdc.logistics.PurchaseInvoices.Open("00029")
  if IsValid(objPI) then
    objPI.InvoiceNo = "00029-001"
    objPI.PurchaseInvoiceLineList.Items(1).VATAmount = 12
    if not objPI.Save then
      msgbox objPI.ErrorMessages
    end if
  else
    msgbox "The invoice number is not found in PdC."
  end if

Availability