« CustomLine/en » : différence entre les versions

De Documentations Patas-monkey
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
(34 versions intermédiaires par le même utilisateur non affichées)
Ligne 17 : Ligne 17 :
CustomLine allows you to improve and simplify the entry of lines for the different parts of Dolibarr
CustomLine allows you to improve and simplify the entry of lines for the different parts of Dolibarr


<div class="mw-translate-fuzzy">
{| class="wikitable"
{| class="wikitable"
! style="vertical-align:top;width: 200px" |Elements
! style="vertical-align:top;width: 200px" |Elements
! style="vertical-align:top;width: 100px" |row blocking
! style="vertical-align:top;width: 100px" |row blocking
! style="vertical-align:top;width: 100px" |row field blocking
! style="vertical-align:top;width: 100px" |row field blocking
! style="vertical-align:top;width: 100px" |mass editing
! style="vertical-align:top;width: 100px" |bulk editing
! style="vertical-align:top;width: 100px" |File import
! style="vertical-align:top;width: 100px" |File import
! style="vertical-align:top;width: 100px" |Category filtering
! style="vertical-align:top;width: 100px" |Category filtering
! style="vertical-align:top;width: 100px" |Quick entry button
|-
|-
| Customer sales proposal
| Customer sales proposal
| X
| X
| X
| X
| X
Ligne 34 : Ligne 35 :
|-
|-
| Customer order
| Customer order
| X
| X
| X
| X
| X
Ligne 41 : Ligne 43 :
|-
|-
| Customer invoice
| Customer invoice
| X
| X
| X
| X
| X
Ligne 46 : Ligne 49 :
| X
| X
| X
| X
|-
| Supplier price request
| X
|
| X
|
|
|-
|-
| Supplier order
| Supplier order
Ligne 82 : Ligne 92 :
|
|
|}
|}
</div>


