diff --git a/upgrade/data/db_schema.json b/upgrade/data/db_schema.json
index 398095db..b4aa467d 100644
--- a/upgrade/data/db_schema.json
+++ b/upgrade/data/db_schema.json
@@ -84176,6 +84176,17 @@
"Extra": "",
"Privileges": "select,insert,update,references",
"Comment": ""
+ },
+ {
+ "Field": "erechnung",
+ "Type": "int(1)",
+ "Collation": null,
+ "Null": "YES",
+ "Key": "",
+ "Default": "0",
+ "Extra": "",
+ "Privileges": "select,insert,update,references",
+ "Comment": ""
}
],
"keys": [
@@ -86206,17 +86217,6 @@
"Extra": "",
"Privileges": "select,insert,update,references",
"Comment": ""
- },
- {
- "Field": "erechnung",
- "Type": "int(1)",
- "Collation": null,
- "Null": "YES",
- "Key": "",
- "Default": "0",
- "Extra": "",
- "Privileges": "select,insert,update,references",
- "Comment": ""
}
],
"keys": [
diff --git a/www/pages/rechnung.php b/www/pages/rechnung.php
index b143eba8..dd9d9a3b 100644
--- a/www/pages/rechnung.php
+++ b/www/pages/rechnung.php
@@ -417,7 +417,7 @@ class Rechnung extends GenRechnung
{
if($id > 0){
$rechnungarr = $this->app->DB->SelectRow(
- "SELECT status,zahlungsstatus FROM rechnung WHERE id='$id' LIMIT 1"
+ "SELECT status,zahlungsstatus,erechnung,belegnr FROM rechnung WHERE id='$id' LIMIT 1"
);
}
$status = '';
@@ -548,11 +548,20 @@ class Rechnung extends GenRechnung
";
- $menu .= "
-
-
-
-