Update facture.class.php

This commit is contained in:
Laurent Destailleur 2019-09-30 18:25:03 +02:00 committed by GitHub
parent 564e22009d
commit 2da5a506a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2200,8 +2200,8 @@ class Facture extends CommonInvoice
$sql = 'UPDATE '.MAIN_DB_PREFIX.'facture';
$sql.= ' SET paye=0, fk_statut='.self::STATUS_VALIDATED.', close_code=null, close_note=null,';
$sql.= ' date_closing as dateclosing,';
$sql.= ' fk_user_author, fk_user_valid, fk_user_closing';
$sql.= ' date_closing=null,';
$sql.= ' fk_user_closing=null';
$sql.= ' WHERE rowid = '.$this->id;
dol_syslog(get_class($this)."::set_unpaid", LOG_DEBUG);