From 8bee69277d95b1d873a708f60cad0644276580ec Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Thu, 4 Oct 2018 09:33:30 +0200 Subject: [PATCH] Standardize and update code --- htdocs/compta/facture/class/facture.class.php | 2 +- htdocs/core/class/commoninvoice.class.php | 2 +- htdocs/expedition/class/expedition.class.php | 12 +++++++++++- htdocs/expensereport/class/expensereport.class.php | 4 ++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 048f686df3b..d264bbc5200 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -216,7 +216,7 @@ class Facture extends CommonInvoice const TYPE_SITUATION = 5; /** - * Draft + * Draft status */ const STATUS_DRAFT = 0; diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index 9b1cb8776c3..1688682abe5 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -62,7 +62,7 @@ abstract class CommonInvoice extends CommonObject const TYPE_SITUATION = 5; /** - * Draft + * Draft status */ const STATUS_DRAFT = 0; diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index bd575511d61..dee8184ee18 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -117,9 +117,19 @@ class Expedition extends CommonObject public $meths; public $listmeths; // List of carriers - + /** + * Draft status + */ const STATUS_DRAFT = 0; + + /** + * Validated status + */ const STATUS_VALIDATED = 1; + + /** + * Closed status + */ const STATUS_CLOSED = 2; diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index 3b6b9628f6a..f5d2a4145e2 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -104,8 +104,8 @@ class ExpenseReport extends CommonObject END ACTIONS */ - /** - * Draft + /** + * Draft status */ const STATUS_DRAFT = 0;