PdcPurchaseInvoiceLine.VATAmount: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:


<source lang="vb">
<source lang="vb">
 
  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
</source>
</source>


== Availability ==
== Availability ==

Revision as of 11:29, 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.

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