diff --git a/COPYRIGHT b/COPYRIGHT
index d97b00721da..4272219f80b 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -9,37 +9,39 @@ More information: http://www.gnu.org/licenses/gpl-3.0.txt
Dolibarr uses some external libraries released under different licences. This is compatibility summary:
-Composant Version License Compatible GPL Usage
+Composant Version License Compatible GPL Usage
----------------------------------------------------------------------------
PHP libraries:
-AdoDb-Date 0.21 Modified BSD License Yes Date convertion (not into rpm package)
-CKEditor 3.6.4 LGPL-2.1+ Yes Editor WYSIWYG
-FPDI 1.4.2 Apache Software License 2.0 Yes PDF templates management (with FPDF_TPL 1.2)
-GeoIP 2004 LGPL-2.1+ Yes Sample code to make geoip convert (not into deb package)
-NuSoap 0.9.5 LGPL 2.1+ Yes Library to develop SOAP Web services (not into rpm and deb package)
-OdtPHP 1.0.1 GPL-2+ Yes Library to build/edit ODT files
-PHPExcel 1.7.6 LGPL-2.1+ Yes Read/Write XLS files, read ODS files
-PHPPrintIPP 1.3 GPL-2+ Yes Library to send print IPP requests
-TCPDF 5.9.180 LGPL-3+ Yes PDF generation
+AdoDb-Date 0.21 Modified BSD License Yes Date convertion (not into rpm package)
+CKEditor 3.6.4 LGPL-2.1+ Yes Editor WYSIWYG
+FPDI 1.4.2 Apache Software License 2.0 Yes PDF templates management (with FPDF_TPL 1.2)
+GeoIP 2004 LGPL-2.1+ Yes Sample code to make geoip convert (not into deb package)
+NuSoap 0.9.5 LGPL 2.1+ Yes Library to develop SOAP Web services (not into rpm and deb package)
+OdtPHP 1.0.1 GPL-2+ Yes Library to build/edit ODT files
+PHPExcel 1.7.6 LGPL-2.1+ Yes Read/Write XLS files, read ODS files
+PHPPrintIPP 1.3 GPL-2+ Yes Library to send print IPP requests
+TCPDF 5.9.180 LGPL-3+ Yes PDF generation
JS libraries:
-jQuery 1.8.2 MIT Licence Yes JS library
-jQuery UI 1.9.1 GPL and MIT Licence Yes JS library plugin UI
-jQuery Timepicker 1.1.0 GPL and MIT Licence Yes JS library Timepicker addon for Datepicker
-jQuery Colorpicker 1.1 MIT Licence Yes JS library for color picker for a defined list of colors
-jQuery DataTables 1.9.4 BSD Yes JS library for tables output
-jQuery Flot 0.7 MIT Licence Yes JS library to build graph
-jQuery FileUpload 5.0.3 GPL and MIT Licence Yes JS library to upload files
-jQuery JCrop 0.9.8 GPL and MIT Licence Yes JS library plugin Crop (to crop images)
-jQuery jeditable 1.7.1 GPL and MIT Licence Yes JS library plugin jeditable (to edit in place)
-jQuery jNotify 1.1.00 Apache Software License 2.0 Yes JS library plugin jNotify (to use ajax popups)
-jQuery blockUI 2.43 GPL and MIT Licence Yes JS library plugin blockUI (to use ajax popups)
-jQuery jPicker 1.1.00 GPL and MIT Licence Yes JS library for color picker with not defined list of colors
-jQuery Layout 1.3.0 GPL and MIT Licence Yes JS library plugin Layout (RC-29.15)
-jQuery TableDnD 0.5 GPL and MIT Licence Yes JS library plugin TableDnD (to reorder table rows)
-jQuery Mobile 1.3 GPL and MIT Licence Yes JS library for smartphone (not used)
-jQuery Tiptip 1.3 GPL and MIT Licence Yes JS library for tooltips
-JSGantt 1.2 BSD Licence Yes JS library (to build Gantt reports)
+jQuery 1.8.2 MIT Licence Yes JS library
+jQuery UI 1.9.1 GPL and MIT Licence Yes JS library plugin UI
+jQuery blockUI 2.43 GPL and MIT Licence Yes JS library plugin blockUI (to use ajax popups)
+jQuery Colorpicker 1.1 MIT Licence Yes JS library for color picker for a defined list of colors
+jQuery DataTables 1.9.4 BSD Yes JS library for tables output
+jQuery FileUpload 5.0.3 GPL and MIT Licence Yes JS library to upload files
+jQuery Flot 0.7 MIT Licence Yes JS library to build graph
+jQuery JCrop 0.9.8 GPL and MIT Licence Yes JS library plugin Crop (to crop images)
+jQuery jeditable 1.7.1 GPL and MIT Licence Yes JS library plugin jeditable (to edit in place)
+jQuery jNotify 1.1.00 Apache Software License 2.0 Yes JS library plugin jNotify (to use ajax popups)
+jQuery jPicker 1.1.00 GPL and MIT Licence Yes JS library for color picker with not defined list of colors
+jQuery jqueryFileTree 1.0.1 GPL and MIT Licence Yes JS library for color picker with not defined list of colors
+jQuery jquerytreeview 1.4.1 MIT Licence Yes JS library for color picker with not defined list of colors
+jQuery Layout 1.3.0 GPL and MIT Licence Yes JS library plugin Layout (RC-29.15)
+jQuery Mobile 1.3 GPL and MIT Licence Yes JS library for smartphone (not used)
+jQuery TableDnD 0.5 GPL and MIT Licence Yes JS library plugin TableDnD (to reorder table rows)
+jQuery Timepicker 1.1.0 GPL and MIT Licence Yes JS library Timepicker addon for Datepicker
+jQuery Tiptip 1.3 GPL and MIT Licence Yes JS library for tooltips
+JSGantt 1.2 BSD Licence Yes JS library (to build Gantt reports)
For licenses compatibility informations:
http://www.fsf.org/licensing/licenses/index_html
diff --git a/ChangeLog b/ChangeLog
index d6c8c51fd25..2ef52f1354a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -81,7 +81,10 @@ WARNING: If you used external modules, some of them may need to be upgraded due
- Fix: [ bug #774 ] Bug on creating event with box "all day" crossed
- Fix: [ bug #817 ] Purchases journal does not reflect localtaxes
- Fix: [ bug #816 ] Sales journal does not reflect localtaxes
+- Fix: [ bug #806 ] Margins module with orders2invoice does not respect cost price
- Fix: Orderstoinvoice didn't act as expected when no order was checked
+- Fix: Bad link to all proposals into Third party card if customer is prospect
+- Fix: [ bug #789 ] VAT not being calculated in POS
diff --git a/htdocs/admin/propal.php b/htdocs/admin/propal.php
index 755ca681c73..d7cfcc0b67f 100644
--- a/htdocs/admin/propal.php
+++ b/htdocs/admin/propal.php
@@ -35,6 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
$langs->load("admin");
$langs->load("errors");
$langs->load('other');
+$langs->load('propal');
if (! $user->admin) accessforbidden();
@@ -250,12 +251,11 @@ print_fiche_titre($langs->trans("PropalSetup"),$linkback,'setup');
$head = propal_admin_prepare_head(null);
-dol_fiche_head($head, 'general', $langs->trans("Propales"), 0, 'propal');
+dol_fiche_head($head, 'general', $langs->trans("Proposals"), 0, 'propal');
/*
* Module numerotation
*/
-print "
";
print_titre($langs->trans("ProposalsNumberingModules"));
print '
| '; if ($action == 'editconditions') { - $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id'); + $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id'); } else { - $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none'); + $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none'); } print ' | '; print ''; @@ -1834,54 +1844,54 @@ else } // TODO : use showOptionals($extrafields) function - foreach($extrafields->attribute_label as $key=>$label) - { - $value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$object->array_options["options_".$key]); - if ($extrafields->attribute_type[$key] == 'separate') - { - print $extrafields->showSeparator($key); - } - else - { - print '|||
| attribute_required[$key])) print ' class="fieldrequired"'; - print '>'.$label.' | '; + foreach($extrafields->attribute_label as $key=>$label) + { + $value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$object->array_options["options_".$key]); + if ($extrafields->attribute_type[$key] == 'separate') + { + print $extrafields->showSeparator($key); + } + else + { + print ' | ||
| attribute_required[$key])) print ' class="fieldrequired"'; + print '>'.$label.' | '; - // Convert date into timestamp format - if (in_array($extrafields->attribute_type[$key],array('date','datetime'))) - { - $value = isset($_POST["options_".$key])?dol_mktime($_POST["options_".$key."hour"], $_POST["options_".$key."min"], 0, $_POST["options_".$key."month"], $_POST["options_".$key."day"], $_POST["options_".$key."year"]):$object->array_options['options_'.$key]; - } + // Convert date into timestamp format + if (in_array($extrafields->attribute_type[$key],array('date','datetime'))) + { + $value = isset($_POST["options_".$key])?dol_mktime($_POST["options_".$key."hour"], $_POST["options_".$key."min"], 0, $_POST["options_".$key."month"], $_POST["options_".$key."day"], $_POST["options_".$key."year"]):$object->array_options['options_'.$key]; + } - if ($action == 'edit_extras' && $user->rights->propal->creer) - { - print $extrafields->showInputField($key,$value); - } - else - { - print $extrafields->showOutputField($key,$value); - } - print ' | ||
| '; - print ''; - print ''; - print ' | |||
| '; + print ''; + print ''; + print ' | |||
| '.img_picto('','edit').' '.$langs->trans('Modify').' | |||
| '.img_picto('','edit').' '.$langs->trans('Modify').' | '; - $object->displayMarginInfos(); - print ' | '; + print ''; + $object->displayMarginInfos(); + print ' | '; } print ''; @@ -1943,7 +1953,7 @@ else /* * Lines - */ + */ if (! empty($conf->use_javascript_ajax) && $object->statut == 0) { @@ -1967,18 +1977,18 @@ else if ($conf->global->MAIN_FEATURES_LEVEL > 1) { // Add free or predefined products/services - $object->formAddObjectLine(0,$mysoc,$soc); + $object->formAddObjectLine(1,$mysoc,$soc); } else { // Add free products/services - $object->formAddFreeProduct(0,$mysoc,$soc); + $object->formAddFreeProduct(1,$mysoc,$soc); // Add predefined products/services if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) { $var=!$var; - $object->formAddPredefinedProduct(0,$mysoc,$soc); + $object->formAddPredefinedProduct(1,$mysoc,$soc); } } @@ -1996,18 +2006,18 @@ else { /* * Formulaire cloture (signe ou non) - */ + */ $form_close = '|