Diverse wijzigingen

This commit is contained in:
2018-05-05 13:22:14 +02:00
parent 860c5db95a
commit b589058437
13 changed files with 105 additions and 41 deletions
+9
View File
@@ -27,4 +27,13 @@ class Vat extends BaseModel {
return $vats;
}
public static function getCurrentVat()
{
$currentVat = Vat::whereActive('T')->whereArchive('F')->first();
if( ! $currentVat) return 0;
return $currentVat->vatrate;
}
}