Skip to content

Commit fc0c8df

Browse files
committed
product_name is now item_name
1 parent 982576e commit fc0c8df

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Modules/Products/Filament/Company/Resources/ItemResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function table(Table $table): Table
110110
->columns([
111111
Tables\Columns\TextColumn::make('category.category_name')->searchable()->sortable()->toggleable(),
112112
Tables\Columns\TextColumn::make('item_sku')->searchable()->sortable()->toggleable(),
113-
Tables\Columns\TextColumn::make('product_name')->searchable()->sortable()->toggleable(),
113+
Tables\Columns\TextColumn::make('item_name')->searchable()->sortable()->toggleable(),
114114
Tables\Columns\TextColumn::make('item_type')->formatStateUsing(fn ($state) => ItemType::tryFrom($state)?->label())->searchable()->sortable()->toggleable(),
115115
Tables\Columns\TextColumn::make('item_price')->searchable()->sortable()->toggleable(),
116116
Tables\Columns\TextColumn::make('taxRate.tax_rate_name')->searchable()->sortable()->toggleable(),
@@ -126,7 +126,7 @@ public static function table(Table $table): Table
126126
Tables\Actions\DeleteBulkAction::make(),
127127
]),
128128
])
129-
->defaultSort('product_name', 'asc');
129+
->defaultSort('item_name', 'asc');
130130
}
131131

132132
/**

Modules/Products/Http/Requests/API/ProductAPIRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function rules(): array
4545
$this->isMethod('post') ? 'required' : 'sometimes',
4646
'string',
4747
],
48-
'product_name' => [
48+
'item_name' => [
4949
$this->isMethod('post') ? 'required' : 'sometimes',
5050
'string',
5151
],

Modules/Products/Http/Requests/ProductRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function rules(): array
3636
$this->isMethod('post') ? 'required' : 'sometimes',
3737
'string',
3838
],
39-
'product_name' => [
39+
'item_name' => [
4040
$this->isMethod('post') ? 'required' : 'sometimes',
4141
'string',
4242
],

Modules/Products/Models/Product.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Product extends Model
2222
'product_unit.name',
2323
'tax_rate.tax_rate_name',
2424
'product_sku',
25-
'product_name',
25+
'item_name',
2626
'product_price',
2727
];
2828

@@ -31,15 +31,15 @@ class Product extends Model
3131
'product_unit.unit_name',
3232
'tax_rate.tax_rate_name',
3333
'product_sku',
34-
'product_name',
34+
'item_name',
3535
'product_price',
3636
];
3737

3838
protected $primaryKey = 'product_id';
3939

4040
protected $fillable = [
4141
'product_sku',
42-
'product_name',
42+
'item_name',
4343
'product_description',
4444
'product_price',
4545
'purchase_price',

resources/lang/en/crud.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
'label' => 'Product sku',
262262
'placeholder' => 'Product sku',
263263
],
264-
'product_name' => [
264+
'item_name' => [
265265
'label' => 'Product name',
266266
'placeholder' => 'Product name',
267267
],

resources/lang/en/ip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
'product' => 'Product',
412412
'product_description' => 'Product description',
413413
'product_families' => 'Product Families',
414-
'product_name' => 'Product name',
414+
'item_name' => 'Product name',
415415
'product_price' => 'Price',
416416
'product_sku' => 'SKU',
417417
'product_tariff' => 'Tariff',

0 commit comments

Comments
 (0)