PdcPurchaseInvoiceLine.SetVATCode

From External Bemet Wiki
Revision as of 14:36, 21 August 2015 by TC (talk | contribs) (Created page with "== Declaration == SetVATCode(VATCode as string) as Boolean == Description == Sets the VAT code of the purchase invoice line. == Notes == == Code example == The following co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)