Clean code

This commit is contained in:
Laurent Destailleur 2020-01-28 19:47:21 +01:00
parent c87fdc96ce
commit 9ae174d8b4
2 changed files with 9 additions and 0 deletions

View File

@ -150,6 +150,12 @@ class DolibarrApi
unset($object->context);
unset($object->next_prev_filter);
unset($object->region);
unset($object->region_code);
unset($object->libelle_statut);
unset($object->libelle_paiement);
if ($object->table_element != 'ticket') {
unset($object->comments);
}

View File

@ -501,6 +501,9 @@ class ExpenseReports extends DolibarrApi
// phpcs:enable
$object = parent::_cleanObjectDatas($object);
unset($object->cond_reglement);
unset($object->shipping_method_id);
unset($object->barcode_type);
unset($object->barcode_type_code);
unset($object->barcode_type_label);