Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						af587b0ac1
	
				 | 
					
					
						|||
| 
						
						
							
						
						50e3eff294
	
				 | 
					
					
						|||
| 
						
						
							
						
						bc17f7256b
	
				 | 
					
					
						|||
| 
						
						
							
						
						d2f3eea8a5
	
				 | 
					
					
						
@@ -38,17 +38,17 @@ func idToEan13(id string, prefix string) (string, error) {
 | 
			
		||||
func (t *DefaultTemplater) GenerateEPC(iban string, bic string, name string, title string, amount int, currency string) (string, error) {
 | 
			
		||||
	var err error
 | 
			
		||||
 | 
			
		||||
	code := fmt.Sprintf(`
 | 
			
		||||
BCD
 | 
			
		||||
	code := fmt.Sprintf(`BCD
 | 
			
		||||
002
 | 
			
		||||
1
 | 
			
		||||
SCT
 | 
			
		||||
INST
 | 
			
		||||
%s
 | 
			
		||||
%s
 | 
			
		||||
%s
 | 
			
		||||
%s%.2f
 | 
			
		||||
 | 
			
		||||
%s
 | 
			
		||||
 | 
			
		||||
`, bic, name, iban, currency, float64(amount)/100, title,
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -103,13 +103,13 @@
 | 
			
		||||
                <img src="data:image/png;base64,{{ barcode .SelfServiceLink "qr" "" }}" style="height: 2.5cm; padding: 0.2cm">
 | 
			
		||||
              </td>
 | 
			
		||||
              <td style="border: none; text-align: center;">
 | 
			
		||||
                <img src="data:image/png;base64,{{ epcCode $.SepaConfig.IBAN $.SepaConfig.BIC $.SepaConfig.HolderName (print "Sponsoring für " .FirstName " " .LastName ", " .CombinedGroupName) .TotalDonations $.SepaConfig.CurrencyIdentifier}}" style="height: 2.5cm; padding: 0.2cm">
 | 
			
		||||
                <img src="data:image/png;base64,{{ epcCode $.SepaConfig.IBAN $.SepaConfig.BIC $.SepaConfig.HolderName (print "Spende LfK " .ID ", "  .FirstName " " .LastName ", " .CombinedGroupName) .TotalDonations $.SepaConfig.CurrencyIdentifier}}" style="height: 2.5cm; padding: 0.2cm">
 | 
			
		||||
              </td>
 | 
			
		||||
              </tr>
 | 
			
		||||
            </tbody>
 | 
			
		||||
            </table>
 | 
			
		||||
            <p style="width: 17cm; text-align: center;">
 | 
			
		||||
              {{ $.Footer }}
 | 
			
		||||
              Sponsoren überweisen ihre Beträge bitte auf unser Konto: {{ $.SepaConfig.HolderName }} | IBAN: {{ $.SepaConfig.IBAN }} | BIC: {{ $.SepaConfig.BIC }} | Vz: "Spende LfK {{.ID}}, {{ .FirstName }} {{ .LastName }}, {{.CombinedGroupName}}"
 | 
			
		||||
            </p>
 | 
			
		||||
    </footer>
 | 
			
		||||
  </article>
 | 
			
		||||
 
 | 
			
		||||
@@ -104,13 +104,13 @@
 | 
			
		||||
            <img src="data:image/png;base64,{{ barcode .SelfServiceLink "qr" "" }}" style="height: 2.5cm; padding: 0.2cm">
 | 
			
		||||
          </td>
 | 
			
		||||
          <td style="border: none; text-align: center;">
 | 
			
		||||
            <img src="data:image/png;base64,{{ epcCode $.SepaConfig.IBAN $.SepaConfig.BIC $.SepaConfig.HolderName (print "Sponsoring for " .FirstName " " .LastName ", " .CombinedGroupName) .TotalDonations $.SepaConfig.CurrencyIdentifier}}" style="height: 2.5cm; padding: 0.2cm">
 | 
			
		||||
            <img src="data:image/png;base64,{{ epcCode $.SepaConfig.IBAN $.SepaConfig.BIC $.SepaConfig.HolderName (print "Spende LfK " .ID ", "  .FirstName " " .LastName ", " .CombinedGroupName) .TotalDonations $.SepaConfig.CurrencyIdentifier}}" style="height: 2.5cm; padding: 0.2cm">
 | 
			
		||||
          </td>
 | 
			
		||||
          </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
        </table>
 | 
			
		||||
      <p style="width: 17cm; text-align: center;">
 | 
			
		||||
        {{ $.Footer }}
 | 
			
		||||
        Donors, please transfer your donation to our account: {{ $.SepaConfig.HolderName }} | IBAN: {{ $.SepaConfig.IBAN }} | BIC: {{ $.SepaConfig.BIC }} | Ref: "Spende LfK {{.ID}}, {{ .FirstName }} {{ .LastName }}, {{.CombinedGroupName}}"
 | 
			
		||||
      </p>
 | 
			
		||||
    </footer>
 | 
			
		||||
  </article>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user