allow zero amount for expenses

This commit is contained in:
Akhil Gupta
2021-09-20 15:58:10 +05:30
parent 0e7d105e52
commit 15f6539bf7
3 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ type UpdateExpenseRequest struct {
type CreateExpenseRequest struct {
VehicleID string `form:"vehicleId" json:"vehicleId" binding:"required"`
Amount float32 `form:"amount" json:"amount" binding:"required"`
Amount float32 `form:"amount" json:"amount"`
OdoReading int `form:"odoReading" json:"odoReading"`
Comments string `form:"comments" json:"comments" `