List of all SQL mentioned in the code..
Value | Count | File:Line |
---|---|---|
"SELECT COUNT(*) as nb FROM " . $tabletodrop | 1 |
|
"Delete objects of $module" | 1 |
|
"SELECT obj.rowid, obj.fk_product, obj.label, obj.description, obj.product_type as fk_product_type, obj.qty as qty_asked, obj.fk_unit, obj.date_start, obj.date_end" | 1 |
|
"SELECT cd.rowid, cd.fk_product, cd.product_type as type, cd.label, cd.description," | 1 |
|
"Delete objects of " . $module | 1 |
|
"SELECT pb.rowid " | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . $expeditionlinebatch->table_element | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $expeditionlinebatch->table_element . " SET" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . $expeditionlinebatch->table_element . " (" | 1 |
|
" DELETE FROM " . MAIN_DB_PREFIX . $expeditionlinebatch->table_element | 1 |
|
"SELECT ed.fk_elementdet as rowid, sum(ed.qty) as qty" | 1 |
|
"SELECT l.rowid, l.fk_product, l.subprice, l.remise_percent, '' AS sref, l.qty as qty," | 1 |
|
"SELECT ed.rowid, ed.qty, ed.fk_entrepot," | 1 |
|
"SELECT c.rowid, c.ref, c.ref_client as ref_customer, c.fk_statut as status, c.facture as billed, s.nom as name, s.rowid as socid" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "expedition (" | 1 |
|
"SELECT e.rowid, e.entity, e.ref, e.fk_soc as socid, e.date_creation, e.ref_customer, e.ref_ext, e.fk_user_author, e.fk_statut, e.fk_projet as fk_project, e.billed" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'expedition/sending/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'expedition/sending/" . $this->db->escape($this->newref) . "'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('standard_" . strtolower($myTmpObjectKey) . "', '" . $this->db->escape(strtolower($myTmpObjectKey)) . "', " . ((int) $conf->entity) . ")" | 1 |
|
"SELECT rowid as id, firstname, lastname, email" | 1 |
|
"SELECT COUNT(DISTINCT(email)) as nb" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "expedition" | 1 |
|
"DELETE FROM $ef WHERE fk_object IN (SELECT rowid FROM $main WHERE fk_expedition = " . ((int) $this->id) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expedition" | 1 |
|
"SELECT cd.rowid, cd.fk_product, cd.label as custom_label, cd.description, cd.qty as qty_asked, cd.product_type, cd.fk_unit" | 1 |
|
"SELECT em.rowid, em.code, em.libelle as label" | 1 |
|
"SELECT em.rowid, em.code, em.libelle as label, em.description, em.tracking, em.active" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "expedition SET fk_statut = " . self::STATUS_CLOSED | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_stock WHERE reel = 0 AND rowid NOT IN (SELECT fk_product_stock FROM " . MAIN_DB_PREFIX . "product_batch as pb)" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'expedition SET billed = 1' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'expedition SET fk_statut = 1' | 1 |
|
'SELECT ed.rowid, ed.fk_expedition, ed.fk_entrepot, ed.fk_elementdet, ed.element_type, ed.qty, ed.rang' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "expeditiondet (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'myobject/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'myobject/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT c.code, c.label FROM " . MAIN_DB_PREFIX . "c_action_trigger as c ORDER BY c.rang DESC" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'target/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'target/" . $this->db->escape($this->newref) . "'" | 1 |
|
'SELECT cr.rowid, cr.date_sync, cr.rate, cr.rate_indirect, cr.entity, m.code, m.name' | 1 |
|
"select MAX(name) as name from " . MAIN_DB_PREFIX . "const" | 1 |
|
"select name, value, note from " . MAIN_DB_PREFIX . "const" | 1 |
|
"SELECT label FROM " . MAIN_DB_PREFIX . "c_currencies WHERE code_iso = '" . $this->db->escape($code) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "multicurrency WHERE code = '" . $dbs->escape($code) . "' AND entity = " . ((int) $conf->entity) | 1 |
|
"SELECT m.rowid, mc.rate FROM " . MAIN_DB_PREFIX . "multicurrency m" | 1 |
|
"SELECT multicurrency_tx FROM " . MAIN_DB_PREFIX . $table . " WHERE rowid = " . ((int) $fk_facture) | 1 |
|
"SELECT cr.rowid, cr.rate, cr.rate_indirect, cr.date_sync, cr.fk_multicurrency, cr.entity" | 1 |
|
"SELECT cd.rowid, cd.statut, cd.label as label_det, cd.fk_product, cd.product_type, cd.description, cd.price_ht, cd.qty," | 1 |
|
"SELECT c.rowid, c.ref, c.datec," | 1 |
|
"SELECT cd.rowid" | 1 |
|
"SELECT cd.rowid, cd.date_ouverture_prevue as datefin" | 1 |
|
"SELECT count(c.rowid) as nb" | 1 |
|
'SELECT c.rowid, c.ref_customer, cd.rowid as lid, cd.date_fin_validite, p.duration' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "contratdet SET date_fin_validite = '" . $this->db->idate($newdate) . "'" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "contratdet SET statut = " . ((int) $this->statut) . "," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "contratdet SET statut = " . ((int) ContratLigne::STATUS_CLOSED) . "," | 1 |
|
"SELECT c.rowid, c.ref," | 1 |
|
"SELECT c.ref, c.fk_soc as socid," | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "intracommreport WHERE ref='" . $db->escape($object->label) . "'" | 1 |
|
'SELECT i.rowid, i.type_declaration, i.type_export, i.periods, i.mode, i.entity' | 1 |
|
"SELECT f.ref as refinvoice, f.total_ht" | 1 |
|
"SELECT f.ref_supplier as refinvoice, f.total_ht" | 1 |
|
"SELECT p.customcode FROM " . MAIN_DB_PREFIX . $tabledet . " d INNER JOIN " . MAIN_DB_PREFIX . $table . " f ON (f.rowid = d." . $this->db->escape($field_link) . ") INNER JOIN " . MAIN_DB_PREFIX . "product p ON (p.rowid = d.fk_product) WHERE d.fk_product IS NOT NULL AND f.entity = " . ((int) $conf->entity) . " AND " . $more_sql . " = '" . $this->db->escape($res->refinvoice) . "' AND d.total_ht = ( SELECT MAX(d.total_ht) FROM " . MAIN_DB_PREFIX . $tabledet . " d INNER JOIN " . MAIN_DB_PREFIX . $table . " f ON (f.rowid = d." . $this->db->escape($field_link) . ") WHERE d.fk_product IS NOT NULL AND " . $more_sql . " = '" . $this->db->escape($res->refinvoice) . "' AND d.fk_product NOT IN ( SELECT fk_product FROM " . MAIN_DB_PREFIX . "categorie_product WHERE fk_categorie = " . ((int) $categ_fraisdeport->id) . " ) )" | 1 |
|
"SELECT MAX(numero_declaration) as max_declaration_number" | 1 |
|
'SELECT COUNT(*) as nb' | 1 |
|
'SELECT nom as name, reponses' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'opensurvey_user_studs (nom, id_sondage, reponses, date_creation)' | 1 |
|
'SELECT s.reponses' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'opensurvey_user_studs' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'opensurvey_user_studs' | 1 |
|
"SELECT c.rowid as cid, c.ref, c.statut as cstatut, c.ref_customer, c.ref_supplier," | 1 |
|
"SELECT p.id_sondage as rowid, p.fk_user_creat, p.format, p.date_fin, p.status, p.titre as title, p.nom_admin, p.tms," | 1 |
|
'select COUNT(*) as nb from ' . MAIN_DB_PREFIX . "opensurvey_user_studs where id_sondage='" . $db->escape($obj->rowid) . "'" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "contrat SET ref = '" . $this->db->escape($num) . "', statut = 1" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'contract/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'contract/" . $this->db->escape($this->newref) . "'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "opensurvey_sondage(" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "contrat SET statut = 0" | 1 |
|
"SELECT rowid, statut as status, ref, fk_soc as thirdpartyid," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "opensurvey_sondage SET" | 1 |
|
"SELECT p.label as product_label, p.description as product_desc, p.ref as product_ref, p.fk_product_type as product_type," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "contrat (datec, fk_soc, fk_user_author, date_contrat," | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "contrat SET ref='(PROV" . $this->id . ")' WHERE rowid=" . ((int) $this->id) | 1 |
|
"SELECT cdl.rowid as cdlrowid " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "contratdet_log " | 1 |
|
"DELETE FROM " . $ef . " WHERE fk_object IN (SELECT rowid FROM " . $main . " WHERE fk_contrat = " . ((int) $this->id) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "contratdet" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . "ecm_files WHERE src_object_type = '" . $this->db->escape($this->table_element . (empty($this->module) ? "" : "@" . $this->module)) . "' AND src_object_id = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "contrat" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "contrat SET" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . "opensurvey_comments WHERE id_sondage = '" . $this->db->escape($numsondage) . "'" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . "opensurvey_user_studs WHERE id_sondage = '" . $this->db->escape($numsondage) . "'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "opensurvey_sondage" | 1 |
|
"SELECT id_users, nom as name, reponses" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "contratdet set description = '" . $this->db->escape($desc) . "'" | 1 |
|
'SELECT id_comment, usercomment, comment' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "opensurvey_comments (id_sondage, comment, usercomment, date_creation, ip)" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'opensurvey_comments WHERE id_comment = ' . ((int) $id_comment) . ' AND id_sondage = "' . $this->db->escape($this->id_sondage) . '"' | 1 |
|
" SELECT COUNT(id_users) as nb FROM " . MAIN_DB_PREFIX . "opensurvey_user_studs" | 1 |
|
"SELECT cp.rowid, cp.ref, cp.fk_user, cp.date_debut, cp.date_fin, cp.fk_type, cp.description, cp.halfday, cp.statut as status" | 1 |
|
' SELECT DISTINCT u.rowid,u.lastname,u.firstname from ' . MAIN_DB_PREFIX . 'user as u' | 1 |
|
' SELECT rowid, nom from ' . MAIN_DB_PREFIX . 'usergroup WHERE entity IN (' . getEntity('usergroup') . ')' | 1 |
|
' SELECT u.rowid, u.lastname, u.firstname from ' . MAIN_DB_PREFIX . 'user as u' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "holiday(" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "holiday SET ref='" . $this->db->escape($initialref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'holiday/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'holiday/" . $this->db->escape($this->newref) . "'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "holiday" | 1 |
|
"SELECT cp.rowid, cp.date_debut as date_start, cp.date_fin as date_end, cp.halfday, cp.statut as status" | 1 |
|
"SELECT value" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "holiday_config(name, value)" | 1 |
|
"SELECT nb_holiday FROM " . MAIN_DB_PREFIX . "holiday_users" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "holiday_users SET" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "holiday_users(nb_holiday, fk_user, fk_type) VALUES (" | 1 |
|
"SELECT nb_holiday" | 1 |
|
"SELECT DISTINCT cpu.fk_user" | 1 |
|
"SELECT cpu.fk_type, cpu.nb_holiday, u.rowid, u.lastname, u.firstname, u.gender, u.photo, u.employee, u.statut as status, u.fk_user" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "holiday_logs (" | 1 |
|
"SELECT rowid, code, label, affect, delay, newbymonth" | 1 |
|
"SELECT f.rowid, f.statut as status," | 1 |
|
"SELECT count(h.rowid) as nb" | 1 |
|
"SELECT h.rowid, h.date_debut" | 1 |
|
"SELECT login FROM " . MAIN_DB_PREFIX . "adherent WHERE login='" . $db->escape($login) . "'" | 1 |
|
"SELECT rowid, code, label from " . MAIN_DB_PREFIX . "c_country" | 1 |
|
"SELECT d.rowid, d.firstname, d.lastname, d.societe, d.fk_adherent_type as type," | 1 |
|
"SELECT libelle FROM " . MAIN_DB_PREFIX . "adherent_type WHERE libelle = '" . $db->escape($object->label) . "'" | 1 |
|
"SELECT d.rowid, d.libelle as label, d.subscription, d.amount, d.caneditamount, d.vote, d.statut as status, d.morphy, d.duration" | 1 |
|
"SELECT d.rowid, d.ref, d.entity, d.login, d.firstname, d.lastname, d.societe as company, d.fk_soc," | 1 |
|
"SELECT nom as name" | 1 |
|
"SELECT d.rowid, d.ref, d.firstname, d.lastname, d.login, d.societe as company, d.datefin," | 1 |
|
"SELECT d.rowid, d.login, d.firstname, d.lastname, d.societe, d.photo, d.statut as status," | 1 |
|
"SELECT date_format(p.dateadh,'%m') as dm, count(*)" | 1 |
|
"SELECT date_format(p.dateadh,'%Y') as dm, count(*)" | 1 |
|
"SELECT date_format(p.dateadh,'%m') as dm, sum(p." . $this->field . ")" | 1 |
|
"SELECT date_format(p.dateadh,'%m') as dm, avg(p." . $this->field . ")" | 1 |
|
"SELECT date_format(p.dateadh,'%Y') as year, count(*) as nb, sum(" . $this->field . ") as total, avg(" . $this->field . ") as avg" | 1 |
|
"SELECT t.rowid as fk_adherent_type, t.libelle as label" | 1 |
|
"SELECT c.rowid as fk_categorie, c.label as label" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "adherent" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "user SET" | 1 |
|
"SELECT libelle as label" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "user SET fk_member = " . ((int) $this->id) . " WHERE rowid = " . ((int) $this->user_id) | 1 |
|
"SELECT rowid, datec as dateop, dateadh as datedeb, datef as datefin" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_member WHERE fk_member = " . ((int) $rowid) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "subscription WHERE fk_adherent = " . ((int) $rowid) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "adherent WHERE rowid = " . ((int) $rowid) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "user SET fk_member = " . ((int) $this->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "adherent SET fk_soc = null" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "adherent SET fk_soc = " . ($thirdpartyid > 0 ? (int) $thirdpartyid : 'null') | 1 |
|
"SELECT d.rowid, d.ref, d.ref_ext, d.civility as civility_code, d.gender, d.firstname, d.lastname," | 1 |
|
"SELECT c.rowid, c.fk_adherent, c.fk_type, c.subscription, c.note as note_public, c.fk_bank," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "subscription SET fk_bank=" . ((int) $insertid) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'subscription SET fk_bank=' . ((int) $bank_line_id) | 1 |
|
"SELECT count(a.rowid) as nb" | 1 |
|
"SELECT a.rowid, a.datefin, a.statut" | 1 |
|
'SELECT a.rowid, a.datec as datec,' | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'adherent' | 1 |
|
"SELECT lang, label, description, email" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "adherent_type_lang" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "adherent_type (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "adherent_type " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "adherent_type" | 1 |
|
"SELECT d.rowid, d.libelle as label, d.morphy, d.statut as status, d.duration, d.subscription, d.amount, d.caneditamount, d.mail_valid, d.note as note_public, d.vote" | 1 |
|
"SELECT rowid, libelle as label" | 1 |
|
"SELECT rowid, amount" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "subscription (fk_adherent, fk_type, datec, dateadh, datef, subscription, note)" | 1 |
|
"SELECT rowid, fk_type, fk_adherent, datec," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "subscription SET " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "subscription WHERE rowid = " . ((int) $this->id) | 1 |
|
'SELECT c.rowid, c.datec,' | 1 |
|
"SELECT COUNT(DISTINCT d.rowid) as nb, COUNT(s.rowid) as nbsubscriptions, MAX(d.datevalid) as lastdate, MAX(s.dateadh) as lastsubscriptiondate, c.code, c.label" | 1 |
|
"SELECT COUNT(DISTINCT d.rowid) as nb, COUNT(s.rowid) as nbsubscriptions, MAX(d.datevalid) as lastdate, MAX(s.dateadh) as lastsubscriptiondate, co.code, co.label, c.nom as label2" | 1 |
|
"SELECT COUNT(DISTINCT d.rowid) as nb, COUNT(s.rowid) as nbsubscriptions, MAX(d.datevalid) as lastdate, MAX(s.dateadh) as lastsubscriptiondate, co.code, co.label, r.nom as label2" | 1 |
|
"SELECT COUNT(DISTINCT d.rowid) as nb, COUNT(s.rowid) as nbsubscriptions, MAX(d.datevalid) as lastdate, MAX(s.dateadh) as lastsubscriptiondate, c.code, c.label, d.town as label2" | 1 |
|
'SELECT f.rowid as doc_id, f.ref as doc_number, \'1\' as doc_type, f.datec as dateprint, f.fk_statut as status, tc.libelle as type_contact_label, ' | 1 |
|
'SELECT f.rowid as doc_id, f.ref as doc_number, f.type as doc_type, f.datef as dateprint, f.fk_statut as status, f.paye as paid, tc.libelle as type_contact_label, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.datep as dateprint, c.fk_statut as status, tc.libelle as type_contact_label, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.date_commande as dateprint, c.fk_statut as status, tc.libelle as type_contact_label, ' | 1 |
|
'SELECT f.rowid as doc_id, f.ref as doc_number, \'1\' as doc_type, f.datef as dateprint, f.fk_statut as status, f.paye as paid, tc.libelle as type_contact_label, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.date_valid as dateprint, c.fk_statut as status, tc.libelle as type_contact_label, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.date_contrat as dateprint, d.statut as status, tc.libelle as type_contact_label, ' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.name_alias as alias," | 1 |
|
"SELECT count(sp.rowid) as nb" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "socpeople (" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "user_alert WHERE type = 1 AND fk_contact = " . ((int) $id) . " AND fk_user = " . ((int) $user->id) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "user_alert(type, fk_contact, fk_user) " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "user_alert " | 1 |
|
"SELECT c.rowid, c.entity, c.fk_soc, c.ref_ext, c.civility as civility_code, c.name_alias, c.lastname, c.firstname," | 1 |
|
"SELECT u.rowid " | 1 |
|
"SELECT tc.element, count(ec.rowid) as nb" | 1 |
|
"SELECT ec.rowid" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_contacts WHERE fk_socpeople = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "notify_def WHERE fk_contact = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_contact WHERE fk_socpeople = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "socpeople" | 1 |
|
"SELECT c.rowid, c.datec as datec, c.fk_user_creat," | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe ORDER BY rowid LIMIT 1" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "socpeople" | 1 |
|
"SELECT tc.rowid, tc.element, tc.source, tc.code, tc.libelle as label, sc.rowid as contactroleid, sc.fk_soc as socid" | 1 |
|
"SELECT sc.fk_socpeople as id, sc.fk_c_type_contact" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_contacts WHERE fk_socpeople=" . ((int) $this->id) . " AND entity IN (" . getEntity("contact") . ")" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_contacts" | 1 |
|
"SELECT id, code, libelle as label, picto FROM " . MAIN_DB_PREFIX . "c_stcommcontact" | 1 |
|
"SELECT p.rowid, p.num_payment, p.datep as dp," | 1 |
|
"SELECT l.rowid, l.label, l.capital, l.datestart, l.dateend, l.paid," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "loan_schedule SET fk_bank = 0 WHERE fk_bank = " . ((int) $payment->fk_bank) | 1 |
|
'SELECT l.rowid as id, l.label, l.paid, l.capital as capital, pl.amount_capital, pl.amount_insurance, pl.amount_interest' | 1 |
|
"SELECT SUM(amount_capital) as total" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . $this->table_element . " (fk_loan, datec, datep, amount_capital, amount_insurance, amount_interest," | 1 |
|
"SELECT l.rowid" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "payment_loan " | 1 |
|
"SELECT fk_loan,datec,tms,datep,amount_capital,amount_insurance,amount_interest,fk_typepayment,num_payment,note_private,note_public,fk_bank,fk_user_creat,fk_user_modif" | 1 |
|
"SELECT p.datep" | 1 |
|
"SELECT l.rowid, l.label, l.capital, l.datestart, l.dateend, l.nbterm, l.rate, l.note_private, l.note_public, l.insurance_amount," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "loan (label, fk_bank, capital, datestart, dateend, nbterm, rate, note_private, note_public," | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "payment_loan where fk_loan=" . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "loan where rowid=" . ((int) $this->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "loan" | 1 |
|
'SELECT sum(amount_capital) as amount' | 1 |
|
'SELECT l.rowid, l.datec, l.fk_user_author, l.fk_user_modif,' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "payment_loan (fk_loan, datec, datep, amount_capital, amount_insurance, amount_interest," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_loan SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "payment_loan" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_loan SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id) | 1 |
|
"SELECT COUNT(DISTINCT pav.rowid) AS nb_of_values, COUNT(DISTINCT pac2v.fk_prod_combination) AS nb_products, " | 1 |
|
"SELECT COUNT(*) as nbtotalofrecords FROM" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_attribute_combination2val (fk_prod_combination, fk_prod_attr, fk_prod_attr_val) VALUES(" . (int) $this->fk_prod_combination . ", " . (int) $this->fk_prod_attr . ", " . (int) $this->fk_prod_attr_val . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_attribute_combination2val WHERE fk_prod_combination = " . (int) $fk_combination | 1 |
|
"SELECT td.rowid, td.fk_product_attribute, td.ref, td.value, td.position" | 1 |
|
"SELECT COUNT(*) AS nb FROM " . MAIN_DB_PREFIX . "product_attribute_combination2val WHERE fk_prod_attr = " . ((int) $this->id) | 1 |
|
"SELECT count(rowid) FROM " . MAIN_DB_PREFIX . $this->table_element | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . $this->table_element | 1 |
|
"SELECT position FROM " . MAIN_DB_PREFIX . $this->table_element | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element . " SET position = " . ((int) ($position - 1)) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element . " SET position = " . ((int) ($position + 1)) | 1 |
|
"SELECT max(position) FROM " . MAIN_DB_PREFIX . $this->table_element | 1 |
|
"SELECT rowid, fk_product_parent, fk_product_child, variation_price, variation_price_percentage, variation_weight, variation_ref_ext FROM " . MAIN_DB_PREFIX . "product_attribute_combination WHERE rowid = " . ((int) $rowid) . " AND entity IN (" . getEntity('product') . ")" | 1 |
|
"SELECT rowid, fk_product_parent, fk_product_child, variation_price, variation_price_percentage, variation_weight" | 1 |
|
"SELECT pac.rowid, pac.fk_product_parent, pac.fk_product_child, pac.variation_price, pac.variation_price_percentage, pac.variation_ref_ext, pac.variation_weight" | 1 |
|
"SELECT count(rowid) as nb FROM " . MAIN_DB_PREFIX . "product_attribute_combination WHERE fk_product_parent = " . ((int) $fk_product_parent) . " AND entity IN (" . getEntity('product') . ")" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_attribute_combination" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product_attribute_combination" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_attribute_combination_price_level WHERE fk_product_attribute_combination = " . (int) $this->id | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_attribute_combination WHERE rowid = " . (int) $this->id | 1 |
|
"SELECT DISTINCT c2v.fk_prod_attr, a.position" | 1 |
|
'SELECT pav.value AS label' | 1 |
|
"SELECT rowid id" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $this->table_element . " WHERE rowid = " . (int) $this->id | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $this->table_element . " WHERE fk_product_attribute_combination = " . (int) $fk_product_attribute_combination | 1 |
|
"SELECT rowid, fk_product_attribute, ref, value" | 1 |
|
"SELECT COUNT(*) AS nb FROM " . MAIN_DB_PREFIX . "product_attribute_combination2val WHERE fk_prod_attr_val = " . ((int) $this->id) | 1 |
|
"SELECT b.rowid, b.dateo as do, b.datev as dv, b.amount, b.amount_main_currency, b.label, b.rappro, b.num_releve, b.num_chq, b.fk_type, b.fk_account," | 1 |
|
"SELECT cchgsoc.accountancy_code" | 1 |
|
'SELECT pl.amount_capital, pl.amount_insurance, pl.amount_interest, l.accountancy_account_capital, l.accountancy_account_insurance, l.accountancy_account_interest' | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "bank_account WHERE entity = " . ((int) $conf->entity) . " AND fk_accountancy_journal IS NULL AND clos=0" | 1 |
|
"SELECT payfac.fk_facture as id, " . $db->ifsql('f1.rowid IS NULL', 'f.ref', 'f1.ref') . " as ref" | 1 |
|
"SELECT payfac.fk_facture as id, f.ref as ref" | 1 |
|
'SELECT payfac.fk_facturefourn as id, f.ref' | 1 |
|
'SELECT e.rowid as id, e.ref' | 1 |
|
'SELECT s.rowid as ref' | 1 |
|
'SELECT sc.rowid as ref' | 1 |
|
'SELECT payd.fk_donation as ref' | 1 |
|
'SELECT l.rowid as ref' | 1 |
|
"SELECT er.rowid, er.ref, er.date_debut as de, er.date_fin as df," | 1 |
|
"SELECT fk_expensereport, COUNT(erd.rowid) as nb" | 1 |
|
"SELECT f.rowid, f.ref as ref, f.type, f.datef as df, f.libelle as label, f.ref_supplier, f.date_lim_reglement as dlr, f.close_code, f.vat_reverse_charge," | 1 |
|
"SELECT f.rowid, f.ref, f.type, f.situation_cycle_ref, f.datef as df, f.ref_client, f.date_lim_reglement as dlr, f.close_code, f.retained_warranty, f.revenuestamp," | 1 |
|
"SELECT accountancy_code_sell FROM " . MAIN_DB_PREFIX . "c_revenuestamp" | 1 |
|
"SELECT t.numero_compte, (SUM(t.debit) - SUM(t.credit)) as opening_balance" | 1 |
|
"SELECT er.ref, er.rowid as facid, erd.fk_c_type_fees, erd.comments, erd.rowid, erd.fk_code_ventilation," | 1 |
|
"SELECT er.ref, er.rowid as erid," | 1 |
|
"SELECT erd.rowid, accnt.rowid as suggestedid" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "expensereport_det" | 1 |
|
"SELECT '" . $db->escape($langs->trans("TotalExpenseReport")) . "' AS label," | 1 |
|
"SELECT er.ref, er.rowid as erid, er.date_debut, er.date_valid," | 1 |
|
"SELECT pcg_version FROM " . MAIN_DB_PREFIX . "accounting_system WHERE rowid = " . ((int) getDolGlobalInt('CHARTOFACCOUNTS')) | 1 |
|
"SELECT pcg_version FROM " . MAIN_DB_PREFIX . "accounting_system WHERE rowid=" . ((int) getDolGlobalInt('CHARTOFACCOUNTS')) | 1 |
|
"SELECT DISTINCT pcg_type FROM " . MAIN_DB_PREFIX . "accounting_account" | 1 |
|
"SELECT f.rowid, f.label, f.date_start, f.date_end, f.statut as status, f.entity" | 1 |
|
'SELECT code FROM ' . MAIN_DB_PREFIX . 'c_country as c, ' . MAIN_DB_PREFIX . 'accounting_system as a' | 1 |
|
"SELECT aa.rowid, aa.fk_pcg_version, aa.pcg_type, aa.account_number, aa.account_parent, aa.label, aa.labelshort, aa.fk_accounting_category," | 1 |
|
"SELECT a.rowid, a.pcg_version, a.label, a.active, c.code as country_code" | 1 |
|
"SELECT a.rowid as rowid, a.code as code, a.label, a.range_account, a.category_type, a.formula, a.position as position, a.fk_country as country_id, c.code as country_code, c.label as country, a.active FROM " . MAIN_DB_PREFIX . "c_accounting_category as a, " . MAIN_DB_PREFIX . "c_country as c WHERE a.fk_country=c.rowid and c.active=1" | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET active = 0 WHERE code = '" . $db->escape($code) . "'" | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET favorite = 1 WHERE " . $db->sanitize($rowidcol) . " = " . ((int) $rowid) | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET favorite = 1 WHERE code = '" . $db->escape($code) . "'" | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET favorite = 0 WHERE " . $db->sanitize($rowidcol) . " = " . ((int) $rowid) | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET favorite = 0 WHERE code = '" . $db->escape($code) . "'" | 1 |
|
"SELECT a.rowid as rowid, a.code as code, a.label, a.nature, a.active FROM " . MAIN_DB_PREFIX . "accounting_journal as a" | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET active = 0 WHERE code='" . $db->escape($code) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "product_perentity" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_perentity (fk_product, entity, " . $db->sanitize($accountancy_field_name) . ")" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product_perentity" | 1 |
|
" UPDATE " . MAIN_DB_PREFIX . "product" | 1 |
|
"SELECT p.rowid, p.ref, p.label, p.description, p.tosell, p.tobuy, p.tva_tx," | 1 |
|
"SELECT s.rowid as rowid, pcg_version, s.label, s.fk_country as country_id, c.code as country_code, c.label as country, s.active FROM " . MAIN_DB_PREFIX . "accounting_system as s, " . MAIN_DB_PREFIX . "c_country as c WHERE s.fk_country=c.rowid and c.active=1" | 1 |
|
"SELECT MAX(" . $db->sanitize($tabrowid[$id]) . ") as newid FROM " . $db->sanitize($tabname[$id]) | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET active = 1 WHERE rowid = " . ((int) $rowid) | 1 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET active = 0 WHERE rowid = " . ((int) $rowid) | 1 |
|
"SELECT sa.rowid, sa.nom as label, sa.code_compta as subaccount, '1' as type, sa.entity, sa.client as nature" | 1 |
|
" SELECT sa.rowid, sa.nom as label, sa.code_compta_fournisseur as subaccount, '2' as type, sa.entity, '0' as nature FROM " . MAIN_DB_PREFIX . "societe sa" | 1 |
|
" SELECT u.rowid, u.lastname as label, u.accountancy_code as subaccount, '3' as type, u.entity, '0' as nature FROM " . MAIN_DB_PREFIX . "user u" | 1 |
|
"SELECT f.ref as ref, f.rowid as facid, l.fk_product, l.description, l.rowid, l.fk_code_ventilation, " | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture_fourn_det" | 1 |
|
"SELECT f.rowid as facid, f.ref as ref, f.ref_supplier, f.type as ftype, f.libelle as invoice_label, f.datef, f.fk_soc," | 1 |
|
"UPDATE " . $db->prefix( ) . "facture_fourn_det as fd" | 1 |
|
"UPDATE " . $db->prefix( ) . "facture_fourn_det" | 1 |
|
"SELECT '" . $db->escape($langs->trans("CAHTF")) . "' AS label," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "accounting_system" | 1 |
|
"SELECT a.rowid as rowid, a.datec, a.tms, a.fk_pcg_version, a.pcg_type, a.account_number, a.account_parent, a.label, a.labelshort, a.fk_accounting_category, a.fk_user_author, a.fk_user_modif, a.active, a.reconcilable" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "accounting_account(" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "accounting_account" | 1 |
|
'SELECT a.rowid, a.datec, a.fk_user_author, a.fk_user_modif, a.tms as date_modification' | 1 |
|
"SELECT piece_num" | 1 |
|
"SELECT MAX(piece_num)+1 as maxpiecenum" | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . $this->table_element . $mode . ' (' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . $this->table_element . $mode . ' SET' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element . $mode | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element . $mode | 1 |
|
"SELECT piece_num, doc_date, code_journal, journal_label, doc_ref, doc_type," | 1 |
|
"SELECT MAX(piece_num)+1 as max FROM " . MAIN_DB_PREFIX . $this->table_element . $mode | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element . '_tmp WHERE piece_num = ' . ((int) $piece_num) . ' AND entity = ' . ((int) $conf->entity) . " AND numero_compte IS NULL AND debit = 0 AND credit = 0" | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . $this->table_element . ' (doc_date, doc_type,' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . $this->table_element . '_tmp (doc_date, doc_type,' | 1 |
|
"SELECT DISTINCT ab.numero_compte as account_number, aa.label as label, aa.rowid as rowid, aa.fk_pcg_version" | 1 |
|
"SELECT root.rowid, root.account_number, root.label as label," | 1 |
|
"SELECT aa.account_number, aa.label, aa.rowid, aa.fk_pcg_version, cat.label as category" | 1 |
|
"SELECT rowid, label, date_start, date_end, statut" | 1 |
|
"SELECT YEAR(b.doc_date) as year" | 1 |
|
'SELECT t.rowid' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_accounting_category(" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "c_accounting_category SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "c_accounting_category" | 1 |
|
"SELECT t.rowid, t.account_number, t.label" | 1 |
|
"SELECT aa.account_number as numero_compte, aa.label as label_compte" | 1 |
|
"SELECT aa.rowid, aa.account_number" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "accounting_account as aa" | 1 |
|
"SELECT SUM(t.debit) as debit, SUM(t.credit) as credit" | 1 |
|
"SELECT t.rowid, t.account_number, t.label as account_label," | 1 |
|
"SELECT c.rowid, c.code, c.label, c.formula, c.position, c.category_type, c.sens" | 1 |
|
"SELECT rowid, code, label, nature, active" | 1 |
|
"SELECT ad.fk_asset AS rowid, a.ref AS asset_ref, a.label AS asset_label, a.acquisition_value_ht AS asset_acquisition_value_ht" | 1 |
|
"SELECT DISTINCT bk.rowid, bk.doc_date, bk.doc_type, bk.doc_ref, bk.subledger_account, " | 1 |
|
'SELECT DISTINCT bk.rowid, facf.ref, facf.ref_supplier, payf.fk_bank, facf.rowid as fact_id' | 1 |
|
'SELECT bk.rowid, facf.ref, facf.ref_supplier ' | 1 |
|
'SELECT DISTINCT bk.rowid, fac.ref, fac.ref, pay.fk_bank, fac.rowid as fact_id' | 1 |
|
'SELECT bk.rowid, fac.ref, fac.ref_supplier ' | 1 |
|
"SELECT DISTINCT ab2.lettering_code" | 1 |
|
"SELECT SUM(ABS(debit)) as deb, SUM(ABS(credit)) as cred FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping WHERE " | 1 |
|
"SELECT DISTINCT ab.doc_type, ab.fk_doc" | 1 |
|
" SELECT rowid" | 1 |
|
"SELECT DISTINCT ab.rowid, ab.piece_num, ab.debit, ab.credit, ab.lettering_code" | 1 |
|
" SELECT bpn.rowid" | 1 |
|
" SELECT dpn.rowid" | 1 |
|
"SELECT DISTINCT dp." . $this->db->sanitize($doc_type_info['doc_payment_table_fk_doc']) . " AS fk_doc" | 1 |
|
"SELECT DISTINCT p." . $this->db->sanitize($doc_type_info['payment_table_fk_bank']) . " AS fk_doc" | 1 |
|
"SELECT DISTINCT tl2." . $this->db->sanitize($linked_info['fk_link']) . " AS fk_link, tl2." . $this->db->sanitize($linked_info['fk_doc']) . " AS fk_doc" | 1 |
|
"SELECT code_client, fk_forme_juridique, nom, address, zip, town, fk_pays, phone, siret FROM " . MAIN_DB_PREFIX . "societe" | 1 |
|
'SELECT f.ref, s.nom FROM ' . MAIN_DB_PREFIX . 'facture as f' | 1 |
|
'SELECT ff.ref, s.nom FROM ' . MAIN_DB_PREFIX . 'facture_fourn as ff' | 1 |
|
"SELECT f.ref, f.rowid as facid, l.fk_product, l.description, l.price," | 1 |
|
"SELECT f.rowid as facid, f.ref as ref, f.type as ftype, f.situation_cycle_ref, f.datef, f.ref_client," | 1 |
|
"UPDATE " . $db->prefix( ) . "facturedet as fd" | 1 |
|
"SELECT f.rowid as facid, f.ref as ref, f.datef, f.type as ftype, f.situation_cycle_ref, f.fk_facture_source," | 1 |
|
"SELECT '" . $db->escape($langs->trans("TotalVente")) . "' AS total," | 1 |
|
"SELECT f.rowid as facid, f.ref, f.datef, f.type as ftype, f.situation_cycle_ref, f.fk_facture_source," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const(name, value, type, visible, note, entity) values(" . $db->encrypt('MAIN_VERSION_FIRST_INSTALL') . ", " . $db->encrypt($targetversion) . ", 'chaine', 0, 'Dolibarr version when first install', 0)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE " . $db->decrypt('name') . " = 'MAIN_VERSION_LAST_INSTALL'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const(name,value,type,visible,note,entity) values(" . $db->encrypt('MAIN_VERSION_LAST_INSTALL') . ", " . $db->encrypt($targetversion) . ", 'chaine', 0, 'Dolibarr version when last install', 0)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE " . $db->decrypt('name') . " = 'MAIN_REMOVE_INSTALL_WARNING'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const(name,value,type,visible,note,entity) VALUES (" . $db->encrypt('MAIN_LANG_DEFAULT') . ", " . $db->encrypt($setuplang) . ", 'chaine', 0, 'Default language', 1)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE " . $db->decrypt('name') . " = 'MAIN_VERSION_LAST_UPGRADE'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const(name, value, type, visible, note, entity) VALUES (" . $db->encrypt('MAIN_VERSION_LAST_UPGRADE') . ", " . $db->encrypt($targetversion) . ", 'chaine', 0, 'Dolibarr version for last upgrade', 0)" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "const SET VALUE = 'torefresh' WHERE name = 'MAIN_FIRST_PING_OK_ID'" | 1 |
|
"SELECT p.rowid, p.fk_facture, p.amount" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "paiement SET fk_facture = 0 WHERE rowid = " . ((int) $row[$i][0]) | 1 |
|
"SELECT c.rowid as cref, c.date_contrat, c.statut, c.fk_product, c.fk_facture, c.fk_user_author," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "contratdet (" | 1 |
|
"SELECT ba.rowid as barowid, bb.rowid as bbrowid" | 1 |
|
"update " . MAIN_DB_PREFIX . "contrat set date_contrat=tms where date_contrat is null" | 1 |
|
"update " . MAIN_DB_PREFIX . "contrat set datec=tms where datec is null" | 1 |
|
"SELECT c.rowid as cref, c.datec, c.date_contrat, MIN(cd.date_ouverture) as datemin" | 1 |
|
"update " . MAIN_DB_PREFIX . "contrat set datec=date_contrat where datec is null or datec > date_contrat" | 1 |
|
"SELECT c.rowid as cref FROM " . MAIN_DB_PREFIX . "contrat as c, " . MAIN_DB_PREFIX . "contratdet as cd" | 1 |
|
'SELECT rowid, fk_facture_fourn, amount' | 1 |
|
'SELECT fk_paiementfourn, fk_facturefourn' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'paiementfourn_facturefourn SET ' | 1 |
|
"SELECT fd.rowid, fd.qty, fd.subprice, fd.remise_percent, fd.tva_tx as vatrate, fd.total_ttc, fd.info_bits," | 1 |
|
"SELECT pd.rowid, pd.qty, pd.subprice, pd.remise_percent, pd.tva_tx as vatrate, pd.info_bits," | 1 |
|
" insert into " . MAIN_DB_PREFIX . "document_model(nom,type) values('crabe','invoice')" | 1 |
|
" insert into " . MAIN_DB_PREFIX . "document_model(nom,type) values('einstein','order')" | 1 |
|
" insert into " . MAIN_DB_PREFIX . "document_model(nom,type) values('rouget','shipping')" | 1 |
|
"SELECT e.rowid, e.fk_commande FROM " . MAIN_DB_PREFIX . "expedition as e" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "co_exp (fk_expedition,fk_commande)" | 1 |
|
"SELECT l.rowid, l.fk_commande," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "co_liv (fk_livraison,fk_commande)" | 1 |
|
"SELECT cd.rowid, cd.fk_product, cd.description, cd.subprice, cd.total_ht" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "livraisondet SET" | 1 |
|
"SELECT total_ht" | 1 |
|
"SELECT SUM(reel) as total, fk_product" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product SET" | 1 |
|
"SELECT m.rowid, mc.action" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "menu SET" | 1 |
|
"SELECT c.fk_adresse_livraison, ce.fk_expedition" | 1 |
|
"SELECT rowid, fk_user_resp FROM " . MAIN_DB_PREFIX . "projet" | 1 |
|
"SELECT fk_projet_task as fk_project_task, fk_user FROM " . MAIN_DB_PREFIX . "projet_task_actors" | 1 |
|
"SELECT " . $fk_source . ", " . $fk_target | 1 |
|
"SELECT rowid, fk_element, element_duration" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "element_time SET" | 1 |
|
"SELECT e.rowid as shipping_id, c.ref_client, c.date_livraison as delivery_date" | 1 |
|
"SELECT rowid, fk_expedition" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "livraison SET fk_expedition = NULL" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "element_element WHERE sourcetype = 'commande' AND targettype = 'delivery'" | 1 |
|
"SELECT l.rowid as delivery_id, e.ref_customer, e.date_delivery" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "actioncomm SET " | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "paiement SET" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "c_paiement SET" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $table . " SET " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_association" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "categorie_association(fk_categorie_mere,fk_categorie_fille)" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "categorie SET " | 1 |
|
"SELECT a.id, a.fk_user_action" | 1 |
|
"SELECT a.id, a.fk_contact" | 1 |
|
"SELECT DISTINCT entity" | 1 |
|
"SELECT count(rowid) as nb FROM " . MAIN_DB_PREFIX . "blockedlog WHERE action = 'MODULE_SET' and entity = " . ((int) $obj->entity) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "blockedlog" | 1 |
|
"SELECT sr.rowid, s.entity" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_remise SET" | 1 |
|
"SELECT sr.rowid, sr.fk_soc, sr.fk_facture_source, sr.fk_facture, sr.fk_facture_line" | 1 |
|
"SELECT s.entity" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_remise_except SET" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "user_rights SET" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "usergroup_rights SET" | 1 |
|
"SELECT rowid as uid, entity from " . MAIN_DB_PREFIX . "user" | 1 |
|
"SELECT rowid as uid, entity, photo from " . MAIN_DB_PREFIX . "user" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "user SET socialnetworks='" . $db->escape(json_encode($socialnetworks)) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "adherent SET socialnetworks='" . $db->escape(json_encode($socialnetworks)) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "socpeople SET socialnetworks='" . $db->escape(json_encode($socialnetworks)) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "societe SET socialnetworks='" . $db->escape(json_encode($socialnetworks)) . "'" | 1 |
|
'SELECT rowid, field' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . $mode . "_model SET field = '" . $db->escape($newfield) . "'" | 1 |
|
"SELECT c.rowid as cid ,cd.rowid as cdid,cd.rang FROM " . $db->prefix( ) . "contratdet as cd INNER JOIN " . $db->prefix( ) . "contrat as c ON c.rowid=cd.fk_contrat AND cd.rang=0" | 1 |
|
"UPDATE " . $db->prefix( ) . "contratdet SET rang=" . (int) $currentRank . " WHERE rowid=" . (int) $obj->cdid | 1 |
|
"SHOW CREATE TABLE " . $val | 1 |
|
"SELECT name, entity, value" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE name = '" . $db->escape($obj->name) . "' AND entity = " . ((int) $obj->entity) | 1 |
|
"SELECT file, entity FROM " . MAIN_DB_PREFIX . "boxes_def" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "boxes WHERE entity = " . ((int) $obj->entity) . " AND box_id IN (SELECT rowid FROM " . MAIN_DB_PREFIX . "boxes_def WHERE file = '" . $db->escape($obj->file) . "' AND entity = " . ((int) $obj->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "boxes_def WHERE file = '" . $db->escape($obj->file) . "' AND entity = " . ((int) $obj->entity) | 1 |
|
"SELECT s.rowid, s.nom as name, s.logo FROM " . MAIN_DB_PREFIX . "societe as s ORDER BY s.nom" | 1 |
|
"SELECT s.rowid, s.firstname, s.lastname, s.login, s.photo FROM " . MAIN_DB_PREFIX . "user as s ORDER BY s.rowid" | 1 |
|
"SELECT s.rowid, s.ref FROM " . MAIN_DB_PREFIX . "product as s ORDER BY s.ref" | 1 |
|
"SELECT rowid, module" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "menu WHERE module = '" . $db->escape($modulecond) . "'" | 1 |
|
'Delete orphelins file ' . $file['fullname'] . '<br>' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_batch" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_batch(fk_product_stock, batch, qty)" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product_stock" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'product p SET p.stock= (SELECT SUM(ps.reel) FROM ' . MAIN_DB_PREFIX . 'product_stock ps WHERE ps.fk_product = p.rowid)' | 1 |
|
"SELECT COUNT(ptt.rowid) as nb, u.rowid as user_id, u.login, u.thm as user_thm" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "element_time" | 1 |
|
"SELECT DISTINCT name, value" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE name = 'MAIN_MODULE_" . strtoupper($name) . "_" . strtoupper($key) . "'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE name = 'MAIN_MODULE_" . strtoupper($name) . "'" | 1 |
|
"SELECT id, libelle as label, module from " . MAIN_DB_PREFIX . "rights_def WHERE module NOT IN (" . $db->sanitize($listofmods, 1) . ") AND id > 100000" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "rights_def WHERE id = " . ((int) $obj->id) | 1 |
|
"SELECT dol_util_rebuild_sequences();" | 1 |
|
'SELECT * FROM ' . MAIN_DB_PREFIX . 'receptiondet_batch WHERE COALESCE(fk_elementdet, 0) = 0' | 1 |
|
'SELECT line.rowid, line.qty FROM ' . MAIN_DB_PREFIX . 'commande_fournisseurdet AS line' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'receptiondet_batch' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'receptiondet_batch' | 1 |
|
"SELECT * FROM " . MAIN_DB_PREFIX . "commande_fournisseur" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "commande_fournisseur cf SET cf.ref = '" . $db->escape($newRef) . "' WHERE cf.rowid = " . (int) $supplierOrder->id | 1 |
|
"SELECT f.rowid, SUM(fd.total_ht) as total_ht" | 1 |
|
" UPDATE " . MAIN_DB_PREFIX . "facture SET total_ht = " . ($obj_calcul->total_ht ? price2num($obj_calcul->total_ht, 'MT') : 0) . ", total_tva = " . ($obj_calcul->total_tva ? price2num($obj_calcul->total_tva, 'MT') : 0) . ", localtax1 = " . ($obj_calcul->localtax1 ? price2num($obj_calcul->localtax1, 'MT') : 0) . ", localtax2 = " . ($obj_calcul->localtax2 ? price2num($obj_calcul->localtax2, 'MT') : 0) . ", total_ttc = " . ($obj_calcul->total_ttc ? price2num($obj_calcul->total_ttc, 'MT') : 0) . " WHERE rowid = $obj->rowid" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . $table | 1 |
|
"SELECT rowid, fk_source, fk_target FROM " . MAIN_DB_PREFIX . "element_element" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'element_element' | 1 |
|
"SELECT rowid, label FROM " . MAIN_DB_PREFIX . "ecm_directories" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "ecm_directories set label = '" . $db->escape($newlabel) . "' WHERE rowid = " . ((int) $id) | 1 |
|
"SELECT s.rowid as socRowid, s.nom as ref, s.ref_ext, s.address, s.zip, s.town, c.label as country, s.phone, s.fax, s.url, extra.*" | 1 |
|
'SELECT f.rowid as facid, ref as ref, ref_ext, type, fk_statut as status, total_ttc, total, tva' | 1 |
|
'SELECT c.rowid as orderid' | 1 |
|
"SELECT g.rowid, g.nom as name, g.entity, g.datec, COUNT(DISTINCT ugu.fk_user) as nb" | 1 |
|
"SELECT s.rowid as socid FROM " . MAIN_DB_PREFIX . "societe as s" | 1 |
|
"SELECT c.rowid, c.fk_soc, c.civility as civility_id, c.lastname, c.firstname, c.statut as status," | 1 |
|
"SELECT fk_" . $field . " FROM " . MAIN_DB_PREFIX . "categorie_" . $table | 1 |
|
"SELECT MIN(price) AS min_price, quantity AS qty FROM " . MAIN_DB_PREFIX . "product_fournisseur_price" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'bom/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'bom/" . $this->db->escape($this->newref) . "'" | 1 |
|
'SELECT l.fk_bom, b.label FROM ' . MAIN_DB_PREFIX . 'bom_bomline l INNER JOIN ' . MAIN_DB_PREFIX . $this->table_element . ' b ON b.rowid = l.fk_bom WHERE fk_bom_child = ' . ((int) $bom_id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "projet_task SET fk_task_parent = 0 WHERE fk_task_parent = " . ((int) $objecttmp->id) | 1 |
|
"SELECT te.rowid, te." . $attributekey | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $arrayofelement['table_element'] . '_extrafields' | 1 |
|
'SELECT rowid, email_from FROM ' . MAIN_DB_PREFIX . 'c_email_templates' | 1 |
|
"SELECT name, label, type, param, fieldcomputed, fielddefault FROM " . MAIN_DB_PREFIX . "extrafields" | 1 |
|
"SELECT name, label, type, param, fieldcomputed, fielddefault, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields" | 1 |
|
"SELECT DISTINCT " . $fieldtocount . " as val" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_account" | 1 |
|
'SELECT rowid, url FROM ' . MAIN_DB_PREFIX . 'zapier_hook' | 1 |
|
"SELECT rowid, code, contexts, label, description, elementtype" | 1 |
|
"SELECT COUNT(*) AS found" | 1 |
|
"SELECT rowid, label, email, signature FROM " . $db->prefix( ) . "c_email_senderprofile" | 1 |
|
'SELECT ' . implode(",", $tbsumfields) | 1 |
|
'SELECT ' . implode(",", $tbsumfields) . ' FROM ' | 1 |
|
"SELECT sum(amount) as amount, sum(multicurrency_amount) as multicurrency_amount" | 1 |
|
"SELECT p.ref, pf.amount, pf.multicurrency_amount, p.fk_paiement, p.datep, p.num_paiement as num, t.code" . $field3 . $field4 | 1 |
|
" SELECT COUNT(ab.rowid) as nb FROM " . $this->db->prefix( ) . "accounting_bookkeeping as ab WHERE ab.doc_type='" . $this->db->escape($type) . "' AND ab.fk_doc = " . ((int) $this->id) | 1 |
|
"SELECT c.type_cdr, c.nbjour, c.decalage" | 1 |
|
"SELECT rowid, date_demande, amount, fk_facture, fk_facture_fourn, fk_salary, fk_prelevement_bons" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "c_departements(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "c_departements SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "c_departements" | 1 |
|
"SELECT rowid, code as code_iso, code_iso as code_iso3, label, favorite, eec" | 1 |
|
"SELECT rowid, code" | 1 |
|
"SELECT c.code, c.label" | 1 |
|
"SELECT s.rowid, s.nom as name, s.name_alias, s.tva_intra, s.client, s.fournisseur, s.code_client, s.code_fournisseur" | 1 |
|
"SELECT sp.rowid, sp.lastname, sp.statut, sp.firstname, sp.poste, sp.email, sp.phone, sp.phone_perso, sp.phone_mobile, sp.town AS contact_town" | 1 |
|
"SELECT DISTINCT u.rowid, u.lastname as lastname, u.firstname, u.statut as status, u.login, u.admin, u.entity, u.gender, u.photo" | 1 |
|
'SELECT b.rowid, b.ref, b.label, b.fk_product' | 1 |
|
"SELECT rowid, quantity, price, unitprice, remise_percent, remise, price_base_type" | 1 |
|
"SELECT price, price_ttc, price_base_type, tva_tx, default_vat_code" | 1 |
|
"SELECT p.rowid, p.ref, p.label, p.price, p.duration, p.fk_product_type, p.stock, p.tva_tx as tva_tx_sale, p.default_vat_code as default_vat_code_sale," | 1 |
|
"SELECT p.rowid, p.ref, p.label, p.price, p.duration, pfp.fk_soc," | 1 |
|
"SELECT rowid, code, libelle as label, deposit_percent" | 1 |
|
"SELECT rowid, code, label, position" | 1 |
|
"SELECT id, code, libelle as label, type, active" | 1 |
|
"SELECT rowid, ref, situation_cycle_ref, situation_counter, situation_final, fk_soc" | 1 |
|
"SELECT rowid, label, code FROM " . $this->db->prefix( ) . "c_units" | 1 |
|
"SELECT rowid, label, bank, clos as status, currency_code" | 1 |
|
"SELECT rowid, name, fk_country, status, entity" | 1 |
|
"SELECT code FROM " . $this->db->prefix( ) . "multicurrency" | 1 |
|
"SELECT t.rowid, t.type_vat, t.code, t.taux, t.localtax1, t.localtax1_type, t.localtax2, t.localtax2_type, t.recuperableonly" | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "propal as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('propal') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "expedition as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('shipping') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "commande as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('commande') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "facture as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('invoice') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.titre as ref, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "facture_rec as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('invoice') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_customer as ref_client, t.ref_supplier, SUM(td.total_ht) as total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "contrat as t, " . $this->db->prefix( ) . "contratdet as td WHERE t.fk_soc = s.rowid AND td.fk_contrat = t.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('contract') . ') GROUP BY s.rowid, s.nom, s.client, t.rowid, t.ref, t.ref_customer, t.ref_supplier' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "fichinter as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('intervention') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, '' as ref_supplier, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "supplier_proposal as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('supplier_proposal') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_supplier, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "commande_fournisseur as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('commande_fournisseur') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_supplier, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "facture_fourn as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('facture_fourn') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.track_id, '0' as total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . "ticket as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('ticket') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.rowid, '0' as total_ht FROM " . $this->db->prefix( ) . "societe as s INNER JOIN " . $this->db->prefix( ) . "mrp_mo as t ON t.fk_soc = s.rowid WHERE t.fk_soc IN (" . $this->db->sanitize($listofidcompanytoscan) . ') AND t.entity IN (' . getEntity('mo') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.rowid, '0' as total_ht FROM " . $this->db->prefix( ) . "societe as s INNER JOIN " . $this->db->prefix( ) . 'mrp_mo as t ON t.fk_soc = s.rowid WHERE t.entity IN (' . getEntity('mo') . ')' | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_supplier, t.total_ht FROM " . $this->db->prefix( ) . "societe as s, " . $this->db->prefix( ) . 'commande_fournisseur as t WHERE t.fk_soc = s.rowid AND t.entity IN (' . getEntity('commande_fournisseur') . ')' | 1 |
|
"SELECT ug.rowid, ug.nom as name" | 1 |
|
"SELECT rowid, label FROM " . $this->db->prefix( ) . "c_exp_tax_cat WHERE active = 1" | 1 |
|
"SELECT c.id FROM " . $this->db->prefix( ) . "c_type_fees as c WHERE c.code = 'EX_KME' AND c.active = 1" | 1 |
|
"SELECT rowid, range_ik FROM " . $this->db->prefix( ) . "c_exp_tax_range" | 1 |
|
"SELECT f.rowid, f.ref as fref, 'nolabel' as flabel, p.rowid as pid, f.ref, p.title, p.fk_soc, p.fk_statut, p.public," | 1 |
|
'SELECT f.rowid, f.entity, f.titre as title, f.suspended, f.fk_soc' | 1 |
|
"SELECT cp.fk_categorie as cat_index, cat.label" | 1 |
|
"SELECT e.rowid, e.code, e.label, e.price, e.organization," | 1 |
|
"SELECT r.taux, r.revenuestamp_type" | 1 |
|
"SELECT u.rowid, u.lastname, u.firstname, u.statut as status, u.login, u.photo, u.gender, u.entity, u.admin" | 1 |
|
"SELECT u2.rowid, u2.lastname, u2.firstname, u2.statut as status, u2.login, u2.photo, u2.gender, u2.entity, u2.admin" | 1 |
|
"SELECT rowid, " . $keyfield . ", " . $labelfield | 1 |
|
"SELECT b.rowid, b.position, b.box_order, b.fk_user," | 1 |
|
"SELECT d.rowid as box_id, d.file, d.note, d.tms" | 1 |
|
"DELETE FROM " . $dbs->prefix( ) . "boxes" | 1 |
|
"INSERT INTO " . $dbs->prefix( ) . "boxes" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "c_units(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "c_units SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "c_units" | 1 |
|
"SELECT scale, unit_type FROM " . $this->db->prefix( ) . "c_units WHERE rowid = " . ((int) $id) | 1 |
|
"SELECT rowid, name, template" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "printer_receipt" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "printer_receipt" | 1 |
|
'DELETE FROM ' . $this->db->prefix( ) . 'printer_receipt' | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "printer_receipt_template" | 1 |
|
'DELETE FROM ' . $this->db->prefix( ) . 'printer_receipt_template' | 1 |
|
"UPDATE " . $this->db->prefix( ) . "printer_receipt_template" | 1 |
|
"SELECT p.pos_change as pos_change, p.datep as date, p.fk_paiement, p.num_paiement as num, pf.amount as amount, pf.multicurrency_amount," | 1 |
|
"SELECT floor, label FROM " . $this->db->prefix( ) . "takepos_floor_tables where rowid=" . ((int) str_replace(")", "", str_replace("(PROV-POS" . $_SESSION["takeposterminal"] . "-", "", $object->ref))) | 1 |
|
"SELECT template" | 1 |
|
"SELECT p.rowid, p.ref, p.title, p.fk_soc, p.fk_statut, p.public, s.nom as name, s.name_alias" | 1 |
|
"SELECT t.rowid, t.ref as tref, t.label as tlabel, t.progress," | 1 |
|
"SELECT t.rowid, t.ref as ref" | 1 |
|
"SELECT t.rowid, t.titre as ref" | 1 |
|
"SELECT t.id as rowid, t.label as ref" | 1 |
|
"SELECT rowid, code, label, percent" | 1 |
|
"SELECT f.rowid, f.ref as fref," | 1 |
|
"SELECT fd.rowid, fd.label, fd.description" | 1 |
|
"SELECT " . $db->decrypt('name') . " as name," | 1 |
|
"SELECT r.rowid, r.code_region as code, r.nom as label, r.active, c.code as country_code, c.label as country" | 1 |
|
"SELECT rowid, code, label, active FROM " . $this->db->prefix( ) . "c_civility" | 1 |
|
"SELECT f.rowid, f.code as code , f.libelle as label, f.active, c.label as country, c.code as country_code" | 1 |
|
"SELECT s.rowid, s.nom as name " | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . $this->table_element . "(" | 1 |
|
"SELECT " . $col . " FROM " . $this->db->prefix( ) . $table . " WHERE " . $col . " = '" . $this->db->escape($val) . "' LIMIT 1" | 1 |
|
"SELECT c.rowid, c.ref, c.fk_soc, c.statut," | 1 |
|
"SELECT transkey, transvalue FROM " . $db->prefix( ) . "overwrite_trans where (lang='" . $db->escape($this->defaultlang) . "' OR lang IS NULL)" | 1 |
|
'SELECT f.rowid as rowid, f.code, f.pos, f.label, f.active, f.use_default, f.public, f.fk_parent, f.entity FROM ' . $this->db->prefix( ) . 'c_ticket_category as f WHERE f.entity IN (' . getEntity('c_ticket_category') . ')' | 1 |
|
"SELECT " . $fieldlabel . " as label" | 1 |
|
"SELECT code_iso, label, unicode" | 1 |
|
'SHOW FULL TABLES WHERE Table_type = \'BASE TABLE\'' | 1 |
|
'SHOW CREATE TABLE ' . $table | 1 |
|
"SELECT * FROM " . $table | 1 |
|
"INSERT " . $delayed . $ignore . "INTO " . $table . " VALUES (" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "c_typent(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "c_typent SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "c_typent" | 1 |
|
"SELECT rowid, name, label, type, size, elementtype, fieldunique, fieldrequired, param, pos, alwayseditable, perms, langs, list, printable, totalizable, fielddefault, fieldcomputed, entity, enabled, help," | 1 |
|
"SELECT tc.rowid" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "element_contact" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "element_contact set" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "element_contact" | 1 |
|
"SELECT ec.rowid, ec.statut as statuslink, ec.fk_socpeople as id, ec.fk_c_type_contact" | 1 |
|
"SELECT ec.datecreate, ec.statut, ec.fk_socpeople, ec.fk_c_type_contact," | 1 |
|
"SELECT DISTINCT tc.rowid, tc.code, tc.libelle as type_label, tc.position" | 1 |
|
"SELECT DISTINCT tc.rowid, tc.code, tc.libelle as type_label, tc.position, tc.element" | 1 |
|
"SELECT ec.fk_socpeople" | 1 |
|
"SELECT rowid, code, libelle as label, coder" | 1 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . $table | 1 |
|
"SELECT " . $field . " FROM " . $this->db->prefix( ) . $table | 1 |
|
"SELECT " . $field | 1 |
|
"UPDATE " . $this->db->prefix( ) . $table . " SET " | 1 |
|
"SELECT MAX(te." . $fieldid . ")" | 1 |
|
"SELECT MIN(te." . $fieldid . ")" | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . " SET " . $fieldname . " = " . ((int) $id) | 1 |
|
"SELECT count(rowid) FROM " . $this->db->prefix( ) . $this->table_element_line | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element_line . " SET " . $fieldposition . " = " . ((int) ($rang - 1)) | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element_line . " SET " . $fieldposition . " = " . ((int) ($rang + 1)) | 1 |
|
"SELECT " . $fieldposition . " FROM " . $this->db->prefix( ) . $this->table_element_line | 1 |
|
"SELECT rowid, qty, " . $fieldup . " as up, remise_percent, total_ht, " . $fieldtva . " as total_tva, total_ttc, " . $fieldlocaltax1 . " as total_localtax1, " . $fieldlocaltax2 . " as total_localtax2," | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element_line . " SET " . $fieldtva . " = " . price2num($obj->total_tva - (float) $diff) . ", total_ttc = " . price2num($obj->total_ttc - (float) $diff) . " WHERE rowid = " . ((int) $obj->rowid) | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "element_element (" | 1 |
|
"SELECT rowid, fk_source, sourcetype, fk_target, targettype" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "element_element SET " | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "element_element" | 1 |
|
"SELECT " . $field_select . " FROM " . $db->prefix( ) . $table_element . " WHERE " . $field_where . " = " . ((int) $fk_object_where) | 1 |
|
"SELECT COUNT(*) as nb FROM " . $db->prefix( ) . $table_element . " WHERE " . $field_where . " = " . ((int) $fk_object_where) | 1 |
|
"DELETE FROM " . $db->prefix( ) . $table_element . " WHERE " . $field_where . " = " . ((int) $fk_object_where) | 1 |
|
"UPDATE " . $this->db->prefix( ) . $elementTable | 1 |
|
"SELECT rowid, canvas" | 1 |
|
"SELECT special_code FROM " . $this->db->prefix( ) . $this->table_element_line | 1 |
|
"SELECT subprice as pu_ht, qty, remise_percent, total_ht" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "element_resources (" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "element_resources" | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . " SET last_main_doc = '" . $this->db->escape($ecmfile->filepath . "/" . $ecmfile->filename) . "'" | 1 |
|
"SELECT rowid, property, lang , value" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . $table_element . "_extrafields (fk_object" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "object_lang" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "object_lang (fk_object, property, type_object, lang, value" | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . $this->db->prefix( ) . $this->table_element . "_extrafields WHERE fk_object = " . ((int) $this->id) | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . "_extrafields SET " . $key . " = null" | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . "_extrafields SET " . $key . " = '" . $this->db->escape($new_array_options["options_" . $key]) . "'" | 1 |
|
'UPDATE ' . $dbs->prefix( ) . $table . ' SET fk_soc = ' . ((int) $dest_id) . ' WHERE fk_soc = ' . ((int) $origin_id) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . $table . ' SET fk_product = ' . ((int) $dest_id) . ' WHERE fk_product = ' . ((int) $origin_id) | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . $this->table_element | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . " SET ref = '(PROV" . ((int) $this->id) . ")' WHERE (ref = '(PROV)' OR ref = '') AND rowid = " . ((int) $this->id) | 1 |
|
"SELECT " . $fieldlist | 1 |
|
'UPDATE ' . $this->db->prefix( ) . $this->table_element . ' SET ' . implode(', ', $tmp) . ' WHERE rowid=' . ((int) $this->id) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . $table . " WHERE " . $this->fk_element . " = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . $tabletodelete . " WHERE " . $this->fk_element . " = " . ((int) $this->id) | 1 |
|
'DELETE FROM ' . $this->db->prefix( ) . $this->table_element . ' WHERE rowid=' . ((int) $this->id) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . $this->table_element_line | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "categorie_" . (empty($categorystatic->MAP_CAT_TABLE[$type]) ? $type : $categorystatic->MAP_CAT_TABLE[$type]) . " (fk_categorie, fk_product)" | 1 |
|
" SELECT fk_categorie, $toId FROM " . $this->db->prefix( ) . "categorie_" . (empty($categorystatic->MAP_CAT_TABLE[$type]) ? $type : $categorystatic->MAP_CAT_TABLE[$type]) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "ecm_files_extrafields WHERE fk_object IN (" | 1 |
|
" SELECT rowid FROM " . $this->db->prefix( ) . "ecm_files WHERE filename LIKE '" . $this->db->escape($this->ref) . "%'" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "ecm_files" | 1 |
|
'DELETE FROM ' . $this->db->prefix( ) . "ecm_files_extrafields" | 1 |
|
'DELETE FROM ' . $this->db->prefix( ) . "ecm_files" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "c_country(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "c_country SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "c_country" | 1 |
|
"SELECT ctc.rowid, ctc.fk_parent, ctc.code" | 1 |
|
"SELECT ctc.rowid, ctc.fk_parent, ctc.code FROM " . $this->db->prefix( ) . "c_ticket_category as ctc WHERE ctc.rowid ='" . $this->db->escape($obj->fk_parent) . "'" | 1 |
|
"SELECT ctc.rowid, ctc.code, ctc.label, ctc.fk_parent, ctc.public, " | 1 |
|
"SELECT ctc.rowid, ctc.code, ctc.label, ctc.fk_parent, ctc.public, ctcjoin.code as codefather" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "c_regions(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "c_regions SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "c_regions" | 1 |
|
"SELECT rowid, date_creation as datec, tms as datem" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "notify_def (fk_soc, fk_action, fk_contact, type, datec)" | 1 |
|
"SELECT rowid, fk_action as event, fk_soc as socid, fk_contact as contact_id, type, datec, tms as datem" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "notify_def SET" | 1 |
|
"SELECT 'tocontactid' as type_target, c.email, c.rowid as cid, c.lastname, c.firstname, c.default_lang," | 1 |
|
"SELECT 'touserid' as type_target, c.email, c.rowid as cid, c.lastname, c.firstname, c.lang as default_lang," | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "notify (daten, fk_action, fk_soc, fk_user, type, objet_type, type_target, objet_id, email)" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "notify (daten, fk_action, fk_soc, fk_contact, type, objet_type, type_target, objet_id, email)" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "notify (daten, fk_action, fk_soc, fk_contact, type, type_target, objet_type, objet_id, email)" | 1 |
|
"SELECT sr.rowid, sr.fk_soc, sr.discount_type," | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "societe_remise_except" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "societe_remise_except " | 1 |
|
"UPDATE " . $this->db->prefix( ) . "facture" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "facture_fourn" | 1 |
|
"SELECT SUM(rc.amount_ttc) as amount, SUM(rc.multicurrency_amount_ttc) as multicurrency_amount" | 1 |
|
"SELECT MAX(rowid) as maxrowid FROM " . $this->db->prefix( ) . "menu" | 1 |
|
"SELECT setval('" . $this->db->prefix( ) . "menu_rowid_seq', " . ($maxrowid) . ")" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "menu(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "menu SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "menu" | 1 |
|
"SELECT m.rowid, m.type, m.module, m.fk_menu, m.fk_mainmenu, m.fk_leftmenu, m.url, m.titre," | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "links (entity, datea, url, label, objecttype, objectid)" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "links SET " | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . $dbs->prefix( ) . "links" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "links" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "accounting_fiscalyear (" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "accounting_fiscalyear" | 1 |
|
"SELECT rowid, label, date_start, date_end, statut as status" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "accounting_fiscalyear" | 1 |
|
"SELECT fy.rowid, fy.datec, fy.fk_user_author, fy.fk_user_modif," | 1 |
|
"SELECT count(DISTINCT piece_num) as nb" | 1 |
|
"SELECT rowid, code, label, entity, position, typecontainer" | 1 |
|
"SELECT rowid, label, email FROM " . $this->db->prefix( ) . "c_email_senderprofile" | 1 |
|
"SELECT rowid, module, label, type_template, topic, email_from, joinfiles, content, content_lines, lang, email_from, email_to, email_tocc, email_tobcc" | 1 |
|
"SELECT label, topic, content, lang" | 1 |
|
"SELECT rowid, module, label, topic, content, content_lines, lang, fk_user, private, position" | 1 |
|
"SELECT " . $columns . " FROM " . $this->db->prefix( ) . "product_fournisseur_price_extrafields AS ex INNER JOIN " . $this->db->prefix( ) . "product_fournisseur_price AS f ON ex.fk_object = f.rowid WHERE f.ref_fourn = '" . $this->db->escape($line->ref_supplier) . "'" | 1 |
|
"SELECT c.id, c.code, c.label as type FROM " . $this->db->prefix( ) . "c_type_fees as c" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'timespent/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'timespent/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT f.rowid, f.ref, f.fk_soc, f.fk_statut" | 1 |
|
"SELECT libelle as label_incoterms FROM " . $this->db->prefix( ) . "c_incoterms WHERE rowid = " . (int) $this->fk_incoterms | 1 |
|
"SELECT DISTINCT import_key FROM " . $this->db->prefix( ) . "accounting_bookkeeping" | 1 |
|
"SELECT DISTINCT aa.account_number, aa.label, aa.labelshort, aa.rowid, aa.fk_pcg_version" | 1 |
|
"SELECT code_compta, code_compta_fournisseur, nom as name" | 1 |
|
"SELECT DISTINCT accountancy_code, lastname, firstname " | 1 |
|
"SELECT DISTINCT date_format(doc_date, '%Y') as dtyear" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "events(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "events SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "events" | 1 |
|
"SELECT id, code, label, active FROM " . $this->db->prefix( ) . "c_propalst" | 1 |
|
"SELECT code, label, width, height, unit" | 1 |
|
"SELECT DISTINCT f.rowid, f.ref" | 1 |
|
"SELECT COUNT(ac.id) as nb" | 1 |
|
"SELECT COUNT(DISTINCT(b.num_releve)) as nb" | 1 |
|
"SELECT COUNT(s.rowid) as nb" | 1 |
|
"SELECT COUNT(dbt." . $dbt_keyfield . ") as nb" | 1 |
|
"SELECT f.rowid, f.ref, f.datef as date, f.total_ht, f.total_tva, f.total_ttc, f.ref_client" | 1 |
|
"SELECT f.ref, f.rowid, f.total_ht, f.total_tva, f.total_ttc, f.type, f.ref_supplier, f.fk_statut as status, f.paye" | 1 |
|
"SELECT f.rowid, f.entity, f.ref, f.fk_statut as status, f.paye, f.type, f.total_ht, f.total_tva, f.total_ttc, f.datec," | 1 |
|
"SELECT f.rowid, f.entity, f.ref, f.fk_statut as status, f.paye, f.total_ht, f.total_tva, f.total_ttc, f.type, f.ref_supplier, f.datec," | 1 |
|
"SELECT f.rowid, f.ref, f.fk_statut as status, f.datef, f.type, f.total_ht, f.total_tva, f.total_ttc, f.paye, f.tms" | 1 |
|
"SELECT ff.rowid, ff.ref, ff.fk_statut as status, ff.type, ff.libelle as label, ff.total_ht, ff.total_tva, ff.total_ttc, ff.paye" | 1 |
|
"SELECT taux, localtax1, localtax2, localtax1_type, localtax2_type" | 1 |
|
'SELECT MAX(rowid) as max from ' . preg_replace('/^llx_/', MAIN_DB_PREFIX, $table) | 1 |
|
"SELECT " . $db->decrypt('value') . " as value" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const(name, value, type, visible, note, entity)" | 1 |
|
"SELECT COUNT(r.id) as nb" | 1 |
|
"SELECT count(c.rowid) as nb, c.fk_statut as status" | 1 |
|
"SELECT a.id, a.label, a.datep as dp, a.datep2 as dp2, a.fk_user_author, a.percent" | 1 |
|
"SELECT a.id, a.percent, a.datep as da, a.datep2 as da2, a.fk_user_author, a.label" | 1 |
|
"SELECT session_id, session_variable FROM " . MAIN_DB_PREFIX . "session" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "session" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "session" | 1 |
|
"UPDATE " . $db->prefix( ) . "website SET " | 1 |
|
"SELECT rowid, ref, share, filename, cover, position" | 1 |
|
'SELECT wp.rowid FROM ' . MAIN_DB_PREFIX . 'website_page as wp' | 1 |
|
"SELECT MAX(" . $sqlstring . ") as val" | 1 |
|
"SELECT " . $field . " as ref" | 1 |
|
"SELECT MAX(" . $maskrefclient_sqlstring . ") as val" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "user_param" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "user_param(fk_user,entity,param,value)" | 1 |
|
"SELECT nom as id, nom as doc_template_name, libelle as label, description as description" | 1 |
|
"SELECT rowid, " . $fieldfkparent . " as parent_id FROM " . MAIN_DB_PREFIX . $tabletocleantree | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tabletocleantree . " SET " . $fieldfkparent . " = 0 WHERE " . $fieldfkparent . " = rowid" | 1 |
|
'Delete ' . $objectname . ' object of ' . ucfirst($module) | 1 |
|
'SELECT t.rowid as rowid, t.code, t.label, t.active FROM ' . MAIN_DB_PREFIX . strtolower($namedic) . ' as t' | 1 |
|
"SELECT code, entity, fk_country, dayrule, year, month, day, active" | 1 |
|
"SELECT rowid, code, name, paper_size, orientation, metric, leftmargin, topmargin, nx, ny, spacex, spacey, width, height, font_size, custom_x, custom_y, active FROM " . MAIN_DB_PREFIX . "c_format_cards WHERE active=1 ORDER BY code ASC" | 1 |
|
"SELECT COUNT(p.rowid) as nb" | 1 |
|
"SELECT rowid, code, label FROM " . MAIN_DB_PREFIX . "c_country" | 1 |
|
"SELECT d.rowid as id, d.code_departement as code, d.nom as name, d.active, c.label as country, c.code as country_code, r.code_region as region_code, r.nom as region_name FROM" | 1 |
|
"SELECT label FROM " . MAIN_DB_PREFIX . "c_currencies" | 1 |
|
"SELECT libelle as label FROM " . MAIN_DB_PREFIX . "c_forme_juridique" | 1 |
|
"SELECT cc.code FROM " . MAIN_DB_PREFIX . "c_country as cc" | 1 |
|
"SELECT p.rowid as id, p.entity, p.title, p.ref, p.public, p.dateo as do, p.datee as de, p.fk_statut as status, p.fk_opp_status, p.opp_amount, p.opp_percent, p.tms as date_modification, p.budget_amount" | 1 |
|
"SELECT p.rowid as id, p.entity, p.title, p.ref, p.public, p.dateo as do, p.datee as de, p.fk_statut as status, p.fk_opp_status, p.opp_amount, p.opp_percent, p.tms as date_update, p.budget_amount" | 1 |
|
"SELECT t.rowid, t.entity, t.lastname, t.firstname, t.fk_pays as country_id, t.civility, t.poste," | 1 |
|
"SELECT s.rowid, s.client, s.fournisseur, s.nom as name, s.name_alias, s.email, s.address, s.zip, s.town, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur, s.canvas" | 1 |
|
"SELECT rowid as id, lang, pageurl from " . MAIN_DB_PREFIX . 'website_page where fk_page IN (' . $db->sanitize($objectpage->id . ($translationof ? ", " . $translationof : '')) . ")" | 1 |
|
" SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams," | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'ecm_files' | 1 |
|
"SELECT rowid as fk_soc FROM " . MAIN_DB_PREFIX . "societe WHERE rowid='" . $db->escape($refname) . "' AND entity IN (" . getEntity('societe') . ")" | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "facture WHERE ref='" . $db->escape($refname) . "' AND entity IN (" . getEntity('invoice') . ")" | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "fichinter WHERE ref='" . $db->escape($refname) . "' AND entity=" . $conf->entity | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "propal WHERE ref='" . $db->escape($refname) . "' AND entity IN (" . getEntity('propal') . ")" | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "commande WHERE ref='" . $db->escape($refname) . "' AND entity IN (" . getEntity('order') . ")" | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "commande_fournisseur WHERE ref='" . $db->escape($refname) . "' AND entity=" . $conf->entity | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "facture_fourn WHERE ref='" . $db->escape($refname) . "' AND entity=" . $conf->entity | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "paiementfournisseur WHERE ref='" . $db->escape($refname) . "' AND entity=" . $conf->entity | 1 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "contrat WHERE ref='" . $db->escape($refname) . "' AND entity IN (" . getEntity('contract') . ")" | 1 |
|
"SELECT rowid, code, label, url, icon, active FROM " . MAIN_DB_PREFIX . "c_socialnetworks" | 1 |
|
"SELECT t.localtax1, t.localtax2, t.localtax1_type, t.localtax2_type" | 1 |
|
" SELECT t.localtax" . $local . " as localtax" | 1 |
|
"SELECT MAX(tt.taux) FROM " . MAIN_DB_PREFIX . "c_tva as tt INNER JOIN " . MAIN_DB_PREFIX . "c_country as c ON c.rowid = tt.fk_pays" | 1 |
|
"SELECT t.rowid, t.code, t.taux as rate, t.recuperableonly as npr, t.accountancy_code_sell, t.accountancy_code_buy," | 1 |
|
"SELECT t.taux as rate, t.code, t.localtax1, t.localtax1_type, t.localtax2, t.localtax2_type, t.accountancy_code_sell, t.accountancy_code_buy" | 1 |
|
"SELECT t.taux as vat_rate, t.code as default_vat_code" | 1 |
|
"SELECT taux as vat_rate, localtax1, localtax2" | 1 |
|
"SELECT " . $fieldid . " as valuetoget" | 1 |
|
"SELECT * FROM " . MAIN_DB_PREFIX . $tablename . " WHERE 1 = 1" | 1 |
|
'SELECT ecm.rowid as id, ecm.src_object_type, ecm.src_object_id, ecm.filepath, ecm.filename' | 1 |
|
"SELECT p.rowid as projectid" | 1 |
|
"SELECT p.rowid as projectid, p.ref, p.title, p.fk_soc," | 1 |
|
"SELECT count(p.rowid) as nb, p.fk_statut as status" | 1 |
|
"SELECT date_start, date_end FROM " . MAIN_DB_PREFIX . "accounting_fiscalyear" | 1 |
|
"SELECT date_start, date_end FROM " . $db->prefix( ) . "accounting_fiscalyear" | 1 |
|
'SELECT COUNT(n.rowid) as nb' | 1 |
|
'SELECT p.rowid as id, p.entity, p.title, p.ref, p.public, p.dateo as do, p.datee as de, p.fk_statut as status, p.fk_opp_status, p.opp_amount, p.opp_percent, p.tms as date_modification, p.budget_amount' | 1 |
|
"SELECT obj.rowid, obj.fk_product, obj.label, obj.description, obj.product_type as fk_product_type, obj.qty as qty_asked, obj.date_start, obj.date_end," | 1 |
|
"SELECT d.rowid, d.product_type as dtype, e.rowid as facid, d.$f_rate as rate, d.total_ht as total_ht, d.total_ttc as total_ttc, d.total_tva as total_vat, e.note_private as descr," | 1 |
|
"SELECT d.rowid, d.product_type as dtype, e.rowid as facid, d.$f_rate as rate, d.vat_src_code as vat_src_code, d.total_ht as total_ht, d.total_ttc as total_ttc, d.total_tva as total_vat, e.note_private as descr," | 1 |
|
"SELECT code, label, width, height, unit FROM " . MAIN_DB_PREFIX . "c_paper_format" | 1 |
|
"SELECT rowid, label, courant, rappro, courant" | 1 |
|
'SELECT 0;' | 1 |
|
"SELECT sql FROM sqlite_master WHERE name='" . $this->escape($tablename) . "'" | 1 |
|
"INSERT INTO " . $tablename . " SELECT * FROM tmp_" . $tablename | 1 |
|
"SELECT 0" | 1 |
|
"SELECT count(*) FROM (" . $resultset->queryString . ") q" | 1 |
|
"SHOW TABLES FROM " . $tmpdatabase . " " . $like . ";" | 1 |
|
"SHOW FULL TABLES FROM " . $tmpdatabase . " " . $like . ";" | 1 |
|
"INSERT INTO user " | 1 |
|
"INSERT INTO db " | 1 |
|
'SHOW server_version' | 1 |
|
"SELECT currval('" . $tab . "_" . $fieldid . "_seq')" | 1 |
|
"SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'" . $escapedlike . " ORDER BY table_name" | 1 |
|
"SELECT table_name, table_type FROM information_schema.tables WHERE table_schema = 'public'" . $escapedlike . " ORDER BY table_name" | 1 |
|
"SELECT attname FROM pg_attribute, pg_type WHERE typname = '" . $this->escape($table) . "' AND attrelid = typrelid" | 1 |
|
"UPDATE " . $this->sanitize($table) . " SET " . $this->escape($field_name) . " = '" . $this->escape(isset($field_desc['default']) ? $field_desc['default'] : '') . "' WHERE " . $this->escape($field_name) . " IS NULL" | 1 |
|
"UPDATE " . $this->sanitize($table) . " SET " . $this->escape($field_name) . " = " . ((float) $this->escape(isset($field_desc['default']) ? $field_desc['default'] : 0)) . " WHERE " . $this->escape($field_name) . " IS NULL" | 1 |
|
'select name,setting from pg_settings' | 1 |
|
'SELECT CONNECTION_ID()' | 1 |
|
"SHOW TABLES FROM `" . $tmpdatabase . "` " . $like . ";" | 1 |
|
"SHOW FULL TABLES FROM `" . $tmpdatabase . "` " . $like . ";" | 1 |
|
"UPDATE " . $this->sanitize($table) . " SET " . $this->sanitize($field_name) . " = '" . $this->escape(isset($field_desc['default']) ? $field_desc['default'] : '') . "' WHERE " . $this->sanitize($field_name) . " IS NULL" | 1 |
|
"UPDATE " . $this->sanitize($table) . " SET " . $this->sanitize($field_name) . " = " . ((float) $this->escape(isset($field_desc['default']) ? $field_desc['default'] : 0)) . " WHERE " . $this->sanitize($field_name) . " IS NULL" | 1 |
|
"SHOW VARIABLES LIKE 'character_set_database'" | 1 |
|
'SHOW CHARSET' | 1 |
|
"SHOW VARIABLES LIKE 'collation_database'" | 1 |
|
'SHOW COLLATION' | 1 |
|
'SHOW VARIABLES' | 1 |
|
'SHOW STATUS' | 1 |
|
'Delete Manufacturing Order' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE elementtype = 'mrp_mo' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape('vinci') . "' AND type = 'mrp' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape('vinci') . "','mrp'," . ((int) $conf->entity) . ")" | 1 |
|
'Delete sales orders' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order', " . ((int) $conf->entity) . ")" | 1 |
|
'Delete payments of employee salary' | 1 |
|
'Delete objects of EventOrganization' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'bankaccount' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','bankaccount'," . ((int) $conf->entity) . ")" | 1 |
|
'SELECT f.rowid as rowid, f.code, f.pos, f.label, f.active, f.use_default, f.entity FROM ' . $this->db->prefix( ) . 'c_ticket_type as f WHERE f.entity IN (' . getEntity('c_ticket_type') . ')' | 1 |
|
'SELECT f.rowid as rowid, f.code, f.pos, f.label, f.active, f.use_default, f.entity FROM ' . $this->db->prefix( ) . 'c_ticket_severity as f WHERE f.entity IN (' . getEntity('c_ticket_severity') . ')' | 1 |
|
'SELECT f.rowid as rowid, f.code, f.pos, f.label, f.active, f.use_default, f.entity FROM ' . $this->db->prefix( ) . 'c_ticket_resolution as f WHERE f.entity IN (' . getEntity('c_ticket_resolution') . ')' | 1 |
|
"Delete les tickets" | 1 |
|
"insert into " . $this->db->prefix( ) . "c_type_contact(rowid, element, source, code, libelle, active ) values (110120, 'ticket', 'internal', 'SUPPORTTEC', 'Utilisateur assigné au ticket', 1);" | 1 |
|
"insert into " . $this->db->prefix( ) . "c_type_contact(rowid, element, source, code, libelle, active ) values (110121, 'ticket', 'internal', 'CONTRIBUTOR', 'Intervenant', 1);" | 1 |
|
"insert into " . $this->db->prefix( ) . "c_type_contact(rowid, element, source, code, libelle, active ) values (110122, 'ticket', 'external', 'SUPPORTCLI', 'Contact client suivi incident', 1);" | 1 |
|
"insert into " . $this->db->prefix( ) . "c_type_contact(rowid, element, source, code, libelle, active ) values (110123, 'ticket', 'external', 'CONTRIBUTOR', 'Intervenant', 1);" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "document_model WHERE nom = 'TICKET_ADDON_PDF_ODT_PATH' AND type = 'ticket' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "document_model (nom, type, libelle, entity, description) VALUES('generic_ticket_odt','ticket','ODT templates'," . ((int) $conf->entity) . ",'TICKET_ADDON_PDF_ODT_PATH');" | 1 |
|
"SELECT code, label, description FROM " . MAIN_DB_PREFIX . "c_action_trigger ORDER by rang" | 1 |
|
'Delete actions/tasks linked to his account' | 1 |
|
'Delete actions/tasks of others' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE elementtype = 'actioncomm' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
'Delete objects of BookCal' | 1 |
|
'Delete Calendar object of BookCal' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'standard_" . $this->db->escape(strtolower($myTmpObjectKey)) . "' AND type = '" . $this->db->escape(strtolower($myTmpObjectKey)) . "' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('standard_" . $this->db->escape(strtolower($myTmpObjectKey)) . "', '" . $this->db->escape(strtolower($myTmpObjectKey)) . "', " . ((int) $conf->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'generic_" . $this->db->escape(strtolower($myTmpObjectKey)) . "_odt' AND type = '" . $this->db->escape(strtolower($myTmpObjectKey)) . "' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('generic_" . $this->db->escape(strtolower($myTmpObjectKey)) . "_odt', '" . $this->db->escape(strtolower($myTmpObjectKey)) . "', " . ((int) $conf->entity) . ")" | 1 |
|
'Delete articles' | 1 |
|
'Delete les services' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'product' AND entity IN (0," . $conf->entity . ")" | 1 |
|
'Delete website content' | 1 |
|
'Delete loans' | 1 |
|
'Delete operations in Ledger' | 1 |
|
'Delete all operations by year and journal in Ledger' | 1 |
|
'Delete shipments' | 1 |
|
'Delete delivery receipts' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'shipping' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'shipping', " . ((int) $conf->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[3][2]) . "' AND type = 'delivery' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[3][2]) . "', 'delivery', " . ((int) $conf->entity) . ")" | 1 |
|
'Delete intracomm report' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE name = " . $this->db->encrypt('MAIN_MODULE_API') | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE name = " . $this->db->encrypt('API_PRODUCTION_MODE') | 1 |
|
'Delete myobject of Zapier' | 1 |
|
'Delete products' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'product' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'product_fournisseur_price' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
'Delete bom of Bom' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE elementtype = 'bom_bom' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE elementtype = 'bom_bomline' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
'Delete or disable other users' | 1 |
|
'Delete groups' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'user' AND entity IN (0," . $conf->entity . ")" | 1 |
|
"SELECT tms FROM " . MAIN_DB_PREFIX . "const" | 1 |
|
"SELECT tms, note FROM " . MAIN_DB_PREFIX . "const" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const (name, value, visible, entity, note) VALUES" | 1 |
|
"SELECT count(*) as nb FROM " . MAIN_DB_PREFIX . "boxes_def" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "boxes_def (file, entity, note)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "boxes (box_id, position, box_order, fk_user, entity)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "boxes " | 1 |
|
"SELECT " . MAIN_DB_PREFIX . "boxes_def.rowid " | 1 |
|
"SELECT count(*) as nb FROM " . MAIN_DB_PREFIX . "cronjob" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "cronjob (module_name, datec, datestart, dateend, label, jobtype, classesname, objectname, methodename, command, params, note," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const (name,type,value,note,visible,entity)" | 1 |
|
"SELECT " . $this->db->decrypt('value') . " as value" | 1 |
|
"SELECT count(*) as nb FROM " . MAIN_DB_PREFIX . "rights_def" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "rights_def (" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "user WHERE admin = 1" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "rights_def" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const (name, type, value, note, visible, entity)" | 1 |
|
'Delete commercial proposals' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'propal' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'propaldet' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'propal' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','propal'," . ((int) $conf->entity) . ")" | 1 |
|
'Delete Webhooks' | 1 |
|
'Delete objects of Workstation' | 1 |
|
'SELECT f.rowid as rowid, f.code, f.label, f.keyword, f.active FROM ' . MAIN_DB_PREFIX . 'c_partnership_type as f WHERE f.entity = ' . ((int) $conf->entity) | 1 |
|
'Delete objects of Partnership' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[1][2]) . "' AND type = 'contract' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[1][2]) . "', 'contract', " . ((int) $conf->entity) . ")" | 1 |
|
'Delete assets' | 1 |
|
'Delete asset models' | 1 |
|
'Delete Job positions to fill and candidatures' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'ficheinter' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','ficheinter'," . ((int) $conf->entity) . ")" | 1 |
|
'Delete supplier proposals' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'supplier_proposal' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','supplier_proposal'," . ((int) $conf->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "rights_def WHERE module = 'askpricesupplier'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "emailcollector_emailcollector WHERE ref = 'Collect_Ticket_Requests' and entity = " . $conf->entity | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "emailcollector_emailcollector WHERE ref = 'Collect_Responses_Out' and entity = " . $conf->entity | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "emailcollector_emailcollector WHERE ref = 'Collect_Responses_In' and entity = " . ((int) $conf->entity) | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "emailcollector_emailcollector WHERE ref = 'Collect_Leads' and entity = " . ((int) $conf->entity) | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "emailcollector_emailcollector WHERE ref = 'Collect_Candidatures' and entity = " . ((int) $conf->entity) | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'facture_fourn' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'facture_fourn_det' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'commande_fournisseur' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'commande_fournisseurdet' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order_supplier' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order_supplier', " . ((int) $conf->entity) . ")" | 1 |
|
'Delete stock' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'product as p SET p.stock = (SELECT SUM(ps.reel) FROM ' . MAIN_DB_PREFIX . 'product_stock ps WHERE ps.fk_product = p.rowid);' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[1][2]) . "' AND type = 'stock' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[1][2]) . "','stock'," . ((int) $conf->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[2][2]) . "' AND type = 'mouvement' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[2][2]) . "','mouvement'," . ((int) $conf->entity) . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'adherent' AND entity IN (0," . $conf->entity . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type='member' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','member'," . ((int) $conf->entity) . ")" | 1 |
|
'Delete resources' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'resource' AND entity IN (0," . $conf->entity . ")" | 1 |
|
'Delete cron Jobs' | 1 |
|
'Update all the currencies using the currencylayer API. An API key needs to be given in the multi-currency module config page' | 1 |
|
'Delete currencies and their rates' | 1 |
|
'Delete invoices' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE elementtype = 'facture' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE elementtype = 'facture_det' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[1][2]) . "' AND type = 'invoice' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[1][2]) . "','invoice'," . ((int) $conf->entity) . ")" | 1 |
|
'SELECT rowid, code, libelle, active FROM ' . MAIN_DB_PREFIX . 'c_incoterms' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'reception' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','reception'," . ((int) $conf->entity) . ")" | 1 |
|
'Delete social contributions' | 1 |
|
'Delete stickers' | 1 |
|
'Delete attributes of variants' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('EAN8', 'EAN8', 0, '1234567', __ENTITY__)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('EAN13', 'EAN13', 0, '123456789012', __ENTITY__)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('UPC', 'UPC', 0, '123456789012', __ENTITY__)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('ISBN', 'ISBN', 0, '123456789', __ENTITY__)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('C39', 'Code 39', 0, '1234567890', __ENTITY__)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('C128', 'Code 128', 0, 'ABCD1234567890', __ENTITY__)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('DATAMATRIX', 'Datamatrix', 0, '1234567xyz', __ENTITY__)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_barcode_type (code, libelle, coder, example, entity) VALUES ('QRCODE', 'Qr Code', 0, 'www.dolibarr.org', __ENTITY__)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'donation' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "','donation'," . ((int) $conf->entity) . ")" | 1 |
|
"select name, value from " . MAIN_DB_PREFIX . "const" | 1 |
|
'Delete skill/job/position' | 1 |
|
'Delete evaluations' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'standard' AND type='evaluation' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('standard','evaluation'," . ((int) $conf->entity) . ")" | 1 |
|
"Delete project and tasks (shared projects or projects I am contact for)" | 1 |
|
"Delete all projects and tasks (also private projects I am not contact for)" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'projet' AND entity IN (0," . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'projet_task' AND entity IN (0," . $conf->entity . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[3][2]) . "' AND type = 'task' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[3][2]) . "','task'," . ((int) $conf->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'beluga' AND type = 'project' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('beluga','project'," . ((int) $conf->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'baleine' AND type = 'project' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('baleine','project'," . ((int) $conf->entity) . ")" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "c_type_contact WHERE code = 'STDEST' AND element = 'stocktransfer' AND source = 'internal'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_type_contact(rowid, element, source, code, libelle, active, module, position) VALUES(" . ((int) $nextid) . ", 'stocktransfer', 'internal', 'STRESP', 'Responsible for stock transfers', 1, NULL, 0)" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "c_type_contact WHERE code = 'STFROM' AND element = 'stocktransfer' AND source = 'external'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_type_contact(rowid, element, source, code, libelle, active, module, position) VALUES(" . ((int) $nextid) . ", 'stocktransfer', 'external', 'STFROM', 'Contact sending the stock transfer', 1, NULL, 0)" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "c_type_contact WHERE code = 'STDEST' AND element = 'stocktransfer' AND source = 'external'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_type_contact(rowid, element, source, code, libelle, active, module, position) VALUES(" . ((int) $nextid) . ", 'stocktransfer', 'external', 'STDEST', 'Contact receiving the stock transfer', 1, NULL, 0)" | 1 |
|
"SELECT MAX(rowid) newid from " . MAIN_DB_PREFIX . "c_type_contact" | 1 |
|
'Update holiday balance every month' | 1 |
|
'Delete leave requests' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "printer_receipt_template WHERE name = '" . $this->db->escape($langs->trans('Example')) . "';" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "printer_receipt_template (name,template,entity) VALUES ('" . $this->db->escape($langs->trans('Example')) . "', '" . $this->db->escape($templateexample) . "', 1);" | 1 |
|
'Delete third parties' | 1 |
|
'Delete contacts' | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'societe' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
"SELECT name, label, fieldrequired FROM " . MAIN_DB_PREFIX . "extrafields WHERE type <> 'separate' AND elementtype = 'socpeople' AND entity IN (0, " . $conf->entity . ")" | 1 |
|
'Delete expense reports' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'standard' AND type='expensereport' AND entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('standard','expensereport'," . ((int) $conf->entity) . ")" | 1 |
|
'Delete mailings after validation and/or sent' | 1 |
|
"SELECT COUNT(*) nb FROM " . MAIN_DB_PREFIX . "mailing_cibles" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "mailing_cibles" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing_cibles as mc" | 1 |
|
"SELECT p.ref, p.entity, e.rowid as id, e.fk_project, e.email as email, e.email_company as company_name, e.firstname as firstname, e.lastname as lastname," | 1 |
|
"SELECT COUNT(DISTINCT(e.email)) as nb" | 1 |
|
"SELECT '" . $this->db->escape($langs->trans("FundationMembers")) . "' as label, count(*) as nb" | 1 |
|
"SELECT count(distinct(a.email)) as nb" | 1 |
|
"SELECT rowid, libelle as label, statut" | 1 |
|
"SELECT a.rowid as id, a.email as email, null as fk_contact, " | 1 |
|
"SELECT s.rowid as id, s.email as email, s.nom as name, null as fk_contact, null as firstname, null as label" | 1 |
|
"SELECT '" . $this->db->escape($langs->trans("NbOfCompaniesContacts")) . "' as label," | 1 |
|
"SELECT count(distinct(c.email)) as nb" | 1 |
|
"SELECT sp.poste, count(distinct(sp.email)) AS nb" | 1 |
|
"SELECT sp.rowid as id, sp.email as email, sp.rowid as fk_contact, sp.lastname, sp.firstname, sp.civility as civility_id, sp.poste as jobposition," | 1 |
|
"SELECT s.rowid as id, s.email as email, s.nom as name, null as fk_contact, null as firstname, pt.label as label, 'thirdparty' as source" | 1 |
|
"SELECT s.rowid as id, s.email as email, s.lastname as name, null as fk_contact, s.firstname as firstname, pt.label as label, 'member' as source" | 1 |
|
"SELECT rowid, label, code, active" | 1 |
|
"SELECT '" . $this->db->escape($langs->trans("DolibarrUsers")) . "' as label," | 1 |
|
"SELECT count(distinct(u.email)) as nb" | 1 |
|
"SELECT u.rowid as id, u.email as email, null as fk_contact," | 1 |
|
"SELECT s.rowid as id, s.email, s.nom as name, cd.rowid as cdid, cd.date_ouverture as date_start_real, cd.date_fin_validite as date_end, cd.fk_contrat" | 1 |
|
"SELECT s.rowid as id, s.email as email, s.nom as name, null as fk_contact" | 1 |
|
"SELECT socp.rowid as id, socp.email as email, socp.lastname as lastname, socp.firstname as firstname" | 1 |
|
'SELECT f.rowid, f.ref, f.datef, f.ref_supplier, f.total_ht, f.total_tva, f.total_ttc, pf.amount, f.rowid as facid, f.paye' | 1 |
|
"SELECT iban_prefix as iban" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "oauth_token SET service = 'StripeLive" . $db->escape($servicesuffix) . "', entity = " . ((int) $conf->entity) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "oauth_token SET service = 'StripeTest" . $db->escape($servicesuffix) . "', entity = " . ((int) $conf->entity) | 1 |
|
"SELECT MAX(CAST(SUBSTRING(ref FROM " . $posindice . ") AS SIGNED) as max" | 1 |
|
"SELECT MAX(SUBSTRING(ref FROM " . $posindice . ")) as max" | 1 |
|
"SELECT rowid,printer_id,copy FROM " . MAIN_DB_PREFIX . "printing WHERE module = '" . $this->db->escape($module) . "' AND driver = 'printipp' AND userid = " . ((int) $user->id) | 1 |
|
"SELECT rowid,printer_uri,printer_name FROM " . MAIN_DB_PREFIX . "printer_ipp WHERE module = '" . $this->db->escape($module) . "'" | 1 |
|
"SELECT rowid, printer_id, copy FROM " . MAIN_DB_PREFIX . "printing WHERE module='" . $this->db->escape($module) . "' AND driver='printgcp' AND userid=" . ((int) $user->id) | 1 |
|
'SELECT MAX(de.ref_number_int) as max' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'expensereport SET ref_number_int = ' . ((int) $ref_number_int) . ' WHERE rowid = ' . ((int) $object->id) | 1 |
|
"SELECT " . $typethirdparty . " FROM " . MAIN_DB_PREFIX . "societe_perentity" | 1 |
|
"SELECT " . $typethirdparty . " FROM " . MAIN_DB_PREFIX . "societe" | 1 |
|
"SELECT MAX(CAST(SUBSTRING(" . $field . " FROM " . $posindice . ") AS SIGNED)) as max" | 1 |
|
"SELECT MAX(CAST(SUBSTRING(task.ref FROM " . $posindice . ") AS SIGNED)) as max" | 1 |
|
"SELECT s.nom as thirdparty, s.rowid as socid, s.client," | 1 |
|
"SELECT p.datep as date, p.fk_paiement as type, p.num_paiement as num_payment, pf.amount as amount, pf.multicurrency_amount," | 1 |
|
"SELECT p.rowid as rowid, p.ref, p.label as produit, p.tobatch, p.fk_product_type as type, p.pmp as ppmp, p.price, p.price_ttc, p.entity," | 1 |
|
"SELECT barcode FROM " . MAIN_DB_PREFIX . "societe" | 1 |
|
"SELECT barcode FROM " . MAIN_DB_PREFIX . "product" | 1 |
|
"SELECT p.rowid as prowid" | 1 |
|
"SELECT p.datep as dp, f.ref" | 1 |
|
"SELECT p.datep as dp, f.ref as ref" | 1 |
|
"SELECT COUNT(e.rowid) as nbevent" | 1 |
|
"SELECT rowid, login, entity, pass, pass_crypted, datestartvalidity, dateendvalidity, flagdelsessionsbefore" | 1 |
|
"SELECT login, entity, datestartvalidity, dateendvalidity" | 1 |
|
'SELECT login, entity, datestartvalidity, dateendvalidity' | 1 |
|
"SELECT z.location as location_incoterms, z.label as label" | 1 |
|
"SELECT DISTINCT s.location_incoterms FROM " . MAIN_DB_PREFIX . 'commande as s' | 1 |
|
"SELECT z.rowid, z.zip, z.town, z.fk_county as state_id, z.fk_pays as country_id" | 1 |
|
"SELECT DISTINCT s.zip, s.town, s.fk_departement as state_id, s.fk_pays as country_id" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $object->table_element | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'actioncomm_reminder SET status = 1' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'actioncomm_reminder' | 1 |
|
'SELECT a.id as id_agenda, a.code, a.datep, a.label, a.location, ar.rowid as id_reminder, ar.dateremind, ar.fk_user as id_user_reminder' | 1 |
|
"SELECT kr.rowid, kr.ref, kr.question, kr.answer,kr.url,ctc.code" | 1 |
|
"SELECT p.fk_statut, SUM(p.total_ttc) as Mnttot, COUNT(*) as nb" | 1 |
|
"SELECT c.fk_statut, sum(c.total_ttc) as Mnttot, count(*) as nb" | 1 |
|
"SELECT p.rowid, p.ref, p.title, p.fk_soc, p.fk_statut as status, p.fk_opp_status as opp_status, p.opp_percent, p.opp_amount, p.public," | 1 |
|
"SELECT DISTINCT b.piece_num" | 1 |
|
"SELECT a.rowid, a.ref, a.lastname, a.firstname, a.societe as company, a.fk_soc," | 1 |
|
"SELECT u.rowid, u.firstname, u.lastname, u.birth as datea, date_format(u.birth, '%d') as daya, 'birth' as typea, u.email, u.statut as status" | 1 |
|
"SELECT u.rowid, u.firstname, u.lastname, u.dateemployment as datea, date_format(u.dateemployment, '%d') as daya, 'employment' as typea, u.email, u.statut as status" | 1 |
|
"SELECT COUNT(*) as nb_suspense_account" | 1 |
|
"SELECT COUNT(t.datec) as nb" | 1 |
|
"SELECT COUNT(t.date_close) as nb" | 1 |
|
"SELECT pt.rowid, pt.ref, pt.fk_projet, pt.fk_task_parent, pt.datec, pt.dateo, pt.datee, pt.datev, pt.label, pt.description, pt.duration_effective, pt.planned_workload, pt.progress" | 1 |
|
"SELECT t.rowid as id, t.ref, t.track_id, t.fk_soc, t.fk_user_create, t.fk_user_assign, t.subject, t.message, t.fk_statut as status, t.type_code, t.category_code, t.severity_code, t.datec, t.tms as datem, t.date_read, t.date_close, t.origin_email " | 1 |
|
"SELECT a.rowid, a.statut as status, a.lastname, a.firstname, a.societe as company, a.fk_soc," | 1 |
|
"SELECT sp.rowid as id, sp.lastname, sp.firstname, sp.civility as civility_id, sp.datec, sp.tms, sp.fk_soc, sp.statut as status" | 1 |
|
"SELECT p.rowid, p.ref, p.fk_soc, p.dateo as startdate," | 1 |
|
"SELECT rowid, nom as name FROM " . MAIN_DB_PREFIX . "societe WHERE rowid = " . ((int) $objp->fk_soc) | 1 |
|
"SELECT p.rowid, p.label, p.price, p.ref, p.price_base_type, p.price_ttc, p.fk_product_type, p.tms, p.tosell, p.tobuy, p.barcode, p.seuil_stock_alerte, p.entity," | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.name_alias, s.code_client, s.client" | 1 |
|
"SELECT u.rowid, u.firstname, u.lastname, u.societe, u.birth, date_format(u.birth, '%d') as daya, u.email, u.statut as status, u.datefin" | 1 |
|
"SELECT t.rowid as id, t.ref, t.track_id, t.fk_soc, t.fk_user_create, t.fk_user_assign, t.subject, t.message, t.fk_statut as status, t.type_code, t.category_code, t.severity_code, t.datec, t.date_read, t.date_close, t.origin_email," | 1 |
|
"SELECT cts.rowid, cts.label, cts.code" | 1 |
|
"SELECT t.severity_code, COUNT(t.severity_code) as nb" | 1 |
|
"SELECT CAST(t.datec AS DATE) as datec, COUNT(t.datec) as nb" | 1 |
|
"SELECT c.subscription, c.dateadh as dateh" | 1 |
|
"SELECT p.rowid, p.ref, p.title, p.fk_statut as status, p.public, p.fk_soc," | 1 |
|
"SELECT count(*) as nb, sum(progress) as totprogress" | 1 |
|
"SELECT b.title, b.url, b.target, b.favicon" | 1 |
|
"SELECT f.rowid, f.ref, f.fk_soc, f.fk_statut as status" | 1 |
|
"SELECT p.rowid, p.label, p.ref, p.price, p.price_base_type, p.price_ttc, p.fk_product_type, p.tms, p.tosell, p.tobuy, p.fk_price_expression, p.entity" | 1 |
|
"SELECT t.rowid, t.datelastrun, t.datenextrun, t.datestart," | 1 |
|
"SELECT b.rowid as id, b.box_id, b.position, b.box_order, b.fk_user" | 1 |
|
"SELECT ctt.rowid, ctt.label, ctt.code" | 1 |
|
"SELECT t.type_code, COUNT(t.type_code) as nb" | 1 |
|
"SELECT s.rowid, s.nom as name, s.logo, s.code_client, s.code_fournisseur, s.client, s.fournisseur, s.tms as datem, s.status as status," | 1 |
|
"SELECT b.rowid, b.ref, b.label, b.bank, b.number, b.courant, b.clos, b.rappro, b.url" | 1 |
|
'SELECT COUNT(*) as nbtotalofrecords FROM' | 1 |
|
"SELECT ad.rowid, ad.depreciation_mode, ad.ref, ad.depreciation_date, ad.depreciation_ht, ad.cumulative_depreciation_ht" | 1 |
|
"SELECT COUNT(*) AS has_bookkeeping" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "asset_depreciation(fk_asset, depreciation_mode, ref, depreciation_date, depreciation_ht, cumulative_depreciation_ht, accountancy_code_debit, accountancy_code_credit)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "asset_depreciation" | 1 |
|
"SELECT ad.depreciation_date, ad.cumulative_depreciation_ht" | 1 |
|
"DELETE " . MAIN_DB_PREFIX . "asset_depreciation FROM " . MAIN_DB_PREFIX . "asset_depreciation" | 1 |
|
"SELECT fk_asset, depreciation_mode, cumulative_depreciation_ht" | 1 |
|
"SELECT " . implode(',', array_keys($mode_info['fields'])) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . $mode_info['table'] . "(" | 1 |
|
'SELECT p.rowid, p.ref, p.label, p.fk_product_type, p.entity, p.tosell as status, p.tobuy as status_buy, p.tobatch as status_batch,' | 1 |
|
"SELECT p.rowid, p.ref, p.date_valid as dc, p.fk_statut, p.total_ht, p.total_tva, p.total_ttc" | 1 |
|
'SELECT s.nom, s.rowid as socid, s.client, c.rowid, c.ref, c.total_ht, c.ref_supplier,' | 1 |
|
"SELECT count(p.rowid) as total" | 1 |
|
"SELECT p.rowid,p.ref, p.date_commande as date, p.fk_statut, p.total_ht, p.total_tva, p.total_ttc" | 1 |
|
'SELECT f.rowid, f.libelle as label, f.ref, f.ref_supplier, f.fk_statut, f.datef as df, f.total_ht, f.total_tva, f.total_ttc, f.paye,' | 1 |
|
"SELECT count(cf.rowid), cf.fk_statut" | 1 |
|
"SELECT cf.rowid, cf.ref, cf.total_ttc," | 1 |
|
"SELECT ff.ref_supplier, ff.rowid, ff.total_ttc, ff.type" | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.town, s.datec, s.tms, s.prefix_comm, s.code_fournisseur" | 1 |
|
"SELECT s.rowid as socid, s.nom as name, st.libelle as stcomm, p.rowid as cidp, p.lastname, p.firstname, p.email, p.phone" | 1 |
|
"SELECT s.nom, s.rowid as socid, f.ref_supplier, f.datef as df," | 1 |
|
'SELECT price, unitprice, tva_tx, ref_fourn' | 1 |
|
'SELECT price, unitprice, tva_tx, remise_percent, entity, ref_fourn' | 1 |
|
"SELECT p.rowid as pid, p.ref, p.label," | 1 |
|
"SELECT count(cf.rowid) as nb, fk_statut as status" | 1 |
|
"SELECT c.rowid, c.ref, c.fk_statut as status, c.tms, c.billed, s.nom as name, s.rowid as socid" | 1 |
|
" SELECT ec.rowid " | 1 |
|
'SELECT s.nom as name, s.rowid as socid,' | 1 |
|
'SELECT f.rowid as facid, f.ref, f.ref_supplier, f.type, f.total_ht, f.total_ttc,' | 1 |
|
"SELECT p.rowid, p.label, p.ref, p.fk_product_type, p.entity, p.tosell, p.tobuy, p.barcode, p.fk_barcode_type," | 1 |
|
"SELECT c.rowid, c.entity, c.ref, ref_supplier, c.fk_soc, c.fk_statut as status, c.amount_ht, c.total_ht, c.total_ttc, c.total_tva," | 1 |
|
"SELECT l.rowid, l.fk_commande, l.ref as ref_supplier, l.fk_product, l.product_type, l.label, l.description, l.qty," | 1 |
|
'UPDATE ' . $this->db->prefix( ) . "commande_fournisseur" | 1 |
|
'UPDATE ' . $this->db->prefix( ) . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'fournisseur/commande/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . $this->db->prefix( ) . "ecm_files set filepath = 'fournisseur/commande/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . $this->db->prefix( ) . 'commande_fournisseur SET billed = 1' | 1 |
|
"UPDATE " . $this->db->prefix( ) . "commande_fournisseur SET fk_statut = " . self::STATUS_REFUSED | 1 |
|
"UPDATE " . $this->db->prefix( ) . "commande_fournisseur SET fk_statut = " . ((int) $statut) | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "commande_fournisseur (" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "receptiondet_batch" | 1 |
|
"DELETE FROM $ef WHERE fk_object IN (SELECT rowid FROM $main WHERE fk_commande = " . ((int) $this->id) . ")" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "commande_fournisseurdet WHERE fk_commande =" . ((int) $this->id) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "commande_fournisseur WHERE rowid =" . ((int) $this->id) | 1 |
|
"SELECT p.ref, p.label," | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "commande_fournisseurdet" | 1 |
|
'UPDATE ' . $this->db->prefix( ) . 'commande_fournisseur' | 1 |
|
'SELECT c.rowid, date_creation as datec, tms as datem, date_valid as date_validation, date_approve as datea, date_approve2 as datea2,' | 1 |
|
"SELECT c.rowid, c.date_creation as datec, c.date_commande, c.fk_statut, c.date_livraison as delivery_date, c.total_ht" | 1 |
|
'SELECT cd.rowid, cd.fk_commande, cd.fk_product, cd.product_type, cd.description, cd.qty, cd.tva_tx, cd.special_code,' | 1 |
|
'INSERT INTO ' . $this->db->prefix( ) . $this->table_element | 1 |
|
'UPDATE ' . $this->db->prefix( ) . "commandedet SET fk_commandefourndet = NULL WHERE rowid=" . ((int) $this->id) | 1 |
|
'DELETE FROM ' . $this->db->prefix( ) . "commande_fournisseurdet WHERE rowid=" . ((int) $this->id) | 1 |
|
'SELECT p.rowid, p.ref, p.entity, p.datep as dp, p.amount, p.statut, p.fk_bank, p.multicurrency_amount,' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'paiementfourn (' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'paiementfourn_facturefourn (fk_facturefourn, fk_paiementfourn, amount, multicurrency_amount, multicurrency_code, multicurrency_tx)' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'paiementfourn_facturefourn' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'paiementfourn' | 1 |
|
'SELECT c.rowid, datec, fk_user_author as fk_user_creat, tms as fk_user_modif' | 1 |
|
'SELECT fk_facturefourn' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "facture_fourn (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "facture_fourn SET ref='" . $this->db->escape($this->ref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
'SELECT f.rowid, f.ref as ref_supplier, f.description as line_desc, f.date_start, f.date_end, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.vat_src_code, f.tva_tx' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture_fourn SET" | 1 |
|
"DELETE FROM $ef WHERE fk_object IN (SELECT rowid FROM " . $main . " WHERE fk_facture_fourn = " . ((int) $rowid) . ")" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'facture_fourn_det WHERE fk_facture_fourn = ' . ((int) $rowid) | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'facture_fourn WHERE rowid = ' . ((int) $rowid) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'facture_fourn' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'fournisseur/facture/" . get_exdir($this->id, 2, 0, 0, $this, 'invoice_supplier') . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'fournisseur/facture/" . get_exdir($this->id, 2, 0, 0, $this, 'invoice_supplier') . $this->db->escape($this->newref) . "'" | 1 |
|
'SELECT c.rowid, datec, tms as datem, ' | 1 |
|
"SELECT f.rowid as rowid, f.ref, f.fk_statut," | 1 |
|
"SELECT f.rowid as rowid, f.ref, f.fk_statut, f.type, f.subtype, f.paye, pf.fk_paiementfourn" | 1 |
|
'SELECT ff.rowid, ff.date_lim_reglement as datefin, ff.fk_statut as status, ff.total_ht, ff.total_ttc' | 1 |
|
"SELECT fk_invoice_supplier FROM " . MAIN_DB_PREFIX . "societe_remise_except WHERE fk_invoice_supplier_source = " . ((int) $this->id) | 1 |
|
"SELECT rowid as id FROM " . MAIN_DB_PREFIX . "facture_fourn as f" | 1 |
|
'SELECT f.rowid, f.ref as ref_supplier, f.description as line_desc, f.date_start, f.date_end, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.tva_tx' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'facture_fourn_det ' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . $this->table_element | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'facture_fourn_rec (' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture_fourn_rec SET" | 1 |
|
'SELECT f.rowid, f.titre as title, f.subtype, f.ref_supplier, f.entity, f.fk_soc' | 1 |
|
"DELETE FROM " . $ef . " WHERE fk_object IN (SELECT rowid FROM " . $main . " WHERE fk_facture_fourn = " . (int) $rowid . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facture_fourn_det_rec WHERE fk_facture_fourn = " . (int) $rowid | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facture_fourn_rec WHERE rowid = " . (int) $rowid | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'facture_fourn_det_rec (' | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'facture_fourn_rec' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element . ' WHERE rowid=' . (int) $this->id | 1 |
|
"SELECT count(pfp.rowid) as nb" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "categorie (label,visible,type)" | 1 |
|
"SELECT s.rowid, s.nom as name" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_fournisseur_price" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_fournisseur_price(" | 1 |
|
"SELECT pfp.rowid, pfp.price, pfp.quantity, pfp.unitprice, pfp.remise_percent, pfp.remise, pfp.tva_tx, pfp.default_vat_code, pfp.info_bits as fourn_tva_npr, pfp.fk_availability," | 1 |
|
"SELECT s.nom as supplier_name, s.rowid as fourn_id, p.ref as product_ref, p.tosell as status, p.tobuy as status_buy, " | 1 |
|
"SELECT s.nom as supplier_name, s.rowid as fourn_id," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_fournisseur_price_log(" | 1 |
|
'SELECT f.rowid, f.rowid as facid, f.ref, f.ref_supplier, f.type, f.paye, f.total_ht, f.total_tva, f.total_ttc, f.datef as date, f.fk_statut as status,' | 1 |
|
'SELECT p.rowid, p.ref, p.datep, p.fk_bank, p.statut, p.num_paiement as num_payment, p.amount' | 1 |
|
"SELECT p.rowid, p.num_payment, p.datep as dp, p.amount," | 1 |
|
"SELECT count(d.rowid) as nb, sum(d.amount) as somme , d.fk_statut" | 1 |
|
"SELECT c.rowid, c.ref, c.fk_statut, c.societe, c.lastname, c.firstname, c.tms as datem, c.amount" | 1 |
|
"SELECT d.rowid, d.datedon, d.fk_soc as socid, d.firstname, d.lastname, d.societe," | 1 |
|
'SELECT d.rowid as did, d.paid, d.amount as d_amount, pd.amount' | 1 |
|
"SELECT date_format(d.datedon,'%m') as dm, COUNT(*) as nb" | 1 |
|
"SELECT date_format(d.datedon,'%Y') as dm, COUNT(*) as nb, SUM(d." . $this->field . ")" | 1 |
|
"SELECT date_format(d.datedon,'%m') as dm, sum(d." . $this->field . ")" | 1 |
|
"SELECT date_format(d.datedon,'%m') as dm, avg(d." . $this->field . ")" | 1 |
|
"SELECT date_format(d.datedon,'%Y') as year, COUNT(*) as nb, SUM(d." . $this->field . ") as total, AVG(" . $this->field . ") as avg" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "payment_donation (fk_donation, datec, datep, amount," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_donation SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "payment_donation" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_donation SET fk_bank = " . (int) $id_bank . " WHERE rowid = " . (int) $this->id | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "don (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "don SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "don_extrafields" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "don" | 1 |
|
"SELECT d.rowid, d.datec, d.date_valid, d.tms as datem, d.datedon," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "don SET fk_statut = 1, fk_user_valid = " . ((int) $userid) . " WHERE rowid = " . ((int) $id) . " AND fk_statut = 0" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "don SET fk_statut = 2, paid = 1" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "don SET fk_statut = -1 WHERE rowid = " . ((int) $id) | 1 |
|
"SELECT sum(amount) as total" | 1 |
|
"SELECT count(d.rowid) as nb" | 1 |
|
'SELECT d.rowid, d.datec, d.fk_user_author, d.fk_user_valid,' | 1 |
|
"SELECT SUM(amount) as sum_amount FROM " . MAIN_DB_PREFIX . "payment_donation WHERE fk_donation = " . ((int) $this->id) | 1 |
|
"SELECT pd.rowid as payment_id, pd.amount, pd.datep, pd.fk_typepayment, pd.num_payment, pd.amount, pd.fk_bank, " | 1 |
|
"SELECT e.rowid" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'commande/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'commande/" . $this->db->escape($this->newref) . "'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "commande (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "commande SET ref='" . $this->db->escape($initialref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
'SELECT c.rowid, c.entity, c.date_creation, c.ref, c.fk_soc, c.fk_user_author, c.fk_user_valid, c.fk_user_modif, c.fk_statut' | 1 |
|
'SELECT l.rowid, l.fk_product, l.fk_parent_line, l.product_type, l.fk_commande, l.label as custom_label, l.description, l.price, l.qty, l.vat_src_code, l.tva_tx, l.ref_ext,' | 1 |
|
'SELECT COUNT(DISTINCT ed.fk_expedition) as nb' | 1 |
|
'SELECT count(*)' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'commande SET' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'commande SET facture = 1' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'commande SET facture = 0' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "commande SET" | 1 |
|
"SELECT c.rowid, c.date_creation as datec, c.date_commande, c.date_livraison as delivery_date, c.fk_statut, c.total_ht" | 1 |
|
'SELECT c.rowid, date_creation as datec, tms as datem,' | 1 |
|
'SELECT cd.rowid, cd.fk_commande, cd.fk_parent_line, cd.fk_product, cd.product_type, cd.label as custom_label, cd.description, cd.price, cd.qty, cd.tva_tx, cd.localtax1_tx, cd.localtax2_tx,' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . "commandedet WHERE rowid = " . ((int) $this->id) | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'commandedet' | 1 |
|
"SELECT date_format(c.date_commande,'%m') as dm, COUNT(*) as nb" | 1 |
|
"SELECT date_format(c.date_commande,'%Y') as dm, COUNT(*) as nb, SUM(c." . $this->field . ")" | 1 |
|
"SELECT date_format(c.date_commande,'%m') as dm, SUM(c." . $this->field . ")" | 1 |
|
"SELECT date_format(c.date_commande,'%m') as dm, AVG(c." . $this->field . ")" | 1 |
|
"SELECT date_format(c.date_commande,'%Y') as year, COUNT(*) as nb, SUM(c." . $this->field . ") as total, AVG(" . $this->field . ") as avg" | 1 |
|
"SELECT f.rowid, f.ref, f.fk_statut as status, f.type, f.total_ht, f.total_tva, f.total_ttc, f.paye, f.tms" | 1 |
|
"SELECT ff.rowid, ff.ref, ff.fk_statut as status, ff.type, ff.libelle, ff.total_ht, ff.total_tva, ff.total_ttc, ff.tms, ff.paye, ff.ref_supplier" | 1 |
|
"SELECT d.rowid, d.lastname, d.firstname, d.societe, d.datedon as date, d.tms as dm, d.amount, d.fk_statut as status" | 1 |
|
"SELECT c.rowid, c.amount, c.date_ech, c.paye," | 1 |
|
"SELECT sum(f.total_ht) as tot_fht, sum(f.total_ttc) as tot_fttc" | 1 |
|
"SELECT s.nom, s.rowid as socid, f.ref, f.total_ttc, f.datef as df," | 1 |
|
'SELECT f.rowid as facid, f.ref, f.total_ht, f.total_tva, f.total_ttc, f.multicurrency_code, f.multicurrency_total_ht, f.multicurrency_total_tva, f.multicurrency_total_ttc, f.type,' | 1 |
|
'SELECT p.datep as dp, p.amount, f.total_ttc as fa_amount, f.ref' | 1 |
|
"SELECT t.rowid as id, t.entity, t.ref, t.paye as paid, t.total_ht, t.total_ttc, t.total_tva as total_vat," | 1 |
|
" SELECT t.rowid as id, t.entity, t.ref, t.paye as paid, t.total_ht, t.total_ttc, t.total_tva as total_vat," | 1 |
|
" SELECT t.rowid as id, t.entity, t.ref, t.paid, t.total_ht, t.total_ttc, t.total_tva as total_vat," | 1 |
|
" SELECT t.rowid as id, t.entity, t.ref, paid, amount as total_ht, amount as total_ttc, 0 as total_vat," | 1 |
|
" SELECT t.rowid as id, t.entity, t.label as ref, 1 as paid, amount as total_ht, amount as total_ttc, 0 as total_vat," | 1 |
|
" SELECT t.rowid as id, t.entity, t.libelle as ref, t.paye as paid, t.amount as total_ht, t.amount as total_ttc, 0 as total_vat," | 1 |
|
" SELECT t.rowid as id, t.entity, t.ref, 1 as paid, t.amount as total_ht, t.amount as total_ttc, 0 as total_vat," | 1 |
|
" SELECT t.rowid as id, l.entity, l.label as ref, 1 as paid, (t.amount_capital+t.amount_insurance+t.amount_interest) as total_ht, (t.amount_capital+t.amount_insurance+t.amount_interest) as total_ttc, 0 as total_vat," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe SET note='" . $db->escape($note) . "' WHERE rowid=" . ((int) $socid) | 1 |
|
"SELECT f.rowid, f.ref_supplier, f.type, f.datef, f.libelle as label," | 1 |
|
"SELECT f.rowid, f.ref, f.type, f.datef, f.ref_client," | 1 |
|
"SELECT cs.rowid, cs.fk_type as type, cs.fk_user," | 1 |
|
'SELECT COUNT(DISTINCT cs.rowid) as nbtotalofrecords' | 1 |
|
"SELECT c.id, c.libelle as type_label," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "paiementcharge (fk_charge, datec, datep, amount," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "paiementcharge SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "paiementcharge" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "paiementcharge SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id) | 1 |
|
" SELECT COUNT(ab.rowid) as nb FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping as ab WHERE ab.doc_type='" . $this->db->escape($type) . "' AND ab.fk_doc = " . ((int) $this->bank_line) | 1 |
|
"SELECT cs.rowid, cs.date_ech" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "chargesociales (fk_type, fk_account, fk_mode_reglement, libelle, date_ech, periode, amount, fk_projet, entity, fk_user_author, fk_user, date_creation)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "paiementcharge WHERE fk_charge=" . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "chargesociales WHERE rowid=" . ((int) $this->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "chargesociales" | 1 |
|
"SELECT SUM(f.amount) as amount" | 1 |
|
"SELECT e.rowid, e.tms as datem, e.date_creation as datec, e.date_valid as datev, e.import_key," | 1 |
|
"SELECT SUM(amount) as mm, date_format(tva.datev,'%Y-%m') as dm, 'claimed' as mode" | 1 |
|
"SELECT SUM(ptva.amount) as mm, date_format(tva.datev,'%Y-%m') as dm, 'paid' as mode" | 1 |
|
'SELECT t.rowid, t.amount, t.label, t.datec, t.datev, t.paye as status, t.fk_typepayment as type, t.fk_account,' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "tva(" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "tva" | 1 |
|
"SELECT sum(f.total_tva) as amount" | 1 |
|
"SELECT sum(f.total_tva) as total_tva" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "tva (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'tva SET fk_bank = ' . (int) $id_bank | 1 |
|
"SELECT t.rowid, t.tms, t.fk_user_modif, t.datec, t.fk_user_creat" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "payment_vat (fk_tva, datec, datep, amount," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_vat SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "payment_vat" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_vat SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id) | 1 |
|
"SELECT b.rowid, b.dateo as do, b.datev as dv, b.amount, b.label, b.rappro as conciliated, b.num_releve, b.num_chq," | 1 |
|
"SELECT DISTINCT num_releve FROM " . MAIN_DB_PREFIX . "bank" | 1 |
|
'SELECT SUM(b.amount) as previoustotal' | 1 |
|
"SELECT b.rowid, b.label, b.courant, b.rappro, b.account_number, b.fk_accountancy_journal, b.currency_code, b.datec as date_creation, b.tms as date_modification" | 1 |
|
"SELECT 'invoice' as family, f.rowid as objid, f.ref as ref, f.total_ttc, f.type, f.date_lim_reglement as dlr," | 1 |
|
" SELECT 'invoice_supplier' as family, ff.rowid as objid, ff.ref as ref, ff.ref_supplier as ref_supplier, (-1*ff.total_ttc) as total_ttc, ff.type, ff.date_lim_reglement as dlr," | 1 |
|
" SELECT 'social_contribution' as family, cs.rowid as objid, cs.libelle as ref, (-1*cs.amount) as total_ttc, ccs.libelle as type, cs.date_ech as dlr," | 1 |
|
" SELECT 'salary' as family, sa.rowid as objid, sa.label as ref, (-1*sa.amount) as total_ttc, sa.dateep as dlr," | 1 |
|
" SELECT 'vat' as family, t.rowid as objid, t.label as ref, (-1*t.amount) as total_ttc, t.datev as dlr," | 1 |
|
"SELECT sum(amount) as amount FROM " . MAIN_DB_PREFIX . "paiement" | 1 |
|
"SELECT sum(amount) as amount FROM " . MAIN_DB_PREFIX . "bank WHERE amount > 0" | 1 |
|
"SELECT sum(amount) as amount FROM " . MAIN_DB_PREFIX . "bank WHERE amount < 0" | 1 |
|
"SELECT sum(amount) as amount FROM " . MAIN_DB_PREFIX . "bank " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_class WHERE lineid = " . ((int) $rowid) . " AND fk_categ = " . ((int) $cat1) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_class WHERE lineid = " . ((int) $rowid) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bank_class (lineid, fk_categ) VALUES (" . ((int) $rowid) . ", " . ((int) $val) . ")" | 1 |
|
"SELECT b.rowid, b.dateo as do, b.datev as dv, b.amount, b.label, b.rappro," | 1 |
|
"SELECT sum(d.amount) as somme, count(*) as nombre, c.label, c.rowid " | 1 |
|
"SELECT b.rowid FROM " . MAIN_DB_PREFIX . "bank as b, " . MAIN_DB_PREFIX . "bank_account as ba" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "bank SET num_releve = '" . $db->escape($newbankreceipt) . "'" | 1 |
|
"SELECT DISTINCT(b.num_releve) as numr" | 1 |
|
"SELECT SUM(b.amount) as total" | 1 |
|
"SELECT v.rowid, v.sens, v.amount, v.label, v.datep as datep, v.datev as datev, v.fk_typepayment as type, v.num_payment, v.fk_bank, v.accountancy_code, v.subledger_account, v.fk_projet as fk_project," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bank_categ (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "bank_categ SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_class" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_categ" | 1 |
|
"SELECT rowid, label FROM " . MAIN_DB_PREFIX . "bank_categ WHERE entity = " . $conf->entity . " ORDER BY label" | 1 |
|
"SELECT t.rowid FROM " . MAIN_DB_PREFIX . "bank_account AS t LEFT JOIN " . MAIN_DB_PREFIX . "bank_account_extrafields AS ef ON (ef.fk_object = t.rowid)" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "bank " | 1 |
|
"SELECT fk_bank, url_id, url, label, type" | 1 |
|
"SELECT code FROM " . MAIN_DB_PREFIX . "c_paiement" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bank_class(" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bank_account (" | 1 |
|
"SELECT ba.rowid, ba.ref, ba.label, ba.bank, ba.number, ba.courant as type, ba.clos as status, ba.rappro, ba.url," | 1 |
|
"SELECT COUNT(ba.rowid) as nb" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "bank_url SET url_id = " . ((int) $dest_id) . " WHERE url_id = " . ((int) $origin_id) . " AND type='company'" | 1 |
|
"SELECT b.rowid, b.datec, b.datev, b.dateo, b.amount, b.label as label, b.fk_account," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bank (" | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping WHERE doc_type = 'bank' AND fk_doc = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_class WHERE lineid=" . (int) $this->rowid | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_extrafields WHERE fk_object=" . (int) $this->rowid | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank WHERE rowid=" . (int) $this->rowid | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_url WHERE fk_bank=" . (int) $this->rowid | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bank_class (" | 1 |
|
"SELECT datev FROM " . MAIN_DB_PREFIX . "bank WHERE rowid = " . ((int) $rowid) | 1 |
|
"SELECT dateo FROM " . MAIN_DB_PREFIX . "bank WHERE rowid = " . ((int) $rowid) | 1 |
|
'SELECT b.rowid, b.datec, b.tms as datem,' | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_various SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "payment_various" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "payment_various (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'payment_various SET fk_bank = ' . ((int) $id_bank) | 1 |
|
'SELECT v.rowid, v.datec, v.fk_user_author' | 1 |
|
" SELECT COUNT(ab.rowid) as nb FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping as ab WHERE ab.doc_type='" . $this->db->escape($type) . "' AND ab.fk_doc = " . ((int) $banklineid) | 1 |
|
"SELECT SUM(pfd.amount) as amount" | 1 |
|
"SELECT pfd.rowid, pfd.traite, pfd.date_demande, pfd.date_traite, pfd.fk_prelevement_bons, pfd.amount," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "c_payment_term(" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "c_payment_term SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "c_payment_term" | 1 |
|
"SELECT date_format(f.datef,'%m') as dm, COUNT(*) as nb" | 1 |
|
"SELECT date_format(f.datef,'%Y') as dm, COUNT(*), SUM(c." . $this->field . ")" | 1 |
|
"SELECT date_format(datef,'%m') as dm, SUM(f." . $this->field . ")" | 1 |
|
"SELECT date_format(datef,'%Y') as year, COUNT(*) as nb, SUM(f." . $this->field . ") as total, AVG(f." . $this->field . ") as avg" | 1 |
|
"SELECT date_format(datef,'%Y') as dm, SUM(f." . $this->field . ")" | 1 |
|
'SELECT SUM(pf.amount) as total_payments' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "facture_rec (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture_rec SET" | 1 |
|
'SELECT f.rowid, f.entity, f.titre as title, f.suspended, f.fk_soc, f.subtype, f.total_tva, f.localtax1, f.localtax2, f.total_ht, f.total_ttc' | 1 |
|
'SELECT l.rowid, l.fk_facture, l.fk_product, l.fk_parent_line, l.product_type, l.label as custom_label, l.description, l.product_type, l.price, l.qty, l.vat_src_code, l.tva_tx, ' | 1 |
|
"DELETE FROM $ef WHERE fk_object IN (SELECT rowid FROM " . $main . " WHERE fk_facture = " . ((int) $rowid) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facturedet_rec WHERE fk_facture = " . ((int) $rowid) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facture_rec WHERE rowid = " . ((int) $rowid) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "facturedet_rec (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet_rec SET " | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'facture_rec' | 1 |
|
'SELECT c.rowid, datec, tms as datem,' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element . ' WHERE rowid=' . ((int) $this->id) | 1 |
|
'SELECT l.rowid, l.fk_facture, l.fk_parent_line, l.fk_product, l.product_type, l.label as custom_label, l.description, l.product_type, l.price, l.qty, l.vat_src_code, l.tva_tx,' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet_rec SET" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "facture (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "facture SET ref='" . $this->db->escape($this->ref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
'SELECT f.rowid, f.entity, f.ref, f.ref_client, f.ref_ext, f.type, f.subtype, f.fk_soc' | 1 |
|
'SELECT l.rowid, l.fk_facture, l.fk_product, l.fk_parent_line, l.label as custom_label, l.description, l.product_type, l.price, l.qty, l.vat_src_code, l.tva_tx,' | 1 |
|
'SELECT rowid, type, situation_cycle_ref, situation_counter FROM ' . MAIN_DB_PREFIX . 'facture' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture SET" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'eventorganization_conferenceorboothattendee' | 1 |
|
"DELETE FROM " . $ef . " WHERE fk_object IN (SELECT rowid FROM " . $main . " WHERE fk_facture = " . ((int) $rowid) . ")" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'facturedet WHERE fk_facture = ' . ((int) $rowid) | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'facture WHERE rowid = ' . ((int) $rowid) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'facture/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'facture/" . $this->db->escape($this->newref) . "'" | 1 |
|
'SELECT fd.situation_percent FROM ' . MAIN_DB_PREFIX . 'facturedet fd INNER JOIN ' . MAIN_DB_PREFIX . 'facture f ON (fd.fk_facture = f.rowid) WHERE fd.fk_prev_id = ' . ((int) $idline) . ' AND f.fk_statut <> 0' | 1 |
|
'SELECT c.rowid, datec, date_valid as datev, tms as datem,' | 1 |
|
"SELECT f.rowid as rowid, f.ref, f.fk_statut as status, f.paye as paid," | 1 |
|
"SELECT f.rowid as rowid, f.ref, f.fk_statut, f.type, f.subtype, f.paye, pf.fk_paiement" | 1 |
|
"SELECT f.rowid, f.date_lim_reglement as datefin, f.fk_statut as status, f.total_ht" | 1 |
|
"SELECT max(situation_cycle_ref) as maxsituationref" | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'facture' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'facture SET situation_final = ' . ((int) $this->situation_final) . ' WHERE rowid = ' . ((int) $this->id) | 1 |
|
'SELECT max(situation_counter) FROM ' . MAIN_DB_PREFIX . 'facture' | 1 |
|
"SELECT rowid as id FROM " . MAIN_DB_PREFIX . "facture as f" | 1 |
|
"SELECT datef" | 1 |
|
'SELECT fd.rowid, fd.fk_facture, fd.fk_parent_line, fd.fk_product, fd.product_type, fd.label as custom_label, fd.description, fd.price, fd.qty, fd.vat_src_code, fd.tva_tx,' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'facturedet' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facturedet WHERE rowid = " . ((int) $this->id) | 1 |
|
"SELECT situation_percent FROM " . MAIN_DB_PREFIX . "facturedet" | 1 |
|
'SELECT fd.situation_percent FROM ' . MAIN_DB_PREFIX . 'facturedet fd' | 1 |
|
"SELECT SUM(amount) as mm, date_format(f.datev,'%Y-%m') as dm, 'claimed' as mode" | 1 |
|
"SELECT SUM(amount) as mm, date_format(f.datep,'%Y-%m') as dm, 'paid' as mode" | 1 |
|
"SELECT rowid, amount, label, f.datev, f.datep" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "localtax(" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "localtax SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "localtax" | 1 |
|
"SELECT sum(f.localtax) as amount" | 1 |
|
"SELECT sum(f.total_localtax) as total_localtax" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "localtax (localtaxtype, datep, datev, amount" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'localtax SET fk_bank = ' . ((int) $id) | 1 |
|
"SELECT SUM(amount) as total FROM " . MAIN_DB_PREFIX . "bank" | 1 |
|
"SELECT SUM(pf.amount) as total, COUNT(*) as nb" | 1 |
|
"SELECT f.rowid as facid, f.ref, f.datef as do, pf.amount as amount, b.fk_account as bankid, cp.code" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "pos_cash_fence (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'pos_cash_fence SET ref = rowid where rowid = ' . ((int) $this->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "pos_cash_fence" | 1 |
|
"SELECT c.id, c.libelle as label," | 1 |
|
"SELECT ptva.rowid, pv.rowid as id_tva, pv.amount as amount_tva, ptva.amount, pv.label, pv.datev as dm, ptva.datep as date_payment, ptva.fk_bank, ptva.num_paiement as num_payment," | 1 |
|
"SELECT pv.rowid, pv.amount, pv.label, pv.datev as dm, pv.datep as dp" | 1 |
|
'SELECT f.rowid as scid, f.libelle as label, f.paye, f.amount as sc_amount, pf.amount, pc.libelle as sc_type' | 1 |
|
"SELECT pl.rowid, pl.statut, pl.amount, pl.fk_user," | 1 |
|
"SELECT pl.rowid, pl.statut, pl.amount," | 1 |
|
"SELECT f.ref, f.rowid, f.total_ttc," | 1 |
|
"SELECT s.rowid,s.amount as total_ttc, pd.amount," | 1 |
|
"SELECT sum(pl.amount), pl.statut" | 1 |
|
"SELECT p.rowid, p.ref, p.amount, p.statut, p.datec" | 1 |
|
"SELECT f.ref, f.rowid, f.total_ttc, f.fk_statut, f.paye, f.type," | 1 |
|
"SELECT pl.rowid, pr.motif, p.ref, pl.statut, p.rowid as bonId," | 1 |
|
" SELECT pl.rowid, pr.motif, p.ref, pl.statut, p.rowid as bonId," | 1 |
|
"SELECT f.ref, f.rowid, f.total_ttc, s.nom as name, s.rowid as socid," | 1 |
|
"SELECT s.ref, s.rowid, s.amount, CONCAT(u.lastname, ' ', u.firstname) as name, u.rowid as uid," | 1 |
|
"SELECT p.rowid, p.ref, p.statut as status, p.datec" | 1 |
|
" SELECT p.rowid, p.ref, p.statut as status, p.datec" | 1 |
|
"SELECT COUNT(*) as nbtotalofrecords FROM (" . $sql . ") AS combined_results" | 1 |
|
"SELECT sum(pl.amount), count(pl.amount), pl.statut" | 1 |
|
"SELECT sum(pl.amount), count(pl.amount) as cc, pr.motif" | 1 |
|
"SELECT pl.rowid, pl.amount, pl.statut" | 1 |
|
"SELECT pf.rowid" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "prelevement_rejet (" | 1 |
|
" UPDATE " . MAIN_DB_PREFIX . "prelevement_lignes " | 1 |
|
"SELECT fk_user_demande" | 1 |
|
"SELECT f.rowid as facid, pl.amount" | 1 |
|
"SELECT pr.date_rejet as dr, motif, afacturer" | 1 |
|
"SELECT pl.rowid, pl.amount, p.ref, p.rowid as bon_rowid" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "prelevement (" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "prelevement_lignes (" | 1 |
|
"SELECT p.rowid, p.ref, p.amount, p.note" | 1 |
|
" UPDATE " . MAIN_DB_PREFIX . "prelevement_bons" | 1 |
|
" UPDATE " . MAIN_DB_PREFIX . "prelevement_lignes" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "prelevement_bons " | 1 |
|
"SELECT sum(pd.amount) as nb" | 1 |
|
"SELECT f.rowid, pd.rowid as pfdrowid" | 1 |
|
"SELECT substring(ref from char_length(ref) - 1)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "prelevement_bons (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "prelevement_demande" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "prelevement WHERE fk_prelevement_lignes IN (SELECT rowid FROM " . MAIN_DB_PREFIX . "prelevement_lignes WHERE fk_prelevement_bons = " . ((int) $this->id) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "prelevement_lignes WHERE fk_prelevement_bons = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "prelevement_bons WHERE rowid = " . ((int) $this->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "prelevement_demande SET fk_prelevement_bons = NULL, traite = 0 WHERE fk_prelevement_bons = " . ((int) $this->id) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "notify_def (datec,fk_user, fk_soc, fk_contact, fk_action)" | 1 |
|
"SELECT u.rowid as userId, u.address, u.zip, u.town, c.code as country_code, CONCAT(u.firstname,' ',u.lastname) as nom," | 1 |
|
"SELECT COUNT(*) AS nb FROM " . MAIN_DB_PREFIX . "prelevement_lignes" | 1 |
|
'SELECT f.rowid as scid, f.label as label, f.paye, f.amount as tva_amount, pf.amount' | 1 |
|
"SELECT f.ref, f.rowid, f.total_ttc, f.fk_statut, f.paye, f.type, f.datef, f.date_lim_reglement," | 1 |
|
"SELECT * FROM " . MAIN_DB_PREFIX . "salary as s, " . MAIN_DB_PREFIX . "prelevement_demande as pd" | 1 |
|
"SELECT count(d.rowid) as nb, sum(d.km) as km, d.type" | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, d.rowid, d.dated as date, d.tms as dm, d.km, d.fk_statut" | 1 |
|
"SELECT s.nom, d.fk_user, s.rowid as socid," | 1 |
|
"SELECT YEAR(dated) as dm, count(*)" | 1 |
|
"SELECT MONTH(dated) as dm, count(*)" | 1 |
|
"SELECT date_format(dated,'%m') as dm, sum(" . $this->field . ")" | 1 |
|
"SELECT date_format(dated,'%m') as dm, avg(" . $this->field . ")" | 1 |
|
"SELECT date_format(dated,'%Y') as year, count(*) as nb, sum(" . $this->field . ") as total, avg(" . $this->field . ") as avg" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "deplacement (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "deplacement " | 1 |
|
"SELECT rowid, fk_user, type, fk_statut, km, fk_soc, dated, note_private, note_public, fk_projet as fk_project, extraparams" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "deplacement WHERE rowid = " . ((int) $id) | 1 |
|
'SELECT c.rowid, c.datec, c.fk_user_author, c.fk_user_modif,' | 1 |
|
"SELECT sum(p.amount) as amount_ttc, date_format(p.datep,'%Y-%m') as dm" | 1 |
|
"SELECT c.libelle as nom, date_format(cs.date_ech,'%Y-%m') as dm, sum(cs.amount) as amount" | 1 |
|
"SELECT c.libelle as nom, date_format(p.datep,'%Y-%m') as dm, sum(p.amount) as amount" | 1 |
|
"SELECT s.label as nom, date_format(" . $column . ",'%Y-%m') as dm, sum(s.amount) as amount" | 1 |
|
"SELECT p.label as nom, date_format(" . $column . ",'%Y-%m') as dm, sum(p.amount) as amount" | 1 |
|
"SELECT date_format(date_valid,'%Y-%m') as dm, sum(p.total_ht) as amount_ht,sum(p.total_ttc) as amount_ttc" | 1 |
|
"SELECT date_format(pe.datep,'%Y-%m') as dm, sum(p.total_ht) as amount_ht,sum(p.total_ttc) as amount_ttc" | 1 |
|
"SELECT p.societe as nom, p.firstname, p.lastname, date_format(pe.datep,'%Y-%m') as dm, sum(p.amount) as amount" | 1 |
|
"SELECT date_format(p.datep, '%Y-%m') AS dm, SUM(p.amount) AS amount FROM " . MAIN_DB_PREFIX . "payment_various as p" | 1 |
|
"SELECT date_format(p.datep, '%Y-%m') AS dm, SUM(p.amount) AS amount FROM " . MAIN_DB_PREFIX . "payment_various AS p" | 1 |
|
"SELECT date_format(p.datep, '%Y-%m') AS dm, SUM(p.amount_capital + p.amount_insurance + p.amount_interest) AS amount" | 1 |
|
"SELECT b.doc_ref, b.numero_compte, b.subledger_account, b.subledger_label, aa.pcg_type, date_format(b.doc_date,'%Y-%m') as dm, sum(b.debit) as debit, sum(b.credit) as credit, sum(b.montant) as amount" | 1 |
|
"SELECT -1 as socid, aa.pcg_type, SUM(f.credit - f.debit) as amount" | 1 |
|
"SELECT 'Autres' as name, '0' as idp, sum(p.amount) as amount_ttc" | 1 |
|
"SELECT p.societe as name, p.firstname, p.lastname, date_format(p.datedon,'%Y-%m') as dm, sum(p.amount) as amount" | 1 |
|
"SELECT u.rowid, u.firstname, u.lastname, s.fk_user as fk_user, s.label as label, date_format($column,'%Y-%m') as dm, sum(s.amount) as amount" | 1 |
|
"SELECT u.rowid, u.firstname, u.lastname, s.fk_user as fk_user, p.label as label, date_format($column,'%Y-%m') as dm, sum(p.amount) as amount" | 1 |
|
"SELECT p.rowid, p.ref, u.rowid as userid, u.firstname, u.lastname, date_format(date_valid,'%Y-%m') as dm, p.total_ht as amount_ht, p.total_ttc as amount_ttc" | 1 |
|
"SELECT p.rowid, p.ref, u.rowid as userid, u.firstname, u.lastname, date_format(pe.datep,'%Y-%m') as dm, sum(pe.amount) as amount_ht, sum(pe.amount) as amount_ttc" | 1 |
|
"SELECT SUM(p.amount) AS amount FROM " . MAIN_DB_PREFIX . "payment_various as p" | 1 |
|
'SELECT l.rowid as id, l.label AS label, SUM(p.amount_capital + p.amount_insurance + p.amount_interest) as amount FROM ' . MAIN_DB_PREFIX . 'payment_loan as p' | 1 |
|
"SELECT DISTINCT s.rowid as socid, s.nom as name, s.zip, s.town, s.fk_pays," | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.zip, s.town, s.fk_pays, sum(pf.amount) as amount_ttc" | 1 |
|
"SELECT p.rowid as rowid, p.ref as ref, p.label as label, p.fk_product_type as product_type," | 1 |
|
"SELECT date_format(p.datep, '%Y-%m') as dm, sum(pf.amount) as amount_ttc" | 1 |
|
"SELECT date_format(b.doc_date, '%Y-%m') as dm, sum(b.credit - b.debit) as amount_ttc" | 1 |
|
"SELECT date_format(p.datep,'%Y-%m') as dm, sum(p.amount) as amount_ttc" | 1 |
|
"SELECT DISTINCT p.rowid as rowid, p.ref as ref, p.label as label, p.fk_product_type as product_type," | 1 |
|
"SELECT date_format(p.datep,'%Y-%m') as dm, sum(pf.amount) as amount_ttc" | 1 |
|
"SELECT date_format(b.doc_date, '%Y-%m') as dm, sum(b.debit - b.credit) as amount_ttc" | 1 |
|
"SELECT DISTINCT s.rowid as socid, s.nom as name, s.name_alias, s.zip, s.town, s.fk_pays," | 1 |
|
"SELECT s.rowid as socid, s.nom as name, s.name_alias, s.zip, s.town, s.fk_pays, sum(pf.amount) as amount_ttc" | 1 |
|
"SELECT '0' as socid, 'Autres' as name, sum(p.amount) as amount_ttc" | 1 |
|
"SELECT fd.tva_tx AS vatrate," | 1 |
|
"SELECT ffd.tva_tx AS vatrate," | 1 |
|
"SELECT u.rowid as rowid, u.lastname as name, u.firstname as firstname, sum(f.total_ht) as amount, sum(f.total_ttc) as amount_ttc" | 1 |
|
"SELECT u.rowid as rowid, u.lastname as name, u.firstname as firstname, sum(pf.amount) as amount_ttc" | 1 |
|
"SELECT -1 as rowidx, '' as name, '' as firstname, sum(DISTINCT p.amount) as amount_ttc" | 1 |
|
'SELECT f.rowid as facid' | 1 |
|
'SELECT f.rowid as facid, f.ref, f.type, f.total_ttc, f.paye, f.entity, f.fk_statut, pf.amount, s.nom as name, s.rowid as socid' | 1 |
|
"SELECT p.rowid, p.ref, p.datep, p.amount, p.statut, p.num_paiement as num_payment," | 1 |
|
"SELECT p.rowid, p.ref, p.datep, p.fk_bank, p.statut, p.num_paiement as num_payment, p.amount" | 1 |
|
"SELECT p.rowid, p.datep as dp, p.amount, p.statut" | 1 |
|
"SELECT ba.rowid as bid, ba.label," | 1 |
|
"SELECT b.rowid, b.rowid as ref, b.label, b.amount, b.num_chq, b.emetteur," | 1 |
|
"SELECT bc.rowid, bc.date_bordereau as db, bc.amount, bc.ref as ref," | 1 |
|
"SELECT bc.rowid, bc.ref, bc.date_bordereau," | 1 |
|
"SELECT bc.rowid, bc.datec, bc.fk_user_author, bc.fk_bank_account, bc.amount, bc.ref, bc.statut, bc.nbcheque, bc.ref_ext," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bordereau_cheque (" | 1 |
|
"SELECT b.rowid" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bordereau_cheque" | 1 |
|
"SELECT b.banque, b.emetteur, b.amount, b.num_chq" | 1 |
|
"SELECT amount " | 1 |
|
'SELECT p.rowid, p.ref, p.ref_ext, p.datep as dp, p.amount, p.statut, p.ext_payment_id, p.ext_payment_site, p.fk_bank, p.multicurrency_amount,' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "paiement (entity, ref, ref_ext, datec, datep, amount, multicurrency_amount, fk_paiement, num_paiement, note, ext_payment_id, ext_payment_site, fk_user_creat, pos_change)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "paiement_facture (fk_facture, fk_paiement, amount, multicurrency_amount, multicurrency_code, multicurrency_tx)" | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'paiement_facture' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'paiement' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . $this->table_element . ' set fk_bank = ' . ((int) $id_bank) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . $this->table_element . ' SET statut = 1 WHERE rowid = ' . ((int) $this->id) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . $this->table_element . ' SET statut = 2 WHERE rowid = ' . ((int) $this->id) | 1 |
|
'SELECT p.rowid, p.datec, p.fk_user_creat, p.fk_user_modif, p.tms' | 1 |
|
'SELECT pf.fk_facture' | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.email, u.admin, u.photo, u.salary as current_salary, u.fk_soc as fk_soc, u.statut as status," | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.email, u.admin, u.photo, u.gender, u.salary as current_salary, u.fk_soc as fk_soc, u.statut as status," | 1 |
|
"SELECT YEAR(dateep) as dm, count(*)" | 1 |
|
"SELECT MONTH(dateep) as dm, count(*)" | 1 |
|
"SELECT date_format(dateep,'%m') as dm, sum(" . $this->field . ")" | 1 |
|
"SELECT date_format(dateep,'%m') as dm, avg(" . $this->field . ")" | 1 |
|
"SELECT date_format(dateep,'%Y') as year, count(*) as nb, sum(" . $this->field . ") as total, avg(" . $this->field . ") as avg" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "payment_salary (entity, fk_salary, datec, datep, amount," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_salary SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "payment_salary" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_salary SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id) | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "salary as t" | 1 |
|
"SELECT t.rowid FROM " . MAIN_DB_PREFIX . "payment_salary as t, " . MAIN_DB_PREFIX . "salary as s" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "salary (fk_user" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'salary SET fk_bank = ' . ((int) $id_bank) | 1 |
|
'SELECT ps.rowid, ps.datec, ps.tms as datem, ps.fk_user_author, ps.fk_user_modif' | 1 |
|
'SELECT f.rowid as scid, f.label, f.paye, f.amount as sc_amount, ps.amount' | 1 |
|
"SELECT s.amount, s.rowid FROM " . MAIN_DB_PREFIX . "salary as s" | 1 |
|
"SELECT ac.id, ac.ref, ac.datep as date_start, ac.datep2 as date_end, ac.label, acr.fk_element" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'calendar/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'calendar/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'availabilities/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'availabilities/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT s.rowid, s.ref, s.label, s.date_creation, s.tms, s.status, COUNT(rc.rowid) as nbapplications" | 1 |
|
"SELECT rc.rowid, rc.ref, rc.email, rc.lastname, rc.firstname, rc.date_creation, rc.tms, rc.status" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'recruitmentcandidature/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'recruitmentcandidature/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'recruitmentjobposition/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'recruitmentjobposition/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "recruitment_recruitmentcandidature WHERE fk_recruitmentjobposition = " . ((int) $object->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "website_page SET fk_page = NULL" | 1 |
|
"SELECT wp.rowid, wp.type_container , wp.pageurl, wp.lang, wp.fk_page, wp.tms as tms," | 1 |
|
'SELECT rowid as id, lang, pageurl from ' . MAIN_DB_PREFIX . 'website_page' | 1 |
|
"SELECT MAX(rowid) as pagepreviousid FROM " . MAIN_DB_PREFIX . "website_page WHERE rowid < " . ((int) $pageid) . " AND fk_website = " . ((int) $object->id) | 1 |
|
"SELECT MIN(rowid) as pagenextid FROM " . MAIN_DB_PREFIX . "website_page WHERE rowid > " . ((int) $pageid) . " AND fk_website = " . ((int) $object->id) | 1 |
|
"SELECT rowid, lang from " . MAIN_DB_PREFIX . "website_page where fk_page = " . ((int) $objectpage->id) | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'categorie_website_page' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'website_page' | 1 |
|
'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, image, keywords, status, date_creation, tms, import_key, grabbed_from, type_container, htmlheader, content, author_alias, allowed_in_frames)' | 1 |
|
"UPDATE llx_website SET fk_default_home = " . ($objectpageold->newid > 0 ? $this->db->escape($objectpageold->newid) . "__+MAX_llx_website_page__" : "null") . " WHERE rowid = __WEBSITE_ID__;" | 1 |
|
"UPDATE llx_website SET lang = '" . $this->db->escape($this->lang) . "' WHERE rowid = __WEBSITE_ID__;\n" | 1 |
|
"UPDATE llx_website SET otherlang = '" . $this->db->escape($this->otherlang) . "' WHERE rowid = __WEBSITE_ID__;\n" | 1 |
|
'SELECT MAX(rowid) as max from ' . MAIN_DB_PREFIX . 'website_page' | 1 |
|
"SELECT fk_default_home FROM " . MAIN_DB_PREFIX . "website WHERE rowid = " . ((int) $object->id) | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "website_page WHERE fk_website = " . ((int) $this->id) | 1 |
|
"UPDATE " . $this->db->prefix( ) . "website SET" | 1 |
|
'SELECT COUNT(t.rowid) as nb' | 1 |
|
"SELECT a.rowid, a.status, a.ref, a.tms as datem, a.status, a.fk_product" | 1 |
|
"SELECT a.rowid, a.status, a.ref, a.tms as datem, a.status" | 1 |
|
" Select rowid from " . MAIN_DB_PREFIX . "element_element" | 1 |
|
'SELECT COUNT(rowid) as nb FROM ' . MAIN_DB_PREFIX . 'stock_mouvement as sm' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'mrp_production WHERE fk_mo = ' . ((int) $this->id) | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "mrp_production WHERE fk_mo = " . (int) $this->id | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'mrp/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'mrp/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "mrp_mo as mo_child" | 1 |
|
"SELECT lineparent.fk_mo as id_moparent FROM " . MAIN_DB_PREFIX . "mrp_mo as mo" | 1 |
|
"SELECT pb.batch, pb.rowid, ps.fk_entrepot, e.ref, pb.qty" | 1 |
|
"SELECT rowid, status FROM " . MAIN_DB_PREFIX . "pos_cash_fence WHERE" | 1 |
|
'SELECT code FROM ' . MAIN_DB_PREFIX . 'multicurrency' | 1 |
|
"SELECT rowid, status, entity FROM " . MAIN_DB_PREFIX . "pos_cash_fence WHERE" | 1 |
|
"SELECT rowid, entity, label, leftpos, toppos, floor FROM " . MAIN_DB_PREFIX . "takepos_floor_tables WHERE floor = " . ((int) $floor) . " AND entity IN (" . getEntity('takepos') . ")" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "takepos_floor_tables SET leftpos = " . ((int) $left) . ", toppos = " . ((int) $top) . " WHERE rowid = " . ((int) $place) | 1 |
|
"DELETE from " . MAIN_DB_PREFIX . "takepos_floor_tables WHERE rowid = " . ((int) $place) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "takepos_floor_tables SET label='" . $db->escape($newname) . "' WHERE rowid = " . ((int) $place) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "takepos_floor_tables(entity, label, leftpos, toppos, floor) VALUES (" . $conf->entity . ", '', '45', '45', " . ((int) $floor) . ")" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "takepos_floor_tables SET label = rowid WHERE label = ''" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "facture where ref='(PROV-POS" . $db->escape($_SESSION["takeposterminal"] . "-" . $place) . ")'" | 1 |
|
"SELECT p.pos_change as pos_change, p.datep as date, p.fk_paiement, p.num_paiement as num," | 1 |
|
"SELECT id FROM " . MAIN_DB_PREFIX . "c_paiement" | 1 |
|
"SELECT fk_parent_line FROM " . MAIN_DB_PREFIX . "facturedet where rowid = " . ((int) $selectedline) | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "facturedet where fk_facture = " . ((int) $placeid) . " ORDER BY rowid DESC" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet SET batch = '" . $db->escape($batch) . "', fk_warehouse = " . ((int) $warehouseid) | 1 |
|
"SELECT label FROM " . MAIN_DB_PREFIX . "takepos_floor_tables where rowid=" . ((int) $place) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='1' where rowid=" . $line->id | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='4' where special_code='1' and fk_facture=" . $invoice->id | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='2' where rowid=" . $line->id | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='4' where special_code='2' and fk_facture=" . $invoice->id | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='3' where rowid=" . $line->id | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='4' where special_code='3' and fk_facture=" . $invoice->id | 1 |
|
"SELECT rowid, datec, ref FROM " . MAIN_DB_PREFIX . "facture" | 1 |
|
"SELECT floor, label FROM " . MAIN_DB_PREFIX . "takepos_floor_tables where rowid=" . ((int) $place) | 1 |
|
"SELECT rowid, entity, label, leftpos, toppos, floor FROM " . MAIN_DB_PREFIX . "takepos_floor_tables" | 1 |
|
"SELECT e.rowid, e.ref, e.lieu, e.fk_parent, e.statut, ps.reel, ps.rowid as product_stock_id, p.pmp" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture set ref='(PROV-POS" . $_SESSION["takeposterminal"] . "-SPLIT)' where rowid=" . $placeid | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture set ref='(PROV-POS" . $_SESSION["takeposterminal"] . "-" . $place . ")' where rowid=" . $placeid | 1 |
|
"SELECT rowid, entity, label, leftpos, toppos, floor FROM " . MAIN_DB_PREFIX . "takepos_floor_tables WHERE entity IN (" . getEntity('takepos') . ")" | 1 |
|
"SELECT rowid, ref, label, tosell, tobuy, barcode, price, price_ttc" | 1 |
|
'SELECT p.rowid, p.ref, p.label, p.tosell, p.tobuy, p.barcode, p.price, p.price_ttc' | 1 |
|
'SELECT p.rowid, p.printer_name, p.printer_location, p.printer_id, p.copy, p.module, p.driver, p.userid, u.login FROM ' . MAIN_DB_PREFIX . 'printing as p, ' . MAIN_DB_PREFIX . 'user as u WHERE p.userid=u.rowid' | 1 |
|
"SELECT tf.code, tf.label, count(de.rowid) as nb, sum(de.total_ht) as km" | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.statut as user_status, u.photo, u.email, u.admin," | 1 |
|
"SELECT d.rowid, d.ref, d.fk_user_author, d.total_ht, d.total_tva, d.total_ttc, d.fk_statut as status," | 1 |
|
'SELECT er.rowid as eid, er.paid, er.total_ttc, per.amount' | 1 |
|
'SELECT pndf.rowid, pndf.rowid as ref, pndf.datep, pndf.amount as pamount, pndf.num_payment' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . $this->table_element . " SET ref='" . $this->db->escape($this->ref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
"SELECT d.rowid, d.entity, d.ref, d.note_public, d.note_private," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "expensereport" | 1 |
|
"SELECT de.fk_expensereport, de.date, de.comments, de.total_ht, de.total_ttc" | 1 |
|
"SELECT d.rowid, d.fk_user_author, d.ref, d.fk_statut as status" | 1 |
|
' SELECT de.rowid, de.comments, de.qty, de.value_unit, de.date, de.rang,' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'expensereport/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'expensereport/" . $this->db->escape($this->newref) . "'" | 1 |
|
'SELECT date_debut' | 1 |
|
'SELECT e.rowid FROM ' . MAIN_DB_PREFIX . 'expensereport e' | 1 |
|
"SELECT c.code as code_type_fees, c.label as label_type_fees" | 1 |
|
"SELECT p.ref as ref_projet, p.title as title_projet" | 1 |
|
' DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element_line | 1 |
|
"SELECT rowid, date_debut, date_fin" | 1 |
|
"SELECT count(ex.rowid) as nb" | 1 |
|
"SELECT ex.rowid, ex.date_valid" | 1 |
|
" SELECT r.range_ik, t.ikoffset, t.coef" | 1 |
|
" SELECT count(n.qty) as cumul FROM " . MAIN_DB_PREFIX . "expensereport_det n" | 1 |
|
'SELECT fde.rowid, fde.fk_expensereport, fde.fk_c_type_fees, fde.fk_c_exp_tax_cat, fde.fk_projet as fk_project, fde.date,' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'expensereport_det' | 1 |
|
'SELECT SUM(d.total_ttc) as total_amount' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "expensereport_det SET" | 1 |
|
'SELECT er.rowid' | 1 |
|
"SELECT t.rowid FROM " . MAIN_DB_PREFIX . "payment_expensereport as t, " . MAIN_DB_PREFIX . "expensereport as e" | 1 |
|
'SELECT rowid, label, entity, active' | 1 |
|
'SELECT r.rowid FROM ' . MAIN_DB_PREFIX . 'c_exp_tax_range r' | 1 |
|
' SELECT r.rowid, r.fk_c_exp_tax_cat, r.range_ik, c.label, i.rowid as fk_expense_ik, r.active as range_active, c.active as cat_active' | 1 |
|
'SELECT MAX(counted) as nbRange FROM (' | 1 |
|
' SELECT COUNT(*) as counted' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "payment_expensereport (fk_expensereport, datec, datep, amount," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_expensereport SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "payment_expensereport" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "payment_expensereport SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id) | 1 |
|
'SELECT e.rowid, e.datec, e.fk_user_creat, e.fk_user_modif, e.tms' | 1 |
|
"SELECT YEAR(" . $this->db->ifsql("e." . $this->datetouse . " IS NULL", "e.date_create", "e." . $this->datetouse) . ") as dm, count(*)" | 1 |
|
"SELECT MONTH(" . $this->db->ifsql("e." . $this->datetouse . " IS NULL", "e.date_create", "e." . $this->datetouse) . ") as dm, count(*)" | 1 |
|
"SELECT date_format(" . $this->db->ifsql("e." . $this->datetouse . " IS NULL", "e.date_create", "e." . $this->datetouse) . ",'%m') as dm, sum(" . $this->field . ")" | 1 |
|
"SELECT date_format(" . $this->db->ifsql("e." . $this->datetouse . " IS NULL", "e.date_create", "e." . $this->datetouse) . ",'%m') as dm, avg(" . $this->field . ")" | 1 |
|
"SELECT date_format(" . $this->db->ifsql("e." . $this->datetouse . " IS NULL", "e.date_create", "e." . $this->datetouse) . ",'%Y') as year, count(*) as nb, sum(" . $this->field . ") as total, avg(" . $this->field . ") as avg" | 1 |
|
'SELECT id, uri, displayname, principaluri, description, synctoken FROM ' . $this->addressBooksTableName . ' WHERE principaluri = ?' | 1 |
|
'UPDATE ' . $this->addressBooksTableName . ' SET ' | 1 |
|
'INSERT INTO ' . $this->addressBooksTableName . ' (uri, displayname, description, principaluri, synctoken) VALUES (:uri, :displayname, :description, :principaluri, 1)' | 1 |
|
'DELETE FROM ' . $this->cardsTableName . ' WHERE addressbookid = ?' | 1 |
|
'DELETE FROM ' . $this->addressBooksTableName . ' WHERE id = ?' | 1 |
|
'DELETE FROM ' . $this->addressBookChangesTableName . ' WHERE addressbookid = ?' | 1 |
|
'SELECT id, uri, lastmodified, etag, size FROM ' . $this->cardsTableName . ' WHERE addressbookid = ?' | 1 |
|
'SELECT id, carddata, uri, lastmodified, etag, size FROM ' . $this->cardsTableName . ' WHERE addressbookid = ? AND uri = ? LIMIT 1' | 1 |
|
'SELECT id, uri, lastmodified, etag, size, carddata FROM ' . $this->cardsTableName . ' WHERE addressbookid = ? AND uri IN (' | 1 |
|
'INSERT INTO ' . $this->cardsTableName . ' (carddata, uri, lastmodified, addressbookid, size, etag) VALUES (?, ?, ?, ?, ?, ?)' | 1 |
|
'UPDATE ' . $this->cardsTableName . ' SET carddata = ?, lastmodified = ?, size = ?, etag = ? WHERE uri = ? AND addressbookid =?' | 1 |
|
'DELETE FROM ' . $this->cardsTableName . ' WHERE addressbookid = ? AND uri = ?' | 1 |
|
'SELECT synctoken FROM ' . $this->addressBooksTableName . ' WHERE id = ?' | 1 |
|
'SELECT uri, operation FROM ' . $this->addressBookChangesTableName . ' WHERE synctoken >= ? AND synctoken < ? AND addressbookid = ? ORDER BY synctoken' | 1 |
|
'SELECT uri FROM ' . $this->cardsTableName . ' WHERE addressbookid = ?' | 1 |
|
'INSERT INTO ' . $this->addressBookChangesTableName . ' (uri, synctoken, addressbookid, operation) SELECT ?, synctoken, ?, ? FROM ' . $this->addressBooksTableName . ' WHERE id = ?' | 1 |
|
'UPDATE ' . $this->addressBooksTableName . ' SET synctoken = synctoken + 1 WHERE id = ?' | 1 |
|
'SELECT ' . implode(',', $fields) . ' FROM ' . $this->tableName | 1 |
|
'SELECT ' . implode(',', $fields) . ' FROM ' . $this->tableName . ' WHERE uri = ?' | 1 |
|
'UPDATE ' . $this->tableName . ' SET ' | 1 |
|
'SELECT uri FROM ' . $this->tableName . ' WHERE ' | 1 |
|
'SELECT uri FROM ' . $this->tableName . ' WHERE lower(email)=lower(?)' | 1 |
|
'SELECT * FROM ' . $this->tableName . ' WHERE uri = ?' | 1 |
|
'SELECT principals.uri as uri FROM ' . $this->groupMembersTableName . ' AS groupmembers LEFT JOIN ' . $this->tableName . ' AS principals ON groupmembers.member_id = principals.id WHERE groupmembers.principal_id = ?' | 1 |
|
'SELECT principals.uri as uri FROM ' . $this->groupMembersTableName . ' AS groupmembers LEFT JOIN ' . $this->tableName . ' AS principals ON groupmembers.principal_id = principals.id WHERE groupmembers.member_id = ?' | 1 |
|
'SELECT id, uri FROM ' . $this->tableName . ' WHERE uri IN (? ' . str_repeat(', ? ', count($members)) . ');' | 1 |
|
'DELETE FROM ' . $this->groupMembersTableName . ' WHERE principal_id = ?;' | 1 |
|
'INSERT INTO ' . $this->groupMembersTableName . ' (principal_id, member_id) VALUES (?, ?);' | 1 |
|
'INSERT INTO ' . $this->tableName . ' (uri) VALUES (?)' | 1 |
|
'SELECT owner, token, timeout, created, scope, depth, uri FROM ' . $this->tableName . ' WHERE (created > (? - timeout)) AND ((uri = ?)' | 1 |
|
'UPDATE ' . $this->tableName . ' SET owner = ?, timeout = ?, scope = ?, depth = ?, uri = ?, created = ? WHERE token = ?' | 1 |
|
'INSERT INTO ' . $this->tableName . ' (owner,timeout,scope,depth,uri,created,token) VALUES (?,?,?,?,?,?,?)' | 1 |
|
'DELETE FROM ' . $this->tableName . ' WHERE uri = ? AND token = ?' | 1 |
|
'SELECT digesta1 FROM ' . $this->tableName . ' WHERE username = ?' | 1 |
|
'SELECT ' . $this->digestColumn . ' FROM ' . $this->tableName . ' WHERE ' . $this->uuidColumn . ' = ?' | 1 |
|
'SELECT name, value, valuetype FROM ' . $this->tableName . ' WHERE path = ?' | 1 |
|
<<<SQL INSERT INTO {$this->tableName} (path, name, valuetype, value) VALUES (:path, :name, :valuetype, :value) ON CONFLICT (path, name) DO UPDATE SET valuetype = :valuetype, value = :value SQL | 1 |
|
'DELETE FROM ' . $this->tableName . ' WHERE path = ? AND name = ?' | 1 |
|
'DELETE FROM ' . $this->tableName . " WHERE path = ? OR path LIKE ? ESCAPE '='" | 1 |
|
'SELECT id, path FROM ' . $this->tableName . ' WHERE path = ? OR path LIKE ?' | 1 |
|
'UPDATE ' . $this->tableName . ' SET path = ? WHERE id = ?' | 1 |
|
<<<SQL SELECT {$this->calendarInstancesTableName}.id as id, $fields FROM {$this->calendarInstancesTableName} LEFT JOIN {$this->calendarTableName} ON {$this->calendarInstancesTableName}.calendarid = {$this->calendarTableName}.id WHERE principaluri = ? ORDER BY calendarorder ASC SQL | 1 |
|
'INSERT INTO ' . $this->calendarTableName . ' (synctoken, components) VALUES (1, ?)' | 1 |
|
'INSERT INTO ' . $this->calendarInstancesTableName . ' (' . implode(', ', $fieldNames) . ') VALUES (' . implode(', ', array_keys($values)) . ')' | 1 |
|
'UPDATE ' . $this->calendarInstancesTableName . ' SET ' . implode(', ', $valuesSql) . ' WHERE id = ?' | 1 |
|
'SELECT access FROM ' . $this->calendarInstancesTableName . ' where id = ?' | 1 |
|
'DELETE FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = ?' | 1 |
|
'DELETE FROM ' . $this->calendarChangesTableName . ' WHERE calendarid = ?' | 1 |
|
'DELETE FROM ' . $this->calendarInstancesTableName . ' WHERE calendarid = ?' | 1 |
|
'DELETE FROM ' . $this->calendarTableName . ' WHERE id = ?' | 1 |
|
'DELETE FROM ' . $this->calendarInstancesTableName . ' WHERE id = ?' | 1 |
|
'SELECT id, uri, lastmodified, etag, calendarid, size, componenttype FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = ?' | 1 |
|
'SELECT id, uri, lastmodified, etag, calendarid, size, calendardata, componenttype FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = ? AND uri = ?' | 1 |
|
'SELECT id, uri, lastmodified, etag, calendarid, size, calendardata, componenttype FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = ? AND uri IN (' | 1 |
|
'INSERT INTO ' . $this->calendarObjectTableName . ' (calendarid, uri, calendardata, lastmodified, etag, size, componenttype, firstoccurence, lastoccurence, uid) VALUES (?,?,?,?,?,?,?,?,?,?)' | 1 |
|
'UPDATE ' . $this->calendarObjectTableName . ' SET calendardata = ?, lastmodified = ?, etag = ?, size = ?, componenttype = ?, firstoccurence = ?, lastoccurence = ?, uid = ? WHERE calendarid = ? AND uri = ?' | 1 |
|
'DELETE FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = ? AND uri = ?' | 1 |
|
'SELECT uri, calendardata FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = :calendarid' | 1 |
|
'SELECT uri FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = :calendarid' | 1 |
|
'SELECT uri, operation, synctoken FROM ' . $this->calendarChangesTableName . ' WHERE synctoken >= ? AND calendarid = ? ORDER BY synctoken' | 1 |
|
'SELECT synctoken FROM ' . $this->calendarTableName . ' WHERE id = ?' | 1 |
|
'SELECT uri FROM ' . $this->calendarObjectTableName . ' WHERE calendarid = ?' | 1 |
|
'INSERT INTO ' . $this->calendarChangesTableName . ' (uri, synctoken, calendarid, operation) SELECT ?, synctoken, ?, ? FROM ' . $this->calendarTableName . ' WHERE id = ?' | 1 |
|
'UPDATE ' . $this->calendarTableName . ' SET synctoken = synctoken + 1 WHERE id = ?' | 1 |
|
'SELECT ' . $fields . ' FROM ' . $this->calendarSubscriptionsTableName . ' WHERE principaluri = ? ORDER BY calendarorder ASC' | 1 |
|
'INSERT INTO ' . $this->calendarSubscriptionsTableName . ' (' . implode(', ', $fieldNames) . ') VALUES (' . implode(', ', array_keys($values)) . ')' | 1 |
|
'UPDATE ' . $this->calendarSubscriptionsTableName . ' SET ' . implode(', ', $valuesSql) . ', lastmodified = ? WHERE id = ?' | 1 |
|
'DELETE FROM ' . $this->calendarSubscriptionsTableName . ' WHERE id = ?' | 1 |
|
'SELECT uri, calendardata, lastmodified, etag, size FROM ' . $this->schedulingObjectTableName . ' WHERE principaluri = ? AND uri = ?' | 1 |
|
'SELECT id, calendardata, uri, lastmodified, etag, size FROM ' . $this->schedulingObjectTableName . ' WHERE principaluri = ?' | 1 |
|
'DELETE FROM ' . $this->schedulingObjectTableName . ' WHERE principaluri = ? AND uri = ?' | 1 |
|
'INSERT INTO ' . $this->schedulingObjectTableName . ' (principaluri, calendardata, uri, lastmodified, etag, size) VALUES (?, ?, ?, ?, ?, ?)' | 1 |
|
'DELETE FROM ' . $this->calendarInstancesTableName . ' WHERE calendarid = ? AND share_href = ? AND access IN (2,3)' | 1 |
|
'UPDATE ' . $this->calendarInstancesTableName . ' SET access = ?, share_displayname = ?, share_invitestatus = ? WHERE calendarid = ? AND share_href = ?' | 1 |
|
' INSERT INTO ' . $this->calendarInstancesTableName . ' ( calendarid, principaluri, access, displayname, uri, description, calendarorder, calendarcolor, timezone, transparent, share_href, share_displayname, share_invitestatus ) SELECT ?, ?, ?, displayname, ?, description, calendarorder, calendarcolor, timezone, 1, ?, ?, ? FROM ' . $this->calendarInstancesTableName . ' WHERE id = ?' | 1 |
|
'SELECT id, uri FROM simple_calendars WHERE principaluri = ? ORDER BY id ASC' | 1 |
|
'INSERT INTO simple_calendars (principaluri, uri) VALUES (?, ?)' | 1 |
|
'DELETE FROM simple_calendarobjects WHERE calendarid = ?' | 1 |
|
'DELETE FROM simple_calendars WHERE id = ?' | 1 |
|
'SELECT id, uri, calendardata FROM simple_calendarobjects WHERE calendarid = ?' | 1 |
|
'SELECT id, uri, calendardata FROM simple_calendarobjects WHERE calendarid = ? AND uri = ?' | 1 |
|
'INSERT INTO simple_calendarobjects (calendarid, uri, calendardata) VALUES (?,?,?)' | 1 |
|
'UPDATE simple_calendarobjects SET calendardata = ? WHERE calendarid = ? AND uri = ?' | 1 |
|
'DELETE FROM simple_calendarobjects WHERE calendarid = ? AND uri = ?' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "oauth_token (service, token, entity, datec)" | 1 |
|
"SELECT token, datec, tms, state FROM " . MAIN_DB_PREFIX . "oauth_token" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "oauth_token" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "oauth_token (service, state, entity)" | 1 |
|
"SELECT state FROM " . MAIN_DB_PREFIX . "oauth_token" | 1 |
|
'Update cookie ' . $newName . '=' . $newCookie['value'] | 1 |
|
"INSERT INTO %tablename% (id, data, meta_utime, meta_datetime, meta_uri, meta_ip, meta_method) VALUES (?, ?, ?, ?, ?, ?, ?)" | 1 |
|
"SELECT data FROM %tablename% WHERE id = ?" | 1 |
|
"SELECT data FROM %tablename% %where% ORDER BY meta_datetime DESC LIMIT %limit% OFFSET %offset%" | 1 |
|
"DELETE FROM %tablename%" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "overwrite_trans set transkey = '" . $db->escape($transkey) . "', transvalue = '" . $db->escape($transvalue) . "' WHERE rowid = " . (GETPOSTINT('rowid')) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "overwrite_trans(lang, transkey, transvalue, entity) VALUES ('" . $db->escape($langcode) . "','" . $db->escape($transkey) . "','" . $db->escape($transvalue) . "', " . ((int) $conf->entity) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "overwrite_trans WHERE rowid = " . ((int) $id) | 1 |
|
"SELECT rowid, entity, lang, transkey, transvalue" | 1 |
|
"SELECT p.rowid, p.printer_name, p.printer_location, p.printer_id, p.copy, p.module, p.driver, p.userid, u.login" | 1 |
|
"SELECT f.rowid as rowid, f.entity, f.ref, f.description, f.virtualhost, f.position, f.status, f.date_creation, f.lastaccess, f.pageviews_previous_month, f.pageviews_total FROM " . MAIN_DB_PREFIX . 'website as f WHERE f.entity IN (' . getEntity('website') . ')' | 1 |
|
"SELECT MAX(" . $tabrowid[$id] . ") newid from " . $tabname[$id] | 1 |
|
"DELETE from " . MAIN_DB_PREFIX . "website_account WHERE fk_website = " . ((int) $rowid) | 1 |
|
"DELETE from " . MAIN_DB_PREFIX . "website_page WHERE fk_website = " . ((int) $rowid) | 1 |
|
"DELETE from " . MAIN_DB_PREFIX . "website_extrafields WHERE fk_object = " . ((int) $rowid) | 1 |
|
"DELETE from " . MAIN_DB_PREFIX . "website WHERE rowid = " . ((int) $rowid) | 1 |
|
"UPDATE " . $tabname[$id] . " SET status = 1 WHERE rowid = " . ((int) $rowid) | 1 |
|
"UPDATE " . $tabname[$id] . " SET status = 0 WHERE rowid = " . ((int) $rowid) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "c_email_senderprofile WHERE rowid = " . GETPOSTINT('id') | 1 |
|
"SELECT box_id, box_order FROM " . MAIN_DB_PREFIX . "boxes" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "boxes (" | 1 |
|
"SELECT box_id FROM " . MAIN_DB_PREFIX . "boxes" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($newfirst) . "' WHERE rowid=" . ((int) $objfrom->rowid) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($newsecond) . "' WHERE rowid=" . ((int) $objto->rowid) | 1 |
|
"SELECT b.rowid, b.box_id, b.position, b.box_order," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($decalage) . "' WHERE rowid=" . ((int) $obj->rowid) | 1 |
|
"SELECT box_order" | 1 |
|
"DELETE from " . $tabname[$id] . " WHERE " . $rowidcol . " = " . ((int) $rowid) | 1 |
|
"UPDATE " . $tabname[$id] . " SET active = 1 WHERE rowid = " . ((int) $rowid) | 1 |
|
"UPDATE " . $tabname[$id] . " SET active = 0 WHERE rowid = " . ((int) $rowid) | 1 |
|
"SELECT rowid as rowid, module, label, type_template, lang, fk_user, private, position, topic, email_from,joinfiles, defaultfortype, content_lines, content, enabled, active" | 1 |
|
"SELECT rowid, code FROM " . MAIN_DB_PREFIX . "multicurrency" | 1 |
|
"SELECT taux as vat_rate, t.code as vat_code, t.localtax1 as localtax_rate1, t.localtax2 as localtax_rate2" | 1 |
|
"SELECT rowid, label, clos" | 1 |
|
"SELECT f.rowid as rowid, f.code, f.libelle, c.code as country_code, c.label as country, f.active FROM " . MAIN_DB_PREFIX . "c_forme_juridique as f, " . MAIN_DB_PREFIX . "c_country as c WHERE f.fk_pays=c.rowid" | 1 |
|
"SELECT d.rowid as rowid, d.code_departement as code, d.nom as libelle, d.fk_region as region_id, r.nom as region, c.code as country_code, c.label as country, d.active FROM " . MAIN_DB_PREFIX . "c_departements as d, " . MAIN_DB_PREFIX . "c_regions as r, " . MAIN_DB_PREFIX . "c_country as c WHERE d.fk_region=r.code_region and r.fk_pays=c.rowid and r.active=1 and c.active=1" | 1 |
|
"SELECT r.rowid as rowid, r.code_region as code, r.nom as libelle, r.fk_pays as country_id, c.code as country_code, c.label as country, r.active FROM " . MAIN_DB_PREFIX . "c_regions as r, " . MAIN_DB_PREFIX . "c_country as c WHERE r.fk_pays=c.rowid and c.active=1" | 1 |
|
"SELECT c.rowid as rowid, c.code, c.label, c.active, c.favorite, c.eec FROM " . MAIN_DB_PREFIX . "c_country AS c" | 1 |
|
"SELECT c.rowid as rowid, c.code as code, c.label, c.active FROM " . MAIN_DB_PREFIX . "c_civility AS c" | 1 |
|
"SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.type, a.active, a.module, a.color, a.position FROM " . MAIN_DB_PREFIX . "c_actioncomm AS a" | 1 |
|
"SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.accountancy_code as accountancy_code, c.code as country_code, c.label as country, a.fk_pays as country_id, a.active FROM " . MAIN_DB_PREFIX . "c_chargesociales AS a, " . MAIN_DB_PREFIX . "c_country as c WHERE a.fk_pays = c.rowid and c.active = 1" | 1 |
|
"SELECT t.id as rowid, t.code as code, t.libelle, t.fk_country as country_id, c.code as country_code, c.label as country, t.position, t.active FROM " . MAIN_DB_PREFIX . "c_typent as t LEFT JOIN " . MAIN_DB_PREFIX . "c_country as c ON t.fk_country=c.rowid" | 1 |
|
"SELECT c.code_iso as code, c.label, c.unicode, c.active FROM " . MAIN_DB_PREFIX . "c_currencies AS c" | 1 |
|
"SELECT t.rowid, t.entity, t.type_vat, t.code, t.taux, t.localtax1_type, t.localtax1, t.localtax2_type, t.localtax2, c.label as country, c.code as country_code, t.fk_pays as country_id, t.recuperableonly, t.note, t.active, t.accountancy_code_sell, t.accountancy_code_buy FROM " . MAIN_DB_PREFIX . "c_tva as t, " . MAIN_DB_PREFIX . "c_country as c WHERE t.fk_pays = c.rowid AND t.entity IN (" . getEntity($tabname[DICT_TVA]) . ")" | 1 |
|
"SELECT t.rowid as rowid, t.element, t.source, t.code, t.libelle, t.position, t.active FROM " . MAIN_DB_PREFIX . "c_type_contact AS t" | 1 |
|
"SELECT c.rowid as rowid, c.code, c.libelle, c.libelle_facture, c.deposit_percent, c.nbjour, c.type_cdr, c.decalage, c.active, c.sortorder, c.entity FROM " . MAIN_DB_PREFIX . "c_payment_term AS c WHERE c.entity IN (" . getEntity($tabname[DICT_PAYMENT_TERM]) . ")" | 1 |
|
"SELECT c.id as rowid, c.code, c.libelle, c.type, c.active, c.entity FROM " . MAIN_DB_PREFIX . "c_paiement AS c WHERE c.entity IN (" . getEntity($tabname[DICT_PAIEMENT]) . ")" | 1 |
|
"SELECT e.rowid as rowid, e.code as code, e.label, e.price, e.organization, e.fk_pays as country_id, c.code as country_code, c.label as country, e.active FROM " . MAIN_DB_PREFIX . "c_ecotaxe AS e, " . MAIN_DB_PREFIX . "c_country as c WHERE e.fk_pays=c.rowid and c.active=1" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.label as libelle, t.width, t.height, t.unit, t.active FROM " . MAIN_DB_PREFIX . "c_paper_format as t" | 1 |
|
"SELECT t.code, t.label as libelle, t.sortorder, t.active FROM " . MAIN_DB_PREFIX . "c_prospectlevel as t" | 1 |
|
"SELECT t.id as rowid, t.code, t.label, t.accountancy_code, t.active FROM " . MAIN_DB_PREFIX . "c_type_fees as t" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.libelle, t.tracking, t.active FROM " . MAIN_DB_PREFIX . "c_shipment_mode as t" | 1 |
|
"SELECT t.id as rowid, t.code, t.libelle, t.active FROM " . MAIN_DB_PREFIX . "c_effectif as t" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.libelle, t.active FROM " . MAIN_DB_PREFIX . "c_input_method as t" | 1 |
|
"SELECT c.rowid as rowid, c.code, c.label, c.type_duration, c.qty, c.active, c.position FROM " . MAIN_DB_PREFIX . "c_availability AS c" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.label, t.active FROM " . MAIN_DB_PREFIX . "c_input_reason as t" | 1 |
|
"SELECT t.rowid as rowid, t.taux, t.revenuestamp_type, c.label as country, c.code as country_code, t.fk_pays as country_id, t.note, t.active, t.accountancy_code_sell, t.accountancy_code_buy FROM " . MAIN_DB_PREFIX . "c_revenuestamp as t, " . MAIN_DB_PREFIX . "c_country as c WHERE t.fk_pays=c.rowid" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.label, t.active FROM " . MAIN_DB_PREFIX . "c_type_resource as t" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.label, t.active, t.module FROM " . MAIN_DB_PREFIX . "c_type_container as t WHERE t.entity IN (" . getEntity($tabname[DICT_TYPE_CONTAINER]) . ")" | 1 |
|
"SELECT t.id as rowid, t.code, t.libelle, t.picto, t.active FROM " . MAIN_DB_PREFIX . "c_stcomm as t" | 1 |
|
"SELECT h.rowid as rowid, h.code, h.label, h.affect, h.delay, h.newbymonth, h.fk_country as country_id, c.code as country_code, c.label as country, h.block_if_negative, h.sortorder, h.active FROM " . MAIN_DB_PREFIX . "c_holiday_types as h LEFT JOIN " . MAIN_DB_PREFIX . "c_country as c ON h.fk_country=c.rowid" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.label, percent, t.position, t.active FROM " . MAIN_DB_PREFIX . "c_lead_status as t" | 1 |
|
"SELECT t.rowid, t.code, t.name, t.paper_size, t.orientation, t.metric, t.leftmargin, t.topmargin, t.nx, t.ny, t.spacex, t.spacey, t.width, t.height, t.font_size, t.custom_x, t.custom_y, t.active FROM " . MAIN_DB_PREFIX . "c_format_cards as t" | 1 |
|
"SELECT t.rowid, t.code, t.label, c.label as country, c.code as country_code, t.fk_country as country_id, t.active FROM " . MAIN_DB_PREFIX . "c_invoice_subtype as t, " . MAIN_DB_PREFIX . "c_country as c WHERE t.fk_country = c.rowid" | 1 |
|
"SELECT a.id as rowid, a.entity, a.code, a.fk_country as country_id, c.code as country_code, c.label as country, a.dayrule, a.day, a.month, a.year, a.active FROM " . MAIN_DB_PREFIX . "c_hrm_public_holiday as a LEFT JOIN " . MAIN_DB_PREFIX . "c_country as c ON a.fk_country=c.rowid AND c.active=1" | 1 |
|
"SELECT t.rowid, t.pos, t.code, t.label, t.active FROM " . MAIN_DB_PREFIX . "c_hrm_department as t" | 1 |
|
"SELECT t.rowid, t.pos, t.code, t.label, t.c_level, t.active FROM " . MAIN_DB_PREFIX . "c_hrm_function as t" | 1 |
|
"SELECT c.rowid, c.label, c.active, c.entity FROM " . MAIN_DB_PREFIX . "c_exp_tax_cat c as c" | 1 |
|
"SELECT r.rowid, r.fk_c_exp_tax_cat, r.range_ik, r.active, r.entity FROM " . MAIN_DB_PREFIX . "c_exp_tax_range r" | 1 |
|
"SELECT r.rowid, r.code, r.sortorder, r.label, r.short_label, r.unit_type, r.scale, r.active FROM " . MAIN_DB_PREFIX . "c_units r" | 1 |
|
"SELECT s.rowid, s.entity, s.code, s.label, s.url, s.icon, s.active FROM " . MAIN_DB_PREFIX . "c_socialnetworks as s WHERE s.entity IN (" . getEntity($tabname[DICT_SOCIALNETWORKS]) . ")" | 1 |
|
"SELECT t.code, t.label as libelle, t.sortorder, t.active FROM " . MAIN_DB_PREFIX . "c_prospectcontactlevel as t" | 1 |
|
"SELECT t.id as rowid, t.code, t.libelle, t.picto, t.active FROM " . MAIN_DB_PREFIX . "c_stcommcontact as t" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.label, t.active FROM " . MAIN_DB_PREFIX . "c_transport_mode as t" | 1 |
|
"SELECT t.rowid as rowid, t.code, t.label, t.active FROM " . MAIN_DB_PREFIX . "c_product_nature as t" | 1 |
|
"SELECT t.rowid, t.code, t.label, t.active FROM " . MAIN_DB_PREFIX . "c_productbatch_qcstatus as t" | 1 |
|
"SELECT t.rowid, t.code, t.label, t.active FROM " . MAIN_DB_PREFIX . "c_asset_disposal_type as t" | 1 |
|
"SELECT MAX(" . $tabrowid[$id] . ") as newid FROM " . MAIN_DB_PREFIX . $tablename | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . $tablename . " (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $tablename . " WHERE " . $rowidcol . " = '" . $db->escape($rowid) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET active = 1 WHERE " . $rowidcol . " = '" . $db->escape($rowid) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET active = 1 WHERE code = '" . $db->escape(dol_escape_htmltag($code)) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET active = 0 WHERE " . $rowidcol . " = '" . $db->escape($rowid) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET active = 0 WHERE code = '" . $db->escape(dol_escape_htmltag($code)) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET favorite = 1 WHERE " . $rowidcol . " = '" . $db->escape($rowid) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET favorite = 1 WHERE code = '" . $db->escape(dol_escape_htmltag($code)) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET favorite = 0 WHERE " . $rowidcol . " = '" . $db->escape($rowid) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET favorite = 0 WHERE code = '" . $db->escape(dol_escape_htmltag($code)) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET eec = 1 WHERE " . $rowidcol . " = '" . $db->escape($rowid) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET eec = 1 WHERE code = '" . $db->escape(dol_escape_htmltag($code)) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET eec = 0 WHERE " . $rowidcol . " = '" . $db->escape($rowid) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablename . " SET eec = 0 WHERE code = '" . $db->escape(dol_escape_htmltag($code)) . "'" . ($entity != '' ? " AND entity = " . (int) $entity : '') | 1 |
|
'SELECT COUNT(*) as nbtotalofrecords FROM ' | 1 |
|
"SELECT code_iso, label, unicode, active FROM " . MAIN_DB_PREFIX . "c_currencies" | 1 |
|
"SELECT a.rowid, a.code, a.label, a.elementtype, a.rang as position" | 1 |
|
"SELECT rowid, coder" | 1 |
|
"SELECT rowid, code as encoding, libelle as label, coder, example" | 1 |
|
"SELECT " . $db->decrypt('name') . " as name FROM " . MAIN_DB_PREFIX . "const" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "boxes_def (file, note)" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "boxes_def" | 1 |
|
"SELECT rowid, file, note FROM " . MAIN_DB_PREFIX . "boxes_def" | 1 |
|
"select rss boxes" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "rights_def SET bydefault=1" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "rights_def SET bydefault=0" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "events" | 1 |
|
"SELECT e.rowid, e.type, e.ip, e.user_agent, e.dateevent," | 1 |
|
"SELECT conname, contype FROM pg_constraint;" | 1 |
|
"SELECT relname, seq_tup_read, idx_tup_fetch, n_tup_ins, n_tup_upd, n_tup_del" | 1 |
|
"SELECT name, type FROM sqlite_master where type='table' and name not like 'sqlite%' ORDER BY name" | 1 |
|
"SELECT COUNT(*) FROM " . $row[0] | 1 |
|
"SHOW TABLE STATUS LIKE '" . $db->escape($db->escapeforlike($table)) . "'" | 1 |
|
"SELECT conname,contype FROM pg_constraint" | 1 |
|
"SHOW VARIABLES where variable_name = 'system_time_zone'" | 1 |
|
"SELECT m.titre as title" | 1 |
|
"SELECT m.rowid, m.titre, m.langs, m.mainmenu, m.leftmenu, m.fk_menu, m.fk_mainmenu, m.fk_leftmenu, m.position, m.module" | 1 |
|
"SELECT m.rowid, m.mainmenu, m.leftmenu, m.level, m.langs" | 1 |
|
'SELECT rowid, datec as datec, tms as datem,' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'conferenceorboothattendee/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'conferenceorboothattendee/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT s.rowid, s.client, s.fournisseur" | 1 |
|
"SELECT d.rowid, d.login, d.lastname, d.firstname, d.societe as company, d.fk_soc," | 1 |
|
"SELECT count(*) as nb from " . MAIN_DB_PREFIX . "commande_fournisseur where fk_soc = " . ((int) $socid) | 1 |
|
'SELECT f.rowid as doc_id, f.ref as doc_number, \'1\' as doc_type, f.datec as dateprint, f.fk_statut as status, NULL as paid, ' | 1 |
|
'SELECT f.rowid as doc_id, f.ref as doc_number, f.type as doc_type, f.datef as dateprint, f.fk_statut as status, f.paye as paid, d.fk_remise_except, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.datep as dateprint, c.fk_statut as status, NULL as paid,' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.date_commande as dateprint, c.fk_statut as status, NULL as paid, c.date_livraison as delivery_planned_date,' | 1 |
|
'SELECT f.rowid as doc_id, f.ref as doc_number, \'1\' as doc_type, f.datef as dateprint, f.fk_statut as status, f.paye as paid, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.date_valid as dateprint, c.fk_statut as status, NULL as paid, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.date_valid as dateprint, c.fk_statut as status, NULL as paid, c.date_livraison as delivery_planned_date, ' | 1 |
|
'SELECT c.rowid as doc_id, c.ref as doc_number, \'1\' as doc_type, c.date_contrat as dateprint, d.statut as status, NULL as paid,' | 1 |
|
"DELETE t, et FROM " . MAIN_DB_PREFIX . "socpeople AS t" | 1 |
|
"SELECT s.rowid, s.nom as name, s.name_alias, s.barcode, s.address, s.town, s.zip, s.datec, s.code_client, s.code_fournisseur, s.logo," | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_account WHERE site = 'stripe' AND (site_account IS NULL or site_account = '' or site_account = '" . $db->escape($tmpsite_account) . "') AND fk_soc = " . $object->id . " AND status = " . ((int) $tmpservicestatus) . " AND entity = " . $conf->entity | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . "societe_account" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "societe_account" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "oauth_token WHERE fk_soc = " . $object->id . " AND service = '" . $db->escape($tmpservice) . "' AND entity = " . $conf->entity | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "oauth_token (service, fk_soc, entity, tokenstring)" | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . "societe_rib" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "notify_def (datec,fk_soc, fk_contact, fk_action)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "notify_def where rowid=" . GETPOSTINT('actid') | 1 |
|
"SELECT count(s.rowid) as nb, s.client" | 1 |
|
"SELECT id, code, libelle as label, picto, sortorder" | 1 |
|
"SELECT f.ref, f.type as factype, re.fk_facture_source, re.rowid, re.amount_ht, re.amount_tva, re.amount_ttc, re.description, re.fk_facture, re.fk_facture_line" | 1 |
|
"SELECT rowid as id, fk_action, fk_action as event, fk_soc, fk_soc as socid, fk_contact, fk_contact as target, type, datec, tms" | 1 |
|
"SELECT rowid, fk_soc, bank, number, code_banque, code_guichet, cle_rib, bic, iban_prefix as iban, domiciliation as address, proprio," | 1 |
|
"SELECT rowid, fk_soc, key_account, site, date_creation, tms FROM " . MAIN_DB_PREFIX . "societe_account" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_account WHERE fk_soc = " . ((int) $id) . " AND site = '" . $this->db->escape($request_data['site']) . "'" | 1 |
|
"SELECT rowid, fk_user_creat, date_creation FROM " . MAIN_DB_PREFIX . "societe_account WHERE fk_soc = $id AND site = '" . $this->db->escape($site) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_account WHERE fk_soc = " . ((int) $id) . " AND site = '" . $this->db->escape($site) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_account WHERE fk_soc = $id AND site = '" . $this->db->escape($site) . "'" | 1 |
|
"SELECT rowid, fk_soc, key_account, site, date_creation, tms" | 1 |
|
"SELECT sa.fk_soc as fk_soc, sa.key_account, sa.entity" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_rib where fk_soc = " . ((int) $this->socid) . " AND default_rib = 1 AND type = 'ban'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_rib (fk_soc, type, datec, model_pdf)" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_rib SET" | 1 |
|
"SELECT rowid, label, type, fk_soc as socid, bank, number, code_banque, code_guichet, cle_rib, bic, iban_prefix as iban," | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_rib" | 1 |
|
"SELECT rowid as id, fk_soc as socid FROM " . MAIN_DB_PREFIX . "societe_rib" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_rib SET default_rib = 0" | 1 |
|
"SELECT rowid as id, fk_soc, type FROM " . MAIN_DB_PREFIX . "societe_rib" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_rib SET default_rib = 0, tms = tms" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe (" | 1 |
|
'SELECT s.rowid, s.nom as name, s.name_alias, s.entity, s.ref_ext, s.address, s.datec as date_creation, s.prefix_comm' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $tabletodelete | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_perentity" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_remise" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_remise_supplier" | 1 |
|
"SELECT u.rowid, u.login, u.lastname, u.firstname, u.office_phone, u.job, u.email, u.statut as status, u.entity, u.photo, u.gender" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_prices" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_commerciaux" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_commerciaux" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_commerciaux " | 1 |
|
"SELECT rowid, email, statut as status, phone_mobile, lastname, poste, firstname" | 1 |
|
"SELECT rowid, lastname, firstname FROM " . MAIN_DB_PREFIX . "socpeople WHERE fk_soc = " . ((int) $this->id) | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "socpeople WHERE fk_soc = " . ((int) $this->id) | 1 |
|
"SELECT rowid, email, phone_mobile, lastname, firstname" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_rib WHERE type='ban' AND fk_soc = " . ((int) $this->id) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'societe SET parent = ' . ($id > 0 ? $id : 'null') . ' WHERE rowid = ' . ((int) $this->id) | 1 |
|
'SELECT s.parent' | 1 |
|
"SELECT parent FROM " . MAIN_DB_PREFIX . "societe WHERE rowid = " . ((int) $company_id) | 1 |
|
"SELECT COUNT(*) as nb FROM " . MAIN_DB_PREFIX . "societe WHERE " . $field . " = '" . $this->db->escape($value) . "' AND entity IN (" . getEntity('societe') . ")" | 1 |
|
"SELECT COUNT(*) as numproj FROM " . MAIN_DB_PREFIX . "projet WHERE fk_soc = " . ((int) $this->id) | 1 |
|
"SELECT s.rowid, s.nom as name, s.datec, tms as datem," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "categorie_fournisseur (fk_categorie, fk_soc) " | 1 |
|
"SELECT t.localtax1, t.localtax2" | 1 |
|
"SELECT rowid, ref, total_ht, total_ttc, paye, type, fk_statut as status, close_code FROM " . MAIN_DB_PREFIX . $table . " as f" | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'societe_commerciaux ' | 1 |
|
' SELECT fk_user ' | 1 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'societe_commerciaux WHERE rowid = ' . ((int) $obj->rowid) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element . " SET " | 1 |
|
"SELECT sc.rowid, sc.fk_socpeople as id, sc.fk_c_type_contact" | 1 |
|
"SELECT s.rowid, s.nom, s.name_alias, s.code_client, s.code_fournisseur, s.address, s.zip, s.town, s.email, s.siren, s.siret, s.ape, s.idprof4, s.idprof5, s.idprof6, s.client, s.fournisseur, s.datec, s.logo" | 1 |
|
"SELECT s.nom, s.rowid, p.rowid as propalid, p.fk_statut, p.total_ht" | 1 |
|
"SELECT s.nom, s.rowid" | 1 |
|
'SELECT s.nom, s.rowid as socid, s.client, c.rowid, c.ref, c.total_ht, c.ref_client,' | 1 |
|
'SELECT e.rowid as id' | 1 |
|
"SELECT s.nom, s.rowid, c.rowid as id, c.ref as ref, c.statut as contract_status, c.datec as dc, c.date_contrat as dcon, c.ref_customer as refcus, c.ref_supplier as refsup, c.entity," | 1 |
|
"SELECT s.nom, s.rowid, f.rowid as id, f.ref, f.fk_statut, f.duree as duration, f.datei as startdate, f.entity" | 1 |
|
'SELECT f.rowid as id, f.titre as ref' | 1 |
|
'SELECT f.rowid as facid, f.ref, f.type' | 1 |
|
"SELECT rc.rowid, rc.remise_client as remise_percent, rc.note, rc.datec as dc," | 1 |
|
"SELECT rc.rowid, rc.remise_supplier as remise_percent, rc.note, rc.datec as dc," | 1 |
|
"SELECT p.rowid, p.ref, p.ref_client, p.total_ht, p.total_tva, p.total_ttc, p.fk_statut as status" | 1 |
|
"SELECT p.rowid, p.ref, p.total_ht, p.total_tva, p.total_ttc, p.fk_statut as status" | 1 |
|
"SELECT c.rowid, c.ref, c.ref_client, c.total_ht, c.total_tva, c.total_ttc, c.fk_statut as status" | 1 |
|
"SELECT cf.rowid, cf.ref, cf.ref_supplier, cf.total_ht, cf.total_tva, cf.total_ttc, cf.fk_statut as status" | 1 |
|
"SELECT f.rowid, f.ref, s.nom as name, f.fk_statut, f.duree as duration" | 1 |
|
"SELECT p.rowid as propalid, p.entity, p.total_ttc, p.total_ht, p.total_tva, p.ref, p.ref_client, p.fk_statut, p.datep as dp, p.fin_validite as dfv" | 1 |
|
"SELECT c.rowid as commandeid, c.total_ttc, c.total_ht, c.total_tva, c.ref, c.ref_client, c.fk_statut, c.date_valid as dv, c.facture as billed" | 1 |
|
"SELECT s.rowid, s.nom as name, st.libelle as stcomm," | 1 |
|
"SELECT rc.rowid,rc.price_level, rc.datec as dc, u.rowid as uid, u.login" | 1 |
|
"SELECT count(*) as cc, st.libelle as stcomm, st.picto, st.id" | 1 |
|
"SELECT p.rowid, p.ref, p.price, s.nom as sname" | 1 |
|
"SELECT s.nom as name, s.rowid as socid, s.client, s.canvas," | 1 |
|
"SELECT s.nom as name, s.rowid as socid, s.client, s.canvas" | 1 |
|
"SELECT u.rowid, u.lastname as lastname, u.firstname, u.statut, u.login, u.admin, u.entity" | 1 |
|
" SELECT ug.fk_user FROM " . $db->prefix( ) . "usergroup_user as ug" | 1 |
|
"SELECT ba.rowid, bc.label, bc.ref, bc.rowid as id_cal" | 1 |
|
'SELECT sp.rowid, sp.lastname, sp.firstname, sp.birthday' | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, u.statut, x.rowid, x.date_debut as date_start, x.date_fin as date_end, x.halfday, x.statut as status" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "actioncomm" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "actioncomm SET ref='" . $this->db->escape($this->ref) . "' WHERE id=" . $this->id | 1 |
|
'SELECT fk_actioncomm, element_type, fk_element, answer_status, mandatory, transparency' | 1 |
|
"SELECT fk_actioncomm, element_type, fk_element, answer_status, mandatory, transparency" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_actioncomm" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "actioncomm_resources" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "actioncomm" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "actioncomm" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "actioncomm_resources where fk_actioncomm = " . ((int) $this->id) . " AND element_type = 'user'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "actioncomm_resources where fk_actioncomm = " . ((int) $this->id) . " AND element_type = 'socpeople'" | 1 |
|
"SELECT a.id" | 1 |
|
"SELECT a.id, a.datep as dp" | 1 |
|
"SELECT count(a.id) as nb" | 1 |
|
"SELECT p.rowid as id," | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, u.email, u.statut, x.rowid, x.date_debut as date_start, x.date_fin as date_end, x.halfday, x.statut as status" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'actioncomm SET fk_element = ' . ((int) $dest_id) . ' WHERE elementtype="product" AND fk_element = ' . ((int) $origin_id) | 1 |
|
"SELECT rowid as id, typeremind, dateremind, status, offsetvalue, offsetunit, fk_user, fk_email_template, lasterror" | 1 |
|
"SELECT rowid as id FROM " . MAIN_DB_PREFIX . "actioncomm_reminder" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "actioncomm " | 1 |
|
"SELECT t.id as rowid" | 1 |
|
"SELECT id, code, type, libelle as label, color, active, picto" | 1 |
|
"SELECT id, code, libelle as label, module, type, color, picto" | 1 |
|
"SELECT count(*) as cc," | 1 |
|
"SELECT p.rowid, p.ref, p.ref_client, p.total_ht, p.total_tva, p.total_ttc" | 1 |
|
"SELECT s.nom as socname, s.rowid as socid, s.canvas, s.client, s.email, s.code_compta" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "propal (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "propal SET ref='" . $this->db->escape($this->ref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
"SELECT p.rowid, p.ref, p.entity, p.fk_soc" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "propal SET" | 1 |
|
'SELECT d.rowid, d.fk_propal, d.fk_parent_line, d.label as custom_label, d.description, d.price, d.vat_src_code, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.localtax1_type, d.localtax2_type, d.qty, d.fk_remise_except, d.remise_percent, d.subprice, d.fk_product,' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'propale/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'propale/" . $this->db->escape($this->newref) . "'" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "propal SET datep = '" . $this->db->idate($date) . "'" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "propal SET fin_validite = " . ($date_end_validity != '' ? "'" . $this->db->idate($date_end_validity) . "'" : 'null') | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "propal SET ref_client = " . (empty($ref_client) ? 'NULL' : "'" . $this->db->escape($ref_client) . "'") | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'propal SET fk_statut = ' . self::STATUS_BILLED . ", " | 1 |
|
"SELECT rowid as facid, ref, total_ht as total, datef as df, fk_user_author, fk_statut, paye" | 1 |
|
"SELECT p.rowid, p.ref, p.datec as datec, p.fin_validite as datefin, p.total_ht" | 1 |
|
'SELECT pd.rowid, pd.fk_propal, pd.fk_parent_line, pd.fk_product, pd.label as custom_label, pd.description, pd.price, pd.qty, pd.vat_src_code, pd.tva_tx,' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'propaldet' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "propaldet WHERE rowid = " . ((int) $this->rowid) | 1 |
|
"SELECT date_format(" . $this->field_date . ",'%m') as dm, COUNT(*) as nb" | 1 |
|
"SELECT date_format(" . $this->field_date . ",'%Y') as dm, COUNT(*) as nb, SUM(c." . $this->field . ")" | 1 |
|
"SELECT date_format(" . $this->field_date . ",'%m') as dm, SUM(p." . $this->field . ")" | 1 |
|
"SELECT date_format(" . $this->field_date . ",'%m') as dm, AVG(p." . $this->field . ")" | 1 |
|
"SELECT date_format(" . $this->field_date . ",'%Y') as year, COUNT(*) as nb, SUM(" . $this->field . ") as total, AVG(" . $this->field . ") as avg" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing SET date_envoi='" . $db->idate($now) . "' WHERE rowid=" . ((int) $object->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing SET statut=" . ((int) $statut) . " WHERE rowid = " . ((int) $object->id) | 1 |
|
"SELECT m.rowid, m.titre as title, m.nbemail, m.statut as status, m.date_creat, m.messtype" | 1 |
|
"SELECT m.rowid, m.messtype, m.titre as title, m.nbemail, m.statut as status, m.date_creat as datec, m.date_envoi as date_envoi," | 1 |
|
"SELECT m.rowid, m.messtype, m.titre as title, m.nbemail, m.statut as status, m.date_creat as datec, m.date_envoi as date_envoi" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "mailing_advtarget(" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing_advtarget SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "mailing_advtarget" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "mailing" | 1 |
|
"SELECT m.rowid, m.messtype, m.titre as title, m.sujet, m.body, m.bgcolor, m.bgimage, m.evenunsubscribe" | 1 |
|
"SELECT fk_contact," | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "mailing" | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "mailing_cibles" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'mailing SET nbemail = ' . ((int) $nbforupdate) | 1 |
|
"SELECT d.rowid as rowid, d.code_departement as code, d.nom as department, r.nom as region" | 1 |
|
"SELECT rowid, code as code_iso, label" | 1 |
|
"SELECT DISTINCT u2.rowid, u2.lastname as name, u2.firstname, u2.login" | 1 |
|
"SELECT " . $this->db->sanitize($keyList) . ", " . $this->db->sanitize($InfoFieldList[1]) | 1 |
|
"SELECT rowid, code, label as civilite, active FROM " . MAIN_DB_PREFIX . "c_civility" | 1 |
|
"SELECT c.rowid, c.name, c.fk_element" | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . 'user WHERE entity IN (' . getEntity('user') . ')' | 1 |
|
"SELECT DISTINCT u.rowid, u.lastname, u.firstname, u.admin, u.login, u.fk_soc, u.datec, u.statut" | 1 |
|
"SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec" | 1 |
|
"SELECT b.rowid, b.fk_user, b.url, b.title" | 1 |
|
"SELECT DISTINCT u.rowid, u.lastname, u.firstname, u.admin, u.fk_soc, u.login, u.office_phone, u.user_mobile, u.email, u.api_key, u.accountancy_code, u.gender, u.employee, u.photo," | 1 |
|
"SELECT s.rowid as sid, s.ref as sref, s.label, s.datesp, s.dateep, s.paye, s.amount, SUM(ps.amount) as alreadypaid" | 1 |
|
"SELECT h.rowid, h.statut as status, h.fk_type, h.date_debut, h.date_fin, h.halfday" | 1 |
|
"SELECT e.rowid, e.ref, e.fk_statut as status, e.date_debut, e.total_ttc" | 1 |
|
"SELECT DISTINCT ur.fk_id" | 1 |
|
"SELECT DISTINCT gr.fk_id, gu.entity" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "notify_def (datec, fk_user, fk_action)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "notify_def where rowid=" . GETPOSTINT("actid") | 1 |
|
"SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec, g.tms, COUNT(DISTINCT ugu.fk_user) as nb, COUNT(DISTINCT ugr.fk_id) as nbpermissions" | 1 |
|
"SELECT DISTINCT r.id, r.libelle, r.module, gr.entity" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "user_rib (fk_user, datec)" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "user_rib SET" | 1 |
|
"SELECT ur.rowid, ur.fk_user, ur.entity, ur.bank, ur.number, ur.code_banque, ur.code_guichet, ur.cle_rib, ur.bic, ur.iban_prefix as iban, ur.domiciliation as address" | 1 |
|
"SELECT u.rowid, u.lastname, u.firstname, u.employee, u.gender, u.civility as civility_code, u.birth, u.job," | 1 |
|
"SELECT param, value FROM " . $this->db->prefix( ) . "user_param" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "user_rights (entity, fk_user, fk_id) VALUES (" . ((int) $entity) . ", " . ((int) $this->id) . ", " . ((int) $nid) . ")" | 1 |
|
"SELECT DISTINCT r.module, r.perms, r.subperms" | 1 |
|
"SELECT DISTINCT r.module, r.perms, r.subperms, r.entity" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "user_rights WHERE fk_user = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "usergroup_user WHERE fk_user = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "user_param WHERE fk_user = " . ((int) $this->id) | 1 |
|
"UPDATE " . $this->db->prefix( ) . "socpeople SET fk_user_creat = null WHERE rowid = " . ((int) $this->contact_id) | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "user WHERE rowid = " . ((int) $this->id) | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "user (datec, login, ldap_sid, entity)" | 1 |
|
"SELECT id FROM " . $this->db->prefix( ) . "rights_def" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "user_rights WHERE fk_user = $this->id AND fk_id=$rd[$i]" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "user_rights (fk_user, fk_id) VALUES ($this->id, $rd[$i])" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "user SET fk_member = NULL where fk_member = " . ((int) $this->fk_member) | 1 |
|
"UPDATE " . $this->db->prefix( ) . "user SET fk_member =" . ($this->fk_member > 0 ? ((int) $this->fk_member) : 'null') . " where rowid = " . ((int) $this->id) | 1 |
|
"SELECT url, login, pass, poste " | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "user_clicktodial" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "user_clicktodial" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "usergroup_user (entity, fk_user, fk_usergroup)" | 1 |
|
"SELECT u.rowid, u.login as ref, u.datec," | 1 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . "user" | 1 |
|
"SELECT fk_user as id_parent, rowid as id_son" | 1 |
|
"SELECT DISTINCT u.rowid, u.firstname, u.lastname, u.fk_user, u.fk_soc, u.login, u.email, u.gender, u.admin, u.statut, u.photo, u.entity" | 1 |
|
"SELECT COUNT(DISTINCT u.rowid) as nb" | 1 |
|
"SELECT rowid, email, user_mobile, civility, lastname, firstname" | 1 |
|
"SELECT g.rowid, ug.entity as usergroup_entity" | 1 |
|
"SELECT u.rowid, u.login, u.lastname, u.firstname, u.photo, u.fk_soc, u.entity, u.employee, u.email, u.statut as status" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "usergroup_rights WHERE fk_usergroup = " . ((int) $this->id) . " AND fk_id=" . ((int) $nid) . " AND entity = " . ((int) $entity) | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "usergroup_rights (entity, fk_usergroup, fk_id) VALUES (" . ((int) $entity) . ", " . ((int) $this->id) . ", " . ((int) $nid) . ")" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "usergroup_rights" | 1 |
|
"SELECT r.module, r.perms, r.subperms " | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'import_model (' | 1 |
|
'SELECT em.rowid, em.field, em.label, em.type' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "import_model" | 1 |
|
"SELECT p.rowid, p.label, p.ref, p.fk_product_type as type, p.tobuy, p.tosell, p.tobatch, p.barcode, SUM(pd.qty) as c" | 1 |
|
"SELECT COUNT(p.rowid) as total, p.fk_product_type, p.tosell, p.tobuy" | 1 |
|
"SELECT p.rowid, p.label, p.price, p.ref, p.fk_product_type, p.tosell, p.tobuy, p.tobatch, p.fk_price_expression," | 1 |
|
"SELECT DATE_FORMAT(p.datep,'%Y') as annee, DATE_FORMAT(p.datep,'%m') as mois, SUM(fd.total_ht) as Mnttot" | 1 |
|
" SELECT cp.fk_categorie, cp.fk_warehouse" | 1 |
|
'SELECT p.rowid, p.ref, p.description, p.label, p.fk_product_type, p.barcode, p.price, p.tva_tx, p.price_ttc, p.price_base_type, p.entity,' | 1 |
|
"SELECT p.rowid, p.fk_product, p.price, p.price_ttc, p.price_level, p.date_price, p.price_base_type" | 1 |
|
"SELECT t.rowid, t.type_vat, t.code, t.recuperableonly, t.localtax1, t.localtax2, t.localtax1_type, t.localtax2_type" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product_price_by_qty SET" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_price_by_qty (fk_product_price,price,unitprice,quantity,remise_percent,remise) values (" | 1 |
|
"SELECT p.rowid, p.price, p.price_ttc, p.price_base_type, p.tva_tx, p.default_vat_code, p.recuperableonly, p.localtax1_tx, p.localtax1_type, p.localtax2_tx, p.localtax2_type," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product SET pmp = " . ((float) $object->pmp) . " WHERE rowid = " . ((int) $id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_fournisseur_price_extrafields WHERE fk_object = " . ((int) $rowid) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_pricerules WHERE level = " . ((int) $i) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "product_pricerules (level, fk_level, var_percent, var_min_percent) VALUES (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product_pricerules" | 1 |
|
"SELECT rowid, level, fk_level, var_percent, var_min_percent" | 1 |
|
'SELECT pfp.rowid, pfp.fk_soc, pfp.price as price, pfp.quantity as qty, pfp.fk_availability, pfp.ref_fourn' | 1 |
|
'SELECT DISTINCT p.rowid, p.ref, p.label, p.fk_product_type as type, p.barcode, p.price, p.price_ttc, p.price_base_type, p.entity,' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "inventorydet" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'product SET pmp = ' . ((float) $line->pmp_real) . ' WHERE rowid = ' . ((int) $line->fk_product) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'product_perentity SET pmp = ' . ((float) $line->pmp_real) . ' WHERE fk_product = ' . ((int) $line->fk_product) . ' AND entity=' . $conf->entity | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "inventory" | 1 |
|
"SELECT ps.rowid, ps.fk_entrepot as fk_warehouse, ps.fk_product, ps.reel," | 1 |
|
" SELECT cp.fk_product" | 1 |
|
" SELECT pa.rowid" | 1 |
|
"SELECT rowid, date_creation as datec, tms as datem, date_validation as datev," | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'entrepot' | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_batch (" | 1 |
|
"UPDATE " . $this->db->prefix( ) . self::$_table_element . " SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . self::$_table_element | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_customer_price(" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_customer_price_log(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "product_customer_price SET" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_customer_price" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product (" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_batch WHERE batch in('Undefined', '" . $this->db->escape($valueforundefinedlot) . "') AND fk_product_stock = " . ((int) $ObjW->id) | 1 |
|
"UPDATE " . $this->db->prefix( ) . "product" | 1 |
|
'SELECT pb.qty, ps.fk_entrepot, pb.batch FROM ' . MAIN_DB_PREFIX . 'product_batch as pb' | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . 'product_batch' | 1 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . 'product_stock' | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_lang" | 1 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . " SET " | 1 |
|
"SELECT lang, label, description, note as other" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_price(price_level,date_price, fk_product, fk_user_author, price_label, price, price_ttc, price_base_type,tosell, tva_tx, default_vat_code, recuperableonly," | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_price_by_qty" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_price" | 1 |
|
"SELECT t.rowid, t.code, t.recuperableonly as tva_npr, t.localtax1, t.localtax2, t.localtax1_type, t.localtax2_type" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "product SET" | 1 |
|
"SELECT p.rowid, p.ref, p.ref_ext, p.label, p.description, p.url, p.note_public, p.note as note_private, p.customcode, p.fk_country, p.fk_state, p.lifetime, p.qc_frequency, p.price, p.price_ttc," | 1 |
|
"SELECT pmp FROM " . $this->db->prefix( ) . "product_perentity WHERE fk_product = " . ((int) $id) . " AND entity = " . (int) $conf->entity | 1 |
|
"SELECT rowid,price, unitprice, quantity, remise_percent, remise, remise, price_base_type" | 1 |
|
"SELECT rowid, price, unitprice, quantity, remise_percent, remise, price_base_type" | 1 |
|
"SELECT COUNT(DISTINCT b.rowid) as nb_toproduce," | 1 |
|
"SELECT COUNT(DISTINCT bl.rowid) as nb_toconsume," | 1 |
|
"SELECT COUNT(DISTINCT p.fk_soc) as nb_customers, COUNT(DISTINCT p.rowid) as nb," | 1 |
|
"SELECT COUNT(DISTINCT p.fk_soc) as nb_suppliers, COUNT(DISTINCT p.rowid) as nb," | 1 |
|
"SELECT SUM(" . $this->db->ifsql('f.type=2', -1, 1) . " * fd.qty) as count FROM " . $this->db->prefix( ) . "facturedet as fd " | 1 |
|
"SELECT sum(" . $this->db->ifsql('f.type=2', -1, 1) . " * fd.qty) as count FROM " . MAIN_DB_PREFIX . "facturedet as fd " | 1 |
|
"SELECT COUNT(DISTINCT c.fk_soc) as nb_suppliers, COUNT(DISTINCT c.rowid) as nb," | 1 |
|
"SELECT COUNT(DISTINCT e.fk_soc) as nb_customers, COUNT(DISTINCT e.rowid) as nb," | 1 |
|
"SELECT COUNT(DISTINCT cf.fk_soc) as nb_suppliers, COUNT(DISTINCT cf.rowid) as nb," | 1 |
|
"SELECT COUNT(DISTINCT m.fk_soc) as nb_customers, COUNT(DISTINCT m.rowid) as nb," | 1 |
|
"SELECT COUNT(DISTINCT f.fk_soc) as nb_suppliers, COUNT(DISTINCT f.rowid) as nb," | 1 |
|
"SELECT sum(d.qty) as qty, date_format(p.datep, '%Y%m')" | 1 |
|
"SELECT sum(d.qty) as qty, date_format(p.date_valid, '%Y%m')" | 1 |
|
"SELECT sum(d.qty) as qty, date_format(c.date_contrat, '%Y%m')" | 1 |
|
"SELECT sum(d.qty), date_format(d.date_valid, '%Y%m')" | 1 |
|
"SELECT fk_product_pere from " . $this->db->prefix( ) . "product_association" | 1 |
|
"SELECT MAX(rang) as max_rank FROM " . $this->db->prefix( ) . "product_association" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_association(fk_product_pere,fk_product_fils,qty,incdec,rang)" | 1 |
|
'UPDATE ' . $this->db->prefix( ) . 'product_association SET ' | 1 |
|
"SELECT rowid, rang FROM " . $this->db->prefix( ) . "product_association" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "product_association" | 1 |
|
"SELECT fk_product_pere, qty, incdec" | 1 |
|
"SELECT rowid, fk_product" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_fournisseur_price(" | 1 |
|
"SELECT DISTINCT p.fk_soc" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_price (" | 1 |
|
'INSERT INTO ' . $this->db->prefix( ) . 'product_association (fk_product_pere, fk_product_fils, qty, incdec)' | 1 |
|
" SELECT " . $toId . ", fk_product_fils, qty, incdec FROM " . $this->db->prefix( ) . "product_association" | 1 |
|
"INSERT " . $this->db->prefix( ) . "product_fournisseur_price (" | 1 |
|
" SELECT '" . $this->db->idate($now) . "', " . ((int) $toId) . ", fk_soc, price, quantity, fk_user, tva_tx" | 1 |
|
"SELECT COUNT(pa.rowid) as nb" | 1 |
|
"SELECT count(rowid) as nb FROM " . $this->db->prefix( ) . "product_attribute_combination WHERE fk_product_parent = " . ((int) $this->id) | 1 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . "product_attribute_combination WHERE fk_product_child = " . ((int) $this->id) . " AND entity IN (" . getEntity('product') . ")" | 1 |
|
"SELECT p.rowid, p.label as label, p.ref as ref, pa.fk_product_pere as id, p.fk_product_type, pa.qty, pa.incdec, p.entity" | 1 |
|
"SELECT p.rowid, p.ref, p.label as label, p.fk_product_type," | 1 |
|
"SELECT label, code FROM " . $this->db->prefix( ) . "c_product_nature where code = " . ((int) $this->finished) . " AND active=1" | 1 |
|
"SELECT ps.rowid, ps.reel, ps.fk_entrepot" | 1 |
|
"SELECT pb.batch, pb.eatby, pb.sellby, SUM(pb.qty) AS qty FROM " . $this->db->prefix( ) . "product_batch as pb, " . $this->db->prefix( ) . "product_stock as ps" | 1 |
|
"SELECT count(p.rowid) as nb, fk_product_type" | 1 |
|
"SELECT rowid, level, fk_level, var_percent, var_min_percent FROM " . $this->db->prefix( ) . "product_pricerules" | 1 |
|
"SELECT p.rowid, p.ref, p.datec as date_creation, p.tms as date_modification," | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "propal_merge_pdf_product(" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "propal_merge_pdf_product SET" | 1 |
|
'UPDATE ' . $this->db->prefix( ) . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'productfournisseurprice/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'productfournisseurprice/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT e.rowid, e.ref as label, e.description, e.fk_parent" | 1 |
|
"SELECT w.rowid, w.ref as ref, w.label as label, w.type, w.nb_operators_required,w.thm_operator_estimated,w.thm_machine_estimated" | 1 |
|
'SELECT t.rowid, t.ref, t.ref_ext' | 1 |
|
'SELECT count(t.rowid) as total' | 1 |
|
"SELECT t.rowid, t.ref, t.ref_ext, t.label, t.position, t.entity" | 1 |
|
"SELECT rowid, ref, ref_ext, label, position, entity FROM " . $this->db->prefix( ) . "product_attribute WHERE ref LIKE '" . $this->db->escape($ref) . "' AND entity IN (" . getEntity('product') . ")" | 1 |
|
"SELECT rowid, ref, ref_ext, label, position, entity FROM " . $this->db->prefix( ) . "product_attribute WHERE ref_ext LIKE '" . $this->db->escape($ref_ext) . "' AND entity IN (" . getEntity('product') . ")" | 1 |
|
"SELECT rowid, fk_product_attribute, ref, value FROM " . $this->db->prefix( ) . "product_attribute_value WHERE rowid = " . (int) $id . " AND entity IN (" . getEntity('product') . ")" | 1 |
|
"SELECT rowid, fk_product_attribute, ref, value FROM " . $this->db->prefix( ) . "product_attribute_value" | 1 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . "product_attribute_value" | 1 |
|
"SELECT p.rowid as rowid, p.ref, p.label as produit, p.tobatch, p.fk_product_type as type, p.price, p.price_ttc, p.entity," | 1 |
|
"SELECT ps.fk_product, ps.fk_entrepot as fk_warehouse," | 1 |
|
"SELECT sm.fk_product, sm.fk_entrepot, SUM(sm.value) AS stock, COUNT(sm.rowid) AS nbofmovement" | 1 |
|
'SELECT p.rowid, p.ref, p.label, p.description, p.price, p.pmp,' | 1 |
|
"SELECT rowid, label, inventorycode, datem" | 1 |
|
"SELECT p.rowid, p.ref as product_ref, p.label as produit, p.tosell, p.tobuy, p.tobatch, p.fk_product_type as type, p.entity," | 1 |
|
"SELECT e.rowid, e.ref, e.lieu, e.fk_parent, e.statut as status, ps.reel, ps.rowid as product_stock_id, p.pmp" | 1 |
|
"SELECT e.rowid, e.ref, e.statut, e.lieu, e.address, e.zip, e.town, e.fk_pays," | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "entrepot WHERE entity IN (" . $db->sanitize(getEntity('stock')) . ")" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "commande_fournisseur" | 1 |
|
'SELECT p.rowid, p.ref, p.label, p.description, p.price,' | 1 |
|
'SELECT label,description' | 1 |
|
'SELECT s.rowid as socid, s.nom as name, cf.date_creation as dc,' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'stocktransfer/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'stocktransfer/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'stocktransferline/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'stocktransferline/" . $this->db->escape($this->newref) . "'" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "entrepot (ref, entity, datec, fk_user_author, fk_parent, fk_project)" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "entrepot" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_batch" | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "entrepot" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "product as p SET stock = (SELECT SUM(ps.reel) FROM " . $this->db->prefix( ) . "product_stock as ps WHERE ps.fk_product = p.rowid)" | 1 |
|
"SELECT rowid, entity, fk_parent, fk_project, ref as label, description, statut, lieu, address, zip, town, fk_pays as country_id, phone, fax," | 1 |
|
"SELECT e.rowid, e.datec, e.tms as datem, e.fk_user_author" | 1 |
|
"SELECT rowid, ref as label" | 1 |
|
"SELECT count(distinct p.rowid) as nb" | 1 |
|
"SELECT sum(ps.reel) as nb, sum(ps.reel * pa.pmp) as value" | 1 |
|
"SELECT sum(ps.reel) as nb, sum(ps.reel * p.pmp) as value" | 1 |
|
"SELECT fk_parent FROM " . $this->db->prefix( ) . "entrepot WHERE rowid = " . ((int) $parentid) | 1 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . "entrepot WHERE fk_parent = " . ((int) $id) | 1 |
|
"SELECT pb.rowid FROM " . $this->db->prefix( ) . "product_batch as pb, " . $this->db->prefix( ) . "product_stock as ps" | 1 |
|
"SELECT sm.rowid FROM " . $this->db->prefix( ) . "stock_mouvement as sm" | 1 |
|
"SELECT COUNT(DISTINCT exp.fk_soc) as nb_customers, COUNT(DISTINCT exp.rowid) as nb," | 1 |
|
"SELECT COUNT(DISTINCT cf.fk_soc) as nb_customers, COUNT(DISTINCT cf.rowid) as nb," | 1 |
|
"SELECT COUNT(DISTINCT recep.fk_soc) as nb_customers, COUNT(DISTINCT recep.rowid) as nb," | 1 |
|
"SELECT pb.rowid, pb.batch, pb.eatby, pb.sellby FROM " . $this->db->prefix( ) . "product_lot as pb" | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "stock_mouvement(" | 1 |
|
"SELECT rowid, reel FROM " . $this->db->prefix( ) . "product_stock" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "product_stock SET reel = " . ((float) $oldqtywarehouse + (float) $qty) | 1 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_stock" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "product as p SET pmp = " . ((float) $newpmp) . "," | 1 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_stock WHERE reel = 0 AND rowid NOT IN (SELECT fk_product_stock FROM " . $this->db->prefix( ) . "product_batch as pb)" | 1 |
|
"SELECT fk_product_pere, fk_product_fils, qty" | 1 |
|
"SELECT SUM(value) as nb from " . $this->db->prefix( ) . "stock_mouvement" | 1 |
|
"SELECT sum(pb.qty) as cpt" | 1 |
|
"UPDATE " . $this->db->prefix( ) . "stock_mouvement SET" | 1 |
|
'SELECT fk_product, SUM(qty) as qtydispatched FROM ' . MAIN_DB_PREFIX . 'receptiondet_batch' | 1 |
|
'SELECT fk_product, SUM(qty) as qtyordered FROM ' . MAIN_DB_PREFIX . 'commande_fournisseurdet' | 1 |
|
'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'commande_fournisseur' | 1 |
|
'SELECT DISTINCT cfd.fk_product, SUM(cfd.qty) as qty FROM' | 1 |
|
"update find: " . $price_expression->error | 1 |
|
"SELECT title, expression" | 1 |
|
"SELECT rowid, title, expression" | 1 |
|
"SELECT type, description, parameters, fk_variable, update_interval, next_update, last_status" | 1 |
|
"SELECT code, description, value" | 1 |
|
"SELECT rowid, code, description, value" | 1 |
|
"SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_client, c.rowid, d.total_ht as total_ht, c.ref," | 1 |
|
"SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_fournisseur, r.ref, r.ref_supplier" | 1 |
|
"SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_client, d.rowid, d.total_ht as line_total_ht," | 1 |
|
"SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_client, e.ref, e.ref_customer" | 1 |
|
"SELECT price, unitprice, quantity, remise_percent" | 1 |
|
"SELECT price, price_ttc, price_base_type," | 1 |
|
"SELECT count(p.rowid), p.fk_statut" | 1 |
|
"SELECT c.rowid, c.ref, s.nom as socname, s.rowid as socid, s.canvas, s.client" | 1 |
|
"SELECT c.rowid, c.ref, c.fk_statut, s.nom as socname, s.rowid as socid, s.canvas, s.client," | 1 |
|
"SELECT s.nom as socname, s.rowid as socid, s.canvas, s.client, p.rowid as supplier_proposalid, p.total_ttc, p.total_tva, p.total_ht, p.ref, p.fk_statut, p.datec as dp" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "supplier_proposal (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "supplier_proposal SET ref='" . $this->db->escape($this->ref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
"SELECT p.rowid, p.entity, p.ref, p.fk_soc as socid" | 1 |
|
"SELECT d.rowid, d.fk_supplier_proposal, d.fk_parent_line, d.label as custom_label, d.description, d.price, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.qty, d.fk_remise_except, d.remise_percent, d.subprice, d.fk_product," | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'supplier_proposal/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'supplier_proposal/" . $this->db->escape($this->newref) . "'" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "supplier_proposal " | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'product_fournisseur_price SET ' . (!empty($product->ref_fourn) ? 'ref_fourn = "' . $this->db->escape($product->ref_fourn) . '", ' : '') . ' price =' . ((float) $price) . ', unitprice =' . ((float) $unitPrice) . ' WHERE rowid = ' . ((int) $idProductFournPrice) | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'product_fournisseur_price ' | 1 |
|
"DELETE FROM $ef WHERE fk_object IN (SELECT rowid FROM $main WHERE fk_supplier_proposal = " . ((int) $this->id) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "supplier_proposaldet WHERE fk_supplier_proposal = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "supplier_proposal WHERE rowid = " . ((int) $this->id) | 1 |
|
"SELECT p.rowid, p.ref, p.datec as datec, p.date_cloture as datefin" | 1 |
|
'SELECT pt.rowid, pt.label as custom_label, pt.description, pt.fk_product, pt.fk_remise_except,' | 1 |
|
'SELECT pd.rowid, pd.fk_supplier_proposal, pd.fk_parent_line, pd.fk_product, pd.label as custom_label, pd.description, pd.price, pd.qty, pd.tva_tx,' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'supplier_proposaldet' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "supplier_proposaldet" | 1 |
|
"SELECT obj.rowid, obj.fk_product, obj.label, obj.description, obj.product_type as fk_product_type, obj.qty as qty_asked, obj.date_start, obj.date_end" | 1 |
|
"SELECT cfd.rowid, cfd.qty, cfd.fk_entrepot, cfd.batch, cfd.eatby, cfd.sellby, cfd.fk_product" | 1 |
|
"SELECT c.rowid, c.ref, c.ref_supplier as ref_supplier, c.fk_statut as status, c.billed as billed, s.nom as name, s.rowid as socid" | 1 |
|
"SELECT e.rowid, e.ref, e.ref_supplier, e.date_reception as date_reception, e.date_delivery as delivery_date, l.date_delivery as date_reception2, e.fk_statut as status, e.billed," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "reception (" | 1 |
|
"SELECT e.rowid, e.entity, e.ref, e.fk_soc as socid, e.date_creation, e.ref_supplier, e.ref_ext, e.fk_user_author, e.fk_statut as status, e.billed" | 1 |
|
"SELECT cd.fk_product, cd.subprice, cd.remise_percent," | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'reception/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'reception/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT cd.fk_product, cd.subprice, ed.qty, ed.fk_entrepot, ed.eatby, ed.sellby, ed.batch, ed.rowid as receptiondet_batch_id" | 1 |
|
"DELETE FROM " . $ef . " WHERE fk_object IN (SELECT rowid FROM " . $main . " WHERE fk_reception = " . ((int) $this->id) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "receptiondet_batch" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "reception" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "receptiondet_batch" | 1 |
|
'SELECT qty, ref, label, description, tva_tx, vat_src_code, subprice, multicurrency_subprice, remise_percent, total_ht, total_ttc, total_tva' | 1 |
|
"SELECT em.rowid, em.code, em.libelle" | 1 |
|
"SELECT em.rowid, em.code, em.libelle, em.description, em.tracking, em.active" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'reception SET fk_statut = ' . self::STATUS_CLOSED | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'reception SET billed=1' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'reception SET fk_statut=1, billed=0' | 1 |
|
"SELECT ed.fk_product, cd.subprice," | 1 |
|
"INSERT INTO spip_auteurs (nom, email, login, pass, htpass, alea_futur, statut)" | 1 |
|
"DELETE FROM spip_auteurs WHERE login = '" . $mydb->escape($object->login) . "'" | 1 |
|
"SELECT login FROM spip_auteurs WHERE login = '" . $mydb->escape($object->login) . "'" | 1 |
|
"SELECT " . $keyList . " as rowid, " . $InfoFieldList[2] . " as label" . (empty($InfoFieldList[3]) ? "" : ", " . $InfoFieldList[3] . " as code") | 1 |
|
"SELECT id as id, " . $keyList . " as rowid, " . $InfoFieldList[2] . " as label" . (empty($InfoFieldList[3]) ? "" : ", " . $InfoFieldList[3] . ' as code') | 1 |
|
"SELECT " . $keyList . " as rowid, " . $InfoFieldList[2] . " as label, code as code" | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'export_model (' | 1 |
|
'SELECT em.rowid, em.label, em.type, em.field, em.filter' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "export_model" | 1 |
|
"SELECT em.rowid, em.field, em.label, em.type, em.filter" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_knowledgemanagement WHERE fk_knowledgemanagement = " . ((int) $this->id) | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'knowledgerecord/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'knowledgerecord/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT p.rowid, p.ref, p.title, p.dateo as date_start, p.datee as date_end, p.fk_statut as status, p.tms as datem" | 1 |
|
"SELECT COUNT(p.rowid) as nb, SUM(p.opp_amount)" | 1 |
|
"SELECT ctc.rowid, ctc.code, ctc.source FROM " . MAIN_DB_PREFIX . "c_type_contact as ctc" | 1 |
|
"SELECT " . $distinct . " p.rowid as id, p.ref, p.title, p.fk_statut as status, p.fk_opp_status, p.public, p.fk_user_creat," | 1 |
|
"SELECT t.rowid, t.fk_element, t.element_date, t.element_datehour, t.element_date_withhour, t.element_duration, t.fk_user, t.note, t.thm," | 1 |
|
"SELECT " . $distinct . " p.rowid as projectid, p.ref as projectref, p.title as projecttitle, p.fk_statut as projectstatus, p.datee as projectdatee, p.fk_opp_status, p.public, p.fk_user_creat as projectusercreate, p.usage_bill_time," | 1 |
|
"SELECT p.ref, p.title, p.rowid as projectid, p.fk_statut as status, p.fk_opp_status as opp_status, p.public, p.dateo as projdate_start, p.datee as projdate_end," | 1 |
|
"SELECT date_format(t.datec,'%Y') as year, COUNT(t.rowid) as nb" | 1 |
|
"SELECT date_format(t.datec,'%m') as dm, COUNT(t.rowid) as nb" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "projet (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "projet SET" | 1 |
|
"SELECT rowid, entity, fk_project, ref, title, description, public, datec, opp_amount, budget_amount," | 1 |
|
"SELECT id as rowid FROM " . MAIN_DB_PREFIX . "actioncomm WHERE fk_project IN (" . $this->db->sanitize($ids) . ") AND entity IN (" . getEntity('agenda') . ")" | 1 |
|
"SELECT ed.rowid FROM " . MAIN_DB_PREFIX . "expensereport as e, " . MAIN_DB_PREFIX . "expensereport_det as ed WHERE e.rowid = ed.fk_expensereport AND e.entity IN (" . getEntity('expensereport') . ") AND ed.fk_projet IN (" . $this->db->sanitize($ids) . ")" | 1 |
|
"SELECT DISTINCT pt.rowid FROM " . MAIN_DB_PREFIX . "projet_task as pt WHERE pt.fk_projet IN (" . $this->db->sanitize($ids) . ")" | 1 |
|
"SELECT DISTINCT pt.rowid, ptt.fk_user FROM " . MAIN_DB_PREFIX . "projet_task as pt, " . MAIN_DB_PREFIX . "element_time as ptt WHERE pt.rowid = ptt.fk_element AND ptt.elementtype = 'task' AND pt.fk_projet IN (" . $this->db->sanitize($ids) . ")" | 1 |
|
"SELECT ms.rowid, ms.fk_user_author as fk_user FROM " . MAIN_DB_PREFIX . "stocktransfer_stocktransfer as ms, " . MAIN_DB_PREFIX . "entrepot as e WHERE e.rowid = ms.fk_entrepot AND e.entity IN (" . getEntity('stock') . ") AND ms.origintype = 'project' AND ms.fk_origin IN (" . $this->db->sanitize($ids) . ") AND ms.type_mouvement = 1" | 1 |
|
"SELECT l.rowid, l.fk_user_author as fk_user FROM " . MAIN_DB_PREFIX . "loan as l WHERE l.entity IN (" . getEntity('loan') . ") AND l.fk_projet IN (" . $this->db->sanitize($ids) . ")" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . $tablename . " WHERE " . $projectkey . " IN (" . $this->db->sanitize($ids) . ") AND entity IN (" . getEntity($type) . ")" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $key . " SET " . $fieldname . " = NULL where " . $fieldname . " = " . ((int) $this->id) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_project" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "projet_extrafields" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "projet" | 1 |
|
"SELECT COUNT(id) as nb FROM " . MAIN_DB_PREFIX . "actioncomm WHERE fk_project = " . ((int) $this->id) . " AND entity IN (" . getEntity('agenda') . ")" | 1 |
|
"SELECT COUNT(ed.rowid) as nb FROM " . MAIN_DB_PREFIX . "expensereport as e, " . MAIN_DB_PREFIX . "expensereport_det as ed WHERE e.rowid = ed.fk_expensereport AND e.entity IN (" . getEntity('expensereport') . ") AND ed.fk_projet = " . ((int) $this->id) | 1 |
|
"SELECT DISTINCT COUNT(pt.rowid) as nb FROM " . MAIN_DB_PREFIX . "projet_task as pt WHERE pt.fk_projet = " . ((int) $this->id) | 1 |
|
"SELECT DISTINCT COUNT(pt.rowid) as nb FROM " . MAIN_DB_PREFIX . "projet_task as pt, " . MAIN_DB_PREFIX . "element_time as ptt WHERE pt.rowid = ptt.fk_element AND ptt.elementtype = 'task' AND pt.fk_projet = " . ((int) $this->id) | 1 |
|
"SELECT COUNT(ms.rowid) as nb FROM " . MAIN_DB_PREFIX . "stock_mouvement as ms, " . MAIN_DB_PREFIX . "entrepot as e WHERE e.rowid = ms.fk_entrepot AND e.entity IN (" . getEntity('stock') . ") AND ms.origintype = 'project' AND ms.fk_origin = " . ((int) $this->id) . " AND ms.type_mouvement = 1" | 1 |
|
"SELECT COUNT(l.rowid) as nb FROM " . MAIN_DB_PREFIX . "loan as l WHERE l.entity IN (" . getEntity('loan') . ") AND l.fk_projet = " . ((int) $this->id) | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . $tablename . " WHERE " . $projectkey . " = " . ((int) $this->id) . " AND entity IN (" . getEntity($type) . ")" | 1 |
|
"SELECT " . (($mode == 0 || $mode == 1) ? "DISTINCT " : "") . "p.rowid, p.ref" | 1 |
|
"SELECT p.rowid, p.fk_statut as status, p.fk_opp_status, p.datee as datee" | 1 |
|
'SELECT c.rowid, datec as datec, tms as datem,' | 1 |
|
'SELECT rowid,title' | 1 |
|
"SELECT date_format(t.datec,'%Y') as year, COUNT(t.rowid) as nb, SUM(t.opp_amount) as total, AVG(t.opp_amount) as avg," | 1 |
|
"SELECT date_format(t.datec,'%m') as dm, COUNT(*) as nb" | 1 |
|
"SELECT date_format(t.datec,'%m') as dm, SUM(t.opp_amount)" | 1 |
|
"SELECT date_format(t.datec,'%m') as dm, SUM(t.opp_amount * " . $this->db->ifsql("t.opp_percent IS NULL" . ($wonlostfilter ? " OR cls.code IN ('WON','LOST')" : ""), '0', 't.opp_percent') . " / 100)" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "projet_task (" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "element_time" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "projet_task_extrafields" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "projet_task" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "element_time as et" | 1 |
|
"SELECT p.rowid as projectid, p.fk_statut as projectstatus," | 1 |
|
"SELECT COUNT(id_comment) as nb_comments" | 1 |
|
"SELECT COUNT(id_users) as nb_records" | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'opensurvey_user_studs (nom, id_sondage, reponses, ip, date_creation)' | 1 |
|
"SELECT d.datedon as datedon, d.lastname, d.firstname, d.amount, d.public, d.societe" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "eventorganization_conferenceorboothattendee" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "actioncomm_resources" | 1 |
|
"SELECT ba.rowid as id, ba.duration, ba.startHour, ba.endHour, ba.start, ba.end" | 1 |
|
"SELECT b.datep, b.id" | 1 |
|
"SELECT mc.rowid, mc.email, mc.statut, mc.source_type, mc.source_id, m.entity" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing_cibles SET statut=" . ((int) $statut) . " WHERE rowid = " . ((int) $obj->rowid) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . 'societe SET fk_stcomm = 3 WHERE fk_stcomm <> -1 AND entity = ' . ((int) $obj->entity) . ' AND rowid = ' . ((int) $obj->source_id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . 'societe SET fk_stcomm = 3 WHERE fk_stcomm <> -1 AND entity = ' . ((int) $obj->entity) . ' AND rowid IN (SELECT sc.fk_soc FROM ' . MAIN_DB_PREFIX . 'socpeople AS sc WHERE sc.rowid = ' . ((int) $obj->source_id) . ')' | 1 |
|
"SELECT mc.rowid, mc.email, mc.statut, m.entity" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing_cibles SET statut=" . ((int) $statut) . " WHERE tag = '" . $db->escape($tag) . "'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "mailing_unsubscribe (date_creat, entity, email, unsubscribegroup, ip) VALUES ('" . $db->idate(dol_now( )) . "', " . ((int) $obj->entity) . ", '" . $db->escape($obj->email) . "', '', '" . $db->escape(getUserRemoteIP( )) . "')" | 1 |
|
"SELECT COUNT(*) as nb FROM " . MAIN_DB_PREFIX . "eventorganization_conferenceorboothattendee" | 1 |
|
"SELECT COUNT(ref) as nb_attendee" | 1 |
|
"SELECT COUNT(rowid) as nb_projets" | 1 |
|
"SELECT a.id, a.fk_action, a.datep, a.datep2, a.label, a.fk_soc, a.note, ca.libelle as label FROM " . MAIN_DB_PREFIX . "actioncomm as a INNER JOIN " . MAIN_DB_PREFIX . "c_actioncomm as ca ON (a.fk_action=ca.id) WHERE a.status<2" | 1 |
|
"SELECT COUNT(ref) as nb_tickets" | 1 |
|
"SELECT rowid, firstname, lastname, societe, zip, town, email, birth, photo" | 1 |
|
"SELECT login FROM " . MAIN_DB_PREFIX . "adherent WHERE login = '" . $db->escape(GETPOST('login')) . "'" | 1 |
|
"SELECT COUNT(ref) as nb_adh" | 1 |
|
"SELECT d.rowid, d.libelle as label, d.subscription, d.amount, d.caneditamount, d.vote, d.note, d.duration, d.statut as status, d.morphy," | 1 |
|
"SELECT COUNT(ref) as nb_partnerships" | 1 |
|
"SELECT entity" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_account WHERE key_account = '" . $db->escape($event->data->object->id) . "' and site='stripe'" | 1 |
|
"SELECT pi.rowid, pi.fk_facture, pi.fk_prelevement_bons, pi.amount, pi.type, pi.traite" | 1 |
|
"SELECT p.rowid FROM " . MAIN_DB_PREFIX . "paiement as p" | 1 |
|
"SELECT p.rowid, p.fk_bank FROM " . MAIN_DB_PREFIX . "paiement as p" | 1 |
|
"SELECT dp.fk_prelevement_bons as idbon" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "prelevement_lignes" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_rib WHERE number = '" . $db->escape($event->data->object->id) . "' and status = " . ((int) $servicestatus) | 1 |
|
"SELECT b.rowid, b.dateb, b.fk_user, b.url, b.target, b.title, b.favicon, b.position," | 1 |
|
"SELECT rowid, fk_user, dateb as datec, url, target," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bookmark (fk_user,dateb,url,target" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "bookmark" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bookmark" | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.email, u.photo, u.statut as user_status," | 1 |
|
"SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.email, u.statut as user_status, u.photo," | 1 |
|
"SELECT rc.rowid, rc.ref, rc.email, rc.lastname, rc.firstname, rc.date_creation, rc.tms, rc.status," | 1 |
|
"SELECT sr.fk_object, sr.rowid, s.label,s.skill_type, sr.rankorder, sr.fk_skill" | 1 |
|
"select e.rowid,e.ref,e.fk_user,e.fk_job,e.date_eval,ed.rankorder,ed.required_rank,ed.fk_skill,s.label" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "hrm_evaluation as e" | 1 |
|
"SELECT u.rowid FROM " . MAIN_DB_PREFIX . "user u LEFT JOIN " . MAIN_DB_PREFIX . "usergroup_user as ugu ON (u.rowid = ugu.fk_user) WHERE u.statut > 0 AND ugu.entity = " . ((int) $conf->entity) | 1 |
|
'SELECT sk.rowid, sk.label, sk.description, sk.skill_type, sr.fk_object, sr.objecttype, sr.fk_skill, ' | 1 |
|
"SELECT COUNT(rowid) as how_many_max FROM " . MAIN_DB_PREFIX . "hrm_skillrank as sr" | 1 |
|
'SELECT sk.rowid, sk.label, sk.description, sk.skill_type, sr.fk_object, sr.objecttype, sr.fk_skill,' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'position/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'position/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'skilldet/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'skilldet/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'evaluationline/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'evaluationline/" . $this->db->escape($this->newref) . "'" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "establishment (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "establishment SET ref = '" . $this->db->escape($this->id) . "'" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "establishment" | 1 |
|
"SELECT e.rowid, e.ref, e.label, e.address, e.zip, e.town, e.status, e.fk_country as country_id, e.entity," | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "establishment WHERE rowid = " . ((int) $user->id) | 1 |
|
'SELECT e.rowid, e.ref, e.datec, e.fk_user_author, e.tms as datem, e.fk_user_mod, e.entity' | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'job/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'job/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'evaluation/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'evaluation/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "hrm_evaluation " | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'skillrank/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'skillrank/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'skill/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'skill/" . $this->db->escape($this->newref) . "'" | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "hrm_skillrank WHERE objecttype = 'job' AND fk_object = " . ((int) $object->id) | 1 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "hrm_job_user WHERE fk_job = " . ((int) $object->id) | 1 |
|
'SELECT ft.rowid, ft.description, ft.fk_fichinter, ft.duree, ft.rang,' | 1 |
|
"SELECT count(f.rowid), f.fk_statut" | 1 |
|
"SELECT f.rowid, f.ref, s.nom as name, s.rowid as socid" | 1 |
|
"SELECT f.rowid, f.ref, f.fk_statut, f.date_valid as datec, f.tms as datem," | 1 |
|
"SELECT f.rowid, f.ref, f.fk_statut, s.nom as name, s.rowid as socid" | 1 |
|
'SELECT l.rowid, l.description, l.duree' | 1 |
|
"SELECT f.rowid as fich_rec, s.nom as name, s.rowid as socid, f.rowid as facid, f.title," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "fichinter_rec (" | 1 |
|
'SELECT f.title, f.fk_soc' | 1 |
|
'SELECT l.rowid, l.fk_product, l.product_type as product_type, l.label as custom_label, l.description,' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "fichinterdet_rec WHERE fk_fichinter = " . ((int) $rowid) | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "fichinter_rec WHERE rowid = " . ((int) $rowid) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "fichinterdet_rec (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "fichinter_rec " | 1 |
|
"SELECT date_format(c.date_valid,'%Y') as dm, COUNT(*) as nb, 0" | 1 |
|
"SELECT date_format(c.date_valid,'%Y') as year, COUNT(*) as nb, 0 as total, 0 as avg" | 1 |
|
"SELECT product.ref, COUNT(product.ref) as nb, 0 as total, 0 as avg" | 1 |
|
"SELECT count(fi.rowid) as nb" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "fichinter (" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "fichinter SET ref='" . $this->db->escape($this->ref) . "' WHERE rowid=" . ((int) $this->id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "fichinter SET " | 1 |
|
"SELECT f.rowid, f.ref, f.ref_client, f.description, f.fk_soc, f.fk_statut as status," | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'ficheinter/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'ficheinter/" . $this->db->escape($this->newref) . "'" | 1 |
|
"DELETE FROM $ef WHERE fk_object IN (SELECT rowid FROM $main WHERE fk_fichinter = " . ((int) $this->id) . ")" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "fichinterdet" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "fichinter" | 1 |
|
"SELECT rowid, fk_fichinter, description, duree, date, rang" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element . " SET ref_client = " . (empty($ref_client) ? 'NULL' : "'" . $this->db->escape($ref_client) . "'") | 1 |
|
'SELECT ft.rowid, ft.fk_fichinter, ft.description, ft.duree, ft.rang, ft.date' | 1 |
|
'SELECT max(rang) as max FROM ' . MAIN_DB_PREFIX . 'fichinterdet' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'fichinterdet' | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "fichinterdet SET" | 1 |
|
"SELECT SUM(duree) as total_duration, min(date) as dateo, max(date) as datee " | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "fichinterdet WHERE rowid = " . ((int) $this->id) | 1 |
|
" SELECT s.rowid FROM " . MAIN_DB_PREFIX . "societe as s WHERE s.entity = %d AND s.client = 1 AND s.fournisseur = 0 AND s.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT s.rowid FROM " . MAIN_DB_PREFIX . "societe as s WHERE s.entity = %d AND s.client = 2 AND s.fournisseur = 0 AND s.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT s.rowid FROM " . MAIN_DB_PREFIX . "societe as s WHERE s.entity = %d AND s.client = 3 AND s.fournisseur = 0 AND s.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT s.rowid FROM " . MAIN_DB_PREFIX . "societe as s WHERE s.entity = %d AND s.client = 0 AND s.fournisseur = 0 AND s.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT s.rowid FROM " . MAIN_DB_PREFIX . "societe as s WHERE s.entity = %d AND s.fournisseur = 1 AND s.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT c.rowid FROM " . MAIN_DB_PREFIX . "socpeople as c INNER JOIN " . MAIN_DB_PREFIX . "societe as s ON s.rowid = c.fk_soc WHERE c.entity = %d AND c.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND s.client = 1 AND s.fournisseur = 0 AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT c.rowid FROM " . MAIN_DB_PREFIX . "socpeople as c INNER JOIN " . MAIN_DB_PREFIX . "societe as s ON s.rowid = c.fk_soc WHERE c.entity = %d AND c.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND s.client = 2 AND s.fournisseur = 0 AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT c.rowid FROM " . MAIN_DB_PREFIX . "socpeople as c INNER JOIN " . MAIN_DB_PREFIX . "societe as s ON s.rowid = c.fk_soc WHERE c.entity = %d AND c.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND s.client = 3 AND s.fournisseur = 0 AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT c.rowid FROM " . MAIN_DB_PREFIX . "socpeople as c INNER JOIN " . MAIN_DB_PREFIX . "societe as s ON s.rowid = c.fk_soc WHERE c.entity = %d AND c.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND s.client = 0 AND s.fournisseur = 0 AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT c.rowid FROM " . MAIN_DB_PREFIX . "socpeople as c INNER JOIN " . MAIN_DB_PREFIX . "societe as s ON s.rowid = c.fk_soc WHERE c.entity = %d AND c.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND s.fournisseur = 1 AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) ) AND NOT EXISTS ( SELECT rowid FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.fk_soc = s.rowid ) " | 1 |
|
" SELECT a.rowid FROM " . MAIN_DB_PREFIX . "adherent as a WHERE a.entity = %d AND a.tms < DATE_SUB(NOW(), INTERVAL %d MONTH) AND NOT EXISTS ( SELECT id FROM " . MAIN_DB_PREFIX . "actioncomm as a WHERE a.fk_element = a.rowid AND a.tms > DATE_SUB(NOW(), INTERVAL %d MONTH) AND a.elementtype LIKE 'member' ) " | 1 |
|
'SELECT rowid, type, rulevalue, status' | 1 |
|
'SELECT rowid, type, actionparam, status' | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "ticket" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "projet where email_msgid = '" . $this->db->escape($reg[1]) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "recruitment_recruitmentcandidature where email_msgid = '" . $this->db->escape($reg[1]) . "'" | 1 |
|
"SELECT rowid as id FROM " . MAIN_DB_PREFIX . "user WHERE email LIKE '%" . $this->db->escape($from) . "%'" | 1 |
|
'SELECT DISTINCT t.rowid ' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "delivery (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "delivery " | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "deliverydet (fk_delivery, fk_origin_line," | 1 |
|
"SELECT l.rowid, l.fk_soc, l.date_creation, l.date_valid, l.ref, l.ref_customer, l.fk_user_author," | 1 |
|
"SELECT ref" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "delivery SET" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'expedition/receipt/" . $this->db->escape($this->newref) . "'" | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'expedition/receipt/" . $this->db->escape($this->newref) . "'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "commandedet" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "deliverydet" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "delivery" | 1 |
|
"SELECT ld.rowid, ld.fk_product, ld.description, ld.subprice, ld.total_ht, ld.qty as qty_shipped, ld.fk_origin_line, " | 1 |
|
"SELECT st.rowid, st.description, st.qty" | 1 |
|
"SELECT ld.fk_origin_line, sum(ld.qty) as qty" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "delivery" | 1 |
|
"SELECT t.fk_statut, COUNT(t.fk_statut) as nb" | 1 |
|
"SELECT t.rowid, t.ref, t.track_id, t.datec, t.subject, t.type_code, t.category_code, t.severity_code, t.fk_statut as status, t.progress," | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "ticket(" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "ticket SET" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_ticket" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "ticket" | 1 |
|
"SELECT rowid, code, label, use_default, pos, description, public, active, force_severity, fk_parent" | 1 |
|
"SELECT id as rowid, fk_user_author, email_from, datec, datep, label, note as message, code" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "socpeople" | 1 |
|
"SELECT ec.rowid, ec.statut as statuslink, ec.fk_socpeople as id, ec.fk_c_type_contact" | 1 |
|
"SELECT p.rowid, p.ref, p.datec as datec" | 1 |
|
'SELECT ecm.rowid as id, ecm.src_object_type, ecm.src_object_id' | 1 |
|
"SELECT YEAR(datec) as dm, count(*)" | 1 |
|
"SELECT MONTH(datec) as dm, count(*)" | 1 |
|
"SELECT date_format(datec,'%m') as dm, sum(" . $this->field . ")" | 1 |
|
"SELECT date_format(datec,'%m') as dm, avg(" . $this->field . ")" | 1 |
|
"SELECT date_format(datec,'%Y') as year, count(*) as nb, sum(" . $this->field . ") as total, avg(" . $this->field . ") as avg" | 1 |
|
"SELECT up.value" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "user_param" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "user_param as up" | 1 |
|
"SELECT u.login, u.datec, u.api_key," | 1 |
|
"SELECT rowid, code, libelle as label, module" | 1 |
|
"SELECT t.rowid FROM " . MAIN_DB_PREFIX . "c_regions as t" | 1 |
|
"SELECT t.rowid FROM " . MAIN_DB_PREFIX . "c_departements as t" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "c_country as t" | 1 |
|
"SELECT id, code, label, accountancy_code, active, module, position" | 1 |
|
"SELECT rowid, code, element as type, libelle as label, source, module, position" | 1 |
|
"SELECT t.code_iso, t.label, t.unicode" | 1 |
|
"SELECT rowid AS id, zip, town, fk_county, fk_pays AS fk_country" | 1 |
|
"SELECT rowid as id, code, sortorder, libelle as label, libelle_facture as descr, type_cdr, nbjour, decalage, module" | 1 |
|
"SELECT rowid as id, code, libelle as label, description, tracking, module" | 1 |
|
"SELECT t.rowid, t.code, t.label,t.short_label, t.active, t.scale, t.unit_type" | 1 |
|
"SELECT t.rowid, t.code, t.fk_pays, t.libelle, t.isvatexempted, t.active, t.module, t.position" | 1 |
|
"SELECT t.id, t.code, t.libelle, t.active, t.module" | 1 |
|
"SELECT t.rowid, t.entity, t.code, t.label, t.url, t.icon, t.active" | 1 |
|
"SELECT rowid, code, pos, label, use_default, color, description" | 1 |
|
"SELECT rowid, code, active" | 1 |
|
"SELECT sa.rowid as id, sa.pass_crypted" | 1 |
|
"SELECT COUNT(sc.rowid) as nb" | 1 |
|
"SELECT p.label, p.rowid, p.fk_product_type, p.ref, p.entity as pentity," | 1 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'facturedet' | 1 |
|
"SELECT distinct s.nom, s.rowid as socid, s.code_client," | 1 |
|
"SELECT s.nom as name, s.rowid as socid, s.code_client," | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "element_resources" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "element_resources SET" | 1 |
|
'SELECT rowid, resource_id, resource_type, busy, mandatory' | 1 |
|
"SELECT count(r.rowid) as nb" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "product" | 1 |
|
"SELECT rowid, ref, fk_product_type" | 1 |
|
"SELECT count(rowid) as nb FROM " . MAIN_DB_PREFIX . "societe where barcode IS NULL or barcode = ''" | 1 |
|
"SELECT count(rowid) as nb FROM " . MAIN_DB_PREFIX . "societe" | 1 |
|
"SELECT count(rowid) as nb, fk_product_type, datec" | 1 |
|
"SELECT count(rowid) as nb FROM " . MAIN_DB_PREFIX . "product" | 1 |
|
'SELECT p.rowid, p.ref, p.fk_type, p.fk_soc, p.fk_member, p.status' | 1 |
|
"SELECT p.rowid, p.fk_member, p.status" | 1 |
|
"SELECT p.rowid, p.status, p." . $fk_partner | 1 |
|
"SELECT rowid, fk_parent, entity, label, description, color, position, fk_soc, visible, type, ref_ext" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "categorie (" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $key | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "categorie_" . (empty($this->MAP_CAT_TABLE[$type]) ? $type : $this->MAP_CAT_TABLE[$type]) | 1 |
|
'SELECT fk_parent FROM ' . MAIN_DB_PREFIX . 'categorie' | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_" . (empty($this->MAP_CAT_TABLE[$type]) ? $type : $this->MAP_CAT_TABLE[$type]) | 1 |
|
"SELECT c.fk_" . (empty($this->MAP_CAT_FK[$type]) ? $type : $this->MAP_CAT_FK[$type]) . " as fk_object" | 1 |
|
"SELECT COUNT(*) as nb FROM " . MAIN_DB_PREFIX . "categorie_" . (empty($this->MAP_CAT_TABLE[$type]) ? $type : $this->MAP_CAT_TABLE[$type]) | 1 |
|
"SELECT DISTINCT c.rowid, c.label, c.ref_ext, c.description, c.color, c.position, c.fk_parent, c.visible" | 1 |
|
"SELECT fk_parent FROM " . MAIN_DB_PREFIX . "categorie" | 1 |
|
"SELECT ct.fk_categorie, c.label, c.rowid" | 1 |
|
"SELECT lang, label, description" | 1 |
|
"SELECT COUNT(rowid) FROM " . MAIN_DB_PREFIX . "categorie" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "ecm_directories(" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "ecm_directories" | 1 |
|
"SELECT c.rowid as rowid, c.label as label," | 1 |
|
"SELECT MAX(position) as maxposition FROM " . MAIN_DB_PREFIX . $this->table_element | 1 |
|
"SELECT rowid,date_creation,tms,user_fullname,action,amounts,element,fk_object,date_object,ref_object,signature,fk_user,object_data" | 1 |
|
"SELECT rowid, date_creation, tms, user_fullname, action, amounts, element, fk_object, date_object, ref_object, signature, fk_user, object_data, object_version" | 1 |
|
"SELECT rowid, code as code_iso, code_iso as code_iso3, label, favorite" | 1 |
|
"SELECT b.rowid, b.signature, b.blockchain, b.tms" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "blockedlog_authority (" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "blockedlog_authority SET " | 1 |
|
"SELECT b.rowid, b.date_creation, b.signature, b.signature_line, b.amounts, b.action, b.element, b.fk_object, b.entity," | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "blockedlog SET certified=1 WHERE rowid=" . ((int) $this->id) | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "blockedlog (" | 1 |
|
"SELECT rowid, signature FROM " . MAIN_DB_PREFIX . "blockedlog" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "blockedlog WHERE entity=" . $conf->entity | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "blockedlog WHERE entity=" . $conf->entity . " AND certified = 0" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "blockedlog WHERE entity=" . $conf->entity . " AND certified = 1" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "blockedlog WHERE entity=" . $conf->entity . " AND element = '" . $this->db->escape($element) . "'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "blockedlog" | 1 |
|
'SELECT rowid, test FROM ' . MAIN_DB_PREFIX . 'cronjob' | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "cronjob(" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "cronjob SET" | 1 |
|
"SELECT tokenstring" | 1 |
|
"SELECT pi.ext_payment_id, pi.entity, pi.fk_facture, pi.sourcetype, pi.ext_payment_site" | 1 |
|
"SELECT pi.rowid" | 1 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "prelevement_demande (date_demande, fk_user_demande, ext_payment_id, fk_facture, sourcetype, entity, ext_payment_site, amount)" | 1 |
|
"SELECT sa.stripe_card_ref, sa.proprio, sa.exp_date_month, sa.exp_date_year, sa.number, sa.cvn" | 1 |
|
"SELECT sa.stripe_card_ref, sa.proprio, sa.iban_prefix as iban, sa.rum" | 1 |
|
"Update the payment mode of the customer" | 1 |
|
"SELECT sa.key_account as key_account, sa.fk_soc, sa.entity" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX | 1 |
|
"SELECT m.rowid, m.statut as status" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing SET statut = 2 WHERE rowid = " . ((int) $obj->rowid) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing SET date_envoi='" . $db->idate($now) . "' WHERE rowid=" . ((int) $id) | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing SET statut=3 WHERE rowid=" . $obj->rowid | 1 |
|
"update global status" | 1 |
|
"Update status of emailing id " . $id . " to " . $statut . "\n" | 1 |
|
"SELECT f.ref, f.total_ttc, f.date_lim_reglement as due_date," | 1 |
|
"SELECT f.ref, f.total_ttc, f.date_lim_reglement as due_date, s.nom as name, s.email, s.default_lang," | 1 |
|
"SELECT c.ref, cd.date_fin_validite, cd.total_ttc, cd.description as description, p.label as plabel," | 1 |
|
"SELECT DISTINCT c.ref, c.fk_soc, cd.date_fin_validite, cd.total_ttc, cd.description as description, p.label as plabel, s.rowid, s.nom as name, s.email, s.default_lang," | 1 |
|
'SELECT c.id, c.title, c.alias, c.created, c.introtext, `fulltext`, c.metadesc, c.metakey, c.language, c.created, c.publish_up, u.username FROM ' . $joomlaprefix . '_content as c' | 1 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'website_page(fk_website, pageurl, aliasalt, title, description, keywords, content, status, type_container, lang, import_key, image, date_creation, author_alias)' | 1 |
|
"Insert done - pageid = " . $pageid . "\n" | 1 |
|
"SELECT rowid as uid from " . MAIN_DB_PREFIX . "user" | 1 |
|
"SELECT rowid as pid from " . MAIN_DB_PREFIX . "product" | 1 |
|
'SELECT login, entity from ' . MAIN_DB_PREFIX . 'user WHERE admin = 1 and statut = 1 ORDER BY entity LIMIT 1' | 1 |
|
"INSERT INTO" | 1 |
|
"INSERT INTO $heads VALUES\n" . implode(",\n", $values) . ";\n\n" | 1 |
|
"INSERT INTO $heads VALUES\n" . implode(",\n", $values) . ";\n" | 1 |
|
"Update dates to current year for database name = " . $db->database_name . "\n" | 1 |
|
"select rowid from " . MAIN_DB_PREFIX . $tablekey . " where " . $tableval[0] . " between '" . $year . "-01-01' and '" . $year . "-12-31' and " . $tableval[0] . " < DATE_ADD(NOW(), INTERVAL -1 YEAR)" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . $tablekey . " set " | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe WHERE client in (1, 3)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "user_rights WHERE fk_user IN (SELECT rowid FROM " . MAIN_DB_PREFIX . "user WHERE admin = 0 and login != 'admin') AND fk_user IN (select rowid FROM " . MAIN_DB_PREFIX . "user where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "user WHERE admin = 0 and login != 'admin' AND datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "actioncomm WHERE datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "paiement_facture where fk_facture IN (select rowid FROM " . MAIN_DB_PREFIX . "facture where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "paiement where rowid NOT IN (SELECT fk_paiement FROM " . MAIN_DB_PREFIX . "paiement_facture)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "paiementfourn_facturefourn where fk_facturefourn IN (select rowid FROM " . MAIN_DB_PREFIX . "facture_fourn where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "paiementfourn where rowid NOT IN (SELECT fk_paiementfourn FROM " . MAIN_DB_PREFIX . "paiementfourn_facturefourn)" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_class WHERE lineid IN (SELECT rowid FROM " . MAIN_DB_PREFIX . "bank WHERE datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_url WHERE fk_bank IN (SELECT rowid FROM " . MAIN_DB_PREFIX . "bank WHERE datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank WHERE datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_account WHERE datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_remise_except where fk_facture_source IN (select rowid FROM " . MAIN_DB_PREFIX . "facture where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_remise_except where fk_facture IN (select rowid FROM " . MAIN_DB_PREFIX . "facture where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_remise_except where fk_facture_line IN (select rowid FROM " . MAIN_DB_PREFIX . "facturedet as fd WHERE fd.fk_facture IN (select rowid from " . MAIN_DB_PREFIX . "facture where datec < '__DATE__'))" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facture_rec where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facturedet WHERE fk_facture IN (select rowid FROM " . MAIN_DB_PREFIX . "facture where datec < '__DATE__')" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture SET fk_facture_source = NULL WHERE fk_facture_source IN (select f2.rowid FROM (select * from " . MAIN_DB_PREFIX . "facture) as f2 where f2.datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facture where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping where doc_date < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "propaldet WHERE fk_propal IN (select rowid FROM " . MAIN_DB_PREFIX . "propal where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "propal WHERE datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "supplier_proposaldet WHERE fk_supplier_proposal IN (select rowid FROM " . MAIN_DB_PREFIX . "propal where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "supplier_proposal where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "commandedet WHERE fk_commande IN (select rowid FROM " . MAIN_DB_PREFIX . "commande where date_creation < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "commande where date_creation < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "commande_fournisseurdet WHERE fk_commande IN (select rowid FROM " . MAIN_DB_PREFIX . "commande_fournisseur where date_creation < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "commande_fournisseur where date_creation < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facture_fourn_det WHERE fk_facture_fourn IN (select rowid FROM " . MAIN_DB_PREFIX . "facture_fourn where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "facture_fourn where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expeditiondet_batch WHERE fk_expeditiondet IN (select rowid FROM " . MAIN_DB_PREFIX . "expeditiondet WHERE fk_expedition IN (select rowid FROM " . MAIN_DB_PREFIX . "expedition where date_creation < '__DATE__'))" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expeditiondet_extrafields WHERE fk_object IN (select rowid FROM " . MAIN_DB_PREFIX . "expeditiondet WHERE fk_expedition IN (select rowid FROM " . MAIN_DB_PREFIX . "expedition where date_creation < '__DATE__'))" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expeditiondet WHERE fk_expedition IN (select rowid FROM " . MAIN_DB_PREFIX . "expedition where date_creation < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expedition_extrafields WHERE fk_object IN (select rowid FROM " . MAIN_DB_PREFIX . "expedition where date_creation < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expedition where date_creation < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "deliverydet WHERE fk_delivery IN (select rowid FROM " . MAIN_DB_PREFIX . "delivery where date_creation < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "delivery where date_creation < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "contratdet_extrafields WHERE fk_object IN (select rowid FROM " . MAIN_DB_PREFIX . "contratdet WHERE fk_contrat IN (select rowid FROM " . MAIN_DB_PREFIX . "contrat where datec < '__DATE__'))" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "contratdet WHERE fk_contrat IN (select rowid FROM " . MAIN_DB_PREFIX . "contrat where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "contrat_extrafields WHERE fk_object IN (select rowid FROM " . MAIN_DB_PREFIX . "contrat where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "contrat WHERE datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "fichinterdet WHERE fk_fichinter IN (select rowid FROM " . MAIN_DB_PREFIX . "fichinter where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "fichinter where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "stock_mouvement WHERE datem < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_product WHERE fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_lang WHERE fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_price_by_qty WHERE fk_product_price IN (select rowid FROM " . MAIN_DB_PREFIX . "product_price where fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__'))" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_price WHERE fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_fournisseur_price WHERE fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_batch WHERE fk_product_stock IN (select rowid FROM " . MAIN_DB_PREFIX . "product_stock where fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__'))" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_stock WHERE fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_lot WHERE fk_product IN (select rowid FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "element_time WHERE elementtype = 'task' AND fk_element IN (select rowid FROM " . MAIN_DB_PREFIX . "projet_task WHERE fk_projet IN (select rowid FROM " . MAIN_DB_PREFIX . "projet where datec < '__DATE__'))" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "projet_task WHERE fk_projet IN (select rowid FROM " . MAIN_DB_PREFIX . "projet where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "projet where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_contact WHERE fk_socpeople IN (select rowid FROM " . MAIN_DB_PREFIX . "socpeople where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "socpeople where datec < '__DATE__'" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "cabinetmed_cons WHERE fk_soc IN (select rowid FROM " . MAIN_DB_PREFIX . "societe where datec < '__DATE__')" | 1 |
|
"UPDATE " . MAIN_DB_PREFIX . "adherent SET fk_soc = NULL WHERE fk_soc IN (select rowid FROM " . MAIN_DB_PREFIX . "societe where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_fournisseur WHERE fk_soc IN (select rowid FROM " . MAIN_DB_PREFIX . "societe where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_societe WHERE fk_soc IN (select rowid FROM " . MAIN_DB_PREFIX . "societe where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_remise_except WHERE fk_soc IN (select rowid FROM " . MAIN_DB_PREFIX . "societe where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_rib WHERE fk_soc IN (select rowid FROM " . MAIN_DB_PREFIX . "societe where datec < '__DATE__')" | 1 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe where datec < '__DATE__'" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe where client in (1, 3)" | 1 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe WHERE client in (1,3)" | 1 |
|
"SELECT rowid, fk_soc FROM " . MAIN_DB_PREFIX . "socpeople" | 1 |
|
'Delete current files ' . $outputdir . '/filelist*.xml*' . "\n" | 1 |
|
"SELECT e.rowid, e.ref, e.ref_customer," | 2 |
|
"SELECT cd.fk_product, cd.subprice, ed.qty, ed.fk_entrepot, ed.rowid as expeditiondet_id" | 2 |
|
"SELECT em.code, em.tracking" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expeditiondet_batch" | 2 |
|
"SELECT date_format(c.date_valid,'%Y') as dm, COUNT(*) as nb, SUM(c." . $this->field . ")" | 2 |
|
"SELECT date_format(c.date_valid,'%m') as dm, SUM(c." . $this->field . ")" | 2 |
|
"SELECT date_format(c.date_valid,'%m') as dm, AVG(c." . $this->field . ")" | 2 |
|
"SELECT date_format(c.date_valid,'%Y') as year, COUNT(*) as nb, SUM(c." . $this->field . ") as total, AVG(" . $this->field . ") as avg" | 2 |
|
"SELECT ps.fk_entrepot, ps.fk_product, p.barcode, ps.reel, pb.batch" | 2 |
|
"SELECT ps.fk_entrepot, ps.fk_product, p.barcode,ps.reel" | 2 |
|
"SELECT cr.rowid" | 2 |
|
"SELECT cd.rowid, cd.date_fin_validite as datefin" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "contratdet SET" | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'contratdet SET' | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "contratdet" | 2 |
|
"SELECT count(cd.rowid) as nb, cd.statut as status" | 2 |
|
"SELECT c.ref, c.fk_soc as thirdpartyid, cd.rowid as cid, cd.statut, cd.label, cd.fk_product, cd.description as note, cd.fk_contrat," | 2 |
|
'SELECT id_users, nom as name' | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $this->table_element_line | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "holiday_config SET" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "holiday_users" | 2 |
|
"SELECT DISTINCT ur.fk_user" | 2 |
|
" SELECT DISTINCT ugu.fk_user" | 2 |
|
"SELECT count(u.rowid) as compteur" | 2 |
|
"SELECT DISTINCT" | 2 |
|
"SELECT code, label FROM " . MAIN_DB_PREFIX . "c_country WHERE rowid = " . ((int) $this->object->country_id) | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "user SET fk_member = NULL WHERE fk_member = " . ((int) $this->id) | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "adherent_type_lang" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "adherent_type_lang (fk_type, lang, label, description" | 2 |
|
"SELECT a.rowid" | 2 |
|
"SELECT COUNT(DISTINCT d.rowid) as nb, COUNT(s.rowid) as nbsubscriptions," | 2 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "facture where ref='(PROV-POS" . $_SESSION["takeposterminal"] . "-" . $place . ")' AND entity IN (" . getEntity('invoice') . ")" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture set fk_soc=" . ((int) $idcustomer) . " where ref='(PROV-POS" . $_SESSION["takeposterminal"] . "-" . $place . ")'" | 2 |
|
"SELECT code, label, sortorder" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "socpeople SET" | 2 |
|
"SELECT fk_user" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "element_contact" | 2 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "mailing_unsubscribe WHERE entity IN (" . getEntity('mailing', 0) . ") AND email = '" . $this->db->escape($this->email) . "'" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "mailing_unsubscribe(email, entity, date_creat) VALUES ('" . $this->db->escape($this->email) . "', " . getEntity('mailing', 0) . ", '" . $this->db->idate(dol_now( )) . "')" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "mailing_unsubscribe WHERE email = '" . $this->db->escape($this->email) . "' AND entity IN (" . getEntity('mailing', 0) . ")" | 2 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "mailing_unsubscribe WHERE entity IN (" . getEntity('mailing') . ") AND email = '" . $this->db->escape($this->email) . "'" | 2 |
|
"SELECT p.rowid" | 2 |
|
"SELECT rowid, ref, ref_ext, label, position" | 2 |
|
"SELECT COUNT(*) AS count" | 2 |
|
"SELECT rowid, fk_product_attribute_combination, fk_price_level, variation_price, variation_price_percentage" | 2 |
|
"SELECT a.rowid, a.pcg_version, a.label, a.active" | 2 |
|
'SELECT v.rowid as ref' | 2 |
|
" UPDATE " . MAIN_DB_PREFIX . "expensereport_det" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "expensereport_det as erd" | 2 |
|
'SELECT DISTINCT pcg_type FROM ' . MAIN_DB_PREFIX . 'accounting_account' | 2 |
|
"SELECT MAX(" . $db->sanitize($tabrowid[$id]) . ") newid FROM " . $db->sanitize($tabname[$id]) | 2 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET active = 1 WHERE " . $db->sanitize($rowidcol) . " = " . ((int) $rowid) | 2 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET active = 1 WHERE code = '" . $db->escape($code) . "'" | 2 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET active = 0 WHERE " . $db->sanitize($rowidcol) . " = " . ((int) $rowid) | 2 |
|
" UPDATE " . MAIN_DB_PREFIX . "facture_fourn_det" | 2 |
|
"SELECT f.rowid as facid, f.ref, f.ref_supplier, f.libelle as invoice_label, f.datef, f.type as ftype, f.fk_facture_source," | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "accounting_account " | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "accounting_account" | 2 |
|
"SELECT rowid, doc_date, doc_type," | 2 |
|
' SELECT doc_date, doc_type,' | 2 |
|
"SELECT date_start, date_end" | 2 |
|
"SELECT t.rowid, t.account_number, t.label as account_label" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "accounting_bookkeeping SET" | 2 |
|
" UPDATE " . MAIN_DB_PREFIX . "facturedet" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet" | 2 |
|
"SELECT '" . $db->escape($langs->trans("Vide")) . "' AS marge," | 2 |
|
"SELECT u.rowid, u.pass, u.pass_crypted" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const WHERE " . $db->decrypt('name') . " = 'MAIN_NOT_INSTALLED'" | 2 |
|
"SELECT distinct p.rowid, p.datec, p.amount as pamount, bu.fk_bank, b.amount as bamount," | 2 |
|
" SELECT distinct f.rowid from " . MAIN_DB_PREFIX . "facture as f" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "bank_url (" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "contrat" | 2 |
|
"SELECT t1.rowid, t1." . $field1 . " as field" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . $table2 . " SET" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "element_contact (" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "projet_task SET" | 2 |
|
"SELECT fk_categorie_mere, fk_categorie_fille" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "actioncomm_resources(fk_actioncomm, element_type, fk_element) " | 2 |
|
"SELECT f.entity" | 2 |
|
"SELECT u.rowid, u.entity" | 2 |
|
"SELECT p.rowid, p.ref, p.tobatch, ps.rowid as psrowid, ps.fk_entrepot, ps.reel, SUM(pb.qty) as reelbatch" | 2 |
|
"SELECT f.rowid as facid" | 2 |
|
"SELECT rowid, ref, ref_ext" | 2 |
|
'SELECT rowid, fk_bom_child, fk_product, qty FROM ' . MAIN_DB_PREFIX . 'bom_bomline AS bl' | 2 |
|
"SELECT " . $objectline->getFieldList('l') | 2 |
|
"SELECT rowid, label, email FROM " . MAIN_DB_PREFIX . "c_email_senderprofile WHERE rowid = " . (int) $reg[1] | 2 |
|
"SELECT rowid, title, url, target FROM " . MAIN_DB_PREFIX . "bookmark" | 2 |
|
'SELECT rowid, label, email FROM ' . MAIN_DB_PREFIX . 'c_email_senderprofile' | 2 |
|
"SELECT wp.rowid, wp.lang, wp.pageurl, wp.fk_page" | 2 |
|
"SELECT rc.amount_ttc as amount, rc.multicurrency_amount_ttc as multicurrency_amount, rc.datec as date, f.ref as ref, rc.description as type" | 2 |
|
"SELECT s.label FROM " . $this->db->prefix( ) . $table . " AS f" | 2 |
|
"SELECT rowid, code, label as label" | 2 |
|
'INSERT INTO ' . $this->db->prefix( ) . 'prelevement_demande(' | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "prelevement_demande SET" | 2 |
|
'DELETE FROM ' . $this->db->prefix( ) . 'prelevement_demande' | 2 |
|
"SELECT rowid, code, label" | 2 |
|
"SELECT c.label, c.rowid" | 2 |
|
"SELECT t.rowid, " . $fieldstoshow . " FROM " . $this->db->prefix( ) . $objecttmp->table_element . " as t" | 2 |
|
"SELECT c.id, c.libelle as type" | 2 |
|
"SELECT rowid, label, fk_user" | 2 |
|
"SELECT rowid, name, fk_type, fk_profile, parameter" | 2 |
|
"SELECT t.rowid, t.label as ref" | 2 |
|
"SELECT t.rowid, t.ref, t.ref_supplier" | 2 |
|
"SELECT t.rowid, t.ref" | 2 |
|
"SELECT t.rowid, t.num_payment as ref" | 2 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . ' SET' | 2 |
|
"SELECT id, code, libelle as label" | 2 |
|
"SELECT d.rowid, d.code_departement as code, d.nom as name, d.active, c.label as country, c.code as country_code, r.nom as region_name FROM" | 2 |
|
"INSERT INTO " . $this->db->prefix( ) . "extrafields(" | 2 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . $this->table_element | 2 |
|
"SELECT max(" . $positionfield . ") FROM " . $this->db->prefix( ) . $this->table_element_line | 2 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element_line . " SET " . $fieldtva . " = " . price2num((float) $tmpcal[1]) . ", total_ttc = " . price2num((float) $tmpcal[2]) . " WHERE rowid = " . ((int) $obj->rowid) | 2 |
|
"DELETE FROM " . $this->db->prefix( ) . $table_element . "_extrafields WHERE fk_object = " . ((int) $this->id) | 2 |
|
"SELECT " . $label_type . ", code from " . $this->db->prefix( ) . "c_units where rowid = " . ((int) $this->fk_unit) | 2 |
|
"SELECT a.code, c.email, c.rowid" | 2 |
|
"UPDATE " . $this->db->prefix( ) . "societe_remise_except" | 2 |
|
"SELECT count(*)" | 2 |
|
"SELECT rowid, entity, datea, url, label, objecttype, objectid FROM " . $this->db->prefix( ) . "links" | 2 |
|
"SELECT rowid, ref" | 2 |
|
"SELECT code FROM " . $this->db->prefix( ) . "c_incoterms WHERE rowid = " . (int) $this->fk_incoterms | 2 |
|
"SELECT rowid, code, label, nature, entity, active" | 2 |
|
"SELECT c.rowid, c.label as type, c.range_account" | 2 |
|
"SELECT COUNT(sc.fk_soc) as nb" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "session" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . $tabletocleantree | 2 |
|
"SELECT DISTINCT a.id, a.label as label," | 2 |
|
"SELECT a.id, a.label as label," | 2 |
|
"SELECT m.rowid as id, m.titre as label, mc.date_envoi as dp, mc.date_envoi as dp2, '100' as percent, 'mailing' as type" | 2 |
|
"SELECT fk_soc as fk_soc FROM " . MAIN_DB_PREFIX . "projet WHERE ref='" . $db->escape($refname) . "' AND entity IN (" . getEntity('project') . ")" | 2 |
|
'SELECT id FROM ' . MAIN_DB_PREFIX . 'actioncomm' | 2 |
|
"SELECT rowid, code, label, nature" | 2 |
|
'DELETE FROM \\1 USING \\3' | 2 |
|
"SHOW FULL COLUMNS FROM " . $tmptable . ";" | 2 |
|
'SHOW VARIABLES LIKE \'basedir\'' | 2 |
|
'SHOW SERVER_ENCODING' | 2 |
|
'SHOW LC_COLLATE' | 2 |
|
'SHOW data_directory' | 2 |
|
"SHOW VARIABLES LIKE 'basedir'" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'standard_" . strtolower($myTmpObjectKey) . "' AND type = '" . strtolower($myTmpObjectKey) . "' AND entity = " . ((int) $conf->entity) | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('standard_" . strtolower($myTmpObjectKey) . "','" . strtolower($myTmpObjectKey) . "'," . ((int) $conf->entity) . ")" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'generic_" . strtolower($myTmpObjectKey) . "_odt' AND type = '" . strtolower($myTmpObjectKey) . "' AND entity = " . ((int) $conf->entity) | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('generic_" . strtolower($myTmpObjectKey) . "_odt', '" . strtolower($myTmpObjectKey) . "', " . ((int) $conf->entity) . ")" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "boxes_def" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "cronjob" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "const (" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "menu" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "emailcollector_emailcollectoraction (fk_emailcollector, type, actionparam, date_creation, fk_user_creat, status)" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "mailing_cibles" | 2 |
|
"SELECT s.rowid as id, s.email as email, s.nom as name, null as fk_contact, null as firstname, c.label as label" | 2 |
|
"SELECT ref FROM " . MAIN_DB_PREFIX . "product" | 2 |
|
"SELECT re.rowid, re.amount_ht, re.multicurrency_amount_ht, re.amount_tva, re.multicurrency_amount_tva, re.amount_ttc, re.multicurrency_amount_ttc," | 2 |
|
"SELECT p.datep as date, p.fk_paiement, p.num_paiement as num, pf.amount as amount, pf.multicurrency_amount," | 2 |
|
"SELECT MAX(CAST(ref AS SIGNED)) as max" | 2 |
|
"SELECT p.rowid, p.num_payment, p.datep as dp, p.amount, p.fk_bank," | 2 |
|
"SELECT t.rowid, t.element_date as task_date, t.element_duration as task_duration, t.fk_user, t.note" | 2 |
|
"SELECT " . $field . " as aliasfield FROM " . $table | 2 |
|
"SELECT " . $fname . " FROM " . $tablename | 2 |
|
"SELECT rowid FROM " . $tablename | 2 |
|
"UPDATE " . $tablename | 2 |
|
"INSERT INTO " . $tablename . "(" . implode(", ", $listfields) . ", import_key" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe SET " | 2 |
|
"SELECT a.id, a.label, a.datep as dp, a.percent as percentage" | 2 |
|
"SELECT f.fk_statut, SUM(f.total_ttc) as Mnttot, COUNT(*) as nb" | 2 |
|
"SELECT s.nom as name, s.rowid as socid, s.email, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur," | 2 |
|
"SELECT p.ref as product_ref" | 2 |
|
'SELECT k.rowid as id, k.date_creation, k.ref, k.lang, k.question, k.status as status' | 2 |
|
"SELECT SUM(f.total_ht) as total_ht " . $sql2 | 2 |
|
"SELECT cls.rowid, cls.code, cls.percent, cls.label" | 2 |
|
"SELECT p.fk_opp_status as opp_status, cls.code, COUNT(p.rowid) as nb, SUM(p.opp_amount) as opp_amount, SUM(p.opp_amount * p.opp_percent) as ponderated_opp_amount" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . $options->deprecation_options_fields[$mode_key]['table'] | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $mode_info['table'] | 2 |
|
"SELECT p.rowid, p.datep as dp, pf.amount, p.statut," | 2 |
|
"SELECT l.rowid, cfd.fk_product, sum(cfd.qty) as qty" | 2 |
|
"SELECT l.rowid, l.fk_product, l.subprice, l.remise_percent, l.ref AS sref, l.qty as qty," | 2 |
|
"SELECT c.rowid, c.ref, s.nom as name, s.rowid as socid" | 2 |
|
"SELECT s.nom as name, s.rowid as socid, f.rowid as facid, f.titre as title, f.total_ht, f.total_tva, f.total_ttc, f.frequency, f.unit_frequency," | 2 |
|
'SELECT SUM(pf.amount) as total_paiements' | 2 |
|
'SELECT r.rowid, r.titre as title, r.total_ttc' | 2 |
|
'SELECT p.datep as dp, p.ref, p.num_paiement as num_payment, p.rowid, p.fk_bank,' | 2 |
|
"SELECT COUNT(pfd.rowid) as nb, SUM(pfd.amount) as amount" | 2 |
|
'SELECT rowid, packaging FROM ' . $this->db->prefix( ) . "product_fournisseur_price" | 2 |
|
"SELECT count(co.rowid) as nb" | 2 |
|
'SELECT cd.rowid, cd.fk_product,' | 2 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . 'facture_fourn_det (fk_facture_fourn, special_code, fk_remise_except)' | 2 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . 'societe_remise_except' | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'facture_fourn SET' | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture_fourn" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture_fourn_det SET" | 2 |
|
'SELECT l.rowid,' | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'facture_fourn_det_rec SET' | 2 |
|
"SELECT count(s.rowid) as nb" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_fournisseur_price" | 2 |
|
'SELECT COUNT(DISTINCT p.rowid) as nbtotalofrecords' | 2 |
|
"SELECT s.nom as name FROM " . MAIN_DB_PREFIX . "societe as s" | 2 |
|
"SELECT c.rowid, c.entity, c.ref, c.fk_statut as status, c.facture, c.date_cloture as datec, c.tms as datem," | 2 |
|
"SELECT c.rowid, c.entity, c.ref, c.fk_statut as status, c.facture, c.date_commande as date, s.nom as name, s.rowid as socid" | 2 |
|
"SELECT s.rowid, s.nom as name, s.client, s.town, s.datec, s.datea" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $tabletodelete . "_extrafields WHERE fk_object IN (SELECT rowid FROM " . MAIN_DB_PREFIX . $tabletodelete . " WHERE " . $this->fk_element . " = " . ((int) $this->id) . ")" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "commandedet SET" | 2 |
|
"SELECT p.rowid, p.num_paiement as num_payment, p.datep as dp, p.amount," | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "chargesociales SET" | 2 |
|
"SELECT tva.rowid, tva.label as label, b.fk_account, ptva.fk_bank" | 2 |
|
"SELECT sum(f.amount) as amount" | 2 |
|
"SELECT DISTINCT(b.num_releve) as num" | 2 |
|
"SELECT MIN(b.datev) as min, MAX(b.datev) as max" | 2 |
|
"SELECT date_format(b.datev,'%d')" | 2 |
|
"SELECT b.num_releve as num" | 2 |
|
"SELECT b.rowid, b.dateo as do, b.datev as dv," | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "categorie_account" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "bank_account SET " | 2 |
|
"SELECT sum(amount) as amount" | 2 |
|
"SELECT b.rowid, b.datev as datefin" | 2 |
|
" SELECT COUNT(ab.rowid) as nb FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping as ab WHERE ab.doc_type='" . $this->db->escape($type) . "' AND ab.fk_doc = " . ((int) $this->id) | 2 |
|
'SELECT pf.amount' | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'element_time' | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'facture SET' | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet SET" | 2 |
|
"SELECT pf.rowid, p.type," | 2 |
|
"SELECT p.rowid, p.ref, p.amount, p.datec, p.statut" | 2 |
|
"SELECT sum(pl.amount), count(pl.amount)" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "prelevement_bons" | 2 |
|
"SELECT soc.rowid as socid, soc.code_client as code, soc.address, soc.zip, soc.town, c.code as country_code," | 2 |
|
"SELECT pl.amount" | 2 |
|
"SELECT sum(f.total_ht) as amount_ht, sum(f.total_ttc) as amount_ttc, date_format(f.datef,'%Y-%m') as dm" | 2 |
|
"SELECT sum(pf.amount) as amount_ttc, date_format(p.datep,'%Y-%m') as dm" | 2 |
|
"SELECT sum(f.total_tva) as amount, date_format(f.datef,'%Y-%m') as dm" | 2 |
|
"SELECT sum(t.amount) as amount, date_format(t.datev,'%Y-%m') as dm" | 2 |
|
"SELECT p.societe as nom, p.firstname, p.lastname, date_format(p.datedon,'%Y-%m') as dm, sum(p.amount) as amount" | 2 |
|
"SELECT s.nom as name, s.rowid as socid, sum(f.total_ht) as amount_ht, sum(f.total_ttc) as amount_ttc" | 2 |
|
"SELECT s.nom as name, s.rowid as socid, sum(pf.amount) as amount_ttc" | 2 |
|
"SELECT c.id, c.libelle as label, c.accountancy_code, sum(cs.amount) as amount" | 2 |
|
"SELECT c.id, c.libelle as label, c.accountancy_code, sum(p.amount) as amount" | 2 |
|
"SELECT date_format(f.datef,'%Y-%m') as dm, sum(f.total_tva) as amount" | 2 |
|
"SELECT date_format(t.datev,'%Y-%m') as dm, sum(t.amount) as amount" | 2 |
|
"SELECT date_format(f.datef,'%Y-%m') as dm, sum(f.total_ht) as amount, sum(f.total_ttc) as amount_ttc" | 2 |
|
'SELECT pf.fk_facture, pf.amount' | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . 'bank' | 2 |
|
"SELECT p.rowid, p.num_payment as num_payment, p.datep as dp, p.amount," | 2 |
|
"SELECT pb.batch, pb.rowid, ps.fk_entrepot, pb.qty, e.ref as label, ps.fk_product" | 2 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "facture where ref='(PROV-POS" . $_SESSION["takeposterminal"] . "-" . $place . ")'" | 2 |
|
"SELECT code, libelle as label FROM " . MAIN_DB_PREFIX . "c_paiement" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "facturedet set fk_facture=" . $placeid . " where rowid=" . $line | 2 |
|
"SELECT f.rowid," | 2 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "oauth_token" | 2 |
|
"INSERT INTO " . $tabname[$id] . " (" | 2 |
|
"UPDATE " . $tabname[$id] . " SET " | 2 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "multicurrency WHERE entity = " . ((int) $conf->entity) | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "c_barcode_type" | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . "rights_def SET module_position = " . ((int) $newmoduleposition) . "," | 2 |
|
"SHOW TABLE STATUS" | 2 |
|
"SELECT m.rowid, m.position, m.type, m.fk_menu" | 2 |
|
"SELECT m.rowid, m.position" | 2 |
|
"SELECT c.label, count(*) as nb" | 2 |
|
"SELECT s.rowid, s.nom as name, s.email, s.client, s.fournisseur" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_rib as sr " | 2 |
|
"SELECT n.rowid, n.type," | 2 |
|
"SELECT n.rowid, n.daten, n.email, n.objet_type as object_type, n.objet_id as object_id, n.type," | 2 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_account WHERE fk_soc = " . ((int) $id) . " AND site = '" . $this->db->escape($request_data['site']) . "' " | 2 |
|
"SELECT sa.key_account as key_account, sa.entity" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_rib SET default_rib = 1" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "societe_perentity WHERE fk_soc = " . ((int) $this->id) . " AND entity = " . ((int) $conf->entity) | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_perentity (" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe " | 2 |
|
"SELECT rowid, ref, total_ht, total_ttc, fk_statut as status FROM " . MAIN_DB_PREFIX . $table . " as f" | 2 |
|
"SELECT c.rowid, c.entity, c.ref, c.fk_statut as status, date_cloture as datec, c.tms as datem," | 2 |
|
"SELECT SUM(rc.amount_ht) as amount, rc.fk_user" | 2 |
|
" SELECT resource_id FROM " . MAIN_DB_PREFIX . "element_resources" | 2 |
|
"SELECT code, color, libelle as label FROM " . MAIN_DB_PREFIX . "c_actioncomm ORDER BY position" | 2 |
|
"SELECT a.id," | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "actioncomm_reminder" | 2 |
|
"SELECT p.rowid as id, p.ref, s.nom" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "propal " | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'propal' | 2 |
|
"SELECT c.rowid, " | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "propaldet SET" | 2 |
|
"SELECT mc.rowid, mc.fk_mailing, mc.lastname, mc.firstname, mc.email, mc.other, mc.source_url, mc.source_id, mc.source_type, mc.tag" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe SET fk_stcomm=2 WHERE rowid IN (SELECT source_id FROM " . MAIN_DB_PREFIX . "mailing_cibles WHERE rowid=" . ((int) $obj->rowid) . ")" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe SET fk_stcomm=2 WHERE rowid IN (SELECT sc.fk_soc FROM " . MAIN_DB_PREFIX . "socpeople AS sc INNER JOIN " . MAIN_DB_PREFIX . "mailing_cibles AS mc ON mc.rowid=" . ((int) $obj->rowid) . " AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)" | 2 |
|
"SELECT mc.rowid, mc.lastname, mc.firstname, mc.email, mc.other, mc.statut as status, mc.date_envoi, mc.tms," | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "mailing_cibles WHERE rowid = " . ((int) $rowid) | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing " | 2 |
|
"DELETE FROM " . $this->db->prefix( ) . "user_rights" | 2 |
|
"SELECT COUNT(*) as nb FROM " . $this->db->prefix( ) . "user WHERE entity IN (" . $this->db->sanitize((int) $this->entity) . ", 0) AND login = '" . $this->db->escape($this->login) . "'" | 2 |
|
"SELECT COUNT(*) as nb FROM " . $this->db->prefix( ) . "user WHERE entity IN (" . $this->db->sanitize((int) $this->entity) . ", 0) AND email = '" . $this->db->escape($this->email) . "'" | 2 |
|
"UPDATE " . $this->db->prefix( ) . "user SET" | 2 |
|
"DELETE FROM " . $this->db->prefix( ) . "usergroup_user" | 2 |
|
"SELECT rowid, label, fk_user, entity" | 2 |
|
"SELECT e.rowid, e.ref as label, e.lieu, e.statut as status" | 2 |
|
"SELECT p.rowid, p.label as produit, p.tobatch, p.tosell, p.tobuy," | 2 |
|
'SELECT p.rowid, p.ref, p.label, p.barcode, p.price, p.price_ttc, p.price_base_type, p.entity,' | 2 |
|
" SELECT cp.fk_categorie, cp.fk_product" | 2 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "product_price_by_qty" | 2 |
|
"SELECT rowid, name, alias, title, align, sort, search, visible, enabled, rang" | 2 |
|
'DELETE FROM ' . $this->db->prefix( ) . 'inventorydet WHERE fk_inventory = ' . ((int) $this->id) | 2 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_perentity WHERE fk_product = " . ((int) $this->id) . " AND entity = " . ((int) $conf->entity) | 2 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_perentity (" | 2 |
|
"DELETE FROM " . $this->db->prefix( ) . $table | 2 |
|
"DELETE FROM " . $this->db->prefix( ) . "product_association" | 2 |
|
"UPDATE " . $this->db->prefix( ) . "product_lang" | 2 |
|
"INSERT INTO " . $this->db->prefix( ) . "product_lang (fk_product, lang, label, description" | 2 |
|
"SELECT pfp.rowid, pfp.price as price, pfp.quantity as quantity, pfp.remise_percent, pfp.fk_soc," | 2 |
|
"SELECT COUNT(DISTINCT f.fk_soc) as nb_customers, COUNT(DISTINCT f.rowid) as nb," | 2 |
|
"SELECT sum(d.qty) as qty, date_format(f.datef, '%Y%m')" | 2 |
|
"SELECT sum(d.qty) as qty, date_format(c.date_commande, '%Y%m')" | 2 |
|
"SELECT t.rowid, t.ref, t.ref_ext" | 2 |
|
"SELECT MAX(m.datem) as datem" | 2 |
|
"SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_fournisseur," | 2 |
|
"SELECT rowid, type, description, parameters, fk_variable, update_interval, next_update, last_status" | 2 |
|
"SELECT DISTINCT s.nom as name, s.rowid as socid, p.rowid as propalid, p.ref, d.total_ht as amount," | 2 |
|
"SELECT b.rowid as rowid, b.ref, b.status, b.date_valid, b.fk_product," | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "supplier_proposaldet SET" | 2 |
|
"SELECT e.rowid, e.ref, e.ref_supplier," | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "reception SET" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "projet" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . $tableName | 2 |
|
"SELECT ptt.rowid as taskid, ptt.element_duration, ptt.element_date, ptt.element_datehour, ptt.fk_element" | 2 |
|
"SELECT date_format(t.datec,'%m') as dm, count(t.opp_amount)" | 2 |
|
"SELECT thm FROM " . MAIN_DB_PREFIX . "user WHERE rowid = " . ((int) $timespent->fk_user) | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "societe_account (fk_soc, login, key_account, site, site_account, status, entity, date_creation, fk_user_creat)" | 2 |
|
"SELECT COUNT(ref) as nb_confs" | 2 |
|
"SELECT e.rowid, e.rowid as ref, e.label, e.address, e.zip, e.town, e.status" | 2 |
|
"SELECT date_format(c.date_valid,'%m') as dm, 0" | 2 |
|
"SELECT rowid, code, label, use_default, pos, description" | 2 |
|
"SELECT rowid, code, label, module" | 2 |
|
"SELECT id, code, type, libelle as label, module" | 2 |
|
"SELECT t.rowid as id, t.name, t.entity, t.elementtype, t.label, t.type, t.size, t.fieldcomputed, t.fielddefault," | 2 |
|
"SELECT t.rowid as id" | 2 |
|
"SELECT rowid, code, pos, label, use_default, description" | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filename = CONCAT('" . $this->db->escape($this->newref) . "', SUBSTR(filename, " . (strlen($this->ref) + 1) . ")), filepath = 'partnership/" . $this->db->escape($this->newref) . "'" | 2 |
|
'UPDATE ' . MAIN_DB_PREFIX . "ecm_files set filepath = 'partnership/" . $this->db->escape($this->newref) . "'" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "categorie" | 2 |
|
"SELECT fk_parent as id_parent, rowid as id_son" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "categorie_lang" | 2 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "categorie_lang (fk_category, lang, label, description)" | 2 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe_rib" | 2 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "product" | 2 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "user WHERE admin <> 1" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "expedition" | 3 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "expeditiondet" | 3 |
|
"SELECT date_format(c.date_valid,'%m') as dm, COUNT(*) as nb" | 3 |
|
"SELECT c.rowid" | 3 |
|
'UPDATE ' . MAIN_DB_PREFIX . "opensurvey_user_studs" | 3 |
|
'UPDATE ' . MAIN_DB_PREFIX . "opensurvey_sondage" | 3 |
|
"SELECT ctc.code, ctc.source, ec.fk_socpeople FROM " . MAIN_DB_PREFIX . "element_contact as ec, " . MAIN_DB_PREFIX . "c_type_contact as ctc" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "holiday SET" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "adherent" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture set ref='(PROV-POS" . $_SESSION["takeposterminal"] . "-" . $place . ")' where rowid = " . ((int) $placeid) | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "loan SET" | 3 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "bank_url" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element . " SET position = " . ((int) $position) | 3 |
|
" UPDATE " . MAIN_DB_PREFIX . "accounting_bookkeeping" | 3 |
|
"INSERT INTO " . $db->sanitize($tabname[$id]) . " (" | 3 |
|
"UPDATE " . $db->sanitize($tabname[$id]) . " SET " | 3 |
|
"DELETE from " . $db->sanitize($tabname[$id]) . " WHERE " . $db->sanitize($rowidcol) . " = " . ((int) $rowid) | 3 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element . '_tmp WHERE piece_num = ' . ((int) $piece_num) . ' AND entity = ' . ((int) $conf->entity) | 3 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "paiement_facture (fk_facture, fk_paiement, amount)" | 3 |
|
"SELECT cd.rowid, cd.qty, cd.subprice, cd.remise_percent, cd.tva_tx as vatrate, cd.info_bits," | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "livraison SET" | 3 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "element_element (" | 3 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "facture" | 3 |
|
"SELECT id, code, label" | 3 |
|
'UPDATE ' . $this->db->prefix( ) . $this->table_element . ' SET' | 3 |
|
'DELETE FROM ' . $this->db->prefix( ) . $this->table_element | 3 |
|
"DELETE FROM " . $this->db->prefix( ) . "extrafields" | 3 |
|
"SELECT rowid FROM " . $this->db->prefix( ) . $this->table_element_line | 3 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element_line . " SET " . $fieldposition . " = " . ((int) $rang) | 3 |
|
"SELECT COUNT(pfd.rowid) as nb" | 3 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity, libelle, description)" | 3 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model" | 3 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('standard_" . strtolower($myTmpObjectKey) . "','" . $this->db->escape(strtolower($myTmpObjectKey)) . "'," . ((int) $conf->entity) . ")" | 3 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "boxes" | 3 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "emailcollector_emailcollectorfilter (fk_emailcollector, type, rulevalue, date_creation, fk_user_creat, status)" | 3 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "emailcollector_emailcollectoraction (fk_emailcollector, type, date_creation, fk_user_creat, status)" | 3 |
|
"SELECT rowid, label, type, visible" | 3 |
|
"SELECT c.label, count(distinct(sp.email)) AS nb" | 3 |
|
"SELECT p.rowid, p.ref as product_ref, p.label as produit, p.tobatch, p.fk_product_type as type, p.entity," | 3 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'commande_fournisseur' | 3 |
|
"SELECT count(f.rowid) as nb" | 3 |
|
'SELECT rowid' | 3 |
|
" SELECT ec.fk_c_type_contact, ec.element_id, ec.fk_socpeople" | 3 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $tabletodelete . " WHERE " . $this->fk_element . " = " . ((int) $this->id) | 3 |
|
"SELECT product.ref, COUNT(product.ref) as nb, SUM(tl." . $this->field_line . ") as total, AVG(tl." . $this->field_line . ") as avg" | 3 |
|
'SELECT sum(amount) as amount' | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "tva SET" | 3 |
|
"SELECT date_format(b.datev,'%Y%m%d')" | 3 |
|
"SELECT count(b.rowid) as nb" | 3 |
|
"SELECT pfd.rowid, pfd.traite, pfd.date_demande as date_demande," | 3 |
|
"SELECT date_format(datef,'%m') as dm, AVG(f." . $this->field . ")" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "facture" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "salary SET" | 3 |
|
"SELECT COUNT(t.rowid) as nb, status" | 3 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $table | 3 |
|
"SELECT code, libelle FROM " . MAIN_DB_PREFIX . "c_paiement" | 3 |
|
"SHOW FULL COLUMNS IN " . $db->sanitize($table) | 3 |
|
"SELECT count(*) as nb from " . MAIN_DB_PREFIX . "facture where fk_soc = " . ((int) $socid) | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "societe" | 3 |
|
'SELECT id.rowid, id.datec as date_creation, id.tms as date_modification, id.fk_inventory, id.fk_warehouse,' | 3 |
|
"SELECT price, price_ttc, price_min, price_min_ttc," | 3 |
|
"DELETE FROM " . $this->db->prefix( ) . "propal_merge_pdf_product" | 3 |
|
"SELECT COUNT(*) as nb FROM " . $this->db->prefix( ) . "product_attribute_combination2val as pac2v" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "reception" | 3 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'element_time SET invoice_line_id = ' . ((int) $lineid) . ', invoice_id = ' . ((int) $tmpinvoice->id) | 3 |
|
'SELECT ec.rowid FROM ' . MAIN_DB_PREFIX . 'element_contact as ec, ' . MAIN_DB_PREFIX . 'c_type_contact as tc WHERE tc.rowid = ec.fk_c_type_contact' | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "projet_task" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "fichinter" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "fichinter " | 3 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "categorie" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "ecm_directories SET" | 3 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "product WHERE tosell=1" | 3 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "commande" | 3 |
|
"UPDATE " . MAIN_DB_PREFIX . "expedition SET" | 4 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'standard_" . strtolower($myTmpObjectKey) . "' AND type = '" . $this->db->escape(strtolower($myTmpObjectKey)) . "' AND entity = " . ((int) $conf->entity) | 4 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = 'generic_" . strtolower($myTmpObjectKey) . "_odt' AND type = '" . $this->db->escape(strtolower($myTmpObjectKey)) . "' AND entity = " . ((int) $conf->entity) | 4 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('generic_" . strtolower($myTmpObjectKey) . "_odt', '" . $this->db->escape(strtolower($myTmpObjectKey)) . "', " . ((int) $conf->entity) . ")" | 4 |
|
"SELECT cd.fk_product, cd.subprice," | 4 |
|
"SELECT rowid," | 4 |
|
"INSERT INTO " . MAIN_DB_PREFIX . $this->table_element . "(" | 4 |
|
'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element | 4 |
|
"SELECT id_users, nom as name, id_sondage, reponses" | 4 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "adherent" | 4 |
|
"SELECT count(mc.email) as nb" | 4 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $this->table_element . " WHERE rowid = " . ((int) $this->id) | 4 |
|
"SELECT date_start, date_end from " . MAIN_DB_PREFIX . "accounting_fiscalyear " | 4 |
|
"SELECT count(*) as nb" | 4 |
|
'SELECT rowid, socialnetworks' | 4 |
|
"SELECT count(rowid) as nb" | 4 |
|
"SELECT rowid, code, label, active" | 4 |
|
'INSERT INTO ' . $this->db->prefix( ) . $this->table_element . '(' | 4 |
|
"INSERT INTO " . $this->db->prefix( ) . $this->table_element . " (" | 4 |
|
"SELECT d.rowid, d.product_type as dtype, d." . $fk_facture . " as facid, d.$f_rate as rate, d.total_ht as total_ht, d.total_ttc as total_ttc, d." . $total_tva . " as total_vat, d.description as descr," | 4 |
|
"SELECT d.rowid, d.product_type as dtype, d." . $fk_facture . " as facid, d.$f_rate as rate, d.vat_src_code as vat_src_code, d.total_ht as total_ht, d.total_ttc as total_ttc, d." . $total_tva . " as total_vat, d.description as descr," | 4 |
|
"SELECT code, label FROM " . MAIN_DB_PREFIX . "c_socialnetworks WHERE active = 1" | 4 |
|
"SELECT count(distinct(s.email)) as nb" | 4 |
|
"SELECT MAX(CAST(SUBSTRING(batch FROM " . $posindice . ") AS SIGNED)) as max" | 4 |
|
"SELECT ref as ref" | 4 |
|
"SELECT max(m.datem) as datem" | 4 |
|
"SELECT pfd.rowid, pfd.traite, pfd.date_demande as date_demande" | 4 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'commande' | 4 |
|
"SELECT s.rowid, s.nom as name, s.client," | 4 |
|
'INSERT INTO ' . MAIN_DB_PREFIX . $this->table_element . '(' | 4 |
|
'UPDATE ' . MAIN_DB_PREFIX . $this->table_element . ' SET' | 4 |
|
"SELECT SUM(b.amount)" | 4 |
|
"SELECT date_format(b.datev,'%m')" | 4 |
|
"SELECT sum(b.amount) as amount" | 4 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'facture' | 4 |
|
"UPDATE " . MAIN_DB_PREFIX . "oauth_token" | 4 |
|
"UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order = '" . $db->escape($box_order) . "' WHERE entity = " . $conf->entity . " AND box_order = '" . $db->escape($record['box_order']) . "'" | 4 |
|
"SELECT r.id, r.libelle as label, r.module, r.perms, r.subperms, r.module_position, r.bydefault" | 4 |
|
"UPDATE " . MAIN_DB_PREFIX . "menu as m" | 4 |
|
"SELECT er.rowid, r.ref as r_ref, ac.id as ac_id, ac.label as ac_label" | 4 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "actioncomm_resources(fk_actioncomm, element_type, fk_element, mandatory, transparency, answer_status)" | 4 |
|
"SELECT module, perms, subperms" | 4 |
|
"SELECT COUNT(DISTINCT c.fk_soc) as nb_customers, COUNT(DISTINCT c.rowid) as nb," | 4 |
|
"SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_client," | 4 |
|
"UPDATE " . MAIN_DB_PREFIX . "supplier_proposal" | 4 |
|
"SELECT p.rowid, p.ref, p.title, p.public, SUM(tt.element_duration) as nb" | 4 |
|
"UPDATE " . MAIN_DB_PREFIX . "ecm_directories set cachenbofdoc = -1 WHERE cachenbofdoc < 0" | 4 |
|
"SELECT rowid, date_creation as datec, tms as datem," | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "adherent SET" | 5 |
|
"SELECT COUNT(rowid) as nb FROM " . MAIN_DB_PREFIX . "accounting_fiscalyear WHERE entity = " . ((int) $conf->entity) | 5 |
|
"SELECT id" | 5 |
|
"SELECT code, label" | 5 |
|
'UPDATE ' . $this->db->prefix( ) . $this->table_element | 5 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "notify_def" | 5 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "emailcollector_emailcollector (entity, ref, label, description, source_directory, date_creation, fk_user_creat, status)" | 5 |
|
"SELECT rowid FROM " . MAIN_DB_PREFIX . "societe" | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "product_fournisseur_price" | 5 |
|
"SELECT sum(p.amount) as total" | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "commande" | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "bank" | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "bank SET" | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "bordereau_cheque" | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "user" | 5 |
|
"SELECT count(p.rowid) as nb" | 5 |
|
"UPDATE " . MAIN_DB_PREFIX . "mailing_cibles" | 5 |
|
"SELECT s.rowid" | 5 |
|
"SELECT ctc.rowid, ctc.code FROM " . MAIN_DB_PREFIX . "c_type_contact as ctc" | 5 |
|
"INSERT INTO " . MAIN_DB_PREFIX . $this->table_element . " (" | 6 |
|
"SELECT " . $db->ifsql('aa.account_number IS NULL', "'tobind'", 'aa.account_number') . " AS codecomptable," | 6 |
|
"SELECT re.rowid, re.amount_ht, re.amount_tva, re.amount_ttc," | 6 |
|
"SELECT rowid, code, libelle as label" | 6 |
|
"DELETE FROM " . $this->db->prefix( ) . $this->table_element | 6 |
|
"SELECT sum(rc.amount_ttc) as amount, sum(rc.multicurrency_amount_ttc) as multicurrency_amount" | 6 |
|
"INSERT INTO " . MAIN_DB_PREFIX . "emailcollector_emailcollectorfilter (fk_emailcollector, type, date_creation, fk_user_creat, status)" | 6 |
|
"UPDATE " . $this->db->prefix( ) . "commande_fournisseur" | 6 |
|
'UPDATE ' . MAIN_DB_PREFIX . 'societe_remise_except' | 6 |
|
"SELECT rc.rowid, rc.amount_ht, rc.amount_tva, rc.amount_ttc, rc.tva_tx, rc.vat_src_code," | 6 |
|
"UPDATE " . $this->db->prefix( ) . "user" | 6 |
|
"UPDATE " . MAIN_DB_PREFIX . "ticket" | 6 |
|
"SELECT COUNT(rowid) as nb" | 7 |
|
"SELECT COUNT(n.rowid) as nb" | 7 |
|
'SELECT DISTINCT' | 8 |
|
"SELECT rowid, label" | 8 |
|
"SELECT COUNT(id) as nb" | 8 |
|
"SELECT COUNT(dbt." . $dbt_select . ") as nb" | 8 |
|
"DELETE FROM " . MAIN_DB_PREFIX . "const" | 8 |
|
"UPDATE " . MAIN_DB_PREFIX . "propal" | 8 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element . " SET" | 9 |
|
"DELETE FROM " . MAIN_DB_PREFIX . $this->table_element | 9 |
|
" SELECT cat_cus.fk_soc" | 9 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element . " SET" | 9 |
|
"SELECT " . $keyList | 11 |
|
"SELECT t.rowid, t.code, t.recuperableonly, t.localtax1, t.localtax2, t.localtax1_type, t.localtax2_type" | 11 |
|
"SELECT COUNT(*) as nb" | 12 |
|
"SELECT label" | 12 |
|
"UPDATE " . $this->db->prefix( ) . $this->table_element | 13 |
|
"SELECT s.rowid as socid, s.nom as name, s.name_alias" | 14 |
|
'UPDATE ' . MAIN_DB_PREFIX . $this->table_element | 21 |
|
'SELECT rowid, date_creation as datec, tms as datem,' | 25 |
|
"SELECT " | 26 |
|
"SELECT rowid" | 34 |
|
"SELECT nom" | 36 |
|
"SELECT t.rowid" | 37 |
|
"UPDATE " . MAIN_DB_PREFIX . $this->table_element | 38 |
|
'SELECT DISTINCT ' | 52 |
|
'SELECT ' | 57 |
|
'SELECT COUNT(*) as nbtotalofrecords' | 68 |
|
"SELECT MAX(CAST(SUBSTRING(ref FROM " . $posindice . ") AS SIGNED)) as max" | 68 |
|