_invoiceDocumentDelete

Delete a specific PDF from the list of invoice PDFs an Appointment has.

Parameters

id

The ID of the Appointment.

file

The name of the PDF file to delete.

Example

FM_api('Appointment_invoiceDocumentDelete', ['id' => '222402', 'file' => 'invoice-222402-5.pdf']);

Result

['invoice-222402-1.pdf','invoice-222402-2.pdf','invoice-222402-3.pdf','invoice-222402-4.pdf','invoice-222402-6.pdf','invoice-222402-7.pdf']

The result is an array of the remaining PDF files. The above is an example.

Last updated