PdcPurchaseInvoiceLine.VATAmount

From External Bemet Wiki
Revision as of 11:29, 27 September 2018 by TC (talk | contribs) (Code example)
Jump to navigation Jump to search

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.

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