Updated WarehouseOrder and WarehouseOrderRequest

This commit is contained in:
Luca Haid
2025-03-06 10:29:48 +01:00
parent 9ce1c2a4fe
commit a4df764a49
21 changed files with 1236 additions and 721 deletions
@@ -50,6 +50,14 @@ class mfUpload_TmpFile {
public function move_upload($path) {
if($path && $this->tmp_name) {
// check if all directories exist needed for the path
$dir = dirname($path);
if(!is_dir($dir)) {
if(!mkdir($dir, 0777, true)) {
$this->errormessage = "Cannot create directory $dir.";
return false;
}
}
if(move_uploaded_file($this->tmp_name, $path)) {
return true;
} else {