Initial invoice rendering

This commit is contained in:
Deon George
2018-08-01 17:09:38 +10:00
parent 1cde2a888a
commit c444e1d218
16 changed files with 500 additions and 28 deletions

View File

@@ -19,10 +19,16 @@ class Product extends Model
return $this->hasMany(Service::class);
}
public function getProductIdAttribute()
{
return sprintf('#%04s',$this->id);
}
/**
* Get the language name
*
* @param Language $lo
* @return string Product Name
*/
public function name(Language $lo)
{