diff --git a/include/src/Components/Article.php b/include/src/Components/Article.php index abd6f0acb..7585cac7b 100644 --- a/include/src/Components/Article.php +++ b/include/src/Components/Article.php @@ -22,7 +22,7 @@ abstract class Article extends Row public static function make(Document $document, Original $articolo) { - $model = parent::make($document,true); + $model = parent::make($document, true); $model->articolo()->associate($articolo); diff --git a/include/src/Components/Description.php b/include/src/Components/Description.php index c4256bba8..f9da2149c 100644 --- a/include/src/Components/Description.php +++ b/include/src/Components/Description.php @@ -53,5 +53,6 @@ abstract class Description extends Model } abstract public function parent(); + abstract public function getParentID(); } diff --git a/include/src/Components/Discount.php b/include/src/Components/Discount.php index cf795e0d9..e8c2f61d0 100644 --- a/include/src/Components/Discount.php +++ b/include/src/Components/Discount.php @@ -4,7 +4,6 @@ namespace Common\Components; use Illuminate\Database\Eloquent\Builder; use Common\Model; -use Common\Document; abstract class Discount extends Model { diff --git a/include/src/Components/Row.php b/include/src/Components/Row.php index e31ee78f6..6130624c4 100644 --- a/include/src/Components/Row.php +++ b/include/src/Components/Row.php @@ -22,7 +22,7 @@ abstract class Row extends Description public static function make(Document $document, $bypass = false) { - return parent::make($document,true); + return parent::make($document, true); } public function getSubtotaleAttribute() diff --git a/modules/interventi/src/Intervento.php b/modules/interventi/src/Intervento.php index db9c64aeb..f13695068 100644 --- a/modules/interventi/src/Intervento.php +++ b/modules/interventi/src/Intervento.php @@ -31,13 +31,13 @@ class Intervento extends Document return $this->hasMany(Riga::class, 'idintervento'); } - public function descrizioni(){ + public function descrizioni() + { return null; } - public function scontoGlobale(){ + public function scontoGlobale() + { return null; - } - }