Merge remote-tracking branch 'origin/3.3' into 3.4
Conflicts: ChangeLog htdocs/comm/propal.php htdocs/core/class/commonobject.class.php htdocs/core/tpl/freeproductline_create.tpl.php htdocs/core/tpl/predefinedproductline_create.tpl.php
This commit is contained in:
commit
71e14df62f
54
ChangeLog
54
ChangeLog
@ -92,33 +92,33 @@ WARNING: If you used external modules, some of them may need to be upgraded due
|
|||||||
|
|
||||||
***** ChangeLog for 3.3.2 compared to 3.3.1 *****
|
***** ChangeLog for 3.3.2 compared to 3.3.1 *****
|
||||||
|
|
||||||
- Fix: Dutch (nl_NL) translation.
|
- Fix: Dutch (nl_NL) translation
|
||||||
- Generalize fix: file with a specific mask not found, again.
|
- Generalize fix: file with a specific mask not found, again
|
||||||
- Fix: translations and BILL_SUPPLIER_BUILDDOC trigger.
|
- Fix: translations and BILL_SUPPLIER_BUILDDOC trigger
|
||||||
- Fix: Can't reset payment due date.
|
- Fix: Can't reset payment due date
|
||||||
- Fix: Orderstoinvoice didn't act as expected when no order was checked.
|
- 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: Bad link to all proposals into Third party card if customer is prospect
|
||||||
- Fix: Some bugs on withdrawal rejects.
|
- Fix: Some bugs on withdrawal rejects
|
||||||
- Fix: [ bug #774 ] Bug on creating event with box "all day" crossed.
|
- Fix: [ bug #774 ] Bug on creating event with box "all day" crossed
|
||||||
- Fix: [ bug #787 ] Invoice supplier box incorrect tooltip when delay on payment.
|
- Fix: [ bug #787 ] Invoice supplier box incorrect tooltip when delay on payment
|
||||||
- Fix: [ bug #789 ] VAT not being calculated in POS.
|
- Fix: [ bug #789 ] VAT not being calculated in POS
|
||||||
- Fix: [ bug #790 ] Spanish localtax RE not being correctly calculated.
|
- Fix: [ bug #790 ] Spanish localtax RE not being correctly calculated
|
||||||
- Fix: [ bug #794 ] Lost filter on zipcode in prospect list.
|
- Fix: [ bug #794 ] Lost filter on zipcode in prospect list
|
||||||
- Fix: [ bug #806 ] Margins module with orders2invoice does not respect cost price.
|
- Fix: [ bug #806 ] Margins module with orders2invoice does not respect cost price
|
||||||
- Fix: [ bug #810 ] Cannot update ODT template path.
|
- Fix: [ bug #810 ] Cannot update ODT template path
|
||||||
- Fix: [ bug #816 ] Sales journal does not reflect localtaxes.
|
- Fix: [ bug #816 ] Sales journal does not reflect localtaxes
|
||||||
- Fix: [ bug #817 ] Purchases journal does not reflect localtaxes.
|
- Fix: [ bug #817 ] Purchases journal does not reflect localtaxes
|
||||||
- Fix: [ bug #824 ] MAIN_DB_PREFIX not use into dictionnary.
|
- Fix: [ bug #824 ] MAIN_DB_PREFIX not use into dictionnary
|
||||||
- Fix: [ bug #828 ] Error when code_region is not a number in llx_c_regions (with postgres).
|
- Fix: [ bug #828 ] Error when code_region is not a number in llx_c_regions (with postgres)
|
||||||
- Fix: [ bug #855 ] Holiday approval email in French.
|
- Fix: [ bug #855 ] Holiday approval email in French
|
||||||
- Fix: [ bug #856 ] (Holidays module) Mail error if destination user doesn't have an email.
|
- Fix: [ bug #856 ] (Holidays module) Mail error if destination user doesn't have an email
|
||||||
- Fix: [ bug #857 ] Invoice created from shipment does not have the order discount.
|
- Fix: [ bug #857 ] Invoice created from shipment does not have the order discount
|
||||||
- Fix: [ bug #861 ] Impossible to create a new event in agenda.
|
- Fix: [ bug #861 ] Impossible to create a new event in agenda
|
||||||
- Fix: [ bug #827 ] AJAX search does not respect multiprice level.
|
- Fix: [ bug #827 ] AJAX search does not respect multiprice level
|
||||||
- Fix: [ bug #865 ] Dolibarr navigation array in project/task do not work.
|
- Fix: [ bug #865 ] Dolibarr navigation array in project/task do not work
|
||||||
- Fix: [ bug #866 ] Standing order from an invoice suggests invoice total amount instead of remaining to pay.
|
- Fix: [ bug #866 ] Standing order from an invoice suggests invoice total amount instead of remaining to pay
|
||||||
- Fix: [ bug #788 ] Date of linked interventions are not shown.
|
- Fix: [ bug #788 ] Date of linked interventions are not shown
|
||||||
|
- Fix: external users should not see costprice and margin infos
|
||||||
|
|
||||||
***** ChangeLog for 3.3.1 compared to 3.3 *****
|
***** ChangeLog for 3.3.1 compared to 3.3 *****
|
||||||
|
|
||||||
|
|||||||
@ -2712,7 +2712,7 @@ abstract class CommonObject
|
|||||||
*/
|
*/
|
||||||
function printObjectLines($action, $seller, $buyer, $selected=0, $dateSelector=0)
|
function printObjectLines($action, $seller, $buyer, $selected=0, $dateSelector=0)
|
||||||
{
|
{
|
||||||
global $conf,$langs,$hookmanager;
|
global $conf,$langs,$user,$hookmanager;
|
||||||
|
|
||||||
print '<tr class="liste_titre nodrag nodrop">';
|
print '<tr class="liste_titre nodrag nodrop">';
|
||||||
|
|
||||||
@ -2735,7 +2735,8 @@ abstract class CommonObject
|
|||||||
// Reduction short
|
// Reduction short
|
||||||
print '<td align="right" width="50">'.$langs->trans('ReductionShort').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('ReductionShort').'</td>';
|
||||||
|
|
||||||
if (! empty($conf->margin->enabled)) {
|
if (! empty($conf->margin->enabled) && empty($user->societe_id))
|
||||||
|
{
|
||||||
if ($conf->global->MARGIN_TYPE == "1")
|
if ($conf->global->MARGIN_TYPE == "1")
|
||||||
print '<td align="right" width="80">'.$langs->trans('BuyingPrice').'</td>';
|
print '<td align="right" width="80">'.$langs->trans('BuyingPrice').'</td>';
|
||||||
else
|
else
|
||||||
@ -3159,11 +3160,16 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* displayMarginInfos
|
||||||
*
|
*
|
||||||
* @param string $force_price
|
* @param string $force_price Force price
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
function displayMarginInfos($force_price=false) {
|
function displayMarginInfos($force_price=false)
|
||||||
global $langs, $conf;
|
{
|
||||||
|
global $langs, $conf, $user;
|
||||||
|
|
||||||
|
if (! empty($user->societe_id)) return;
|
||||||
|
|
||||||
$marginInfo = $this->getMarginInfos($force_price);
|
$marginInfo = $this->getMarginInfos($force_price);
|
||||||
|
|
||||||
@ -3215,6 +3221,5 @@ abstract class CommonObject
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -80,7 +80,7 @@ class modMargin extends DolibarrModules
|
|||||||
// New pages on tabs
|
// New pages on tabs
|
||||||
$this->tabs = array(
|
$this->tabs = array(
|
||||||
'product:+margin:Margins:margins:$conf->margin->enabled:/margin/tabs/productMargins.php?id=__ID__',
|
'product:+margin:Margins:margins:$conf->margin->enabled:/margin/tabs/productMargins.php?id=__ID__',
|
||||||
'thirdparty:+margin:Margins:margins:$conf->margin->enabled:/margin/tabs/thirdpartyMargins.php?socid=__ID__'
|
'thirdparty:+margin:Margins:margins:$conf->margin->enabled && empty($user->societe_id):/margin/tabs/thirdpartyMargins.php?socid=__ID__'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -119,7 +119,7 @@
|
|||||||
<td> </td>
|
<td> </td>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
if (! empty($conf->margin->enabled)) {
|
if (! empty($conf->margin->enabled) && empty($user->societe_id)) {
|
||||||
?>
|
?>
|
||||||
<td align="right" class="nowrap"><?php echo price($line->pa_ht); ?></td>
|
<td align="right" class="nowrap"><?php echo price($line->pa_ht); ?></td>
|
||||||
<?php if (! empty($conf->global->DISPLAY_MARGIN_RATES)) {?>
|
<?php if (! empty($conf->global->DISPLAY_MARGIN_RATES)) {?>
|
||||||
|
|||||||
@ -43,8 +43,8 @@ MargeBrute=Marge brute
|
|||||||
MargeNette=Marge nette
|
MargeNette=Marge nette
|
||||||
MARGIN_TYPE_DETAILS=Marge brute : Prix de vente HT - Prix d'achat HT<br/>Marge nette : Prix de vente HT - Coût de revient
|
MARGIN_TYPE_DETAILS=Marge brute : Prix de vente HT - Prix d'achat HT<br/>Marge nette : Prix de vente HT - Coût de revient
|
||||||
|
|
||||||
CostPrice=Prix d'achat
|
BuyingPrice=Prix d'achat
|
||||||
BuyingCost=Coût de revient
|
CostPrice=Prix de revient
|
||||||
UnitCharges=Charge unitaire
|
UnitCharges=Charge unitaire
|
||||||
Charges=Charges
|
Charges=Charges
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user