More elegant and easy to understand printer setup

This commit is contained in:
javierybar
2020-02-20 15:16:17 +01:00
parent b8171cacb1
commit 2942e85e47
8 changed files with 150 additions and 105 deletions

View File

@@ -265,6 +265,10 @@ class modTakePos extends DolibarrModules
*/
public function init($options = '')
{
global $conf,$db;
dolibarr_set_const($db, "TAKEPOS_PRINT_METHOD", "browser", 'chaine', 0, '', $conf->entity);
$this->_load_tables('/takepos/sql/');
$sql = array();