diversen
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by Pensare Software.
|
||||
* User: Theo Weijmer
|
||||
* Date: 23/01/2018
|
||||
* Time: 19:37
|
||||
*/
|
||||
|
||||
class Vat extends BaseModel {
|
||||
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany( 'Invoice' );
|
||||
}
|
||||
|
||||
public static function getVats( $archive )
|
||||
{
|
||||
if ( $archive == 'F' )
|
||||
{
|
||||
$vats = vat::whereArchive( 'F' )->get();
|
||||
}
|
||||
else
|
||||
{
|
||||
$vats = Vat::get();
|
||||
}
|
||||
|
||||
return $vats;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user