upgrade safe modules/AOS_PDF_Templates/formLetterPdf.php

Hello,

First thanks for suitecrm. its great to have free software like this.

Now my question:

I overrode the /modules/AOS_PDF_Templates/formLetterPdf.php to create custom pdfs (to include related fields from child records). However if I move the file to custom/modules/AOS_PDF_Templates/formLetterPdf.php it is not recognized. Is there a way to create a upgrade safe version of this file?

thanks a lot
m

Hi,
formLettter is an entrypoint.
So, to read your custom file you must also create the entrypoint in custom.

custom/Extension/application/Ext/EntryPointRegistry/MyTimeEntryPoint.php:

<?php
  $entry_point_registry['formLetter'] = array(
      'file' => 'custom/modules/AOS_PDF_Templates/formLetterPdf.php',
      'auth' => true,
  );

https://docs.suitecrm.com/developer/entry-points/

1 Like