Debishree Tripathy
Debishree Tripathy
FFilament
Created by gladjanus43 on 12/15/2023 in #❓┊help
Repeater inside a relationship manager action
$table->decimal('total_amount', 10, 2)->default(0.00); basically I have this in my migration file.
16 replies
FFilament
Created by gladjanus43 on 12/15/2023 in #❓┊help
Repeater inside a relationship manager action
So I added this TextColumn::make('total_price')->getStateUsing(fn($record) => $record->products->sum('price')) Anything I need to change in migration?
16 replies
FFilament
Created by gladjanus43 on 12/15/2023 in #❓┊help
Repeater inside a relationship manager action
Sure. Okay forget about this large file, sorry about it. But I really need a help with this actually.
16 replies
FFilament
Created by gladjanus43 on 12/15/2023 in #❓┊help
Repeater inside a relationship manager action
Please check this and let me know.
16 replies
FFilament
Created by gladjanus43 on 12/15/2023 in #❓┊help
Repeater inside a relationship manager action
The products I will choose it should show the amount accordingly if its single then it should show only amount of that single product similarly if its multiple then the amount should calculate and show the total amount of multiple products. Got it?
16 replies
FFilament
Created by gladjanus43 on 12/15/2023 in #❓┊help
Repeater inside a relationship manager action
Yes exactly, suppose I am choosing a product then the price should show in the total amount which is inside order, similarly if i am choosing multiple products so the amount of all products means whatever i am choosing it should directly show the total amount of that multiple products which is inside the order. Got it I guess?
16 replies
FFilament
Created by gladjanus43 on 12/15/2023 in #❓┊help
Repeater inside a relationship manager action
Hey, sorry to bother you, I have not worked yet with repeaters. But I want to know how you are adding the logic for total amount? I mean, I have a order in where I need to show the products and the price of that product, also it can be multiple products too.
16 replies
FFilament
Created by Debishree Tripathy on 12/15/2023 in #❓┊help
Filament shield
Thankyou so much, I am trying this, I will let you know.
6 replies
FFilament
Created by Debishree Tripathy on 12/15/2023 in #❓┊help
Filament shield
I have tried that too, but I am not getting the exact solution for it.
6 replies