Ticket Number generated after settling payment!

currently in sambapos ticket nmber is generated once ticket is close is it possible to generate the ticket number once the payment has been settled?

No, this is by design, and it it is as such so that the Ticket can be stored in the DB (with an Entity) and recalled later, before it is paid.