FIX #5793 Normalise code.

This commit is contained in:
Laurent Destailleur 2016-09-28 17:56:54 +02:00
parent c110297032
commit e4f17c8763

View File

@ -440,14 +440,14 @@ class FactureRec extends CommonInvoice
/** /**
* Delete template invoice * Delete template invoice
* *
* @param int $rowid Id of invoice to delete. If empty, we delete current instance of invoice * @param User $user User that delete.
* @param int $notrigger 1=Does not execute triggers, 0= execute triggers * @param int $notrigger 1=Does not execute triggers, 0= execute triggers
* @param int $idwarehouse Id warehouse to use for stock change. * @param int $idwarehouse Id warehouse to use for stock change.
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
*/ */
function delete($rowid=0, $notrigger=0, $idwarehouse=-1) function delete($user, $notrigger=0, $idwarehouse=-1)
{ {
if (empty($rowid)) $rowid=$this->id; $rowid=$this->id;
dol_syslog(get_class($this)."::delete rowid=".$rowid, LOG_DEBUG); dol_syslog(get_class($this)."::delete rowid=".$rowid, LOG_DEBUG);