PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.17
Yatra – Travel Booking & Tour Operator Software v3.0.17
3.0.17 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 All 85 releases
← All changes | resources/js/pages/PaymentForm.tsx +11 -8 3.0.13 → 3.0.17 View file →
@@ -29,9 +29,9 @@
29 29 interface PaymentFormData {
30 30 booking_id: string;
31 31 amount: string;
32 32 payment_method: string;
33 - payment_status: "pending" | "completed" | "failed" | "refunded" | "partial";
33 + payment_status: "pending" | "completed" | "failed" | "refunded";
34 34 payment_date: string;
35 35 transaction_id: string;
36 36 notes: string;
37 37 }
@@ -42,9 +42,12 @@
42 42 const [formData, setFormData] = useState<PaymentFormData>({
43 43 booking_id: "",
44 44 amount: "",
45 45 payment_method: "Credit Card",
46 - payment_status: "pending",
46 + // A payment recorded by hand is money already received. Only completed
47 + // payments count towards the booking's paid amount / balance and trigger
48 + // the "payment received" emails and events, so that is the default.
49 + payment_status: "completed",
47 50 payment_date: todayYmd(),
48 51 transaction_id: "",
49 52 notes: "",
50 53 });
@@ -513,24 +516,24 @@
513 516 e.target.value as PaymentFormData["payment_status"],
514 517 )
515 518 }
516 519 >
517 - <option value="pending">{__("Pending", "yatra")}</option>
518 520 <option value="completed">
519 521 {__("Completed", "yatra")}
520 522 </option>
521 - <option value="partial">{__("Partial", "yatra")}</option>
523 + <option value="pending">{__("Pending", "yatra")}</option>
522 524 <option value="failed">{__("Failed", "yatra")}</option>
523 525 <option value="refunded">{__("Refunded", "yatra")}</option>
524 526 </Select>
525 527 <p className="text-xs text-gray-500 dark:text-gray-400">
526 528 {formData.payment_status === "completed" &&
527 - __("Payment has been successfully processed.", "yatra")}
529 + __(
530 + "Money received. Counts towards the booking's paid amount and remaining balance, and sends the payment-received emails (partial or full, depending on what is still due).",
531 + "yatra",
532 + )}
528 533 {formData.payment_status === "pending" &&
529 - __("Payment is pending confirmation.", "yatra")}
530 - {formData.payment_status === "partial" &&
531 534 __(
532 - "Partial payment recorded. Balance may be pending.",
535 + "Expected but not received yet. Does not change the booking's balance and sends nothing — mark it Completed when the money arrives.",
533 536 "yatra",
534 537 )}
535 538 {formData.payment_status === "failed" &&
536 539 __(