setup.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
  3. * Copyright (C) 2022 Mathieu Moulin <mathieu@iprospective.fr>
  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 mmiworkflow/admin/setup.php
  20. * \ingroup mmiworkflow
  21. * \brief MMIWorkflow setup page.
  22. */
  23. // Load Dolibarr environment
  24. require_once '../env.inc.php';
  25. require_once '../main_load.inc.php';
  26. $arrayofparameters = array(
  27. 'SFYCUSTOM_FIELD_CLIENT_PRO'=>array('type'=>'yesno','enabled'=>1),
  28. 'MMI_ORDER_1CLIC_INVOICE_SHIPPING'=>array('type'=>'yesno','enabled'=>1),
  29. 'MMI_ORDER_1CLIC_INVOICE_SHIPPING_AUTOCLOSE'=>array('type'=>'yesno','enabled'=>1),
  30. 'MMI_ORDER_1CLIC_INVOICE'=>array('type'=>'yesno','enabled'=>1),
  31. 'MMI_ORDER_1CLIC_INVOICE_DELAY'=>array('type'=>'yesno','enabled'=>1),
  32. 'MMI_ORDER_1CLIC_INVOICE_EMAIL_AUTO'=>array('type'=>'yesno','enabled'=>1),
  33. 'MMI_ORDER_1CLIC_INVOICE_EMAIL_AUTO_NOPRO'=>array('type'=>'yesno','enabled'=>1),
  34. 'MMI_INVOICE_EMAILSEND'=>array('type'=>'yesno','enabled'=>1),
  35. 'SFYCUSTOM_LOCK'=>array('type'=>'yesno', 'enabled'=>1),
  36. 'MMI_ORDER_DRAFTIFY'=>array('type'=>'yesno', 'enabled'=>1),
  37. 'SHIPPING_PDF_HIDE_WEIGHT_AND_VOLUME'=>array('type'=>'yesno','enabled'=>1),
  38. 'SHIPPING_PDF_HIDE_BATCH'=>array('type'=>'yesno','enabled'=>1), // MMI Hack
  39. 'SHIPPING_PDF_HIDE_DELIVERY_DATE'=>array('type'=>'yesno','enabled'=>1), // MMI Hack
  40. 'SHIPPING_PDF_ANTIGASPI'=>array('type'=>'yesno','enabled'=>1), // MMI Hack
  41. 'MAIN_GENERATE_SHIPMENT_WITH_PICTURE'=>array('type'=>'yesno','enabled'=>1),
  42. 'MMI_SHIPPING_PDF_MESSAGE'=>array('type'=>'html','enabled'=>1),
  43. 'MMI_SHIPPING_PDF_LABEL_BOLD'=>array('type'=>'yesno','enabled'=>1),
  44. 'MMI_ORDER_SET_EXPE_OK'=>array('type'=>'yesno','enabled'=>1),
  45. 'MMI_INVOICE_DRAFTIFY'=>array('type'=>'yesno', 'enabled'=>1),
  46. 'MMI_INVOICE_DRAFTIFY_TYPES'=>array('type'=>'string', 'enabled'=>1),
  47. 'MMI_1CT_FIX'=>array('type'=>'yesno', 'enabled'=>1),
  48. 'MMI_1CT_DIFFLIMIT'=>array('type'=>'decimal', 'enabled'=>1, 'default'=>0.03),
  49. 'MMI_VAT_TX_FIX'=>array('type'=>'yesno', 'enabled'=>1),
  50. 'SFY_ALERT_ORDER_NOT_SHIPPED'=>array('type'=>'yesno', 'enabled'=>1),
  51. 'MMI_MOVEMENT_LIST_ENHANCE'=>array('type'=>'yesno', 'enabled'=>1),
  52. );
  53. require_once '../../mmicommon/admin/mmisetup_1.inc.php';