Fix database error: remove non-existent date_submitted column
- Remove date_submitted references from updateDeclarationStatus() - Remove date_submitted references from resetDeclarationStatus() - Fixes 'Unknown column date_submitted' database error
This commit is contained in:
parent
1aa471e85e
commit
308ec34a4a
@ -1329,8 +1329,7 @@ class DeclarationTVA
|
||||
public function resetDeclarationStatus($declaration_id)
|
||||
{
|
||||
$sql = "UPDATE " . MAIN_DB_PREFIX . "declarationtva_declarations
|
||||
SET status = 'validated',
|
||||
date_submitted = NULL
|
||||
SET status = 'validated'
|
||||
WHERE rowid = " . (int)$declaration_id . " AND entity = " . $this->entity;
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
@ -1352,8 +1351,7 @@ class DeclarationTVA
|
||||
private function updateDeclarationStatus($declaration_id, $status)
|
||||
{
|
||||
$sql = "UPDATE " . MAIN_DB_PREFIX . "declarationtva_declarations
|
||||
SET status = '" . $this->db->escape($status) . "',
|
||||
date_submitted = NOW()
|
||||
SET status = '" . $this->db->escape($status) . "'
|
||||
WHERE rowid = " . (int)$declaration_id;
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user