setup.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
  3. * Copyright (C) 2022 SuperAdmin <contact@calyclay.com>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. /**
  19. * \file mmidocuments/admin/setup.php
  20. * \ingroup mmidocuments
  21. * \brief MMIDocuments setup page.
  22. */
  23. // Load Dolibarr environment
  24. require_once '../env.inc.php';
  25. require_once '../main_load.inc.php';
  26. $arrayofparameters = array(
  27. 'DOCUMENT_SHOW_COMPLEMENT'=>array('type'=>'yesno', 'enabled'=>1),
  28. 'DOCUMENT_COMPLEMENT_TITLE'=>array('type'=>'yesno', 'enabled'=>1),
  29. 'MMIDOCUMENT_ADMIN_SHIPPING'=>array('type'=>'separator','enabled'=>1),
  30. 'SHIPPING_PDF_HIDE_WEIGHT_AND_VOLUME'=>array('type'=>'yesno','enabled'=>1),
  31. 'SHIPPING_PDF_HIDE_VOLUME'=>array('type'=>'yesno','enabled'=>1),
  32. 'SHIPPING_PDF_HIDE_BATCH'=>array('type'=>'yesno','enabled'=>1), // MMI Hack
  33. 'SHIPPING_PDF_HIDE_DELIVERY_DATE'=>array('type'=>'yesno','enabled'=>1), // MMI Hack
  34. 'MAIN_GENERATE_SHIPMENT_WITH_PICTURE'=>array('type'=>'yesno','enabled'=>1),
  35. 'MMI_SHIPPING_PDF_MESSAGE'=>array('type'=>'html','enabled'=>1),
  36. 'SHIPPING_PDF_DISPLAY_AMOUNT_HT'=>array('type'=>'yesno','enabled'=>1),
  37. 'MMIDOCUMENT_ADMIN_DOCUMENTS_ALL'=>array('type'=>'separator','enabled'=>1),
  38. 'MMIDOCUMENTS_PDF_COMMERCIAL'=>array('type'=>'yesno','enabled'=>1),
  39. 'MAIN_DOCUMENTS_QTY_COL_WIDTH'=>array('type'=>'int','enabled'=>1),
  40. 'MAIN_DOCUMENTS_VAT_COL_WIDTH'=>array('type'=>'int','enabled'=>1),
  41. 'MMI_DOCUMENT_PDF_SEPARATE_CONTACTS'=>array('type'=>'yesno','enabled'=>1),
  42. 'MMI_FIELD_CGV_CPV'=>array('type'=>'yesno','enabled'=>1),
  43. 'MMIDOCUMENT_CGP_TITLE'=>array('type'=>'yesno','enabled'=>1),
  44. 'MMIDOCUMENTS_VAT_NOTIF_PDF_DISPLAY'=>array('type'=>'yesno','enabled'=>1),
  45. 'MMI_DOCUMENT_PDF_HEIGHT_CALC'=>array('type'=>'yesno','enabled'=>1),
  46. 'MMIDOCUMENT_ADMIN_PDF_RENAME'=>array('type'=>'separator','enabled'=>1),
  47. 'MMIDOCUMENT_PDF_RENAME'=>array('type'=>'yesno','enabled'=>1),
  48. 'MMIDOCUMENT_PDF_RENAME_UPPERCASE'=>array('type'=>'yesno','enabled'=>1),
  49. 'MMIDOCUMENT_PDF_RENAME_MYSOC'=>array('type'=>'yesno','enabled'=>1),
  50. 'MMIDOCUMENT_PDF_RENAME_THIRDPARTY'=>array('type'=>'yesno','enabled'=>1),
  51. 'MMIDOCUMENT_PDF_RENAME_REF_CUSTOMER'=>array('type'=>'yesno','enabled'=>1),
  52. 'MMIDOCUMENT_ADMIN_SUPPLIER_PROPOSAL'=>array('type'=>'separator','enabled'=>1),
  53. 'MAIN_GENERATE_SUPPLIER_PROPOSAL_HIDE_DESC'=>array('type'=>'yesno','enabled'=>1),
  54. 'MAIN_GENERATE_SUPPLIER_PROPOSAL_HIDE_REF'=>array('type'=>'yesno','enabled'=>1),
  55. 'MMIDOCUMENT_ADMIN_SITUATION_INVOICES'=>array('type'=>'separator','enabled'=>1),
  56. 'MMIDOCUMENT_SITUATION_SHOW_CUMUL'=>array('type'=>'yesno','enabled'=>1),
  57. 'INVOICE_RETAINED_WARRANTY_CUMULATED_SHOW'=>array('type'=>'yesno','enabled'=>1),
  58. 'SITUATION_DISPLAY_100P_PER_LINE_PDF'=>array('type'=>'yesno','enabled'=>1),
  59. 'MMI_DOCUMENT_DISPLAY_NOPDF'=>array('type'=>'separator','enabled'=>1),
  60. 'MMI_DOCUMENT_LINE_EXTRAFIELDS_ALTVIEW'=>array('type'=>'yesno','enabled'=>1),
  61. );
  62. require_once('../../mmicommon/admin/mmisetup_1.inc.php');