<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.dopracenakole.net/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2+"
          urlbase="https://bugzilla.dopracenakole.net/bugzilla/"
          
          maintainer="tomas.zigo@auto-mat.cz"
>

    <bug>
          <bug_id>72</bug_id>
          
          <creation_ts>2025-01-20 12:25:14 +0100</creation_ts>
          <short_desc>payment subject switch from company to voucher does not reset payment_status</short_desc>
          <delta_ts>2025-01-20 12:25:14 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>RTWBB frontend app</product>
          <component>Challenge registration process</component>
          <version>unspecified</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>Mac OS</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Šimon Macek">simon.macek</reporter>
          <assigned_to name="Admin">tomas.zigo</assigned_to>
          
          
          <cf_web_browser>---</cf_web_browser>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112</commentid>
    <comment_count>0</comment_count>
    <who name="Šimon Macek">simon.macek</who>
    <bug_when>2025-01-20 12:25:14 +0100</bug_when>
    <thetext>Challenge registration

- Select payment &quot;company&quot;
- Select organization, subsidiary and team to save company payment
- Refresh page and change payment type from &quot;company&quot; to &quot;voucher&quot;
- Complete the rest of the registration
- Registration cannot be completed

---

Debug:

- submitting &quot;discount_coupon&quot; field does not changed returned &quot;payment_status&quot;
- &quot;payment_status&quot; value = &quot;waiting&quot; and so the registration-completed check returns &quot;false&quot;

register-challenge GET request returns

```
&quot;discount_coupon&quot;: &quot;ZD-CZBGSD&quot;,
&quot;payment_subject&quot;: &quot;voucher&quot;,
&quot;payment_type&quot;: &quot;fc&quot;,
&quot;payment_status&quot;: &quot;waiting&quot;,
&quot;payment_amount&quot;: 390,
&quot;payment_category&quot;: &quot;entry_fee&quot;
```

---

Proposed solution:
change &quot;payment_status&quot; to done when &quot;discount_coupon&quot; with 100% discount is submitted</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>