#invoice number in a field

3 messages · Page 1 of 1 (latest)

foggy parcel
#

Hi everyone, I'm new in filament, i want to ask how to create invoice/ sales order number filed bases on squence :
PMP/month/year/number_invoice
And it's automatically increment
Like the photo

Best regard

molten oasisBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

cold creek
#

Do you need to display it before you create it?

  • In this case use default with Closure and get the data/logic from db.

Otherwise use the mutateFormDataBeforeCreate hook