[RM-31879]: <SPU> หาวิธีแก้ไขปัญหา ปุ่ม payment by scms

Viewed 1

Problem Summary

From Redmine:
หาวิธีแก้ไขการ pay by SCMS กรณีที่ถ้าค้นรหัส แล้วกด enter มาเลย จะไม่ขึ้น borrowernumber
แต่ถ้ากดค้นรหัส แล้วมีตัวเลือกเด้งมา เราไปกดตัวเลือกนั้น มันถึงมี borrowernumber ขึ้นมา

เผื่อไว้เป็นข้อมูลเพิ่มครับ

แสดง 2 แบบ
1 ค้นด้วยรหัสหรือชื่อ แล้วกด enter เลย (จะใช้งานไม่ได้)
2 ค้นด้วยรหัสหรือชื่อ แล้วกดเลือกจากตัวเลือก (จะใช้งานได้)

สามารถทำให้ใช้งานได้ทั้ง 2 กรณีหรือเปล่า

Root Cause Analysis

ปัญหาเกิดขึ้นเมื่อ

  1. ผู้ใช้พิมพ์รหัสสมาชิก ในช่อง Check out
  2. Koha แสดงหน้า Check out ของผู้ใช้ /cgi-bin/koha/circ/circulation.pl แต่ URL ไม่มี parameter borrowernumber
  3. ทำให้ function การทำงานของปุ่ม Payment by SCMS ไม่ทำงานหรือทำงานผิดปกติ
1 Answers

Solution / Workaround

-   "/cgi-bin/koha/svc/payment_scms?borrowernumber=" + borrowernumber,
+   "/cgi-bin/koha/svc/payment_scms?borrowernumber=" + $("#borrowernumber").val(),

Verification Steps

  1. ผู้ใช้พิมพ์รหัสสมาชิก ในช่อง Check out (ตัวอย่าง 'PD001')
  2. กดปุ่ม Payment by SCMS
  3. จะต้องแสดงหน้าจ่ายเงิน QRCode
Related