2021-01-11 23:22:45 DEBUG 121.7.231.102 - This is an already logged session. _SESSION['dol_login']=alice _SESSION['dol_entity']=1 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT u.rowid, u.lastname, u.firstname, u.employee, u.gender, u.birth, u.email, u.personal_email, u.job, u.socialnetworks, u.signature, u.office_phone, u.office_fax, u.user_mobile, u.personal_mobile, u.address, u.zip, u.town, u.fk_state as state_id, u.fk_country as country_id, u.admin, u.login, u.note as note_private, u.note_public, u.pass, u.pass_crypted, u.pass_temp, u.api_key, u.fk_soc, u.fk_socpeople, u.fk_member, u.fk_user, u.ldap_sid, u.fk_user_expense_validator, u.fk_user_holiday_validator, u.statut, u.lang, u.entity, u.datec as datec, u.tms as datem, u.datelastlogin as datel, u.datepreviouslogin as datep, u.photo as photo, u.openid as openid, u.accountancy_code, u.thm, u.tjm, u.salary, u.salaryextra, u.weeklyhours, u.color, u.dateemployment, u.dateemploymentend, u.fk_warehouse, u.ref_ext, u.default_range, u.default_c_exp_tax_cat, c.code as country_code, c.label as country, d.code_departement as state_code, d.nom as state FROM llx_user as u LEFT JOIN llx_c_country as c ON u.fk_country = c.rowid LEFT JOIN llx_c_departements as d ON u.fk_state = d.rowid WHERE u.entity IN (0, 1) AND u.login = 'alice' ORDER BY u.entity ASC 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'user' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT param, value FROM llx_user_param WHERE fk_user = 3 AND entity = 1 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, entity, type, page, param, value FROM llx_default_values WHERE entity IN (1) AND user_id IN (0, 3) 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT DISTINCT r.module, r.perms, r.subperms FROM llx_user_rights as ur, llx_rights_def as r WHERE r.id = ur.fk_id AND ur.entity = 1 AND ur.fk_user= 3 AND r.perms IS NOT NULL 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT DISTINCT r.module, r.perms, r.subperms FROM llx_usergroup_rights as gr, llx_usergroup_user as gu, llx_rights_def as r WHERE r.id = gr.fk_id AND gr.entity = 1 AND gu.entity = 1 AND r.entity = 1 AND gr.fk_usergroup = gu.fk_usergroup AND gu.fk_user = 3 AND r.perms IS NOT NULL 2021-01-11 23:22:45 INFO 121.7.231.102 --- Access to /compta/facture/card.php - action=updateline, massaction= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where lang='en_SG' OR lang IS NULL AND entity IN (0, 1) ORDER BY lang DESC 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT m.rowid, m.type, m.module, m.fk_menu, m.fk_mainmenu, m.fk_leftmenu, m.url, m.titre, m.langs, m.perms, m.enabled, m.target, m.mainmenu, m.leftmenu, m.position FROM llx_menu as m WHERE m.entity IN (0,1) AND m.menu_handler IN ('eldy','all') AND m.usertype IN (0,2) ORDER BY m.position, m.rowid 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'facture' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::fetch 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT f.rowid,f.entity,f.ref,f.ref_client,f.ref_ext,f.ref_int,f.type,f.fk_soc, f.tva, f.localtax1, f.localtax2, f.total, f.total_ttc, f.revenuestamp, f.remise_percent, f.remise_absolue, f.remise, f.datef as df, f.date_pointoftax, f.date_lim_reglement as dlr, f.datec as datec, f.date_valid as datev, f.tms as datem, f.note_private, f.note_public, f.fk_statut, f.paye, f.close_code, f.close_note, f.fk_user_author, f.fk_user_valid, f.model_pdf, f.last_main_doc, f.fk_facture_source, f.fk_fac_rec_source, f.fk_mode_reglement, f.fk_cond_reglement, f.fk_projet as fk_project, f.extraparams, f.situation_cycle_ref, f.situation_counter, f.situation_final, f.fk_account, f.fk_multicurrency, f.multicurrency_code, f.multicurrency_tx, f.multicurrency_total_ht, f.multicurrency_total_tva, f.multicurrency_total_ttc, p.code as mode_reglement_code, p.libelle as mode_reglement_libelle, c.code as cond_reglement_code, c.libelle as cond_reglement_libelle, c.libelle_facture as cond_reglement_libelle_doc, f.fk_incoterms, f.location_incoterms, f.module_source, f.pos_source, i.libelle as label_incoterms, f.retained_warranty as retained_warranty, f.retained_warranty_date_limit as retained_warranty_date_limit, f.retained_warranty_fk_cond_reglement as retained_warranty_fk_cond_reglement FROM llx_facture as f LEFT JOIN llx_c_payment_term as c ON f.fk_cond_reglement = c.rowid LEFT JOIN llx_c_paiement as p ON f.fk_mode_reglement = p.id LEFT JOIN llx_c_incoterms as i ON f.fk_incoterms = i.rowid WHERE f.rowid=357 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::fetch_lines 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=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, l.localtax1_tx, l.localtax2_tx, l.localtax1_type, l.localtax2_type, l.remise_percent, l.fk_remise_except, l.subprice, l.situation_percent, l.fk_prev_id, l.rang, l.special_code, l.date_start as date_start, l.date_end as date_end, l.info_bits, l.total_ht, l.total_tva, l.total_localtax1, l.total_localtax2, l.total_ttc, l.fk_code_ventilation, l.fk_product_fournisseur_price as fk_fournprice, l.buy_price_ht as pa_ht, l.fk_unit, l.fk_multicurrency, l.multicurrency_code, l.multicurrency_subprice, l.multicurrency_total_ht, l.multicurrency_total_tva, l.multicurrency_total_ttc, p.ref as product_ref, p.fk_product_type as fk_product_type, p.label as product_label, p.description as product_desc FROM llx_facturedet as l LEFT JOIN llx_product as p ON l.fk_product = p.rowid WHERE l.fk_facture = 357 ORDER BY l.rang, l.rowid 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'facturedet' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::fetch 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT f.rowid,f.entity,f.ref,f.ref_client,f.ref_ext,f.ref_int,f.type,f.fk_soc, f.tva, f.localtax1, f.localtax2, f.total, f.total_ttc, f.revenuestamp, f.remise_percent, f.remise_absolue, f.remise, f.datef as df, f.date_pointoftax, f.date_lim_reglement as dlr, f.datec as datec, f.date_valid as datev, f.tms as datem, f.note_private, f.note_public, f.fk_statut, f.paye, f.close_code, f.close_note, f.fk_user_author, f.fk_user_valid, f.model_pdf, f.last_main_doc, f.fk_facture_source, f.fk_fac_rec_source, f.fk_mode_reglement, f.fk_cond_reglement, f.fk_projet as fk_project, f.extraparams, f.situation_cycle_ref, f.situation_counter, f.situation_final, f.fk_account, f.fk_multicurrency, f.multicurrency_code, f.multicurrency_tx, f.multicurrency_total_ht, f.multicurrency_total_tva, f.multicurrency_total_ttc, p.code as mode_reglement_code, p.libelle as mode_reglement_libelle, c.code as cond_reglement_code, c.libelle as cond_reglement_libelle, c.libelle_facture as cond_reglement_libelle_doc, f.fk_incoterms, f.location_incoterms, f.module_source, f.pos_source, i.libelle as label_incoterms, f.retained_warranty as retained_warranty, f.retained_warranty_date_limit as retained_warranty_date_limit, f.retained_warranty_fk_cond_reglement as retained_warranty_fk_cond_reglement FROM llx_facture as f LEFT JOIN llx_c_payment_term as c ON f.fk_cond_reglement = c.rowid LEFT JOIN llx_c_paiement as p ON f.fk_mode_reglement = p.id LEFT JOIN llx_c_incoterms as i ON f.fk_incoterms = i.rowid WHERE f.rowid=357 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::fetch_lines 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=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, l.localtax1_tx, l.localtax2_tx, l.localtax1_type, l.localtax2_type, l.remise_percent, l.fk_remise_except, l.subprice, l.situation_percent, l.fk_prev_id, l.rang, l.special_code, l.date_start as date_start, l.date_end as date_end, l.info_bits, l.total_ht, l.total_tva, l.total_localtax1, l.total_localtax2, l.total_ttc, l.fk_code_ventilation, l.fk_product_fournisseur_price as fk_fournprice, l.buy_price_ht as pa_ht, l.fk_unit, l.fk_multicurrency, l.multicurrency_code, l.multicurrency_subprice, l.multicurrency_total_ht, l.multicurrency_total_tva, l.multicurrency_total_ttc, p.ref as product_ref, p.fk_product_type as fk_product_type, p.label as product_label, p.description as product_desc FROM llx_facturedet as l LEFT JOIN llx_product as p ON l.fk_product = p.rowid WHERE l.fk_facture = 357 ORDER BY l.rang, l.rowid 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT s.rowid, s.nom as name, s.name_alias, s.entity, s.ref_ext, s.ref_int, s.address, s.datec as date_creation, s.prefix_comm, s.status, s.price_level, s.tms as date_modification, s.fk_user_creat, s.fk_user_modif, s.phone, s.fax, s.email, s.socialnetworks, s.url, s.zip, s.town, s.note_private, s.note_public, s.model_pdf, s.client, s.fournisseur, s.siren as idprof1, s.siret as idprof2, s.ape as idprof3, s.idprof4, s.idprof5, s.idprof6, s.capital, s.tva_intra, s.fk_typent as typent_id, s.fk_effectif as effectif_id, s.fk_forme_juridique as forme_juridique_code, s.webservices_url, s.webservices_key, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur, s.parent, s.barcode, s.fk_departement as state_id, s.fk_pays as country_id, s.fk_stcomm, s.remise_supplier, s.mode_reglement, s.cond_reglement, s.fk_account, s.tva_assuj, s.mode_reglement_supplier, s.cond_reglement_supplier, s.localtax1_assuj, s.localtax1_value, s.localtax2_assuj, s.localtax2_value, s.fk_prospectlevel, s.default_lang, s.logo, s.logo_squarred, s.fk_shipping_method, s.outstanding_limit, s.import_key, s.canvas, s.fk_incoterms, s.location_incoterms, s.order_min_amount, s.supplier_order_min_amount, s.fk_multicurrency, s.multicurrency_code, fj.libelle as forme_juridique, e.libelle as effectif, c.code as country_code, c.label as country, d.code_departement as state_code, d.nom as state, st.libelle as stcomm, te.code as typent_code, i.libelle as label_incoterms, sr.remise_client FROM llx_societe as s LEFT JOIN llx_c_effectif as e ON s.fk_effectif = e.id LEFT JOIN llx_c_country as c ON s.fk_pays = c.rowid LEFT JOIN llx_c_stcomm as st ON s.fk_stcomm = st.id LEFT JOIN llx_c_forme_juridique as fj ON s.fk_forme_juridique = fj.code LEFT JOIN llx_c_departements as d ON s.fk_departement = d.rowid LEFT JOIN llx_c_typent as te ON s.fk_typent = te.id LEFT JOIN llx_c_incoterms as i ON s.fk_incoterms = i.rowid LEFT JOIN llx_societe_remise as sr ON sr.rowid = (SELECT MAX(rowid) FROM llx_societe_remise WHERE fk_soc = s.rowid AND entity IN (1)) WHERE s.entity IN (1) AND s.rowid = 306 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'societe' ORDER BY pos 2021-01-11 23:22:45 INFO 121.7.231.102 get_localtax tva=7 (Std-rated) local=1 thirdparty_buyer id=306/country_code=SG thirdparty_seller id=0/country_code=SG thirdparty_seller localtax1_assuj=0 thirdparty_seller localtax2_assuj=0 2021-01-11 23:22:45 INFO 121.7.231.102 get_localtax tva=7 (Std-rated) local=2 thirdparty_buyer id=306/country_code=SG thirdparty_seller id=0/country_code=SG thirdparty_seller localtax1_assuj=0 thirdparty_seller localtax2_assuj=0 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'facturedet' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=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, fd.localtax1_tx, fd. localtax2_tx, fd.remise, fd.remise_percent, fd.fk_remise_except, fd.subprice, fd.date_start as date_start, fd.date_end as date_end, fd.fk_product_fournisseur_price as fk_fournprice, fd.buy_price_ht as pa_ht, fd.info_bits, fd.special_code, fd.total_ht, fd.total_tva, fd.total_ttc, fd.total_localtax1, fd.total_localtax2, fd.rang, fd.fk_code_ventilation, fd.fk_unit, fd.fk_user_author, fd.fk_user_modif, fd.situation_percent, fd.fk_prev_id, fd.multicurrency_subprice, fd.multicurrency_total_ht, fd.multicurrency_total_tva, fd.multicurrency_total_ttc, p.ref as product_ref, p.label as product_libelle, p.description as product_desc FROM llx_facturedet as fd LEFT JOIN llx_product as p ON fd.fk_product = p.rowid WHERE fd.rowid = 1357 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1206 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1206 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'product' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1206 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::updateline rowid=1357, desc=, pu=, qty=1, remise_percent=0, date_start=, date_end=, txtva=7 (Std-rated), txlocaltax1=0, txlocaltax2=0, price_base_type=HT, info_bits=0, type=1, fk_parent_line= pa_ht=0, special_code=0, fk_unit=, pu_ht_devise=5 2021-01-11 23:22:45 DEBUG 121.7.231.102 BEGIN Transaction 2021-01-11 23:22:45 INFO 121.7.231.102 getLocalTaxesFromRate vatrate=7- local=0 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=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 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.taux = 7 AND t.active = 1 2021-01-11 23:22:45 INFO 121.7.231.102 get_localtax tva=7 (Std-rated) local=1 thirdparty_buyer id=306/country_code=SG thirdparty_seller id=0/country_code=SG thirdparty_seller localtax1_assuj=0 thirdparty_seller localtax2_assuj=0 2021-01-11 23:22:45 INFO 121.7.231.102 get_localtax tva=7 (Std-rated) local=2 thirdparty_buyer id=306/country_code=SG thirdparty_seller id=0/country_code=SG thirdparty_seller localtax1_assuj=0 thirdparty_seller localtax2_assuj=0 2021-01-11 23:22:45 ERR 121.7.231.102 Price.lib::calcul_price_total Warning: function was called with a parameter vat rate that is not a real numeric value. There is surely a bug. 2021-01-11 23:22:45 INFO 121.7.231.102 Price.lib::calcul_price_total qty=1 pu= remise_percent_ligne=0 txtva=7- uselocaltax1_rate=0 uselocaltax2_rate=0 remise_percent_global=0 price_base_type=HT type=1 progress=100 2021-01-11 23:22:45 ERR 121.7.231.102 Price.lib::calcul_price_total Warning: function was called with a parameter vat rate that is not a real numeric value. There is surely a bug. 2021-01-11 23:22:45 INFO 121.7.231.102 Price.lib::calcul_price_total qty=1 pu=5 remise_percent_ligne=0 txtva=7- uselocaltax1_rate=0 uselocaltax2_rate=0 remise_percent_global=0 price_base_type=HT type=1 progress=100 2021-01-11 23:22:45 INFO 121.7.231.102 Price.lib::calcul_price_total MAIN_ROUNDING_RULE_TOT= pu=5 qty=1 price_base_type=HT total_ht=5-total_vat=0.35-total_ttc=5.35 2021-01-11 23:22:45 INFO 121.7.231.102 Price.lib::calcul_price_total MAIN_ROUNDING_RULE_TOT= pu=6.6530058280331 qty=1 price_base_type=HT total_ht=6.65-total_vat=0.47-total_ttc=7.12 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=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, fd.localtax1_tx, fd. localtax2_tx, fd.remise, fd.remise_percent, fd.fk_remise_except, fd.subprice, fd.date_start as date_start, fd.date_end as date_end, fd.fk_product_fournisseur_price as fk_fournprice, fd.buy_price_ht as pa_ht, fd.info_bits, fd.special_code, fd.total_ht, fd.total_tva, fd.total_ttc, fd.total_localtax1, fd.total_localtax2, fd.rang, fd.fk_code_ventilation, fd.fk_unit, fd.fk_user_author, fd.fk_user_modif, fd.situation_percent, fd.fk_prev_id, fd.multicurrency_subprice, fd.multicurrency_total_ht, fd.multicurrency_total_tva, fd.multicurrency_total_ttc, p.ref as product_ref, p.label as product_libelle, p.description as product_desc FROM llx_facturedet as fd LEFT JOIN llx_product as p ON fd.fk_product = p.rowid WHERE fd.rowid = 1357 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1206 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1206 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1206 2021-01-11 23:22:45 DEBUG 121.7.231.102 FactureLigne::update 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=UPDATE llx_facturedet SET description='', label=null, subprice=6.65301, remise_percent=0, fk_remise_except=null, vat_src_code = '', tva_tx=7-, localtax1_tx=0, localtax2_tx=0, localtax1_type='0', localtax2_type='0', qty=1, date_start=null, date_end=null, product_type=1, info_bits='0', special_code='0', total_ht=6.65, total_tva=0.47, total_ttc=7.12, total_localtax1=0, total_localtax2=0, fk_product_fournisseur_price=null, buy_price_ht='0', fk_parent_line=null, rang=12, situation_percent=100, fk_unit=NULL, fk_user_modif =3, multicurrency_subprice=5, multicurrency_total_ht=5, multicurrency_total_tva=0.35, multicurrency_total_ttc=5.35 WHERE rowid = 1357 2021-01-11 23:22:45 ERR 121.7.231.102 DoliDBMysqli::query SQL Error message: DB_ERROR_SYNTAX You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', localtax1_tx=0, localtax2_tx=0, localtax1_type='0', localtax2_type='0', qty=1,' at line 1 2021-01-11 23:22:45 DEBUG 121.7.231.102 ROLLBACK Transaction 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, title, url, target FROM llx_bookmark WHERE (fk_user = 3 OR fk_user is NULL OR fk_user = 0) AND entity IN (1) ORDER BY position 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::fetch 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT f.rowid,f.entity,f.ref,f.ref_client,f.ref_ext,f.ref_int,f.type,f.fk_soc, f.tva, f.localtax1, f.localtax2, f.total, f.total_ttc, f.revenuestamp, f.remise_percent, f.remise_absolue, f.remise, f.datef as df, f.date_pointoftax, f.date_lim_reglement as dlr, f.datec as datec, f.date_valid as datev, f.tms as datem, f.note_private, f.note_public, f.fk_statut, f.paye, f.close_code, f.close_note, f.fk_user_author, f.fk_user_valid, f.model_pdf, f.last_main_doc, f.fk_facture_source, f.fk_fac_rec_source, f.fk_mode_reglement, f.fk_cond_reglement, f.fk_projet as fk_project, f.extraparams, f.situation_cycle_ref, f.situation_counter, f.situation_final, f.fk_account, f.fk_multicurrency, f.multicurrency_code, f.multicurrency_tx, f.multicurrency_total_ht, f.multicurrency_total_tva, f.multicurrency_total_ttc, p.code as mode_reglement_code, p.libelle as mode_reglement_libelle, c.code as cond_reglement_code, c.libelle as cond_reglement_libelle, c.libelle_facture as cond_reglement_libelle_doc, f.fk_incoterms, f.location_incoterms, f.module_source, f.pos_source, i.libelle as label_incoterms, f.retained_warranty as retained_warranty, f.retained_warranty_date_limit as retained_warranty_date_limit, f.retained_warranty_fk_cond_reglement as retained_warranty_fk_cond_reglement FROM llx_facture as f LEFT JOIN llx_c_payment_term as c ON f.fk_cond_reglement = c.rowid LEFT JOIN llx_c_paiement as p ON f.fk_mode_reglement = p.id LEFT JOIN llx_c_incoterms as i ON f.fk_incoterms = i.rowid WHERE f.rowid=357 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::fetch_lines 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=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, l.localtax1_tx, l.localtax2_tx, l.localtax1_type, l.localtax2_type, l.remise_percent, l.fk_remise_except, l.subprice, l.situation_percent, l.fk_prev_id, l.rang, l.special_code, l.date_start as date_start, l.date_end as date_end, l.info_bits, l.total_ht, l.total_tva, l.total_localtax1, l.total_localtax2, l.total_ttc, l.fk_code_ventilation, l.fk_product_fournisseur_price as fk_fournprice, l.buy_price_ht as pa_ht, l.fk_unit, l.fk_multicurrency, l.multicurrency_code, l.multicurrency_subprice, l.multicurrency_total_ht, l.multicurrency_total_tva, l.multicurrency_total_ttc, p.ref as product_ref, p.fk_product_type as fk_product_type, p.label as product_label, p.description as product_desc FROM llx_facturedet as l LEFT JOIN llx_product as p ON l.fk_product = p.rowid WHERE l.fk_facture = 357 ORDER BY l.rang, l.rowid 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'facture' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT s.rowid, s.nom as name, s.name_alias, s.entity, s.ref_ext, s.ref_int, s.address, s.datec as date_creation, s.prefix_comm, s.status, s.price_level, s.tms as date_modification, s.fk_user_creat, s.fk_user_modif, s.phone, s.fax, s.email, s.socialnetworks, s.url, s.zip, s.town, s.note_private, s.note_public, s.model_pdf, s.client, s.fournisseur, s.siren as idprof1, s.siret as idprof2, s.ape as idprof3, s.idprof4, s.idprof5, s.idprof6, s.capital, s.tva_intra, s.fk_typent as typent_id, s.fk_effectif as effectif_id, s.fk_forme_juridique as forme_juridique_code, s.webservices_url, s.webservices_key, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur, s.parent, s.barcode, s.fk_departement as state_id, s.fk_pays as country_id, s.fk_stcomm, s.remise_supplier, s.mode_reglement, s.cond_reglement, s.fk_account, s.tva_assuj, s.mode_reglement_supplier, s.cond_reglement_supplier, s.localtax1_assuj, s.localtax1_value, s.localtax2_assuj, s.localtax2_value, s.fk_prospectlevel, s.default_lang, s.logo, s.logo_squarred, s.fk_shipping_method, s.outstanding_limit, s.import_key, s.canvas, s.fk_incoterms, s.location_incoterms, s.order_min_amount, s.supplier_order_min_amount, s.fk_multicurrency, s.multicurrency_code, fj.libelle as forme_juridique, e.libelle as effectif, c.code as country_code, c.label as country, d.code_departement as state_code, d.nom as state, st.libelle as stcomm, te.code as typent_code, i.libelle as label_incoterms, sr.remise_client FROM llx_societe as s LEFT JOIN llx_c_effectif as e ON s.fk_effectif = e.id LEFT JOIN llx_c_country as c ON s.fk_pays = c.rowid LEFT JOIN llx_c_stcomm as st ON s.fk_stcomm = st.id LEFT JOIN llx_c_forme_juridique as fj ON s.fk_forme_juridique = fj.code LEFT JOIN llx_c_departements as d ON s.fk_departement = d.rowid LEFT JOIN llx_c_typent as te ON s.fk_typent = te.id LEFT JOIN llx_c_incoterms as i ON s.fk_incoterms = i.rowid LEFT JOIN llx_societe_remise as sr ON sr.rowid = (SELECT MAX(rowid) FROM llx_societe_remise WHERE fk_soc = s.rowid AND entity IN (1)) WHERE s.entity IN (1) AND s.rowid = 306 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT s.rowid, s.nom as name, s.name_alias, s.entity, s.ref_ext, s.ref_int, s.address, s.datec as date_creation, s.prefix_comm, s.status, s.price_level, s.tms as date_modification, s.fk_user_creat, s.fk_user_modif, s.phone, s.fax, s.email, s.socialnetworks, s.url, s.zip, s.town, s.note_private, s.note_public, s.model_pdf, s.client, s.fournisseur, s.siren as idprof1, s.siret as idprof2, s.ape as idprof3, s.idprof4, s.idprof5, s.idprof6, s.capital, s.tva_intra, s.fk_typent as typent_id, s.fk_effectif as effectif_id, s.fk_forme_juridique as forme_juridique_code, s.webservices_url, s.webservices_key, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur, s.parent, s.barcode, s.fk_departement as state_id, s.fk_pays as country_id, s.fk_stcomm, s.remise_supplier, s.mode_reglement, s.cond_reglement, s.fk_account, s.tva_assuj, s.mode_reglement_supplier, s.cond_reglement_supplier, s.localtax1_assuj, s.localtax1_value, s.localtax2_assuj, s.localtax2_value, s.fk_prospectlevel, s.default_lang, s.logo, s.logo_squarred, s.fk_shipping_method, s.outstanding_limit, s.import_key, s.canvas, s.fk_incoterms, s.location_incoterms, s.order_min_amount, s.supplier_order_min_amount, s.fk_multicurrency, s.multicurrency_code, fj.libelle as forme_juridique, e.libelle as effectif, c.code as country_code, c.label as country, d.code_departement as state_code, d.nom as state, st.libelle as stcomm, te.code as typent_code, i.libelle as label_incoterms, sr.remise_client FROM llx_societe as s LEFT JOIN llx_c_effectif as e ON s.fk_effectif = e.id LEFT JOIN llx_c_country as c ON s.fk_pays = c.rowid LEFT JOIN llx_c_stcomm as st ON s.fk_stcomm = st.id LEFT JOIN llx_c_forme_juridique as fj ON s.fk_forme_juridique = fj.code LEFT JOIN llx_c_departements as d ON s.fk_departement = d.rowid LEFT JOIN llx_c_typent as te ON s.fk_typent = te.id LEFT JOIN llx_c_incoterms as i ON s.fk_incoterms = i.rowid LEFT JOIN llx_societe_remise as sr ON sr.rowid = (SELECT MAX(rowid) FROM llx_societe_remise WHERE fk_soc = s.rowid AND entity IN (1)) WHERE s.entity IN (1) AND s.rowid = 306 2021-01-11 23:22:45 DEBUG 121.7.231.102 useRevenueStamp 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT COUNT(*) as nb FROM llx_c_revenuestamp as r, llx_c_country as c WHERE r.fk_pays = c.rowid AND c.code = 'SG' AND r.active = 1 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::getSommePaiement 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT sum(amount) as amount, sum(multicurrency_amount) as multicurrency_amount FROM llx_paiement_facture WHERE fk_facture = 357 2021-01-11 23:22:45 DEBUG 121.7.231.102 DiscountAbsolute::getSumCreditNotesUsed 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT sum(rc.amount_ttc) as amount, sum(rc.multicurrency_amount_ttc) as multicurrency_amount FROM llx_societe_remise_except as rc, llx_facture as f WHERE rc.fk_facture_source=f.rowid AND rc.fk_facture = 357 AND f.type IN (0, 2, 5) 2021-01-11 23:22:45 DEBUG 121.7.231.102 DiscountAbsolute::getSumDepositsUsed 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT sum(rc.amount_ttc) as amount, sum(rc.multicurrency_amount_ttc) as multicurrency_amount FROM llx_societe_remise_except as rc, llx_facture as f WHERE rc.fk_facture_source=f.rowid AND rc.fk_facture = 357 AND f.type = 3 2021-01-11 23:22:45 DEBUG 121.7.231.102 DiscountAbsolute::getAvailableDiscounts discount_type=0 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT SUM(rc.amount_ttc) as amount, SUM(rc.multicurrency_amount_ttc) as multicurrency_amount FROM llx_societe_remise_except as rc WHERE rc.entity = 1 AND rc.discount_type=0 AND (rc.fk_facture IS NULL AND rc.fk_facture_line IS NULL) AND rc.fk_soc = 306 AND (fk_facture_source IS NULL OR (description LIKE '(DEPOSIT)%' AND description NOT LIKE '(EXCESS RECEIVED)%')) 2021-01-11 23:22:45 DEBUG 121.7.231.102 DiscountAbsolute::getAvailableDiscounts discount_type=0 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT SUM(rc.amount_ttc) as amount, SUM(rc.multicurrency_amount_ttc) as multicurrency_amount FROM llx_societe_remise_except as rc WHERE rc.entity = 1 AND rc.discount_type=0 AND (rc.fk_facture IS NULL AND rc.fk_facture_line IS NULL) AND rc.fk_soc = 306 AND (fk_facture_source IS NOT NULL AND (description NOT LIKE '(DEPOSIT)%' OR description LIKE '(EXCESS RECEIVED)%')) 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT u.rowid, u.lastname, u.firstname, u.employee, u.gender, u.birth, u.email, u.personal_email, u.job, u.socialnetworks, u.signature, u.office_phone, u.office_fax, u.user_mobile, u.personal_mobile, u.address, u.zip, u.town, u.fk_state as state_id, u.fk_country as country_id, u.admin, u.login, u.note as note_private, u.note_public, u.pass, u.pass_crypted, u.pass_temp, u.api_key, u.fk_soc, u.fk_socpeople, u.fk_member, u.fk_user, u.ldap_sid, u.fk_user_expense_validator, u.fk_user_holiday_validator, u.statut, u.lang, u.entity, u.datec as datec, u.tms as datem, u.datelastlogin as datel, u.datepreviouslogin as datep, u.photo as photo, u.openid as openid, u.accountancy_code, u.thm, u.tjm, u.salary, u.salaryextra, u.weeklyhours, u.color, u.dateemployment, u.dateemploymentend, u.fk_warehouse, u.ref_ext, u.default_range, u.default_c_exp_tax_cat, c.code as country_code, c.label as country, d.code_departement as state_code, d.nom as state FROM llx_user as u LEFT JOIN llx_c_country as c ON u.fk_country = c.rowid LEFT JOIN llx_c_departements as d ON u.fk_state = d.rowid WHERE u.entity IS NOT NULL AND u.rowid = 3 ORDER BY u.entity ASC 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'user' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid FROM llx_facture WHERE fk_facture_source = 357 AND type < 2 ORDER BY fk_statut DESC 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::liste_contact 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT ec.rowid, ec.statut as statuslink, ec.fk_socpeople as id, ec.fk_c_type_contact, '-1' as socid, t.statut as statuscontact, t.login, t.photo, t.civility as civility, t.lastname as lastname, t.firstname, t.email, tc.source, tc.element, tc.code, tc.libelle FROM llx_c_type_contact tc, llx_element_contact ec LEFT JOIN llx_user t on ec.fk_socpeople = t.rowid WHERE ec.element_id =357 AND ec.fk_c_type_contact=tc.rowid AND tc.element='facture' AND tc.source = 'internal' AND tc.active=1 ORDER BY t.lastname ASC 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::liste_contact 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT ec.rowid, ec.statut as statuslink, ec.fk_socpeople as id, ec.fk_c_type_contact, t.fk_soc as socid, t.statut as statuscontact, t.civility as civility, t.lastname as lastname, t.firstname, t.email, tc.source, tc.element, tc.code, tc.libelle FROM llx_c_type_contact tc, llx_element_contact ec LEFT JOIN llx_socpeople t on ec.fk_socpeople = t.rowid WHERE ec.element_id =357 AND ec.fk_c_type_contact=tc.rowid AND tc.element='facture' AND tc.source = 'external' AND tc.active=1 ORDER BY t.lastname ASC 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/facture/(PROV357) types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT COUNT(rowid) as nb FROM llx_links WHERE objecttype = 'facture' AND objectid = 357 AND entity = 1 2021-01-11 23:22:45 DEBUG 121.7.231.102 Project::fetch 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, title, description, public, datec, opp_amount, budget_amount, tms, dateo, datee, date_close, fk_soc, fk_user_creat, fk_user_modif, fk_user_close, fk_statut as status, fk_opp_status, opp_percent, note_private, note_public, model_pdf, usage_opportunity, usage_task, usage_bill_time, usage_organize_event, entity FROM llx_projet WHERE rowid=39 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'projet' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT COUNT(ab.rowid) as nb FROM llx_accounting_bookkeeping as ab WHERE ab.doc_type='customer_invoice' AND ab.fk_doc = 357 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT MAX(te.ref) FROM llx_facture as te WHERE te.ref < '(PROV357)' AND te.entity IN (1) 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT MIN(te.ref) FROM llx_facture as te WHERE te.ref > '(PROV357)' AND te.entity IN (1) 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid FROM llx_facture WHERE fk_facture_source = 357 AND type = 2 2021-01-11 23:22:45 DEBUG 121.7.231.102 Translate::loadCacheCurrencies 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT code_iso, label, unicode FROM llx_c_currencies WHERE active = 1 AND code_iso = 'SGD' 2021-01-11 23:22:45 DEBUG 121.7.231.102 Translate::getLabelFromKey 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT label as label FROM llx_c_currencies WHERE code_iso = 'SGD' 2021-01-11 23:22:45 DEBUG 121.7.231.102 Form::select_remises 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT re.rowid, re.amount_ht, re.amount_tva, re.amount_ttc, re.description, re.fk_facture_source FROM llx_societe_remise_except as re WHERE re.fk_soc = 306 AND re.entity = 1 AND discount_type=0 AND fk_facture IS NULL AND fk_facture_line IS NULL AND (fk_facture_source IS NULL OR (description LIKE '(DEPOSIT)%' AND description NOT LIKE '(EXCESS RECEIVED)%')) ORDER BY re.description ASC 2021-01-11 23:22:45 DEBUG 121.7.231.102 Form::load_cache_conditions_paiements 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, code, libelle as label FROM llx_c_payment_term WHERE entity IN (1) AND active > 0 ORDER BY sortorder 2021-01-11 23:22:45 DEBUG 121.7.231.102 Form::load_cache_types_paiements 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT id, code, libelle as label, type, active FROM llx_c_paiement WHERE entity IN (1) 2021-01-11 23:22:45 DEBUG 121.7.231.102 Translate::getLabelFromKey 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT libelle as label FROM llx_c_paiement WHERE code = 'DDC' AND entity IN (1) 2021-01-11 23:22:45 DEBUG 121.7.231.102 Translate::getLabelFromKey 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT libelle as label FROM llx_c_paiement WHERE code = 'LCR' AND entity IN (1) 2021-01-11 23:22:45 DEBUG 121.7.231.102 Translate::getLabelFromKey 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT libelle as label FROM llx_c_paiement WHERE code = 'GIRO' AND entity IN (1) 2021-01-11 23:22:45 DEBUG 121.7.231.102 Account::fetch 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT ba.rowid, ba.ref, ba.label, ba.bank, ba.number, ba.courant, ba.clos, ba.rappro, ba.url, ba.code_banque, ba.code_guichet, ba.cle_rib, ba.bic, ba.iban_prefix as iban, ba.domiciliation, ba.proprio, ba.owner_address, ba.state_id, ba.fk_pays as country_id, ba.account_number, ba.fk_accountancy_journal, ba.currency_code, ba.min_allowed, ba.min_desired, ba.comment, ba.datec as date_creation, ba.tms as date_update, c.code as country_code, c.label as country, d.code_departement as state_code, d.nom as state , aj.code as accountancy_journal FROM llx_bank_account as ba LEFT JOIN llx_c_country as c ON ba.fk_pays = c.rowid LEFT JOIN llx_c_departements as d ON ba.state_id = d.rowid LEFT JOIN llx_accounting_journal as aj ON aj.rowid=ba.fk_accountancy_journal WHERE ba.entity IN (1) AND ba.rowid = 5 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'bank_account' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 Translate::loadCacheCurrencies 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT code_iso, label, unicode FROM llx_c_currencies WHERE active = 1 AND code_iso = 'USD' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT p.datep as dp, p.ref, p.num_paiement as num_payment, p.rowid, p.fk_bank, c.code as payment_code, c.libelle as payment_label, pf.amount, ba.rowid as baid, ba.ref as baref, ba.label, ba.number as banumber, ba.account_number, ba.fk_accountancy_journal FROM llx_paiement_facture as pf, llx_paiement as p LEFT JOIN llx_c_paiement as c ON p.fk_paiement = c.id LEFT JOIN llx_bank as b ON p.fk_bank = b.rowid LEFT JOIN llx_bank_account as ba ON b.fk_account = ba.rowid WHERE pf.fk_facture = 357 AND pf.fk_paiement = p.rowid AND p.entity IN (1) ORDER BY p.datep, p.tms 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT re.rowid, re.amount_ht, re.amount_tva, re.amount_ttc, re.description, re.fk_facture_source FROM llx_societe_remise_except as re WHERE fk_facture = 357 2021-01-11 23:22:45 DEBUG 121.7.231.102 Facture::fetch_lines 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=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, l.localtax1_tx, l.localtax2_tx, l.localtax1_type, l.localtax2_type, l.remise_percent, l.fk_remise_except, l.subprice, l.situation_percent, l.fk_prev_id, l.rang, l.special_code, l.date_start as date_start, l.date_end as date_end, l.info_bits, l.total_ht, l.total_tva, l.total_localtax1, l.total_localtax2, l.total_ttc, l.fk_code_ventilation, l.fk_product_fournisseur_price as fk_fournprice, l.buy_price_ht as pa_ht, l.fk_unit, l.fk_multicurrency, l.multicurrency_code, l.multicurrency_subprice, l.multicurrency_total_ht, l.multicurrency_total_tva, l.multicurrency_total_ttc, p.ref as product_ref, p.fk_product_type as fk_product_type, p.label as product_label, p.description as product_desc FROM llx_facturedet as l LEFT JOIN llx_product as p ON l.fk_product = p.rowid WHERE l.fk_facture = 357 ORDER BY l.rang, l.rowid 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'facturedet' ORDER BY pos 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1175 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1175 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1175 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/produit/sku_display_0001/ types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams, date_c, date_m, fk_user_c, fk_user_m, acl, position, share FROM llx_ecm_files WHERE filepath = 'produit/sku_display_0001' AND entity = 1 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1175 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1175 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1175 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1180 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1180 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1180 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/produit/service_1025/ types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams, date_c, date_m, fk_user_c, fk_user_m, acl, position, share FROM llx_ecm_files WHERE filepath = 'produit/service_1025' AND entity = 1 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1180 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1180 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1180 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1113 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1113 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1113 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/produit/service_3000/ types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams, date_c, date_m, fk_user_c, fk_user_m, acl, position, share FROM llx_ecm_files WHERE filepath = 'produit/service_3000' AND entity = 1 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1113 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1113 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1113 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1183 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1183 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1183 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/produit/Service_0003/ types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams, date_c, date_m, fk_user_c, fk_user_m, acl, position, share FROM llx_ecm_files WHERE filepath = 'produit/Service_0003' AND entity = 1 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1183 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1183 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1183 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1249 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1249 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1249 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/produit/service_1026/ types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams, date_c, date_m, fk_user_c, fk_user_m, acl, position, share FROM llx_ecm_files WHERE filepath = 'produit/service_1026' AND entity = 1 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1249 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1249 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1249 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1186 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1186 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1186 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/produit/Service_0006/ types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams, date_c, date_m, fk_user_c, fk_user_m, acl, position, share FROM llx_ecm_files WHERE filepath = 'produit/Service_0006' AND entity = 1 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1186 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1186 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1186 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 DiscountAbsolute::fetch 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT sr.rowid, sr.fk_soc, sr.discount_type, sr.fk_user, sr.amount_ht, sr.amount_tva, sr.amount_ttc, sr.tva_tx, sr.vat_src_code, sr.multicurrency_amount_ht, sr.multicurrency_amount_tva, sr.multicurrency_amount_ttc, sr.fk_facture_line, sr.fk_facture, sr.fk_facture_source, sr.fk_invoice_supplier_line, sr.fk_invoice_supplier, sr.fk_invoice_supplier_source, sr.description, sr.datec, f.ref as ref_facture_source, f.type as type_facture_source, fsup.ref as ref_invoice_supplier_source, fsup.type as type_invoice_supplier_source FROM llx_societe_remise_except as sr LEFT JOIN llx_facture as f ON sr.fk_facture_source = f.rowid LEFT JOIN llx_facture as fsup ON sr.fk_invoice_supplier_source = fsup.rowid WHERE sr.entity IN (1) AND sr.rowid=15 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 DiscountAbsolute::fetch 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT sr.rowid, sr.fk_soc, sr.discount_type, sr.fk_user, sr.amount_ht, sr.amount_tva, sr.amount_ttc, sr.tva_tx, sr.vat_src_code, sr.multicurrency_amount_ht, sr.multicurrency_amount_tva, sr.multicurrency_amount_ttc, sr.fk_facture_line, sr.fk_facture, sr.fk_facture_source, sr.fk_invoice_supplier_line, sr.fk_invoice_supplier, sr.fk_invoice_supplier_source, sr.description, sr.datec, f.ref as ref_facture_source, f.type as type_facture_source, fsup.ref as ref_invoice_supplier_source, fsup.type as type_invoice_supplier_source FROM llx_societe_remise_except as sr LEFT JOIN llx_facture as f ON sr.fk_facture_source = f.rowid LEFT JOIN llx_facture as fsup ON sr.fk_invoice_supplier_source = fsup.rowid WHERE sr.entity IN (1) AND sr.rowid=19 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1206 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1206 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1206 2021-01-11 23:22:45 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/produit/service_project_0001/ types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*\\.png)$" 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, label, entity, filename, filepath, fullpath_orig, keywords, cover, gen_or_uploaded, extraparams, date_c, date_m, fk_user_c, fk_user_m, acl, position, share FROM llx_ecm_files WHERE filepath = 'produit/service_project_0001' AND entity = 1 2021-01-11 23:22:45 INFO 121.7.231.102 Product::fetch id=1206 ref= ref_ext= 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid, ref, ref_ext, label, description, url, note as note_private, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, fk_default_warehouse, seuil_stock_alerte, canvas, net_measure, net_measure_units, weight, weight_units, length, length_units, width, width_units, height, height_units, surface, surface_units, volume, volume_units, barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export, accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 1206 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT lang, label, description, note as other FROM llx_product_lang WHERE fk_product=1206 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax1_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT t.localtax1, t.localtax2 FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND c.code = 'SG' AND t.active = 1 AND t.localtax2_type <> '0' 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'facturedet' ORDER BY pos 2021-01-11 23:22:45 DEBUG 121.7.231.102 Form::select_produits_list search product 2021-01-11 23:22:45 DEBUG 121.7.231.102 sql=SELECT p.rowid, p.ref, p.label, p.description, p.barcode, p.fk_country, p.fk_product_type, p.price, p.price_ttc, p.price_base_type, p.tva_tx, p.duration, p.fk_price_expression, IF(p.stock IS NULL,0,p.stock) AS stock, pcp.rowid as idprodcustprice, pcp.price as custprice, pcp.price_ttc as custprice_ttc, pcp.price_base_type as custprice_base_type, pcp.tva_tx as custtva_tx, pl.label as label_translated FROM llx_product as p LEFT JOIN llx_product_customer_price as pcp ON pcp.fk_soc=306 AND pcp.fk_product=p.rowid LEFT JOIN llx_product_lang as pl ON pl.fk_product = p.rowid AND pl.lang='en_SG' WHERE p.entity IN (1) AND p.tosell = 1 ORDER BY p.ref ASC LIMIT 1000 2021-01-11 23:22:46 INFO 121.7.231.102 DolEditor::DolEditor htmlname=dp_desc width= height=100 toolbarname=dolibarr_details 2021-01-11 23:22:46 DEBUG 121.7.231.102 Form::load_cache_vatrates 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT DISTINCT t.rowid, t.code, t.taux, t.localtax1, t.localtax1_type, t.localtax2, t.localtax2_type, t.recuperableonly FROM llx_c_tva as t, llx_c_country as c WHERE t.fk_pays = c.rowid AND t.active > 0 AND c.code IN ('SG') ORDER BY t.code ASC, t.taux ASC, t.recuperableonly ASC 2021-01-11 23:22:46 DEBUG 121.7.231.102 DiscountAbsolute::fetch 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT sr.rowid, sr.fk_soc, sr.discount_type, sr.fk_user, sr.amount_ht, sr.amount_tva, sr.amount_ttc, sr.tva_tx, sr.vat_src_code, sr.multicurrency_amount_ht, sr.multicurrency_amount_tva, sr.multicurrency_amount_ttc, sr.fk_facture_line, sr.fk_facture, sr.fk_facture_source, sr.fk_invoice_supplier_line, sr.fk_invoice_supplier, sr.fk_invoice_supplier_source, sr.description, sr.datec, f.ref as ref_facture_source, f.type as type_facture_source, fsup.ref as ref_invoice_supplier_source, fsup.type as type_invoice_supplier_source FROM llx_societe_remise_except as sr LEFT JOIN llx_facture as f ON sr.fk_facture_source = f.rowid LEFT JOIN llx_facture as fsup ON sr.fk_invoice_supplier_source = fsup.rowid WHERE sr.entity IN (1) AND sr.fk_facture_source=357 2021-01-11 23:22:46 INFO 121.7.231.102 files.lib.php::dol_dir_list path=/var/www/bravox-erp/documents/facture/(PROV357) types=files recursive=0 filter= excludefilter="(\\.meta|_preview.*.*\\.png)$" 2021-01-11 23:22:46 DEBUG 121.7.231.102 /core/lib/function2.lib.php::getListOfModels 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT nom as id, nom as doc_template_name, libelle as label, description as description FROM llx_document_model WHERE type = 'invoice' AND entity IN (0,1) ORDER BY description DESC 2021-01-11 23:22:46 DEBUG 121.7.231.102 Link::fetchAll 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT rowid, entity, datea, url, label, objecttype, objectid FROM llx_links WHERE objecttype = 'facture' AND objectid = 357 AND entity = 1 2021-01-11 23:22:46 DEBUG 121.7.231.102 Link::fetchAll 0records 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM llx_societe as s, llx_propal as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_client, t.total_ht FROM llx_societe as s, llx_commande as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.titre as ref, t.total as total_ht FROM llx_societe as s, llx_facture_rec as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_customer as ref_client, t.ref_supplier, '' as total_ht FROM llx_societe as s, llx_contrat as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref FROM llx_societe as s, llx_fichinter as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, '' as ref_supplier, t.total_ht FROM llx_societe as s, llx_supplier_proposal as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_supplier, t.total_ht FROM llx_societe as s, llx_commande_fournisseur as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT s.rowid as socid, s.nom as name, s.client, t.rowid, t.ref, t.ref_supplier, t.total_ht FROM llx_societe as s, llx_facture_fourn as t WHERE t.fk_soc = s.rowid AND t.fk_soc IN (306) AND t.entity IN (1) 2021-01-11 23:22:46 DEBUG 121.7.231.102 Facture::fetchObjectLink 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT rowid, fk_source, sourcetype, fk_target, targettype FROM llx_element_element WHERE (fk_source = 357 AND sourcetype = 'facture') OR (fk_target = 357 AND targettype = 'facture') ORDER BY sourcetype 2021-01-11 23:22:46 DEBUG 121.7.231.102 Commande::fetch 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT c.rowid, c.entity, c.date_creation, c.ref, c.fk_soc, c.fk_user_author, c.fk_user_valid, c.fk_statut, c.amount_ht, c.total_ht, c.total_ttc, c.tva as total_tva, c.localtax1 as total_localtax1, c.localtax2 as total_localtax2, c.fk_cond_reglement, c.fk_mode_reglement, c.fk_availability, c.fk_input_reason, c.fk_account, c.date_commande, c.date_valid, c.tms, c.date_livraison, c.fk_shipping_method, c.fk_warehouse, c.fk_projet as fk_project, c.remise_percent, c.remise, c.remise_absolue, c.source, c.facture as billed, c.note_private, c.note_public, c.ref_client, c.ref_ext, c.ref_int, c.model_pdf, c.last_main_doc, c.fk_delivery_address, c.extraparams, c.fk_incoterms, c.location_incoterms, c.fk_multicurrency, c.multicurrency_code, c.multicurrency_tx, c.multicurrency_total_ht, c.multicurrency_total_tva, c.multicurrency_total_ttc, c.module_source, c.pos_source, i.libelle as label_incoterms, p.code as mode_reglement_code, p.libelle as mode_reglement_libelle, cr.code as cond_reglement_code, cr.libelle as cond_reglement_libelle, cr.libelle_facture as cond_reglement_libelle_doc, ca.code as availability_code, ca.label as availability_label, dr.code as demand_reason_code FROM llx_commande as c LEFT JOIN llx_c_payment_term as cr ON c.fk_cond_reglement = cr.rowid LEFT JOIN llx_c_paiement as p ON c.fk_mode_reglement = p.id LEFT JOIN llx_c_availability as ca ON c.fk_availability = ca.rowid LEFT JOIN llx_c_input_reason as dr ON c.fk_input_reason = dr.rowid LEFT JOIN llx_c_incoterms as i ON c.fk_incoterms = i.rowid WHERE c.rowid=116 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'commande' ORDER BY pos 2021-01-11 23:22:46 DEBUG 121.7.231.102 Commande::fetch_lines 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=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.localtax1_tx, l.localtax2_tx, l.localtax1_type, l.localtax2_type, l.fk_remise_except, l.remise_percent, l.subprice, l.fk_product_fournisseur_price as fk_fournprice, l.buy_price_ht as pa_ht, l.rang, l.info_bits, l.special_code, l.total_ht, l.total_ttc, l.total_tva, l.total_localtax1, l.total_localtax2, l.date_start, l.date_end, l.fk_unit, l.fk_multicurrency, l.multicurrency_code, l.multicurrency_subprice, l.multicurrency_total_ht, l.multicurrency_total_tva, l.multicurrency_total_ttc, p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label as product_label, p.tobatch as product_tobatch, p.barcode as product_barcode, p.weight, p.weight_units, p.volume, p.volume_units FROM llx_commandedet as l LEFT JOIN llx_product as p ON (p.rowid = l.fk_product) WHERE l.fk_commande = 116 ORDER BY l.rang, l.rowid 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable,perms,langs,list,printable,totalizable,fielddefault,fieldcomputed,entity,enabled,help FROM llx_extrafields WHERE elementtype = 'commandedet' ORDER BY pos 2021-01-11 23:22:46 DEBUG 121.7.231.102 ActionComm::getActions 2021-01-11 23:22:46 DEBUG 121.7.231.102 sql=SELECT a.id FROM llx_actioncomm as a WHERE a.entity IN (1) AND a.fk_element = 357 AND a.elementtype = 'invoice' ORDER BY a.datep DESC, a.id DESC 2021-01-11 23:22:46 INFO 121.7.231.102 --- End access to /compta/facture/card.php