Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Kassenbeleg

Info
titleTSE Code:

### ANZEIGE TEXT###

#showFiscalSignatureRestitution($orderReceipt)


### ANZEIGE QR CODE###

#if($orderReceipt.fiscalSignatureRestitution.length() > 0)<QR>$orderReceipt.fiscalSignatureRestitution|96|CENTER<QR>#end

#macro(showFiscalSignatureRestitution $orderReceipt)
#if($orderReceipt.fiscalSignatureRestitution)
#if($orderReceipt.fiscalSignatureRestitution.length()>0)
#set($firstLineSize = 31 - $orderReceipt.fiscalSignatureRestitutionStr.length())
#display($orderReceipt.fiscalSignatureRestitutionStr, $orderReceipt.fiscalSignatureRestitutionStr.length() ,'LEFT') #display($orderReceipt.fiscalSignatureRestitution, $firstLineSize, 'LEFT')
#set($endRange = $orderReceipt.fiscalSignatureRestitution.length() / 32)
#set($range = [0..$endRange])
#set($startIndex = $firstLineSize)
#set($endIndex = $firstLineSize + 32)
#foreach($i in $range)
#if($startIndex <= $orderReceipt.fiscalSignatureRestitution.length())
#if($endIndex <= $orderReceipt.fiscalSignatureRestitution.length())

#display($orderReceipt.fiscalSignatureRestitution.substring($startIndex, $endIndex), 32, 'LEFT')
#else

#display($orderReceipt.fiscalSignatureRestitution.substring($startIndex, $orderReceipt.fiscalSignatureRestitution.length()), 32, 'LEFT')
#end
#end
#set($startIndex = $startIndex + 32)
#set($endIndex = $endIndex + 32)
#end
#end
#end
#end

...