PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | resources/js/pages/AdditionalServicesForm.tsx +13 -0 3.0.7 → 3.0.16 View file →
@@ -523,8 +523,21 @@
523 523 value={formData.price_per}
524 524 onChange={(e) =>
525 525 handleFieldChange("price_per", e.target.value)
526 526 }
527 + disabled={formData.price_type === "percentage"}
528 + title={
529 + formData.price_type === "percentage"
530 + ? __(
531 + "Price Per does not apply to percentage services — they are always a percentage of the whole trip price.",
532 + )
533 + : undefined
534 + }
535 + className={
536 + formData.price_type === "percentage"
537 + ? "opacity-60 cursor-not-allowed"
538 + : ""
539 + }
527 540 >
528 541 <option value="person">{__("Per Person")}</option>
529 542 <option value="booking">{__("Per Booking")}</option>
530 543 <option value="day">{__("Per Day")}</option>