Translate entities
This commit is contained in:
parent
49eb2b63df
commit
9e7375a127
2 changed files with 9 additions and 0 deletions
|
|
@ -204,4 +204,9 @@ class BaseModel extends Model
|
|||
return $formatted_number;
|
||||
}
|
||||
|
||||
public function translate_entity()
|
||||
{
|
||||
return ctrans('texts.item');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -271,4 +271,8 @@ class PurchaseOrder extends BaseModel
|
|||
return $purchase_order_calc->build();
|
||||
}
|
||||
|
||||
public function translate_entity()
|
||||
{
|
||||
return ctrans('texts.purchase_order');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue