Skip to content

Commit

Permalink
ARTIKEL_LAGER 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 0ddc49e commit b3bdf0a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Models/Database/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ public function additionaltext($lang = 0)
}


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

public function stocks()
{
return $this->hasMany('Bios2000\Models\Database\ArticleStocks', 'ARTNR', 'ARTNR');
}



public function stock()
Expand Down
26 changes: 26 additions & 0 deletions src/Models/Database/ArticleStocks.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 ArticleStocks extends Bios2000Master
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'ARTIKEL_LAGER';

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

public $incrementing = false;

}

0 comments on commit b3bdf0a

Please sign in to comment.