Update facture.class.php

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

View File

@ -2199,7 +2199,7 @@ class Facture extends CommonInvoice
$this->db->begin();
$sql = 'UPDATE '.MAIN_DB_PREFIX.'facture';
$sql.= ' SET paye=0, fk_statut='.self::STATUS_VALIDATED.', close_code=null, close_note=null';
$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.= ' WHERE rowid = '.$this->id;