2
0
forked from Wavyzz/dolibarr

qual: phpstan

htdocs/commande/card.php	293	Property CommonObject::$fk_project (int) does not accept array|string.
htdocs/commande/card.php	296	Property CommonObject::$cond_reglement_id (int) does not accept array|string.
htdocs/commande/card.php	297	Property Commande::$deposit_percent (float) does not accept array|string.
htdocs/commande/card.php	298	Property Commande::$mode_reglement_id (int) does not accept array|string.
htdocs/commande/card.php	299	Property Commande::$fk_account (int) does not accept array|string.
htdocs/commande/card.php	300	Property Commande::$availability_id (int) does not accept array|string.
htdocs/commande/card.php	301	Property Commande::$demand_reason_id (int) does not accept array|string.
htdocs/commande/card.php	303	Property CommonObject::$shipping_method_id (int) does not accept array|string.
htdocs/commande/card.php	304	Property Commande::$warehouse_id (int) does not accept array|string.
htdocs/commande/card.php	305	Property CommonObject::$fk_delivery_address (int) does not accept array|string.
htdocs/commande/card.php	306	Property CommonObject::$contact_id (int) does not accept array|string.
htdocs/commande/card.php	307	Property CommonOrder::$fk_incoterms (int) does not accept array|string.
htdocs/commande/card.php	310	Property Commande::$multicurrency_tx (float) does not accept array|string.
This commit is contained in:
thibdrev
2024-01-19 12:58:50 +01:00
committed by GitHub
parent f3d97a8a13
commit ffcc89d387

View File

@@ -290,24 +290,24 @@ if (empty($reshook)) {
$object->note_private = GETPOST('note_private', 'restricthtml');
$object->note_public = GETPOST('note_public', 'restricthtml');
$object->source = GETPOST('source_id', 'int');
$object->fk_project = GETPOST('projectid', 'int');
$object->fk_project = GETPOSTINT('projectid');
$object->ref_client = GETPOST('ref_client', 'alpha');
$object->model_pdf = GETPOST('model');
$object->cond_reglement_id = GETPOST('cond_reglement_id', 'int');
$object->deposit_percent = GETPOST('cond_reglement_id_deposit_percent', 'alpha');
$object->mode_reglement_id = GETPOST('mode_reglement_id', 'int');
$object->fk_account = GETPOST('fk_account', 'int');
$object->availability_id = GETPOST('availability_id');
$object->demand_reason_id = GETPOST('demand_reason_id', 'int');
$object->cond_reglement_id = GETPOSTINT('cond_reglement_id');
$object->deposit_percent = (float) GETPOST('cond_reglement_id_deposit_percent', 'int');
$object->mode_reglement_id = GETPOSTINT('mode_reglement_id');
$object->fk_account = GETPOSTINT('fk_account');
$object->availability_id = GETPOSTINT('availability_id');
$object->demand_reason_id = GETPOSTINT('demand_reason_id');
$object->delivery_date = $date_delivery;
$object->shipping_method_id = GETPOST('shipping_method_id', 'int');
$object->warehouse_id = GETPOST('warehouse_id', 'int');
$object->fk_delivery_address = GETPOST('fk_address', 'int');
$object->contact_id = GETPOST('contactid', 'int');
$object->fk_incoterms = GETPOST('incoterm_id', 'int');
$object->shipping_method_id = GETPOSTINT('shipping_method_id');
$object->warehouse_id = GETPOSTINT('warehouse_id');
$object->fk_delivery_address = GETPOSTINT('fk_address');
$object->contact_id = GETPOSTINT('contactid');
$object->fk_incoterms = GETPOSTINT('incoterm_id');
$object->location_incoterms = GETPOST('location_incoterms', 'alpha');
$object->multicurrency_code = GETPOST('multicurrency_code', 'alpha');
$object->multicurrency_tx = GETPOST('originmulticurrency_tx', 'int');
$object->multicurrency_tx = GETPOSTINT('originmulticurrency_tx');
// Fill array 'array_options' with data from add form
if (!$error) {
$ret = $extrafields->setOptionalsFromPost(null, $object);