PdcPurchaseInvoices.MarkAsNotExported
Jump to navigation
Jump to search
Declaration
MarkAsNotExported(bookNo: WideString) as Boolean
Description
This method is used in combination with Bemet Financials. If Bemet Financials is not used when calling this function it will exit the function and the result will be set to True.
When using Bemet Financials the 'Exported' checkbox for purchase invoices will be set if the purchase invoice is exported to Financials. But this could potentially block some functionality. So this function allows you to mark as purchase invoice as not exported in Bemet.
Notes
BookNo = The number of the invoice to open in PdC (PIH_HEADER.BOOKNUMBER).
Code example
If Not PDC.App.PurchaseInvoices.MarkAsNotExported(BookingNo) Then
SetError("Unchecking export went wrong: " + PDC.App.LastError, SingleFileOK:=False)
Exit Sub
End If
Availability
Available since June 2021 (Version 2021.4.13 onwards)