Smart Currency
Automatically validates, parses, and formats currency input. It handles Persian text, numbers, and formatted strings (mixed).
Validation with Zod
With zToman, users can input amounts in any format, and the system normalizes it into a raw number.
schema.ts
typescript
UI Utility Functions
Tools for converting raw numbers to Persian text for receipts, and converting mixed text inputs back to raw numbers for storage.
utils.ts
typescript