PdcPurchaseInvoiceLine.SetVATCode

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

SetVATCode(VATCode as string) as Boolean

Description

Sets the VAT code of the purchase invoice line.

Notes

Code example

The following code example changes the VAT code and saves the invoice.

dim objPI

  set objPI = Pdc.logistics.PurchaseInvoices.Open("157625")
  if objPI.PurchaseInvoiceLineList(0).SetVATCode("3") then
    if not objPI.Save then
      msgbox pdc.LastError
    end if
  else
    msgbox "The VAT code does not exist."
  end if

Availability

Available since April 2014 (Version 4.3 onwards)