Change product name_detail, name to name, pid
This commit is contained in:
@@ -31,18 +31,17 @@ use App\Traits\{ProductDetails,SiteID};
|
||||
* Attributes for products:
|
||||
* + lid : Local ID for product (part number)
|
||||
* + sid : System ID for product (part number)
|
||||
* + category : Type of product supplied
|
||||
* + category_name : Type of product supplied (Friendly Name for display, not for internal logic)
|
||||
* + supplier : Supplier for this offering
|
||||
* + name : Brief Name for our product with name_detail
|
||||
* + name_short : Product ID for our Product (description.name => name_short)
|
||||
* + name_detail : Details of our product (description.description_short => name_detail)
|
||||
* + description : Product description (description.description_full => description_full)
|
||||
* + base_charge : Default billing amount
|
||||
* + billing_interval : Default Billing Interval
|
||||
* + billing_interval_string: Default Billing Interval in human-readable form
|
||||
* + setup_charge : Charge to setup this product
|
||||
* + base_charge : Default billing amount
|
||||
* + category : Type of product supplied
|
||||
* + category_name : Type of product supplied (Friendly Name for display, not for internal logic)
|
||||
* + description : Product description (description.description_full => description_full)
|
||||
* + min_charge : Minimum charge taking into account billing interval and setup charges
|
||||
* + name : Details of our product (description.description_short => name_detail)
|
||||
* + pid : Product ID for our Product (description.name => name_short)
|
||||
* + setup_charge : Charge to setup this product
|
||||
* + supplier : Supplier for this offering
|
||||
*
|
||||
* Attributes for product types (type - Product/*)
|
||||
* + name : Short Name for our Product
|
||||
@@ -259,16 +258,6 @@ class Product extends Model implements IDs
|
||||
* @return string
|
||||
*/
|
||||
public function getNameAttribute(): string
|
||||
{
|
||||
return $this->getNameShortAttribute().(($x=$this->getNameDetailAttribute()) ? ': '.$x : '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Our products Long Name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNameDetailAttribute(): string
|
||||
{
|
||||
return $this->translate->name_detail;
|
||||
}
|
||||
@@ -278,7 +267,7 @@ class Product extends Model implements IDs
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNameShortAttribute(): string
|
||||
public function getPIDAttribute(): string
|
||||
{
|
||||
return $this->translate->name_short;
|
||||
}
|
||||
|
Reference in New Issue
Block a user