Skip to content

Commit

Permalink
Added Relationshop between production order position and article
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Krämer committed Jun 1, 2019
1 parent a37ebda commit b1e4935
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Models/Database/ProductionOrderPositions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ public function head()
->where('NUMMER', $this->NUMMER)->where('AUFTRAG_POSITION', $this->AUFTRAG_POSITION);
}

public function article()
{
if($this->ART == 'L')
return $this->hasOne('Bios2000\Models\Database\Article', 'ARTNR', 'ARTNR')->first();
}


}

0 comments on commit b1e4935

Please sign in to comment.