mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-09 01:12:33 +01:00
Update don.class.php
This commit is contained in:
committed by
GitHub
parent
8fe93618cd
commit
f24ee650fc
@@ -862,7 +862,7 @@ class Don extends CommonObject
|
||||
if ($this->status != self::STATUS_CANCELED && $this->status != self::STATUS_PAID) {
|
||||
return 0;
|
||||
}
|
||||
if($this->statut == self::STATUS_PAID) {
|
||||
if ($this->statut == self::STATUS_PAID) {
|
||||
$sql = "UPDATE " . MAIN_DB_PREFIX . "don SET paid = 0 WHERE rowid = " . ((int)$this->id);
|
||||
|
||||
$resql = $this->db->query($sql);
|
||||
|
||||
Reference in New Issue
Block a user