fix (scrutinizer) deletion of the variables add in company

This commit is contained in:
FLIO 2023-02-15 15:39:49 +01:00
parent c19d259d46
commit 465a88738e
2 changed files with 2 additions and 6 deletions

View File

@ -504,10 +504,6 @@ class Societe extends CommonObject
*/
public $tva_intra;
public $tva_tx;
public $price_base_type;
// Local taxes
public $localtax1_assuj;
public $localtax1_value;

View File

@ -321,7 +321,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
// VAT
print '<tr><td>'.$langs->trans("VATRate").'</td><td>';
print $form->load_tva("tva_tx", $object->tva_tx, $mysoc, '', $object->id, $object->tva_npr, '', false, 1);
print $form->load_tva("tva_tx", GETPOST("tva_tx", "alpha"), $mysoc, '', $object->id, 0, '', false, 1);
print '</td></tr>';
// Price base
@ -329,7 +329,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print $langs->trans('PriceBase');
print '</td>';
print '<td>';
print $form->selectPriceBaseType($object->price_base_type, "price_base_type");
print $form->selectPriceBaseType(GETPOST("price_base_type", "aZ09"), "price_base_type");
print '</td>';
print '</tr>';