add udaddrtype so that you can create donation codes
This commit is contained in:
@@ -60,7 +60,7 @@ func qrchFromRequest(r *http.Request) *qrbill.QRCH {
|
|||||||
Ccy: "CHF",
|
Ccy: "CHF",
|
||||||
},
|
},
|
||||||
UltmtDbtr: qrbill.Address{
|
UltmtDbtr: qrbill.Address{
|
||||||
AdrTp: qrbill.AddressTypeCombined,
|
AdrTp: qrbill.AddressType(ifEmpty(r.Form, "udaddrtype", qrbill.AddressTypeCombined)),
|
||||||
Name: ifEmpty(r.Form, "udname", "Michael Stapelberg"),
|
Name: ifEmpty(r.Form, "udname", "Michael Stapelberg"),
|
||||||
StrtNmOrAdrLine1: ifEmpty(r.Form, "udaddr1", "Stauffacherstr 42"),
|
StrtNmOrAdrLine1: ifEmpty(r.Form, "udaddr1", "Stauffacherstr 42"),
|
||||||
BldgNbOrAdrLine2: ifEmpty(r.Form, "udaddr2", "8004 Zürich"),
|
BldgNbOrAdrLine2: ifEmpty(r.Form, "udaddr2", "8004 Zürich"),
|
||||||
|
|||||||
@@ -136,6 +136,11 @@ th { text-align: left; }
|
|||||||
<td>{{ .Message }}</td>
|
<td>{{ .Message }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>&udaddrtype=</td>
|
||||||
|
<td>{{ .Udaddrtype }}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -160,6 +165,7 @@ func debugHTML(w http.ResponseWriter, r *http.Request, prefix string, qrch *qrbi
|
|||||||
Udpost string
|
Udpost string
|
||||||
Udcity string
|
Udcity string
|
||||||
Udcountry string
|
Udcountry string
|
||||||
|
Udaddrtype string
|
||||||
|
|
||||||
Message string
|
Message string
|
||||||
|
|
||||||
@@ -180,6 +186,7 @@ func debugHTML(w http.ResponseWriter, r *http.Request, prefix string, qrch *qrbi
|
|||||||
Udpost: r.FormValue("udpost"),
|
Udpost: r.FormValue("udpost"),
|
||||||
Udcity: r.FormValue("udcity"),
|
Udcity: r.FormValue("udcity"),
|
||||||
Udcountry: r.FormValue("udcountry"),
|
Udcountry: r.FormValue("udcountry"),
|
||||||
|
Udaddrtype: r.FormValue("udaddrtype"),
|
||||||
|
|
||||||
Message: r.FormValue("message"),
|
Message: r.FormValue("message"),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user