#IF(#FormError) #IF(#FormError_BankAccountHolder OR #FormError_BankAccountNo OR #FormError_BankCode OR #FormError_BankName)
{FillOutForm}
#ENDIF #ENDIF
{DirectDebit}
#WITH(#LineItemContainer.Payment) #WITH_ERROR(#FormError) #LOCAL("BillingCountry", #BillingAddress.CountryID)#LOCAL("ShopCountry", #Shop.Address.CountryID) #ENDLOCAL#ENDLOCAL
{BankAccountHolder} {MandatoryStar}
#IF(NOT #DEFINED(#BillingCountry) OR NOT #DEFINED(#ShopCountry)){BankAccountNo} (IBAN) #ELSIF(#BillingCountry EQ #ShopCountry){BankAccountNo} #ELSE IBAN #ENDIF {MandatoryStar}
#IF(NOT #DEFINED(#BillingCountry) OR NOT #DEFINED(#ShopCountry)){BankCode} (SWIFT) #ELSIF(#BillingCountry EQ #ShopCountry){BankCode} #ELSE SWIFT #ENDIF #IF(#IsBankCodeMandatory) {MandatoryStar} #ENDIF
{BankName} {MandatoryStar}
#ENDWITH_ERROR #ENDWITH {MandatoryFields} #WITH(#LineItemContainer.Payment) #IF (#IsHirePurchaseAllowed AND #HirePurchaseNoOfMonths)

{HirePurchase}

{SumHirePurchase}
{NumberOfMonths} #HirePurchaseNoOfMonths {Months}
{InstallmentAmount} #HirePurchaseInstallmentAmount[money]
{InterestRateValue} #HirePurchaseInterestRateValue[float]%
{EffectiveInterestRateValue} #HirePurchaseEffectiveInterestRateValue[float]%
{GrandTotal} #HirePurchaseGrandTotal[money]

#ENDIF #ENDWITH