modules_supplier_payment.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. * or see https://www.gnu.org/
  17. */
  18. require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
  19. require_once DOL_DOCUMENT_ROOT.'/core/class/commonnumrefgenerator.class.php';
  20. /**
  21. * Parent class for supplier invoices models
  22. */
  23. abstract class ModelePDFSuppliersPayments extends CommonDocGenerator
  24. {
  25. // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
  26. /**
  27. * Return list of active generation models
  28. *
  29. * @param DoliDB $db Database handler
  30. * @param integer $maxfilenamelength Max length of value to show
  31. * @return array List of numbers
  32. */
  33. public static function liste_modeles($db, $maxfilenamelength = 0)
  34. {
  35. // phpcs:enable
  36. $type = 'supplier_payment';
  37. $list = array();
  38. include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  39. $list = getListOfModels($db, $type, $maxfilenamelength);
  40. return $list;
  41. }
  42. }
  43. /**
  44. * ModeleNumRefSupplierPayments
  45. *
  46. * Payment numbering references mother class
  47. */
  48. abstract class ModeleNumRefSupplierPayments extends CommonNumRefGenerator
  49. {
  50. // No overload code
  51. }