PdcPurchaseInvoiceLine.VATAmount: Difference between revisions
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== Description == | == Description == | ||
VAT amount | The VAT amount of the invoice line. | ||
== Notes == | == 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 == | == Code example == | ||
<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 == |
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