This commit is contained in:
Laurent Destailleur 2020-04-03 18:01:54 +02:00
parent a5a5fe55f6
commit e6641b5369
40 changed files with 87 additions and 85 deletions

View File

@ -71,8 +71,8 @@ class modPhpbarcode extends ModeleBarCode
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -67,8 +67,8 @@ class modTcpdfbarcode extends ModeleBarCode
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -72,8 +72,8 @@ class mod_bom_standard extends ModeleNumRefboms
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -109,8 +109,8 @@ abstract class ModeleNumRefBoms
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -69,8 +69,8 @@ class mod_chequereceipt_mint extends ModeleNumRefChequeReceipts
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -76,8 +76,8 @@ abstract class ModeleNumRefChequeReceipts
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -72,8 +72,8 @@ class mod_commande_marbre extends ModeleNumRefCommandes
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -110,8 +110,8 @@ abstract class ModeleNumRefCommandes
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -108,8 +108,8 @@ abstract class ModeleNumRefDons
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -78,8 +78,8 @@ class mod_expensereport_jade extends ModeleNumRefExpenseReport
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -117,7 +117,7 @@ abstract class ModeleNumRefExpenseReport
}
/**
* Test whether the numbers already in force in the base do not cause conflicts that would prevent this numbering from working.
* Test whether the numbers already in force in the base do not cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -84,8 +84,8 @@ class mod_facture_mars extends ModeleNumRefFactures
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -94,8 +94,8 @@ class mod_facture_terre extends ModeleNumRefFactures
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -114,8 +114,8 @@ abstract class ModeleNumRefFactures
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -78,8 +78,8 @@ class mod_pacific extends ModeleNumRefFicheinter
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -109,8 +109,8 @@ abstract class ModeleNumRefFicheinter
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -82,8 +82,8 @@ class mod_livraison_jade extends ModeleNumRefDeliveryOrder
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -112,8 +112,8 @@ abstract class ModeleNumRefDeliveryOrder
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -72,8 +72,8 @@ class mod_mo_standard extends ModeleNumRefMos
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -109,8 +109,8 @@ abstract class ModeleNumRefMos
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -79,8 +79,8 @@ class mod_payment_cicada extends ModeleNumRefPayments
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -63,8 +63,8 @@ abstract class ModeleNumRefPayments
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -102,8 +102,8 @@ abstract class ModeleProductCode
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -81,8 +81,8 @@ class mod_project_simple extends ModeleNumRefProjects
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -107,8 +107,8 @@ abstract class ModeleNumRefProjects
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -81,8 +81,8 @@ class mod_task_simple extends ModeleNumRefTask
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -108,8 +108,8 @@ abstract class ModeleNumRefTask
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -81,8 +81,8 @@ class mod_propale_marbre extends ModeleNumRefPropales
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -111,8 +111,8 @@ abstract class ModeleNumRefPropales
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -106,8 +106,8 @@ abstract class ModeleThirdPartyCode
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/
@ -299,8 +299,8 @@ abstract class ModeleAccountancyCode
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -91,8 +91,8 @@ class mod_commande_fournisseur_muguet extends ModeleNumRefSuppliersOrders
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -79,8 +79,8 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -98,8 +98,8 @@ abstract class ModeleNumRefSupplierPayments
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -81,8 +81,8 @@ class mod_supplier_proposal_marbre extends ModeleNumRefSupplierProposal
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -111,8 +111,8 @@ abstract class ModeleNumRefSupplierProposal
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -76,8 +76,8 @@ abstract class ModeleNumRefTakepos
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -77,8 +77,8 @@ class mod_ticket_simple extends ModeleNumRefTicket
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -69,8 +69,8 @@ abstract class ModeleNumRefTicket
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
*/

View File

@ -73,12 +73,13 @@ class mod_myobject_standard extends ModeleNumRefMyObject
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
* @param Object $object Object we need next value for
* @return boolean false if conflict, true if ok
*/
public function canBeActivated()
public function canBeActivated($object)
{
global $conf, $langs, $db;

View File

@ -108,12 +108,13 @@ abstract class ModeleNumRefMyObject
}
/**
* Checks if the numbers already in force in the data base do not
* cause conflicts that would prevent this numbering from working.
* Checks if the numbers already in the database do not
* cause conflicts that would prevent this numbering working.
*
* @return boolean false if conflict, true if ok
* @param Object $object Object we need next value for
* @return boolean false if conflict, true if ok
*/
public function canBeActivated()
public function canBeActivated($object)
{
return true;
}