<div class="mw-translate-fuzzy">
== Module configuration ==
== Module configuration ==
{| class="wikitable"
The module configuration is carried out from the modules administration page accessible via the Home > Configuration > Modules menus by clicking on the icon at the end of the line.
|- style="vertical-align:top;"
 
| [[File:CustomLine_Config1.png |850px]]
[[File:CustomLine_Config1_en.png |850px]]
| The module configuration is done from the modules administration page accessible via the Home > Configuration > Modules menus by clicking on the icon at the end of the line.
 
|}
===Main module configuration page===
===Main module configuration page===
The administration allows you to configure the input modes of native element lines in multiple ways:
[[File:CustomLine-Main-Configuration_en.png|850px]]
{| class="wikitable"
{| class="wikitable"
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| [[File:CustomLine-Main-Configuration.png|800px]]
| [[File:CustomLine-Configuration-modeselection_en.png|400px]]
| The administration allows you to configure the input modes of the native element lines in multiple ways:
| The administration allows you to configure the input modes of the native element lines in multiple ways:
[[File:CustomLine-Configuration-modeselection.png|400px]]
* Standard operation (native)
* Standard operation (native)
* Only free input of products and services
* Only free input of products and services
Ligne 104 : Ligne 114 :
* Free input of products by default
* Free input of products by default
* Free input of services by default
* Free input of services by default
</div>
<div lang="fr" dir="ltr" class="mw-content-ltr">
[[File:CustomLine_Config1.png |850px]]
</div>
<div lang="fr" dir="ltr" class="mw-content-ltr">
===Page principale de configuration du module===
L'administration permet de paramétrer les modes de saisie des lignes d'éléments natif de multiples manières :
</div>
<div lang="fr" dir="ltr" class="mw-content-ltr">
[[File:CustomLine-Main-Configuration.png|850px]]
</div>
<div lang="fr" dir="ltr" class="mw-content-ltr">
{| class="wikitable"
|- style="vertical-align:top;"
| [[File:CustomLine-Configuration-modeselection.png|400px]]
| L'administration permet de paramétrer les modes de saisie des lignes d'éléments natif de multiples manières :
* Le Fonctionnement standard (natif)
* Seulement la saisie libre des produits et services
* Seulement la sélection des produit et service prédéfinis
* Seulement la saisie libre des produits
* Seulement la saisie libre des services
* Saisie libre des produits par défaut
* Saisie libre des services par défaut
</div>


It also allows you to place the creation of a new line at the beginning of the list by activating the switch at the end of the line
It also allows you to place the creation of a new line at the beginning of the list by activating the switch at the end of the line
Ligne 159 : Ligne 141 :
* the value contained in the additional attribute associated with the selected product
* the value contained in the additional attribute associated with the selected product


<div lang="fr" dir="ltr" class="mw-content-ltr">
Once this value has been modified, it is possible to keep or not the new sales price determined either for all customers or according to each customer.
Une fois cette valeur modifié, il est possible de conserver ou non le nouveau prix de vente déterminé soit pour tout les clients soit en fonction de chaque client.
</div>


<div class="mw-translate-fuzzy">
==== Updating sales and purchase prices ====
Once this value has been modified, it is possible to keep or not the new sales price determined either for all customers or according to each customer.
This function allows you to update sales and purchase prices directly from the entry of product or service lines.
</div>


===Management of access authorizations===
===Management of access authorizations===
Ligne 180 : Ligne 159 :
** The discount
** The discount
|}
|}
[[File:CustomLine-habilitation-field.png|600px]]
[[File:CustomLine-habilitation-field_en.png|600px]]
 
===Quick entry of product lines===
The quick entry settings tab allows you to define quick line creation buttons on parts
{| class="wikitable"
|- style="vertical-align:top;"
| [[File:CustomLine-setting-addfastline_en.png|500px]]
| After selecting the elements on which you want to add buttons, you define them by specifying the information you want to enter quickly.
|}
Once validated, the part entry screen adds buttons to the interface. A tooltip specifies the setting associated with the buttons when hovering over them.
 
[[File:CustomLine-addfastline_en.png|700px]]


<div class="mw-translate-fuzzy">
===Import Configuration===
===Import Configuration===
{| class="wikitable"
{| class="wikitable"
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| [[File:CustomLine_Config2.png |600px]]
| [[File:CustomLine_Config2_en.png |600px]]
| <strong>Parameters</strong><br>ImportCsvSeparator (ByDefault) - In this field you must indicate the type of separator that will be accepted in the CSV document.
| <strong>Parameters</strong><br>ImportCsvSeparator (ByDefault) - In this field you must indicate the type of separator that will be accepted in the CSV document.
</div>
<div lang="fr" dir="ltr" class="mw-content-ltr">
[[File:CustomLine-addfastline.png|700px]]
</div>
<div lang="fr" dir="ltr" class="mw-content-ltr">
===Configuration de l'importation===
{| class="wikitable"
|- style="vertical-align:top;"
| [[File:CustomLine_Config2.png |600px]]
| <strong>Paramètres</strong><br>ImportCsvSeparator (ByDefault) - Dans ce champ, vous devez indiquer le type de séparateur qui sera accepté dans le document CSV.
</div>


<strong>Element</strong><br>Choose the type of element into which the data will be imported (Commercial Proposals, Orders, Invoices, Supplier Orders).
<strong>Element</strong><br>Choose the type of element into which the data will be imported (Commercial Proposals, Orders, Invoices, Supplier Orders).
Ligne 213 : Ligne 189 :
* Separator used in the CSV file - You can use the default separator or change it specifically for this import.
* Separator used in the CSV file - You can use the default separator or change it specifically for this import.
* String framing - Usually use quotes, single quotes, etc.
* String framing - Usually use quotes, single quotes, etc.
* Imported date format - Choose the date representation (DD/MM/YY, DD/MM/YYYY, YYYY/MM,DD, ...)
* Imported date format - Choose the date representation (MM/JJ/YY, MM/JJ/YYYY, YYYY/JJ,MM, ...)


<div class="mw-translate-fuzzy">
<strong>Imported fields settings</strong><br>Selection of the fields that will be imported, knowing that some fields are already mandatory.
<strong>Imported fields settings</strong><br>Selection of the fields that will be imported, knowing that some fields are already mandatory.
|}
|}
=== Column identification mode management ===
==== Column identification ====
It is possible to define 3 methods to define the content of the columns to be imported:
It is possible to define 3 methods to define the content of the columns to be imported:
{| class="wikitable"
{| class="wikitable"
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|<strong>Based on the field label</strong>
|<strong>Based on the field label</strong>
</div>


[[File:CustomLine_param_import_libelle.png |300px]]
[[File:CustomLine_param_import_libelle_en.png |300px]]


You must use the name of the columns in the import file and define the fields present in it.
You must use the name of the columns in the import file and define the fields present in it.
Ligne 232 : Ligne 206 :
|<strong>Based on field name</strong>
|<strong>Based on field name</strong>


[[File:CustomLine_param_import_champs.png |300px]]
[[File:CustomLine_param_import_champs_en.png |300px]]


In the import settings, you must enter the name of the field in the file to be imported.
In the import settings, you must enter the name of the field in the file to be imported.
|<strong>Based on the position of the field</strong>
|<strong>Based on the position of the field</strong>


[[File:CustomLine_param_import_position.png |300px]]
[[File:CustomLine_param_import_position_en.png |300px]]


Here you have to define the position of the field in the list, the name of the column is not used
Here you have to define the position of the field in the list, the name of the column is not used
Ligne 247 : Ligne 221 :
{| class="wikitable"
{| class="wikitable"
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| [[file:customline_Selection-predefinis.png|600px]]
| [[file:customline_Selection-predefinis_en.png|600px]]
|
|
Selection of predefined products/services only
Selection of predefined products/services only
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| [[file:customline_Selection-libre.png|600px]]
| [[file:customline_Selection-libre_en.png|600px]]
|
|
Selection of free products/services only
Selection of free products/services only
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| [[file:customline_Selection-native.png|600px]]
| [[file:customline_Selection-native_en.png|600px]]
|
|
Selection of predefined and free products/services - native operation of Dolibarr
Selection of predefined and free products/services - native operation of Dolibarr
Ligne 263 : Ligne 237 :
=== Filtering by product categories ===
=== Filtering by product categories ===


[[file:customline_categorie_filter.png|700px]]
[[file:customline_categorie_filter_en.png|700px]]


Once the function is activated, a filter icon appears to select or not one or more product categories.
Once the function is activated, a filter icon appears to select or not one or more product categories.


[[file:customline_categorie_filter_made.png|700px]]
[[file:customline_categorie_filter_made_en.png|700px]]


Once the selection is validated, the list of products is then limited to associated products, it is possible to select several categories at the same time
Once the selection is validated, the list of products is then limited to associated products, it is possible to select several categories at the same time
Ligne 275 : Ligne 249 :
<youtube>LDDi8TxupJA</youtube>
<youtube>LDDi8TxupJA</youtube>


<div class="mw-translate-fuzzy">
==Mass editing of commercial document lines==
==Mass editing of commercial document lines==
CustomLine adds the '''Mass editing''' tab to the commercial document files listed in the module settings.
CustomLine adds the '''Mass editing''' tab to the commercial document files listed in the module settings.
Access to these tabs is done by managing the native authorizations of dolibarr (see above)
Access to these tabs is done by managing the native authorizations of dolibarr (see above)
{| class="wikitable"
| [[file:customline_Edition-masse.png|600px]]
| style="vertical-align:top;" | Once your products/services are added to a commercial document, click on the Mass editing tab
|}
</div>


<div class="mw-translate-fuzzy">
{| class="wikitable"
{| class="wikitable"
| [[file:customline_Edition-masse-modifie.png|600px]]
| [[file:customline_Edition-masse-modifie_en.png|600px]]
| style="vertical-align:top;" | CustomLine then offers you the possibility to modify all the constituent elements of the lines of the document such as the wording of the products/services, their price, their quantity and a discount. Also, you can modify the VAT rate for each of the products or even delete them.
| style="vertical-align:top;" | You can then modify all the elements that make up the lines of the document, such as the wording of the products/services, their price, their quantity and a discount. This modification is carried out for each line.
|}
It is possible to carry out other actions in bulk:
{{Note|
* modification of the VAT (green color)
* The checkboxes next to the VAT rates allow you to apply VAT to all lines in a single click! The same goes for deletion.
* deletion of a line (blue color)
* To access the features of the Mass Edition tab, your commercial document must be in a status allowing its modification.
* cloning/copying a line (red color)
* if you have many lines to modify, you may reach a limit of php fields, you will then have to increase the variable '''max_input_vars'''
|warn}}
</div>


<div lang="fr" dir="ltr" class="mw-content-ltr">
The checkboxes next to the column titles allow you to select all the lines in one click!
Les cases à cocher à coté des titres des colonnes permettent de sélectionner toutes les lignes en un seul clic !  
|}
|}
{{Note|
{{Note|
* Pour avoir accès aux fonctionnalités de l'onglet Édition en masse, votre document commercial doit être à un statut permettant sa modification (brouillon).
* To access the features of the Bulk Edit tab, your commercial document must be in a status allowing its modification (draft).
* si vous avez de nombreuses lignes à modifier, vous pouvez arriver à une limite de champs de PHP, il faudra alors augmenter la variable '''max_input_vars''' dans le paramétrage de celui ci
* if you have many lines to modify, you may reach a limit of PHP fields, you will then have to increase the variable '''max_input_vars''' in the configuration of this one
|warn}}
|warn}}
</div>


<div class="mw-translate-fuzzy">
{| class="wikitable"
{| class="wikitable"
| [[file:customline_Facture-modifie.png|600px]]
| [[file:customline_Facture-modifie_en.png|600px]]
| style="vertical-align:top;" | Click on the Validate button to save your changes. The sheet of your commercial document will then display the modified data
| style="vertical-align:top;" | Click on the Validate button to save your changes. The sheet of your commercial document will then display the modified data
|}
|}
</div>
=== Updating sales and/or purchase prices ===
Activating this function adds a checkbox next to the price you want to update


<div lang="fr" dir="ltr" class="mw-content-ltr">
[[file:customline_checkupdateprice_en.png|400px]]
[[file:customline_checkupdateprice.png|600px]]
</div>


==Importing lines from commercial documents==
==Importing lines from commercial documents==
Ligne 322 : Ligne 282 :
2 Then, the launch of the import of the data from the file
2 Then, the launch of the import of the data from the file


<div class="mw-translate-fuzzy">
Both steps are carried out at the same tab of the 'Mass import' element.
These two steps are carried out at the same level of the tab of the 'Mass import' element.
</div>


{| class="wikitable"
{| class="wikitable"
| [[file:customline_importation.png|600px]]
| [[file:customline_importation_en.png|600px]]
| style="vertical-align:top;" |
| style="vertical-align:top;" |
The file recovery is done on the first part of the screen. You must select a file and then validate the import
The file recovery is done on the first part of the screen. You must select a file and then validate the import
Ligne 341 : Ligne 299 :
{| class="wikitable"
{| class="wikitable"
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| [[file:customline_Permission-defaut.png|600px]]
| [[file:customline_Permission-defaut_en.png|600px]]
|
|
Default permissions
Default permissions
Ligne 349 : Ligne 307 :


|- style="vertical-align:top;"
|- style="vertical-align:top;"
| [[file:customline_Permission-utilisateurs.png|600px]]
| [[file:customline_Permission-utilisateurs_en.png|600px]]
|
|
The default permissions apply to any user created after the module is installed if they are not added to a group whose permissions are already defined.
The default permissions apply to any user created after the module is installed if they are not added to a group whose permissions are already defined.
|- style="vertical-align:top;" |
|- style="vertical-align:top;" |
| [[file:customline_Permission-accordee.png|600px]]
| [[file:customline_Permission-accordee_en.png|600px]]
|
|
If the permission is enabled, the document cards will not display the margin data. Only the document total and payment information will be accessible.
If the permission is enabled, the document cards will not display the margin data. Only the document total and payment information will be accessible.
|- style="vertical-align:top;" |
|- style="vertical-align:top;" |
| [[file:customline_Permission-refusee.png|600px]]
| [[file:customline_Permission-refusee_en.png|600px]]
|
|
If the permission is disabled, the document cards will display the margin data
If the permission is disabled, the document cards will display the margin data
|}
|}

Dernière version du 12 mars 2025 à 14:28

This Module improves the entry of detail lines of Dolibarr elements.
  • By selecting a single type of entry
  • By filtering the list of products according to their category
  • By defining the fields that can be entered for the entry lines (quantity, discount, amount excluding tax, ...)
  • By allowing the entry of a product line in one click
  • By allowing the mass modification of the lines entered but also
    • their deletion
    • their copy/cloning
  • By importing a file or a product/service reference series directly into the element

Presentation

CustomLine allows you to improve and simplify the entry of lines for the different parts of Dolibarr

Elements row blocking row field blocking bulk editing File import Category filtering Quick entry button
Customer sales proposal X X X X X X
Customer order X X X X X X
Customer invoice X X X X X X
Supplier price request X X
Supplier order X Partial* Partial*
Supplier invoice X
Intervention sheet X
Warehouse X
Bom X

Module configuration

The module configuration is carried out from the modules administration page accessible via the Home > Configuration > Modules menus by clicking on the icon at the end of the line.

Main module configuration page

The administration allows you to configure the input modes of native element lines in multiple ways:

The administration allows you to configure the input modes of the native element lines in multiple ways:
  • Standard operation (native)
  • Only free input of products and services
  • Only selection of predefined products and services
  • Only free input of products
  • Only free input of services
  • Free input of products by default
  • Free input of services by default

It also allows you to place the creation of a new line at the beginning of the list by activating the switch at the end of the line

It is also possible to activate the filtering function by category of the product list with the associated switch

Determining the sale price according to the margin

If the native margin module of dolibarr is activated, it is possible to activate a function to update the calculation of the sale price from the cost price. The calculation is carried out from several values:

  • the purchase price or cost price excluding tax (noted here PAHT)
  • the discount rate if it is entered (noted here DISCOUNT)
  • the VAT rate (noted here VAT)
  • an entered or predetermined value (noted here PCTMARGE)

We can configure 3 calculation modes:

  • Use of the Mark rate:

Sale price = (- PAHT / ((PCTMARGE / 100) -1)) / DISCOUNT

  • Use of margin coefficient

Sale price = (PCTMARGE * PAHT) / DISCOUNT * TXVAT

  • Using a margin percentage

Selling price = PAHT * (1 + PCTMARGE/100) / DISCOUNT

The value used for the calculation is determined from

  • the values ​​already entered for each line and inverse calculation
  • the value contained in the additional attribute associated with the selected product

Once this value has been modified, it is possible to keep or not the new sales price determined either for all customers or according to each customer.

Updating sales and purchase prices

This function allows you to update sales and purchase prices directly from the entry of product or service lines.

Management of access authorizations

CustomLine allows you to manage access authorizations when entering line fields.

For each user or group, it is possible to define
  • the presence or absence of the mass entry tab
  • the access authorizations to the entry fields of the lines of the elements, namely:
    • The amount excluding tax
    • The quantity
    • The VAT rate
    • The discount

Quick entry of product lines

The quick entry settings tab allows you to define quick line creation buttons on parts

After selecting the elements on which you want to add buttons, you define them by specifying the information you want to enter quickly.

Once validated, the part entry screen adds buttons to the interface. A tooltip specifies the setting associated with the buttons when hovering over them.

Import Configuration

Parameters
ImportCsvSeparator (ByDefault) - In this field you must indicate the type of separator that will be accepted in the CSV document.

Element
Choose the type of element into which the data will be imported (Commercial Proposals, Orders, Invoices, Supplier Orders).

Import Settings
Choose the settings to define for the import.

  • Allow import - (Yes / No)
  • Column identification mode
    • Based on field label
    • Based on field name
    • Based on field order
  • Row where column names are - indicates the rows where the columns are (usually 1 in a csv)
  • Separator used in the CSV file - You can use the default separator or change it specifically for this import.
  • String framing - Usually use quotes, single quotes, etc.
  • Imported date format - Choose the date representation (MM/JJ/YY, MM/JJ/YYYY, YYYY/JJ,MM, ...)

Imported fields settings
Selection of the fields that will be imported, knowing that some fields are already mandatory.

Column identification

It is possible to define 3 methods to define the content of the columns to be imported:

Based on the field label

You must use the name of the columns in the import file and define the fields present in it.

Please note that some fields are mandatory.

Based on field name

In the import settings, you must enter the name of the field in the file to be imported.

Based on the position of the field

Here you have to define the position of the field in the list, the name of the column is not used

Operation

predefined mode of selections

Depending on the parameters applied (see section "Configuring the module's functionalities" below), for each of the elements, you will have:

Selection of predefined products/services only

Selection of free products/services only

Selection of predefined and free products/services - native operation of Dolibarr

Filtering by product categories

Once the function is activated, a filter icon appears to select or not one or more product categories.

Once the selection is validated, the list of products is then limited to associated products, it is possible to select several categories at the same time

A video is available explaining how filtering works

Mass editing of commercial document lines

CustomLine adds the Mass editing tab to the commercial document files listed in the module settings. Access to these tabs is done by managing the native authorizations of dolibarr (see above)

You can then modify all the elements that make up the lines of the document, such as the wording of the products/services, their price, their quantity and a discount. This modification is carried out for each line.

It is possible to carry out other actions in bulk:

  • modification of the VAT (green color)
  • deletion of a line (blue color)
  • cloning/copying a line (red color)

The checkboxes next to the column titles allow you to select all the lines in one click!

  • To access the features of the Bulk Edit tab, your commercial document must be in a status allowing its modification (draft).
  • if you have many lines to modify, you may reach a limit of PHP fields, you will then have to increase the variable max_input_vars in the configuration of this one
Click on the Validate button to save your changes. The sheet of your commercial document will then display the modified data

Updating sales and/or purchase prices

Activating this function adds a checkbox next to the price you want to update

Importing lines from commercial documents

The import is done in two steps: 1 First, the recovery of the data file on the server 2 Then, the launch of the import of the data from the file

Both steps are carried out at the same tab of the 'Mass import' element.

The file recovery is done on the first part of the screen. You must select a file and then validate the import

The import is launched by pressing the icon at the end of the line. Once the lines have been imported.

It is possible to delete the imported file from the server by pressing the trash can icon.

other features

Hiding the margin table of document cards

CustomLine adds access permissions to the margin information present on the document cards:

Default permissions

hiding the margin table also removes access to the field allowing to enter (and view) the cost price of the product...

The default permissions apply to any user created after the module is installed if they are not added to a group whose permissions are already defined.

If the permission is enabled, the document cards will not display the margin data. Only the document total and payment information will be accessible.

If the permission is disabled, the document cards will display the margin data