| 1 | /*************************************************************************** |
| 2 | begin : Sat Aug 03 2014 |
| 3 | copyright : (C) 2018 by Martin Preuss |
| 4 | email : [email protected] |
| 5 | |
| 6 | *************************************************************************** |
| 7 | * Please see toplevel file COPYING for license details * |
| 8 | ***************************************************************************/ |
| 9 | |
| 10 | |
| 11 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:410:9`! |
| 12 | # include <config.h>cxx . . $ `<file>/config.h`/ |
| 13 | #endif |
| 14 | |
| 15 | |
| 16 | #include "jobsepastandingorderget_l.h"cxx . . $ `<file>/src/libs/plugins/backends/aqhbci/ajobs/jobsepastandingorderget_l.h`/ |
| 17 | #include "aqhbci/aqhbci_l.h"cxx . . $ `<file>/src/libs/plugins/backends/aqhbci/aqhbci_l.h`/ |
| 18 | #include "accountjob_l.h"cxx . . $ `<file>/src/libs/plugins/backends/aqhbci/ajobs/accountjob_l.h`/ |
| 19 | #include "aqhbci/joblayer/job_l.h"cxx . . $ `<file>/src/libs/plugins/backends/aqhbci/joblayer/job_l.h`/ |
| 20 | #include "aqhbci/joblayer/job_swift.h"cxx . . $ `<file>/src/libs/plugins/backends/aqhbci/joblayer/job_swift.h`/ |
| 21 | #include "aqhbci/joblayer/job_crypt.h"cxx . . $ `<file>/src/libs/plugins/backends/aqhbci/joblayer/job_crypt.h`/ |
| 22 | #include "aqhbci/banking/user_l.h"cxx . . $ `<file>/src/libs/plugins/backends/aqhbci/banking/user_l.h`/ |
| 23 | |
| 24 | #include <gwenhywfar/debug.h> |
| 25 | #include <gwenhywfar/misc.h> |
| 26 | #include <gwenhywfar/inherit.h> |
| 27 | #include <gwenhywfar/dbio.h> |
| 28 | #include <gwenhywfar/gui.h> |
| 29 | #include <gwenhywfar/text.h> |
| 30 | |
| 31 | #include <assert.h> |
| 32 | |
| 33 | |
| 34 | /* ------------------------------------------------------------------------------------------------ |
| 35 | * forward declarations |
| 36 | * ------------------------------------------------------------------------------------------------ |
| 37 | */ |
| 38 | |
| 39 | static int _jobApi_Preparecxx . . $ _jobApi_Prepare(8877579543d4936f).(AH_JOBcxx . . $ AH_JOB# *j); |
| 40 | static int _jobApi_Processcxx . . $ _jobApi_Process(414909e63d8e4775).(AH_JOBcxx . . $ AH_JOB# *j, AB_IMEXPORTER_CONTEXTcxx . . $ AB_IMEXPORTER_CONTEXT# *ctx); |
| 41 | |
| 42 | static AB_TRANSACTIONcxx . . $ AB_TRANSACTION# *_readStocxx . . $ _readSto(8d9a19845d3aa7e0).(AH_JOBcxx . . $ AH_JOB# *j, const char *docType, const uint8_tcxx . . $ uint8_t# *ptr, uint32_tcxx . . $ uint32_t# len); |
| 43 | |
| 44 | static AB_TRANSACTION_PERIODcxx . . $ AB_TRANSACTION_PERIOD# _getPeriodcxx . . $ _getPeriod(884e5849d894708c).(const char *s); |
| 45 | static AB_TRANSACTIONcxx . . $ AB_TRANSACTION# *_readTransactionFromResponsecxx . . $ _readTransactionFromResponse(f9979c079b44a043).(AH_JOBcxx . . $ AH_JOB# *j, GWEN_DB_NODEcxx . . $ GWEN_DB_NODE# *dbXA); |
| 46 | |
| 47 | |
| 48 | |
| 49 | /* ------------------------------------------------------------------------------------------------ |
| 50 | * implementations |
| 51 | * ------------------------------------------------------------------------------------------------ |
| 52 | */ |
| 53 | |
| 54 | |
| 55 | |
| 56 | AH_JOBcxx . . $ AH_JOB# *AH_Job_SepaStandingOrderGet_newcxx . . $ AH_Job_SepaStandingOrderGet_new(ad607935380b3244).(AB_PROVIDERcxx . . $ AB_PROVIDER# *pro, AB_USERcxx . . $ AB_USER# *u, AB_ACCOUNTcxx . . $ AB_ACCOUNT# *account) |
| 57 | { |
| 58 | AH_JOBcxx . . $ AH_JOB# *j; |
| 59 | GWEN_DB_NODEcxx . . $ GWEN_DB_NODE# *dbArgs; |
| 60 | |
| 61 | j=AH_AccountJob_newcxx . . $ AH_AccountJob_new(9ba7d099f8096dfa).("JobSepaStandingOrderGet", pro, u, account); |
| 62 | if (!j) |
| 63 | return 0; |
| 64 | |
| 65 | AH_Job_SetSupportedCommandcxx . . $ AH_Job_SetSupportedCommand(efc0fd2fad486690).(j, AB_Transaction_CommandSepaGetStandingOrderscxx . . $ AB_Transaction_CommandSepaGetStandingOrders.); |
| 66 | |
| 67 | /* overwrite some virtual functions */ |
| 68 | AH_Job_SetPrepareFncxx . . $ AH_Job_SetPrepareFn(d05139c6e233983e).(j, _jobApi_Preparecxx . . $ _jobApi_Prepare(8877579543d4936f).); |
| 69 | AH_Job_SetProcessFncxx . . $ AH_Job_SetProcessFn(d62696ee44689eb2).(j, _jobApi_Processcxx . . $ _jobApi_Process(414909e63d8e4775).); |
| 70 | AH_Job_SetGetLimitsFncxx . . $ AH_Job_SetGetLimitsFn(5cc64246b57eb655).(j, AH_Job_GetLimits_EmptyLimitscxx . . $ AH_Job_GetLimits_EmptyLimits(6b25051f86288d28).); |
| 71 | AH_Job_SetHandleCommandFncxx . . $ AH_Job_SetHandleCommandFn(b926842ea40695db).(j, AH_Job_HandleCommand_Acceptcxx . . $ AH_Job_HandleCommand_Accept(a42801869d26d3e6).); |
| 72 | AH_Job_SetHandleResultsFncxx . . $ AH_Job_SetHandleResultsFn(d62696ee44689eb2).(j, AH_Job_HandleResults_Emptycxx . . $ AH_Job_HandleResults_Empty(414909e63d8e4775).); |
| 73 | |
| 74 | /* set some known arguments */ |
| 75 | dbArgs=AH_Job_GetArgumentscxx . . $ AH_Job_GetArguments(4e67497c2c36d80e).(j); |
| 76 | assertcxx . . $ `/usr/include/assert.h:118:11`!(dbArgs); |
| 77 | GWEN_DB_SetCharValuecxx . . $ GWEN_DB_SetCharValue(f2bb45fef3c085b5).(dbArgs, GWEN_DB_FLAGS_DEFAULTcxx . . $ `<external>/17992199524652632892/db.h:168:9`!, "allAccounts", "N"); |
| 78 | return j; |
| 79 | } |
| 80 | |
| 81 | |
| 82 | |
| 83 | int _jobApi_Preparecxx . . $ _jobApi_Prepare(8877579543d4936f).(AH_JOBcxx . . $ AH_JOB# *j) |
| 84 | { |
| 85 | GWEN_DB_NODEcxx . . $ GWEN_DB_NODE# *dbArgs; |
| 86 | AB_SWIFT_DESCR_LISTcxx . . $ AB_SWIFT_DESCR_LIST# *descrList; |
| 87 | |
| 88 | DBG_INFOcxx . . $ `<external>/1532518586372551407/debug.h:181:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "Preparing job"); |
| 89 | |
| 90 | /* get arguments DB */ |
| 91 | dbArgs=AH_Job_GetArgumentscxx . . $ AH_Job_GetArguments(4e67497c2c36d80e).(j); |
| 92 | assertcxx . . $ `/usr/include/assert.h:118:11`!(dbArgs); |
| 93 | |
| 94 | /* check for "pain.001.*" (dont use leading zeros because that would make it an octadecimal! */ |
| 95 | descrList=AH_Job_GetSwiftDescriptorsSupportedByUsercxx . . $ AH_Job_GetSwiftDescriptorsSupportedByUser(d5b72260b6351c1f).(j, "pain", 1); |
| 96 | if (descrList) { |
| 97 | AB_SWIFT_DESCRcxx . . $ AB_SWIFT_DESCR# *descr; |
| 98 | |
| 99 | descr=AB_SwiftDescr_List_Firstcxx . . $ AB_SwiftDescr_List_First(499206e6d056052e).(descrList); |
| 100 | while (descr) { |
| 101 | const char *s; |
| 102 | |
| 103 | s=AB_SwiftDescr_GetAlias2cxx . . $ AB_SwiftDescr_GetAlias2(f5ce2d4c163e6cbd).(descr); |
| 104 | DBG_ERRORcxx . . $ `<external>/1532518586372551407/debug.h:97:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "Adding supported PAIN format [%s]", s); |
| 105 | GWEN_DB_SetCharValuecxx . . $ GWEN_DB_SetCharValue(f2bb45fef3c085b5).(dbArgs, GWEN_DB_FLAGS_DEFAULTcxx . . $ `<external>/17992199524652632892/db.h:168:9`!, "SupportedSepaFormats/Format", s); |
| 106 | descr=AB_SwiftDescr_List_Nextcxx . . $ AB_SwiftDescr_List_Next(6868e9dd5dcf1fc4).(descr); |
| 107 | } |
| 108 | AB_SwiftDescr_List_freecxx . . $ AB_SwiftDescr_List_free(aa24f75221717104).(descrList); |
| 109 | } |
| 110 | else { |
| 111 | DBG_ERRORcxx . . $ `<external>/1532518586372551407/debug.h:97:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "No supported PAIN profile found, job not supported"); |
| 112 | return GWEN_ERROR_GENERICcxx . . $ `<external>/12616048237918575559/error.h:62:9`!; |
| 113 | } |
| 114 | |
| 115 | return 0; |
| 116 | } |
| 117 | |
| 118 | |
| 119 | |
| 120 | int _jobApi_Processcxx . . $ _jobApi_Process(414909e63d8e4775).(AH_JOBcxx . . $ AH_JOB# *j, AB_IMEXPORTER_CONTEXTcxx . . $ AB_IMEXPORTER_CONTEXT# *ctx) |
| 121 | { |
| 122 | const char *responseName; |
| 123 | int rv; |
| 124 | AB_ACCOUNTcxx . . $ AB_ACCOUNT# *a; |
| 125 | |
| 126 | DBG_INFOcxx . . $ `<external>/1532518586372551407/debug.h:181:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "Processing JobSepaStandingOrdersGet"); |
| 127 | |
| 128 | assertcxx . . $ `/usr/include/assert.h:118:11`!(j); |
| 129 | a=AH_AccountJob_GetAccountcxx . . $ AH_AccountJob_GetAccount(98ce7b4b58f3b77).(j); |
| 130 | assertcxx . . $ `/usr/include/assert.h:118:11`!(a); |
| 131 | |
| 132 | responseName=AH_Job_GetResponseNamecxx . . $ AH_Job_GetResponseName(8b11e7b839f85c34).(j); |
| 133 | if (responseName && *responseName) { |
| 134 | AB_IMEXPORTER_ACCOUNTINFOcxx . . $ AB_IMEXPORTER_ACCOUNTINFO# *ai; |
| 135 | GWEN_DB_NODEcxx . . $ GWEN_DB_NODE# *dbResponses; |
| 136 | GWEN_DB_NODEcxx . . $ GWEN_DB_NODE# *dbCurr; |
| 137 | |
| 138 | ai=AB_Provider_GetOrAddAccountInfoForAccountcxx . . $ AB_Provider_GetOrAddAccountInfoForAccount(474409d9ca065525).(ctx, a); |
| 139 | dbResponses=AH_Job_GetResponsescxx . . $ AH_Job_GetResponses(4e67497c2c36d80e).(j); |
| 140 | assertcxx . . $ `/usr/include/assert.h:118:11`!(dbResponses); |
| 141 | |
| 142 | /* search for "Transactions" */ |
| 143 | dbCurr=GWEN_DB_GetFirstGroupcxx . . $ GWEN_DB_GetFirstGroup(890703e1a967149).(dbResponses); |
| 144 | while (dbCurr) { |
| 145 | GWEN_DB_NODEcxx . . $ GWEN_DB_NODE# *dbXA; |
| 146 | |
| 147 | rv=AH_Job_CheckEncryptioncxx . . $ AH_Job_CheckEncryption(720bd0e1a433b03f).(j, dbCurr); |
| 148 | if (rv) { |
| 149 | DBG_INFOcxx . . $ `<external>/1532518586372551407/debug.h:181:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "Compromised security (encryption)"); |
| 150 | AH_Job_SetStatuscxx . . $ AH_Job_SetStatus(2ad397320e170054).(j, AH_JobStatusErrorcxx . . $ AH_JobStatusError.); |
| 151 | return rv; |
| 152 | } |
| 153 | rv=AH_Job_CheckSignaturecxx . . $ AH_Job_CheckSignature(720bd0e1a433b03f).(j, dbCurr); |
| 154 | if (rv) { |
| 155 | DBG_INFOcxx . . $ `<external>/1532518586372551407/debug.h:181:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "Compromised security (signature)"); |
| 156 | AH_Job_SetStatuscxx . . $ AH_Job_SetStatus(2ad397320e170054).(j, AH_JobStatusErrorcxx . . $ AH_JobStatusError.); |
| 157 | return rv; |
| 158 | } |
| 159 | |
| 160 | /* handle job specific response data */ |
| 161 | dbXA=GWEN_DB_GetGroupcxx . . $ GWEN_DB_GetGroup(7f4d8c70adb5370a).(dbCurr, GWEN_PATH_FLAGS_NAMEMUSTEXISTcxx . . $ `<external>/4605785536233125410/path.h:84:9`!, "data"); |
| 162 | if (dbXA) |
| 163 | dbXA=GWEN_DB_GetGroupcxx . . $ GWEN_DB_GetGroup(7f4d8c70adb5370a).(dbXA, GWEN_PATH_FLAGS_NAMEMUSTEXISTcxx . . $ `<external>/4605785536233125410/path.h:84:9`!, responseName); |
| 164 | if (dbXA) { |
| 165 | AB_TRANSACTIONcxx . . $ AB_TRANSACTION# *t; |
| 166 | |
| 167 | t=_readTransactionFromResponsecxx . . $ _readTransactionFromResponse(f9979c079b44a043).(j, dbXA); |
| 168 | if (t) |
| 169 | AB_ImExporterAccountInfo_AddTransactioncxx . . $ AB_ImExporterAccountInfo_AddTransaction(5761487086e6f12).(ai, t); |
| 170 | } /* if dbXA */ |
| 171 | |
| 172 | dbCurr=GWEN_DB_GetNextGroupcxx . . $ GWEN_DB_GetNextGroup(890703e1a967149).(dbCurr); |
| 173 | } /* while dbCurr */ |
| 174 | } |
| 175 | |
| 176 | return 0; |
| 177 | } |
| 178 | |
| 179 | |
| 180 | |
| 181 | AB_TRANSACTIONcxx . . $ AB_TRANSACTION# *_readTransactionFromResponsecxx . . $ _readTransactionFromResponse(f9979c079b44a043).(AH_JOBcxx . . $ AH_JOB# *j, GWEN_DB_NODEcxx . . $ GWEN_DB_NODE# *dbXA) |
| 182 | { |
| 183 | const char *fiId; |
| 184 | const void *p; |
| 185 | unsigned int bs; |
| 186 | |
| 187 | fiId=GWEN_DB_GetCharValuecxx . . $ GWEN_DB_GetCharValue(a0be5f6fbdef7a0).(dbXA, "fiId", 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 188 | |
| 189 | p=GWEN_DB_GetBinValuecxx . . $ GWEN_DB_GetBinValue(db7f039850e73b5d).(dbXA, "transfer", 0, 0, 0, &bs); |
| 190 | if (p && bs) { |
| 191 | AB_TRANSACTIONcxx . . $ AB_TRANSACTION# *t; |
| 192 | |
| 193 | t=_readStocxx . . $ _readSto(8d9a19845d3aa7e0).(j, "sepa", p, bs); /* use generic profile "sepa" */ |
| 194 | if (t) { |
| 195 | const char *s; |
| 196 | |
| 197 | AB_Transaction_SetFiIdcxx . . $ AB_Transaction_SetFiId(91f1cd38a9249c9f).(t, fiId); |
| 198 | |
| 199 | s=GWEN_DB_GetCharValuecxx . . $ GWEN_DB_GetCharValue(a0be5f6fbdef7a0).(dbXA, "xfirstExecutionDate", 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 200 | if (s && *s) { |
| 201 | GWEN_DATEcxx . . $ GWEN_DATE# *dt; |
| 202 | |
| 203 | dt=GWEN_Date_fromStringWithTemplatecxx . . $ GWEN_Date_fromStringWithTemplate(91d93c88f805b72e).(s, "YYYYMMDD"); |
| 204 | if (dt) { |
| 205 | AB_Transaction_SetFirstDatecxx . . $ AB_Transaction_SetFirstDate(f6c98d3a12dcb62a).(t, dt); |
| 206 | GWEN_Date_freecxx . . $ GWEN_Date_free(f85f28d9f84876f4).(dt); |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | s=GWEN_DB_GetCharValuecxx . . $ GWEN_DB_GetCharValue(a0be5f6fbdef7a0).(dbXA, "xperiod", 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 211 | AB_Transaction_SetPeriodcxx . . $ AB_Transaction_SetPeriod(1b4f68850d07375d).(t, _getPeriodcxx . . $ _getPeriod(884e5849d894708c).(s)); |
| 212 | |
| 213 | AB_Transaction_SetCyclecxx . . $ AB_Transaction_SetCycle(5034db9829ee73d2).(t, GWEN_DB_GetIntValuecxx . . $ GWEN_DB_GetIntValue(4a63da92143b82f3).(dbXA, "cycle", 0, 0)); |
| 214 | AB_Transaction_SetExecutionDaycxx . . $ AB_Transaction_SetExecutionDay(5034db9829ee73d2).(t, GWEN_DB_GetIntValuecxx . . $ GWEN_DB_GetIntValue(4a63da92143b82f3).(dbXA, "executionDay", 0, 0)); |
| 215 | |
| 216 | /* done */ |
| 217 | return t; |
| 218 | } /* if t */ |
| 219 | else { |
| 220 | DBG_WARNcxx . . $ `<external>/1532518586372551407/debug.h:125:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "Error reading standing order from data, ignoring"); |
| 221 | } |
| 222 | } /* if transaction bindata */ |
| 223 | |
| 224 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 225 | } |
| 226 | |
| 227 | |
| 228 | |
| 229 | AB_TRANSACTIONcxx . . $ AB_TRANSACTION# *_readStocxx . . $ _readSto(8d9a19845d3aa7e0).(AH_JOBcxx . . $ AH_JOB# *j, const char *docType, const uint8_tcxx . . $ uint8_t# *ptr, uint32_tcxx . . $ uint32_t# len) |
| 230 | { |
| 231 | AB_PROVIDERcxx . . $ AB_PROVIDER# *pro; |
| 232 | AB_IMEXPORTER_CONTEXTcxx . . $ AB_IMEXPORTER_CONTEXT# *tempContext; |
| 233 | AB_IMEXPORTER_ACCOUNTINFOcxx . . $ AB_IMEXPORTER_ACCOUNTINFO# *tempAccountInfo; |
| 234 | int rv; |
| 235 | |
| 236 | assertcxx . . $ `/usr/include/assert.h:118:11`!(j); |
| 237 | pro=AH_Job_GetProvidercxx . . $ AH_Job_GetProvider(82cdda6202e1fe85).(j); |
| 238 | assertcxx . . $ `/usr/include/assert.h:118:11`!(pro); |
| 239 | |
| 240 | /* import data into a temporary context */ |
| 241 | tempContext=AB_ImExporterContext_newcxx . . $ AB_ImExporterContext_new(d6a6e497bfd0162c).(); |
| 242 | |
| 243 | rv=AB_Banking_ImportFromBufferLoadProfilecxx . . $ AB_Banking_ImportFromBufferLoadProfile(e68e65dfadde34ae).(AB_Provider_GetBankingcxx . . $ AB_Provider_GetBanking(7396034f1d2158b2).(pro), |
| 244 | "xml", |
| 245 | tempContext, |
| 246 | docType, |
| 247 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 248 | ptr, |
| 249 | len); |
| 250 | if (rv<0) { |
| 251 | DBG_INFOcxx . . $ `<external>/1532518586372551407/debug.h:181:10`!(AQHBCI_LOGDOMAINcxx . . $ `src/libs/plugins/backends/aqhbci/aqhbci.h:61:9`!, "here (%d)", rv); |
| 252 | AB_ImExporterContext_freecxx . . $ AB_ImExporterContext_free(47aa7f70138e3298).(tempContext); |
| 253 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 254 | } |
| 255 | |
| 256 | |
| 257 | /* return first transaction from temporary context (only contains ONE transaction) */ |
| 258 | tempAccountInfo=AB_ImExporterContext_GetFirstAccountInfocxx . . $ AB_ImExporterContext_GetFirstAccountInfo(cdc0ef2bfce5f1f0).(tempContext); |
| 259 | if (tempAccountInfo) { |
| 260 | AB_TRANSACTIONcxx . . $ AB_TRANSACTION# *t; |
| 261 | |
| 262 | t=AB_ImExporterAccountInfo_GetFirstTransactioncxx . . $ AB_ImExporterAccountInfo_GetFirstTransaction(ad04937c27e01fd6).(tempAccountInfo, 0, 0); |
| 263 | if (t) { |
| 264 | AB_Transaction_List_Delcxx . . $ AB_Transaction_List_Del(c022cb2af0b0ce4).(t); |
| 265 | AB_Transaction_SetTypecxx . . $ AB_Transaction_SetType(218f378a21cf6ee0).(t, AB_Transaction_TypeStandingOrdercxx . . $ AB_Transaction_TypeStandingOrder.); |
| 266 | AB_ImExporterContext_freecxx . . $ AB_ImExporterContext_free(47aa7f70138e3298).(tempContext); |
| 267 | return t; |
| 268 | } |
| 269 | } |
| 270 | AB_ImExporterContext_freecxx . . $ AB_ImExporterContext_free(47aa7f70138e3298).(tempContext); |
| 271 | |
| 272 | return 0; |
| 273 | } |
| 274 | |
| 275 | |
| 276 | |
| 277 | AB_TRANSACTION_PERIODcxx . . $ AB_TRANSACTION_PERIOD# _getPeriodcxx . . $ _getPeriod(884e5849d894708c).(const char *s) |
| 278 | { |
| 279 | if (s && *s) { |
| 280 | if (strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).(s, "M")==0) |
| 281 | return AB_Transaction_PeriodMonthlycxx . . $ AB_Transaction_PeriodMonthly.; |
| 282 | else if (strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).(s, "W")==0) |
| 283 | return AB_Transaction_PeriodWeeklycxx . . $ AB_Transaction_PeriodWeekly.; |
| 284 | } |
| 285 | |
| 286 | return AB_Transaction_PeriodUnknowncxx . . $ AB_Transaction_PeriodUnknown.; |
| 287 | } |
| 288 |