diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index 9a57afb880..19c2cd29ab 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.110.35 +0.1.110.36 diff --git a/backend/internal/service/payment_config_plans.go b/backend/internal/service/payment_config_plans.go index ca8b32d270..8783ba7751 100644 --- a/backend/internal/service/payment_config_plans.go +++ b/backend/internal/service/payment_config_plans.go @@ -19,8 +19,8 @@ func validatePlanRequired(name string, groupID int64, price float64, validityDay if groupID <= 0 { return infraerrors.BadRequest("PLAN_GROUP_REQUIRED", "group is required") } - if price < 0 { - return infraerrors.BadRequest("PLAN_PRICE_INVALID", "price must be >= 0") + if price <= 0 { + return infraerrors.BadRequest("PLAN_PRICE_INVALID", "price must be > 0") } if validityDays <= 0 { return infraerrors.BadRequest("PLAN_VALIDITY_REQUIRED", "validity days must be > 0") diff --git a/frontend/src/views/admin/orders/AdminPaymentPlansView.vue b/frontend/src/views/admin/orders/AdminPaymentPlansView.vue index fc7bff44aa..95311d70ae 100644 --- a/frontend/src/views/admin/orders/AdminPaymentPlansView.vue +++ b/frontend/src/views/admin/orders/AdminPaymentPlansView.vue @@ -103,7 +103,7 @@
-
+