diff --git a/htdocs/comm/mailing/targetemailing.php b/htdocs/comm/mailing/targetemailing.php index f25fbc9e883..3ee5c4ed66e 100644 --- a/htdocs/comm/mailing/targetemailing.php +++ b/htdocs/comm/mailing/targetemailing.php @@ -782,7 +782,7 @@ if ($object->fetch($id) >= 0) { print ''; - print "\n\n"; + print "\n\n"; print '
'; print ''; print ''; diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index 47eabc5f19f..442e1a6c5f8 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -81,24 +81,24 @@ abstract class CommonInvoice extends CommonObject public $date_lim_reglement; /** - * @var ?int + * @var ?int Payment term ID */ public $cond_reglement_id; // Id in llx_c_paiement /** - * @var string|int Code in llx_c_paiement + * @var string|int Code in llx_c_paiement */ public $cond_reglement_code; // Code in llx_c_paiement /** - * @var string + * @var string Label in llx_c_paiement */ public $cond_reglement_label; /** - * @var string Code in llx_c_paiement + * @var string Label for doc in llx_c_paiement */ public $cond_reglement_doc; /** - * @var ?int + * @var ?int Payment method ID (cheque, cash, ...) */ public $mode_reglement_id; /** diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 45ca8da7c5e..b66beaecbf7 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -447,19 +447,19 @@ abstract class CommonObject public $barcode_type_coder; /** - * @var int Payment method ID (cheque, cash, ...) + * @var ?int Payment method ID (cheque, cash, ...) * @see setPaymentMethods() */ public $mode_reglement_id; /** - * @var int Payment terms ID + * @var ?int Payment terms ID * @see setPaymentTerms() */ public $cond_reglement_id; /** - * @var int Demand reason ID + * @var ?int Demand reason ID */ public $demand_reason_id; diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index c6909afc4ea..8ea92b9c89a 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -217,32 +217,37 @@ class CommandeFournisseur extends CommonOrder public $source; /** - * @var int Payment conditions ID + * @var int ID + */ + public $fk_project; + + /** + * @var ?int Payment conditions ID */ public $cond_reglement_id; /** - * @var string Payment conditions code + * @var string Payment conditions code */ public $cond_reglement_code; /** - * @var string Payment conditions label + * @var string Payment conditions label */ public $cond_reglement_label; /** - * @var string Payment conditions label on documents + * @var string Payment conditions label on documents */ public $cond_reglement_doc; /** - * @var int Account ID + * @var int Account ID */ public $fk_account; /** - * @var int Payment choice ID + * @var ?int Payment choice ID */ public $mode_reglement_id; diff --git a/htdocs/fourn/class/fournisseur.facture-rec.class.php b/htdocs/fourn/class/fournisseur.facture-rec.class.php index 7a33a539dee..d172d963dd1 100644 --- a/htdocs/fourn/class/fournisseur.facture-rec.class.php +++ b/htdocs/fourn/class/fournisseur.facture-rec.class.php @@ -156,7 +156,7 @@ class FactureFournisseurRec extends CommonInvoice public $fk_project; /** - * @var int + * @var ?int Payment method ID (cheque, cash, ...) */ public $mode_reglement_id; /** @@ -172,7 +172,7 @@ class FactureFournisseurRec extends CommonInvoice */ public $cond_reglement_doc; /** - * @var int + * @var int Payment term ID */ public $cond_reglement_id; diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index be59e225aea..be199e4168c 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -1027,7 +1027,7 @@ if (empty($reshook)) { $object->ref_supplier = GETPOST('ref_supplier', 'alphanohtml'); $object->model_pdf = GETPOST('model', 'alphanohtml'); $object->fk_project = GETPOSTINT('projectid'); - $object->cond_reglement_id = (GETPOSTINT('type') == 3 ? 1 : GETPOST('cond_reglement_id')); + $object->cond_reglement_id = (GETPOSTINT('type') == 3 ? 1 : GETPOSTINT('cond_reglement_id')); $object->mode_reglement_id = GETPOSTINT('mode_reglement_id'); $object->fk_account = GETPOSTINT('fk_account'); $object->amount = (float) price2num(GETPOST('amount')); // FIXME: FactureFournisseur::$amount is deprecated and not used? diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 15878d07af4..a0da7ae9db1 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -586,11 +586,11 @@ class Societe extends CommonObject public $remise_supplier_percent; /** - * @var int + * @var ?int Default Payment method ID (cheque, cash, ...) */ public $mode_reglement_id; /** - * @var int + * @var ?int Default Payment term */ public $cond_reglement_id; /**