WIP Workorder AH download

This commit is contained in:
Frank Schubert
2024-11-08 12:23:07 +01:00
parent 6c0d334bbc
commit 482e1a4989
4 changed files with 111 additions and 5 deletions

View File

@@ -28,7 +28,10 @@ class RimoWorkorder extends mfBaseModel {
public function downloadAh() {
if(!$this->id) return false;
$ah = Rimoapi::getWorkorderAhReport();
$ah = Rimoapi::getWorkorderAhReport($this->rimo_id);
return $ah;
}

View File

@@ -30,7 +30,7 @@ class RimoWorkorderController extends mfBaseController {
$return = $workorder->downloadAh();
if($return === false) {
header("HTTP/1.1 500 Not Found");
echo "Fehler beim Herunterladen des AH-Blatts aus Rimo.";
echo "Fehler beim Herunterladen des AHA-Reports aus Rimo.";
exit;
}