filament/filament
latest
v3.2.115
No response
PHP 8.3
I have SalesOrderLines which is a HasMany relation. The RepeatableEntry doesn't show the data in infolist.
dd($infolist->record->SalesOrderLines()->get()); // I can confirm that there are items in it and it's not empty
public static function infolist(Infolist $infolist): Infolist
{
// dd($infolist->record->SalesOrderLines()->get());
return $infolist
->schema([
...self::getSalesOrderInfoListSchema($infolist),
\Filament\Infolists\Components\RepeatableEntry::make('SalesOrderLines')
->columns(5)
->schema([
Infolists\Components\TextEntry::make('ItemCode')
->label(__('panel.itemcode'))
->inlineLabel(),
Infolists\Components\TextEntry::make('ItemDescription')
->label(__('panel.itemdescription'))
->inlineLabel(),
Infolists\Components\TextEntry::make('Quantity')
->label(__('panel.quantity'))
->inlineLabel(),
Infolists\Components\TextEntry::make('AmountDC')
->label(__('panel.amountdc'))
->inlineLabel(),
Infolists\Components\TextEntry::make('AmountFC')
->label(__('panel.amountfc'))
->inlineLabel(),
]),
]);
}
Show all related data
public function SalesOrderLines(): HasMany
{
return $this->hasMany(SalesOrderLine::class, 'OrderID', 'OrderID');
}
https://github.com/KamranBiglari/mattech-hub3
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too