[ task #1063 ] Allow edit localtaxes rate for thirds
This commit is contained in:
parent
c0b57fccaf
commit
f7299f1a28
@ -62,13 +62,13 @@ function societe_prepare_head($object)
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (($object->localtax1_assuj || $object->localtax2_assuj) && (isset($conf->global->MAIN_FEATURES_LEVEL) && $conf->global->MAIN_FEATURES_LEVEL > 0) )
|
||||
{
|
||||
if (($object->localtax1_assuj || $object->localtax2_assuj) && (isset($conf->global->MAIN_FEATURES_LEVEL) && $conf->global->MAIN_FEATURES_LEVEL > 0) )
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT.'/societe/localtaxes.php?socid='.$object->id;
|
||||
$head[$h][1] = $langs->trans("LocalTaxes");
|
||||
$head[$h][2] = 'localtaxes';
|
||||
$h++;
|
||||
}
|
||||
$head[$h][1] = $langs->trans("LocalTaxes");
|
||||
$head[$h][2] = 'localtaxes';
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (! empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read) ))
|
||||
{
|
||||
|
||||
@ -85,6 +85,8 @@ LocalTax1IsUsedES=Subjecte a RE
|
||||
LocalTax1IsNotUsedES=No subjecte a RE
|
||||
LocalTax2IsUsedES=Subjecte a IRPF
|
||||
LocalTax2IsNotUsedES=No subjecte a IRPF
|
||||
LocalTax1ES=RE
|
||||
LocalTax2ES=IRPF
|
||||
ThirdPartyEMail=%s
|
||||
WrongCustomerCode=Codi client incorrecte
|
||||
WrongSupplierCode=Códi proveïdor incorrecte
|
||||
|
||||
@ -85,6 +85,8 @@ LocalTax1IsUsedES= RE is used
|
||||
LocalTax1IsNotUsedES= RE is not used
|
||||
LocalTax2IsUsedES= IRPF is used
|
||||
LocalTax2IsNotUsedES= IRPF is not used
|
||||
LocalTax1ES=RE
|
||||
LocalTax2ES=IRPF
|
||||
ThirdPartyEMail=%s
|
||||
WrongCustomerCode=Customer code invalid
|
||||
WrongSupplierCode=Supplier code invalid
|
||||
|
||||
@ -85,6 +85,8 @@ LocalTax1IsUsedES=Sujeto a RE
|
||||
LocalTax1IsNotUsedES=No sujeto a RE
|
||||
LocalTax2IsUsedES=Sujeto a IRPF
|
||||
LocalTax2IsNotUsedES=No sujeto a IRPF
|
||||
LocalTax1ES=RE
|
||||
LocalTax2ES=IRPF
|
||||
ThirdPartyEMail=%s
|
||||
WrongCustomerCode=Código cliente incorrecto
|
||||
WrongSupplierCode=Código proveedor incorrecto
|
||||
|
||||
@ -85,6 +85,8 @@ LocalTax1IsUsedES= Assujetti à RE
|
||||
LocalTax1IsNotUsedES= Non assujetti à RE
|
||||
LocalTax2IsUsedES= Assujetti à IRPF
|
||||
LocalTax2IsNotUsedES= Non assujetti à IRPF
|
||||
LocalTax1ES=RE
|
||||
LocalTax2ES=IRPF
|
||||
ThirdPartyEMail=%s
|
||||
WrongCustomerCode=Code client incorrect
|
||||
WrongSupplierCode=Code fournisseur incorrect
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/societe/agenda.php
|
||||
* \file htdocs/societe/localtaxes.php
|
||||
* \ingroup societe
|
||||
* \brief Page of third party events
|
||||
* \brief Page of third party localtaxes rates
|
||||
*/
|
||||
|
||||
require '../main.inc.php';
|
||||
@ -143,22 +143,22 @@ if ($socid)
|
||||
|
||||
if($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")
|
||||
{
|
||||
print '<tr><td class="nowrap">'.$langs->trans('LocalTax1IsUsedES').'</td><td colspan="3">';
|
||||
print '<tr><td class="nowrap">'.$langs->transcountry('LocalTax1IsUsed',$mysoc->country_code).'</td><td colspan="3">';
|
||||
print yn($soc->localtax1_assuj);
|
||||
print '</td></tr>';
|
||||
print '<tr><td class="nowrap">'.$langs->trans('LocalTax2IsUsedES').'</td><td colspan="3">';
|
||||
print '<tr><td class="nowrap">'.$langs->transcountry('LocalTax2IsUsed',$mysoc->country_code).'</td><td colspan="3">';
|
||||
print yn($soc->localtax2_assuj);
|
||||
print '</td></tr>';
|
||||
}
|
||||
elseif($mysoc->localtax1_assuj=="1")
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("LocalTax1IsUsedES").'</td><td colspan="3">';
|
||||
print '<tr><td>'.$langs->transcountry('LocalTax1IsUsed',$mysoc->country_code).'</td><td colspan="3">';
|
||||
print yn($soc->localtax1_assuj);
|
||||
print '</td></tr>';
|
||||
}
|
||||
elseif($mysoc->localtax2_assuj=="1")
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("LocalTax2IsUsedES").'</td><td colspan="3">';
|
||||
print '<tr><td>'.$langs->transcountry('LocalTax2IsUsed',$mysoc->country_code).'</td><td colspan="3">';
|
||||
print yn($soc->localtax2_assuj);
|
||||
print '</td></tr>';
|
||||
}
|
||||
@ -185,10 +185,10 @@ if ($socid)
|
||||
|
||||
// Localtax 1
|
||||
if ($mysoc->localtax1_assuj=="1" && $soc->localtax1_assuj)
|
||||
print '<td align="right" width="80">'.$langs->trans('Localtax1').' (%)</td>';
|
||||
print '<td align="right" width="80">'.$langs->transcountry('LocalTax1',$mysoc->country_code).' (%)</td>';
|
||||
|
||||
if ($mysoc->localtax2_assuj=="1" && $soc->localtax2_assuj)
|
||||
print '<td align="right" width="80">'.$langs->trans('Localtax2').' (%)</td>';
|
||||
print '<td align="right" width="80">'.$langs->transcountry('LocalTax2',$mysoc->country_code).' (%)</td>';
|
||||
|
||||
//print '<td width="10"></td>';
|
||||
if ($user->rights->societe->creer)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user