diff --git a/htdocs/admin/supplier_order.php b/htdocs/admin/supplier_order.php index 04f9b61d5a5..6189e2337e2 100644 --- a/htdocs/admin/supplier_order.php +++ b/htdocs/admin/supplier_order.php @@ -55,7 +55,7 @@ $specimenthirdparty->initAsSpecimen(); if ($action == 'updateMask') { $maskconstorder=GETPOST('maskconstorder','alpha'); - $maskvalue=GETPOST('maskvalue','alpha'); + $maskvalue=GETPOST('maskorder','alpha'); if ($maskconstorder) $res = dolibarr_set_const($db,$maskconstorder,$maskvalue,'chaine',0,'',$conf->entity); diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 3a74a2881bf..4b438786d56 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -888,7 +888,7 @@ if ($id > 0) print ''; print ''; //print ''; - print img_picto($langs->trans("ViewCal"),'object_calendar','class="hideonsmartphone"').' '; + print img_picto($langs->trans("ViewCal"),'object_calendar','class="hideonsmartphone"').' '; print ''."\n"; print '
'; print ''; @@ -897,7 +897,7 @@ if ($id > 0) print ''; print ''; //print ''; - print img_picto($langs->trans("ViewCal"),'object_calendarweek','class="hideonsmartphone"').' '; + print img_picto($langs->trans("ViewCal"),'object_calendarweek','class="hideonsmartphone"').' '; print '
'."\n"; print '
'; print ''; @@ -906,7 +906,7 @@ if ($id > 0) print ''; print ''; //print ''; - print img_picto($langs->trans("ViewCal"),'object_calendarday','class="hideonsmartphone"').' '; + print img_picto($langs->trans("ViewCal"),'object_calendarday','class="hideonsmartphone"').' '; print '
'."\n"; print ''; print ''; diff --git a/htdocs/core/lib/agenda.lib.php b/htdocs/core/lib/agenda.lib.php index 433b0fc82e6..dda971668de 100644 --- a/htdocs/core/lib/agenda.lib.php +++ b/htdocs/core/lib/agenda.lib.php @@ -115,13 +115,13 @@ function print_actions_filter($form,$canedit,$status,$year,$month,$day,$showbirt // Buttons print ''; - print img_picto($langs->trans("ViewCal"),'object_calendar','class="hideonsmartphone"').' '; + print img_picto($langs->trans("ViewCal"),'object_calendar','class="hideonsmartphone"').' '; print '
'; - print img_picto($langs->trans("ViewWeek"),'object_calendarweek','class="hideonsmartphone"').' '; + print img_picto($langs->trans("ViewWeek"),'object_calendarweek','class="hideonsmartphone"').' '; print '
'; - print img_picto($langs->trans("ViewDay"),'object_calendarday','class="hideonsmartphone"').' '; + print img_picto($langs->trans("ViewDay"),'object_calendarday','class="hideonsmartphone"').' '; print '
'; - print img_picto($langs->trans("ViewList"),'object_list','class="hideonsmartphone"').' '; + print img_picto($langs->trans("ViewList"),'object_list','class="hideonsmartphone"').' '; print ''; // Legend diff --git a/htdocs/install/mysql/data/llx_20_c_departements.sql b/htdocs/install/mysql/data/llx_20_c_departements.sql index 4d13d502a4d..97281cdc9c3 100644 --- a/htdocs/install/mysql/data/llx_20_c_departements.sql +++ b/htdocs/install/mysql/data/llx_20_c_departements.sql @@ -135,6 +135,8 @@ insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,no insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 2,'972','97209',3,'MARTINIQUE','Martinique'); insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 3,'973','97302',3,'GUYANE','Guyane'); insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 4,'974','97411',3,'REUNION','Réunion'); +insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 6,'976','97601',3,'MAYOTTE','Mayotte'); + -- Provinces Belgium (id country=2) insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'01','',1,'ANVERS','Anvers'); diff --git a/htdocs/install/mysql/migration/3.3.0-3.4.0.sql b/htdocs/install/mysql/migration/3.3.0-3.4.0.sql index 46de4089c75..d6e654da66c 100755 --- a/htdocs/install/mysql/migration/3.3.0-3.4.0.sql +++ b/htdocs/install/mysql/migration/3.3.0-3.4.0.sql @@ -381,3 +381,6 @@ ALTER TABLE llx_user_clicktodial ADD COLUMN url varchar(255) AFTER fk_user; ALTER TABLE llx_fichinterdet ADD COLUMN fk_parent_line integer NULL AFTER fk_fichinter; ALTER TABLE llx_societe_address CHANGE COLUMN tel phone varchar(20); + +insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,localtax1,localtax1_type,note,active) values (143, 14,'5','0','9.975','1','TPS and TVQ rate',1); + diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 632540df203..0a8aed4634f 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -638,16 +638,16 @@ $formproduct = new FormProduct($db); if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { - // ----------------------------------------- - // When used with CANVAS - // ----------------------------------------- - if (empty($object->error) && $id) - { - $object = new Product($db); - $result=$object->fetch($id); - if ($result <= 0) dol_print_error('',$object->error); - } - $objcanvas->assign_values($action, $object->id, $object->ref); // Set value for templates + // ----------------------------------------- + // When used with CANVAS + // ----------------------------------------- + if (empty($object->error) && $id) + { + $object = new Product($db); + $result=$object->fetch($id); + if ($result <= 0) dol_print_error('',$object->error); + } + $objcanvas->assign_values($action, $object->id, $object->ref); // Set value for templates $objcanvas->display_canvas($action); // Show template } else @@ -1315,8 +1315,9 @@ print "\n
\n"; if ($object->id && ($action == '' || $action == 'view') && $object->status) { - print ''; - //print '
'; + //Variable used to check if any text is going to be printed + $html = ''; + //print '
'; // Propals if (! empty($conf->propal->enabled) && $user->rights->propale->creer) @@ -1325,42 +1326,42 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status) $langs->load("propal"); - print '
'; - print ''; - print ''; - print ''; + $html .= ''; + $html .= ''; + $html .= '
'.$langs->trans("AddToOtherProposals").'
'; + $html .= '
'.$langs->trans("AddToOtherProposals").'
'; $var=true; $otherprop = $propal->liste_array(2,1,0); - print '
'; - print ''; - print ''; + $html .= ''; + $html .= ''; + $html .= '
'; if (is_array($otherprop) && count($otherprop)) { $var=!$var; - print ''; - print ''; + $html .= ''; + $html .= ''; } else { - print "'; + $html .= "'; } - print '
'; - print ''; - print $langs->trans("Proposals").''; - print $form->selectarray("propalid", $otherprop, 0, 1); - print '
'.$langs->trans("Quantity").' '; - print ''.$langs->trans("ReductionShort").'(%) '; - print ''; - print ''; - print ''; - print '
'; + $html .= ''; + $html .= $langs->trans("Proposals").''; + $html .= $form->selectarray("propalid", $otherprop, 0, 1); + $html .= '
'.$langs->trans("Quantity").' '; + $html .= ''.$langs->trans("ReductionShort").'(%) '; + $html .= ''; + $html .= ''; + $html .= ''; + $html .= '
"; - print $langs->trans("NoOtherOpenedPropals"); - print '
"; + $html .= $langs->trans("NoOtherOpenedPropals"); + $html .= '
'; - print '
'; + $html .= '
'; + $html .= ''; - print ''; - print ''; + $html .= ''; + $html .= ''; } // Commande @@ -1370,42 +1371,42 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status) $langs->load("orders"); - print ''; - print ''.$langs->trans("AddToOtherOrders").''; - print ''; - print ''; + $html .= ''; + $html .= ''.$langs->trans("AddToOtherOrders").''; + $html .= ''; + $html .= ''; $var=true; $othercom = $commande->liste_array(2, 1, null); - print '
'; - print ''; - print ''; + $html .= ''; + $html .= ''; + $html .= '
'; if (is_array($othercom) && count($othercom)) { $var=!$var; - print ''; - print ''; + $html .= ''; + $html .= ''; } else { - print "'; + $html .= "'; } - print '
'; - print ''; - print $langs->trans("Orders").''; - print $form->selectarray("commandeid", $othercom, 0, 1); - print '
'.$langs->trans("Quantity").' '; - print ''.$langs->trans("ReductionShort").'(%) '; - print ''; - print ''; - print ''; - print '
'; + $html .= ''; + $html .= $langs->trans("Orders").''; + $html .= $form->selectarray("commandeid", $othercom, 0, 1); + $html .= '
'.$langs->trans("Quantity").' '; + $html .= ''.$langs->trans("ReductionShort").'(%) '; + $html .= ''; + $html .= ''; + $html .= ''; + $html .= '
"; - print $langs->trans("NoOtherOpenedOrders"); - print '
"; + $html .= $langs->trans("NoOtherOpenedOrders"); + $html .= '
'; - print '
'; + $html .= ''; + $html .= ''; - print ''; - print ''; + $html .= ''; + $html .= ''; } // Factures @@ -1415,47 +1416,52 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status) $langs->load("bills"); - print ''; - print ''.$langs->trans("AddToOtherOrders").''; - print ''; - print ''; - - $var=true; - $otherinvoice = $invoice->liste_array(2, 1, null); - print '
'; - print ''; - print ''; - if (is_array($otherinvoice) && count($otherinvoice)) - { - $var=!$var; - print ''; - print ''; - } - else - { - print "'; - } - print '
'; - print ''; - print $langs->trans("Invoice").''; - print $form->selectarray("factureid", $otherinvoice, 0, 1); - print '
'.$langs->trans("Quantity").' '; - print ''.$langs->trans("ReductionShort").'(%) '; - print ''; - print ''; - print ''; - print '
"; - print $langs->trans("NoOtherDraftBills"); - print '
'; - print '
'; - - print ''; - print ''; + $html .= ''; + $html .= ''.$langs->trans("AddToOtherOrders").''; + $html .= ''; + $html .= ''; + + $var=true; + $otherinvoice = $invoice->liste_array(2, 1, null); + $html .= '
'; + $html .= ''; + $html .= ''; + if (is_array($otherinvoice) && count($otherinvoice)) + { + $var=!$var; + $html .= ''; + $html .= ''; + } + else + { + $html .= "'; + } + $html .= '
'; + $html .= ''; + $html .= $langs->trans("Invoice").''; + $html .= $form->selectarray("factureid", $otherinvoice, 0, 1); + $html .= '
'.$langs->trans("Quantity").' '; + $html .= ''.$langs->trans("ReductionShort").'(%) '; + $html .= ''; + $html .= ''; + $html .= ''; + $html .= '
"; + $html .= $langs->trans("NoOtherDraftBills"); + $html .= '
'; + $html .= '
'; + + $html .= ''; + $html .= ''; } - print ''; - - print '
'; + //If any text is going to be printed, then we show the table + if (!empty($html)) + { + print ''; + print $html; + print '
'; + print '
'; + } }