Skip to content

Commit

Permalink
Chaotische Lagerführung hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Krämer committed Jun 10, 2019
1 parent b1e4935 commit 0ddc49e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Models/Database/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public function additionaltext($lang = 0)
return $this->hasMany('Bios2000\Models\Database\ArticleAdditionaltext', 'ARTNR', 'ARTNR')->where('SPRACHE', $lang);
}


public function chaoticWarehouse($lang = 0)
{
return $this->hasMany('Bios2000\Models\Database\ArticleChaoticWarehouse', 'ARTNR', 'ARTNR');
}



public function stock()
{
$article_stock = DB::connection($this->connection)->table('ARTIKEL_LAGER')
Expand Down
26 changes: 26 additions & 0 deletions src/Models/Database/ArticleChaoticWarehouse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Bios2000\Models\Database;

use Bios2000\Models\Bios2000Master;
use Illuminate\Support\Facades\DB;

class ArticleChaoticWarehouse extends Bios2000Master
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'CHAOT_LAGER';

/**
* Primary Key
*
* @var string
*/
protected $primaryKey = "ARTNR";

public $incrementing = false;

}

0 comments on commit 0ddc49e

Please sign in to comment.