Quantcast
Channel: Dolibarr ERP & CRM - OpenSource software - Forum
Viewing all 1543 articles
Browse latest View live

Subject: Barcode scan from Desktop. - by: Dutchbit

$
0
0
Hm, I was looking for this feature, too But will Dolibarr take the input from the scanner straight into where I want it and correct it where necessary? Is there any software/add-on needed to let Dolibarr communicate with the scanner apart from the scanner software itself? I have Dolibarr running on my computer (Windows XP) Let's say I am making an invoice for customer X with product Y. I have the invoice screen open, scanner says "bleep" and then? Automatic deduction from stock? Incoming stock? Automatic adding to stock?

Subject: Filtering mail module - by: kocer

$
0
0
So helpful this Forum. Thanks for Eldy (Président de l'association) for his single and helpful message. I think i have to create my own module.

Subject: templates - by: vmamet

$
0
0
Hi, I've tried to change my propal template ! I've created a new template put it in the correct folder on the server, changed the required field in the new files ! It appears in Dolibarr ! I got this error when I try to enable the new template "GET to /admin/propal.php not supported" So I tried to disable the azur template first and tried again. Same error ! Now I can't even put back the azur template ..... I have the same mistake ! Can someone help urgently as I can't work anymore? ..... no proposal ! regards

Subject: How to safely upgrade from 3.2.1 to 3.2.2 ? - by: vmamet

$
0
0
Can somebody tell me how to safely upgrade my Dolibarr without looding everything ? regards

Subject: PDF Custom Invoice - by: planpc

$
0
0
Ok Marcelo than you for the link, i visit that link before made this question, but it is for creatin a PDF template using PHP, I´m not a programmer, so it is not for me :( I´m looking for somethin really simple for me or other users. Sorry if my question was not correctry made, what i will like to do is that Dolibarr could print in a PDF, my ready modified template ODT, if is possible. Imagine the one you share in the first post (http://www.comdesk.com.br/downloads/template_invoice.odt) or some other similar, that anybody could modify, text, color, etc., without knowing PHP and make the default template. It will be perfect, and much more easier to customice than any desktop application here, in Spain. I´ve been searching in internet, and maybe on way could be, transform ODT in an HTML, an the in a PDF, http://www.phpclasses.org/browse/file/10912.html Thank you for your interest anyway

Subject: templates - by: vmamet

$
0
0
found this : remove this in URL when you click on the enable link "&scandir=&label=mamba"

Subject: import fail : customer account to dolibarr - by: gammanu

$
0
0
With the help of this documentation : http://wiki.dolibarr.org/index.php/Objets_m%C3%A9tiers I try to import customer address and phone number(coordinates) from paypal paid data confirmation to dolibarr. After that, i have to generate invoice, charge and send them to the customer email automaticly. Right now, I am working on the customer import. For no-regression test I use simpleTest for php. I've made a function with customer data as parameter to import it in dolibarr. My problem, it crash : there is 2 exeptions thrown. Not from my code but from dolibarr society class : Exception: runTest -> testCreationTiersDansDolibarr -> Unexpected PHP error [Object of class User could not be converted to string] severity [4096] in [C:\xampp\htdocs\dolibarr\htdocs\societe\class\societe.class.php line 384] Exception: runTest -> testCreationTiersDansDolibarr -> Unexpected PHP error [trim() expects parameter 1 to be string, array given] severity [2] in [C:\xampp\htdocs\dolibarr\htdocs\societe\class\societe.class.php line 407] And i found no way to fix them. If you have some clues or a full solution, it will realy help me ! I work on it from a week now without success. [code type=php] try { $dsn = 'mysql:host='.HOSTNAME_SQL.';dbname='.DB_NAME; $siteBdd = new PDO($dsn, USER_SQL, PASSWORD_SQL); $dsn = 'mysql:host='.HOSTNAME_SQL.';dbname='.DB_DOLI_NAME; $doliBdd = new PDO($dsn, DOLI_USER_SQL, DOLI_PASSWORD_SQL); } catch (PDOException $e) function addOrUpdateDolibarrClients($data) { global $user, $db, $lang, $langs, $conf, $doliBdd, $siteBdd ; // 4 test la présence d'une fiche société avec l'email "username" de cmsms. $req = $doliBdd->prepare('SELECT rowid FROM '.DOLI_PREFIX.'societe WHERE email = ? '); $req->execute(array($data['email'])) or die(error_log('Erreur sur requête de récupération de l\'email societe dolibarr : '.$req->errorInfo())); $isNewClient = $req->fetch(); $req->closeCursor(); // transmition des info vers dolibarr include_once(DOLIBARR_PATH.'/htdocs/master.inc.php'); // l'auteur des modif est un robot $user->fetch(DOLI_SCRIPT_USER_ID ,DOLI_SCRIPT_USER_NAME); // On declare la classe que l'on va manipuler include_once(DOLIBARR_PATH.'/htdocs/societe/class/societe.class.php'); // On cree une instance de l'objet à manipuler $mycompany = new Societe($db); // On renseigne ces caractéristiques $mycompany->nom=$data['nom']; $mycompany->email=$data['email']; $mycompany->pays=$data['pays']; $mycompany->ref_ext=$data['ref_ext']; $mycompany->client=1; $mycompany->address=$data['address']; $mycompany->cp=$data['cp']; $mycompany->ville=$data['ville']; // Si on veut que l'action de création soit associé a un utilisateur 'loginuser' particulier, // il faut decommenter cette ligne pour charger les caractéristiques de cet utilisateur. // Si on laisse commenté, Dolibarr mettra null dans les champs du user de création ou mise à jour. // $user->fetch('loginuser'); // ajouter ou mettre à jour les données client coté dolibarr if ($isNewClient){ // creation nouvelle fiche $id=$mycompany->create($user); } else { // mise à jour fiche existante $mycompany->update($user); } } [/code]

Subject: How to safely upgrade from 3.2.1 to 3.2.2 ? - by: saxa

$
0
0
Backup your dolibarr install. Overwrite the dolibarr htdocs dir and run the installer. Everything should go flawlessly.

Subject: Call agent module for mobile devices - by: fappels

$
0
0
Hi all, I have upgraded the application on the demo site, it now uses Sencha Touch 2.1 framework, so the title truncate issue should be solved. On android it's advisable to use the chrome browser for better performance. The new version will also use html5 appcache system, to decrease (re)loading time and mobile bandwidth. A short explication about the usage intention: Application can be used for sales people on the road to call to possible prospects in between appointments. The prospects need to be inserted or imported into Dolibarr on a desktop environment (an import script which inserts categorized third-parties and prospect potential conversion is included in the module). The sales call agent will filter the prospects to call in the neighborhood. After selecting the prospect from the list (press on list entry) (s)he can dialing the prospect and should immediate return from the telephone application. Then prospect communication status and potential must be set, if necessary the third-party coordinates can be adjusted. In order to set an appointment with, a contact-person name must be available (can be added in application). When setting the appointment you can select (after selecting sales person to asign the appointment too) an available time-slot by pressing on the day in the calendar and changing time by pressing time field. Always press 'done' to store changes. Any user improvement suggestions are welcome. Regards, Francis

Subject: Bank Import Module (for 3.0.1) - by: alejandror

$
0
0
allmost there it's working again.... just a few more steps to Upload to dolistore

Subject: Dolibarr Install on external Hosting. - by: Dutchbit

$
0
0
Kind of same question, but then for 3.2.2. There doesn't seem to be a zip file of that one, that can be uploaded to an external server. I do have it locally installed on a Windows computer, but my remote hosting is Linux on an Apache server. I do not have root access there, so I would like to know what the installer url is to install it there.

Subject: Graphics library inside dolibarr - by: alejandror

$
0
0
Hi: I'm trying to understand a graphic is not working as I need... I discovered that Dolibarr is using two graphic libraries: Artichow and jflot, but I dont know how this is configured, how it switches to use one or another, I need jflot functions to use in my graphics (cashflow forecast) and dont know how to define this. I was looking inside dolgraph.class.php:, line 48 [code] private $_library='jflot'; // Graphic library to use (jflot, artichow)[/code] line 91 [code] if ($conf->global->MAIN_GRAPH_LIBRARY == 'artichow') { $this->_library='artichow'; [/code] I think my dolibar is using old features because I'm trying to change to another type of graph but it remains in "lines" type Any idea how to tell dolibarr to use just jflot library? I need to use more than two series of data also. besides this I cant find artichow web site any more, maybe this is the reason of switching to jflot... Any help whould be very nice... I'm working on the last steps of my "add on graphic" for dolibarr that will show cashflow forecast and projection of next nn days with incoming and out going future transactions for each account. this could help to manage and decide when is ok to issue a.. "defferred check" for example Regards Ale

Subject: Barcode scan from Desktop. - by: saxa

$
0
0
I have never tried to use the barcode scanner, but i think it should translate the scanned code into the product code, otherwise there is no sense to have such a feature.

Subject: Barcode scan from Desktop. - by: fappels

$
0
0
Hi, I'm starting an experimental project to create a dolibarr module which uses the build in capability of a smartphone to scan barcodes. My first idea was to create a simple application which scans a barcode in a warehouse, showing product description and enabling adjusting of the stock count. Maybe if there is some interest I can change the idea to an application which adds lines of scanned products to an invoice. One thing you should know is that a smartphone scanner hasn't the capability’s of a laser-scanner, so you can only use it if only needed occasionally. Don't use it in a point of sales with 20 people waiting. I have never used the dolibarr POS system, maybe it has the capability of creating invoice lines from barcode numbers?

Subject: How to reset the server time zone - by: sino

$
0
0
Hi all, I am using dolibarr 3.1.1, when i created a order the time in the log file is the default server time. How can i change the time zone to 'Europe/Madrid' Please help me.

Subject: Deposit invoice to standard invoice - by: i.dannati

$
0
0
Unfortunately I don't think there is a way within Dolibar.. At least that I know of.. However you can manually do it within phpmyadim if you have access.. Simply go to phpmyadmin and open up your database. Click the search tap and type in the invoice number. Make sure to click select all in the search settings (next to the box below the search field) Scroll through the search results until you find it.. It should be in YOUR-PREFIX_facture open it up and hit the pencil icon to edit the record Go to type and change to 0 this will turn it into a standard invoice Good luck

Subject: User permissions on modAgenda - by: antar3s

$
0
0
Users with permissions to read/add/mod personal events without access to modSociete can create new events but cannot list them. New events are created with "sk_soc = NULL" so the query executed: [code] SELECT a.id,a.label, a.datep, a.datep2, a.datea, a.datea2, a.percent, a.fk_user_author,a.fk_user_action,a.fk_user_done, a.priority, a.fulldayevent, a.location, a.fk_soc, a.fk_contact, ca.code FROM (llx_c_actioncomm as ca, llx_societe_commerciaux as sc, llx_user as u, llx_actioncomm as a) WHERE a.fk_action = ca.id AND a.fk_user_author = u.rowid AND a.entity IN (1) AND a.fk_soc = sc.fk_soc AND sc.fk_user = 9 AND ( (datep BETWEEN '20121025010000' AND '20121208235959') OR (datep2 BETWEEN '20121025010000' AND '20121208235959') OR (datep < '20121025010000' AND datep2 > '20121208235959')) AND ( a.fk_user_author = 9 OR a.fk_user_action = 9 OR a.fk_user_done = 9) ORDER BY datep [/code] returns always nothing because sc.fk_soc cannot be NULL. I've patched a few files to avoid this using LEFT JOIN queries. File comm/action/index.php Line 305: [code] $sql.= ' FROM ('.MAIN_DB_PREFIX.'c_actioncomm as ca,'; // Antares: Use JOIN //if (! $user->rights->societe->client->voir && ! $socid) $sql.= "".MAIN_DB_PREFIX."societe_commerciaux as sc,"; $sql.= "".MAIN_DB_PREFIX.'user as u,'; $sql.= "".MAIN_DB_PREFIX."actioncomm as a)"; // Antares: Use JOIN if (! $user->rights->societe->client->voir && ! $socid) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON a.fk_soc = sc.fk_soc"; $sql.= ' WHERE a.fk_action = ca.id'; $sql.= ' AND a.fk_user_author = u.rowid'; $sql.= ' AND a.entity IN ('.getEntity().')'; if ($actioncode) $sql.=" AND ca.code='".$db->escape($actioncode)."'"; if ($pid) $sql.=" AND a.fk_project=".$db->escape($pid); // Antares: Use JOIN //if (! $user->rights->societe->client->voir && ! $socid) $sql.= " AND a.fk_soc = sc.fk_soc AND sc.fk_user = " .$user->id; if (! $user->rights->societe->client->voir && ! $socid) $sql.= " AND (a.fk_soc IS NULL OR sc.fk_user = " .$user->id . ")"; if ($user->societe_id) $sql.= ' AND a.fk_soc = '.$user->societe_id; // To limit to external user company [/code] File comm/action/listactions.php Line 155: [code] $sql.= " FROM (".MAIN_DB_PREFIX."c_actioncomm as c,"; // Antares: Use JOIN //if (! $user->rights->societe->client->voir && ! $socid) $sql.= "".MAIN_DB_PREFIX."societe_commerciaux as sc,"; $sql.= "".MAIN_DB_PREFIX.'user as u,'; $sql.= "".MAIN_DB_PREFIX."actioncomm as a)"; // Antares: Use JOIN if (! $user->rights->societe->client->voir && ! $socid) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON a.fk_soc = sc.fk_soc"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."socpeople as sp ON a.fk_contact = sp.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."user as ua ON a.fk_user_author = ua.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."user as ut ON a.fk_user_action = ut.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."user as ud ON a.fk_user_done = ud.rowid"; $sql.= " WHERE c.id = a.fk_action"; $sql.= ' AND a.fk_user_author = u.rowid'; $sql.= ' AND a.entity IN ('.getEntity().')'; // To limit to entity if ($actioncode) $sql.=" AND c.code='".$db->escape($actioncode)."'"; if ($pid) $sql.=" AND a.fk_project=".$db->escape($pid); // Antares: Use JOIN //if (! $user->rights->societe->client->voir && ! $socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id; if (! $user->rights->societe->client->voir && ! $socid) $sql.= " AND (a.fk_soc IS NULL OR sc.fk_user = " .$user->id . ")"; if ($socid) $sql.= " AND s.rowid = ".$socid; [/code] File core/boxes/box_actions.php Line 78: [code] $sql.= " FROM (".MAIN_DB_PREFIX."c_actioncomm AS ta, "; // Antares: Use JOIN //if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= "".MAIN_DB_PREFIX."societe_commerciaux AS sc, "; $sql.= MAIN_DB_PREFIX."actioncomm AS a)"; // Antares: Use JOIN if (! $user->rights->societe->client->voir && ! $user->societe_id) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON a.fk_soc = sc.fk_soc"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid"; $sql.= " WHERE a.fk_action = ta.id"; $sql.= " AND a.entity = ".$conf->entity; $sql.= " AND a.percent >= 0 AND a.percent < 100"; // Antares: Use JOIN //if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id; if (! $user->rights->societe->client->voir && ! $user->societe_id) $sql.= " AND (a.fk_soc IS NULL OR sc.fk_user = " .$user->id . ")"; if($user->societe_id) $sql.= " AND s.rowid = ".$user->societe_id; // Antares: Check Permission if (! $user->rights->agenda->allactions->read) $sql.= " AND (a.fk_user_author = ".$user->id . " OR a.fk_user_action = ".$user->id . " OR a.fk_user_done = ".$user->id . ")"; $sql.= " ORDER BY a.datec DESC"; [/code] File comm/action/class/actioncomm.class.php Line 527 (function load_board): [code] $sql = "SELECT a.id, a.datep as dp"; $sql.= " FROM (".MAIN_DB_PREFIX."actioncomm as a"; // Antares: Use JOIN //if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; $sql.= ")"; // Antares: Use JOIN if (! $user->rights->societe->client->voir && ! $user->societe_id) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON a.fk_soc = sc.fk_soc"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid"; $sql.= " WHERE a.percent >= 0 AND a.percent < 100"; $sql.= " AND a.entity = ".$conf->entity; // Antares: Use JOIN //if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= " AND a.fk_soc = sc.fk_soc AND sc.fk_user = " .$user->id; if (! $user->rights->societe->client->voir && ! $user->societe_id) $sql.= " AND (a.fk_soc IS NULL OR sc.fk_user = " .$user->id . ")"; if ($user->societe_id) $sql.=" AND a.fk_soc = ".$user->societe_id; // Antares: Check Permission if (! $user->rights->agenda->allactions->read) $sql.= " AND (a.fk_user_author = ".$user->id . " OR a.fk_user_action = ".$user->id . " OR a.fk_user_done = ".$user->id . ")"; //print $sql; [/code] Hope this helps

Subject: Filter on company type in modSociete - by: antar3s

$
0
0
You can create different company type in Third Parties menu but if you create a "Nor Prospect Nor Customer" there's no way to search for all of them. My approach to accomplish this was to edit file "societe/societe.php" adding a new filter field "search_tipo": [code]$search_tipo=trim(GETPOST('search_tipo'));[/code] adding it to the sql: [code] if ($search_tipo'') { switch ($search_tipo) { case 0: case 1: case 2: case 3: $sql .= " AND s.client = ".$db->escape($search_tipo); break; case 4: $sql .= " AND s.fournisseur = 1"; break; } } [/code] and creating the combobox for selection in search: [code] // Type (customer/prospect/supplier) print ''; print ''; print 'Tutti'; print ''.$langs->trans('NorProspectNorCustomer').''; print ''.$langs->trans('Customer').''; if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print ''.$langs->trans('Prospect').''; if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print ''.$langs->trans('ProspectCustomer').''; print ''.$langs->trans('Supplier').''; print ''; [/code]

Subject: Ritenute d'acconto - by: antar3s

$
0
0
Ciao a tutti, anche io sono libero professionista ed anche se da quest'anno non applico più la ritenuta in fattura addebito comunque il 4% di INPS. Dolibarr di base gestisce due campi per le tasse locali dipendenti dal paese (LocalTax1 e LocalTax2) come si può vedere da Impostazioni -> Dizionario -> Prezzi IVA. Purtroppo tale implementazione funziona solo per la Spagna e quindi vanno eseguite alcune modifiche al codice in modo da poter leggere tali campi anche per l'Italia. In tutta sincerità la modifica non è eccessivamente complessa e con un minimo di dimestichezza in php si riesce a sfruttare la LocalTax1 per l'INPS e la LocalTax2 per la ritenuta. Il mio approccio al problema è stato molto semplice. Dato che l'implementazione per la Spagna funziona ho cercato tutti quei files contenenti il codice: [code]if ($mysoc->pays_code=='ES')[/code] (poco più di una 10ina) ho modificato l'istruzione con [code]if ($mysoc->pays_code=='ES' || $mysoc->pays_code=='IT')[/code] in modo da rendere funzionanti i campi anche per l'Italia ed ho controllato che i calcoli venissero eseguiti secondo la nostra normativa. Ora non ricordo se ci sono anche altri files che vanno modificati ma piano piano si riesce a far funzionare la modifica: da inizio anno fatturo con rivalsa in dolibarr e non ho ancora riscontrato problemi. Ciao

Subject: Default Prospect is an individual? - by: thepeleda

$
0
0
Is there no developer that can tell me how to do this? Frustrated Petras
Viewing all 1543 articles
Browse latest View live