Skip to content

Commit e08a6b6

Browse files
feat(visengine): add supplier management
1 parent f8f5f7b commit e08a6b6

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/classes/VisEngine.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ function setHash(string $hash){
2222
$this->hash = $hash;
2323
}
2424

25+
function getDatiFornitore($email){
26+
$data = $this->connect("fornitori/$email", "GET", []);
27+
return $data;
28+
}
29+
30+
function getFornitori(){
31+
$data = $this->connect("fornitori", "GET", []);
32+
return $data;
33+
34+
}
35+
2536
function getFormTool(){
2637
if($this->hash == NULL){
2738
throw new \OpenApi\classes\exception\OpenApiVisEngineException("Visengine hash is not setted",40005);

src/classes/utility/VisEngine/VisRequest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@ function __construct($visura)
2222
$this->ricerche = [];
2323
$this->document = NULL;
2424
$this->format_errror = [];
25+
$this->fornitore = [];
2526
foreach($visura->data->json_struttura->campi as $k => $v){
2627
$this->variables[$k] = FALSE;
2728
}
2829
}
2930

31+
function setFornitore($fornitore){
32+
$this->fornitore = $fornitore;
33+
}
34+
function getFornitore(){
35+
return $this->fornitore;
36+
}
3037
function setNew(bool $new){
3138
return $this->new = $new;
3239
}

0 commit comments

Comments
 (0)