More than one invoice simultaneously.
On the Create Invoices page I need to allow creating more than one invoice for the same customer simultaneously. So in the $form of InvoiceResource.php I placed a select to select the customer, another select to select the customer's user and then the Repeater to create the invoices with the due and amount fields. Inside the repeater I placed another simple Repeater which is the invoice items.
So it looks like this:
invoices table: client_id, user_id, amount, due, status
invoice_items table: invoice_id, item.
What's the best way to make this work?
Note, I wanted to use the simple Repeater but with 2 fields, but I saw that it is not possible. If I can remove all the Repeater functions to make it similar to simple, please explain how.
Solution:Jump to solution
GitHub
Repeater can get messy, suggestion for enhancements · filamentphp f...
When utilizing the Repeater component for organizing order items within an order structure, managing a large number of order lines can be challenging, impacting the overall order overview. I've...
2 Replies
#awcodes-table-repeater
Solution
GitHub
Repeater can get messy, suggestion for enhancements · filamentphp f...
When utilizing the Repeater component for organizing order items within an order structure, managing a large number of order lines can be challenging, impacting the overall order overview. I've...