Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-02-03 20:42:30 +01:00
parent 3798892fd3
commit 9ac2dc1a6e
3 changed files with 2 additions and 2 deletions

View File

@ -1165,6 +1165,7 @@ class Facture extends CommonInvoice
$object->id = 0; $object->id = 0;
$object->statut = self::STATUS_DRAFT; $object->statut = self::STATUS_DRAFT;
$object->status = self::STATUS_DRAFT;
// Clear fields // Clear fields
$object->date = (empty($this->date) ? dol_now() : $this->date); $object->date = (empty($this->date) ? dol_now() : $this->date);

View File

@ -534,7 +534,6 @@ if ($id > 0 || !empty($ref))
print "</table>"; print "</table>";
print "</form>"; print "</form>";
} else { } else {
print "ErrorRecordNotFound"; print "ErrorRecordNotFound";
} }

View File

@ -238,7 +238,7 @@ class FactureTest extends PHPUnit\Framework\TestCase
true, true,
array( array(
'newref','oldref','id','lines','client','thirdparty','brouillon','user_author','date_creation','date_validation','datem','date_modification', 'newref','oldref','id','lines','client','thirdparty','brouillon','user_author','date_creation','date_validation','datem','date_modification',
'ref','statut','paye','specimen','ref','actiontypecode','actionmsg2','actionmsg','mode_reglement','cond_reglement', 'ref','statut','status','paye','specimen','ref','actiontypecode','actionmsg2','actionmsg','mode_reglement','cond_reglement',
'cond_reglement_doc', 'modelpdf', 'cond_reglement_doc', 'modelpdf',
'multicurrency_total_ht','multicurrency_total_tva', 'multicurrency_total_ttc','fk_multicurrency','multicurrency_code','multicurrency_tx', 'multicurrency_total_ht','multicurrency_total_tva', 'multicurrency_total_ttc','fk_multicurrency','multicurrency_code','multicurrency_tx',
'retained_warranty' ,'retained_warranty_date_limit', 'retained_warranty_fk_cond_reglement', 'specimen', 'situation_cycle_ref', 'situation_counter', 'situation_final', 'retained_warranty' ,'retained_warranty_date_limit', 'retained_warranty_fk_cond_reglement', 'specimen', 'situation_cycle_ref', 'situation_counter', 'situation_final',