diff --git a/app/Models/Product.php b/app/Models/Product.php index 5e6475b..3959f94 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -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; } diff --git a/resources/views/theme/backend/adminlte/product/report.blade.php b/resources/views/theme/backend/adminlte/product/report.blade.php index 96367ef..89f637a 100644 --- a/resources/views/theme/backend/adminlte/product/report.blade.php +++ b/resources/views/theme/backend/adminlte/product/report.blade.php @@ -22,6 +22,7 @@
ID | @@ -24,7 +24,7 @@{{ $oo->sid }} | {{ $oo->product->category_name }} | {{ $oo->name_short }} | -{{ $oo->product->name_short }} | +{{ $oo->product->name }} | {{ $oo->external_billing ? '-' : $oo->invoice_next->format('Y-m-d') }} |
---|---|---|---|---|---|---|
{{ $po->lid }} | -{{ $po->name_short }} | +{{ $po->pid }} | {{ $po->name }} | {{ $po->active ? 'YES' : 'NO' }} | {{ $po->billing_interval_string }} | diff --git a/resources/views/theme/frontend/metronic/order/widget/info/base.blade.php b/resources/views/theme/frontend/metronic/order/widget/info/base.blade.php index e0f54d9..29a78e3 100644 --- a/resources/views/theme/frontend/metronic/order/widget/info/base.blade.php +++ b/resources/views/theme/frontend/metronic/order/widget/info/base.blade.php @@ -1,6 +1,6 @@