Eskie
Eskie
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
i tried filtering it by type but it seems that the count isn't the same.. ill make a video of these issues in export
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
i only store 2 decimals
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
i tried but the more i look it up the more it messes up.. maybe i will send a vid
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
yea but just like what ive said.. if i export them partially, it works...
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
i am using float for the amount
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
not sure because i checked manually the csv like.. example.. I exported two files(one partially exported based on type. ex: Subscription Bonus) and the other one is the whole record... inside the file with the whole record, i removed those data that isn't Subscription Bonus Type and compare to the exported.. counts are same but total amount isn't
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
hope you will investigate this matter.. thank you
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
No description
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
No description
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
it didn't work.. here is my exporter
class EarningExporter extends Exporter
{
protected static ?string $model = Earning::class;

public static function getColumns(): array
{
return [
ExportColumn::make('id')
->label('ID'),
ExportColumn::make('user_id'),
ExportColumn::make('user.full_name'),
ExportColumn::make('earningCutOff.name'),
ExportColumn::make('earnable_id'),
ExportColumn::make('earnable.full_name')
->label('Reference'),
ExportColumn::make('reference_package_name'),
ExportColumn::make('amount'),
ExportColumn::make('type')
->getStateUsing(fn ($record) => $record->type->getLabel()),
ExportColumn::make('points'),
ExportColumn::make('status')
->getStateUsing(fn ($record) => $record->status->getLabel()),
ExportColumn::make('level'),
ExportColumn::make('earned_at'),
ExportColumn::make('created_at'),
ExportColumn::make('updated_at'),
];
}
class EarningExporter extends Exporter
{
protected static ?string $model = Earning::class;

public static function getColumns(): array
{
return [
ExportColumn::make('id')
->label('ID'),
ExportColumn::make('user_id'),
ExportColumn::make('user.full_name'),
ExportColumn::make('earningCutOff.name'),
ExportColumn::make('earnable_id'),
ExportColumn::make('earnable.full_name')
->label('Reference'),
ExportColumn::make('reference_package_name'),
ExportColumn::make('amount'),
ExportColumn::make('type')
->getStateUsing(fn ($record) => $record->type->getLabel()),
ExportColumn::make('points'),
ExportColumn::make('status')
->getStateUsing(fn ($record) => $record->status->getLabel()),
ExportColumn::make('level'),
ExportColumn::make('earned_at'),
ExportColumn::make('created_at'),
ExportColumn::make('updated_at'),
];
}
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
thanks for the advice.. ill take that
28 replies
FFilament
Created by Eskie on 11/21/2024 in #❓┊help
Filamentphp Export Data Integrity
i am currently using v3.2.40
28 replies
FFilament
Created by Eskie on 11/6/2024 in #❓┊help
Missing Data on the Table
okay.. ill check it later
7 replies
FFilament
Created by Eskie on 11/6/2024 in #❓┊help
Missing Data on the Table
i dont have any filters except for searchable and by default it sorted by latest..
7 replies