Revision 5786433b
Von admin vor mehr als 16 Jahren hinzugefügt
src/lib/engine/lib/modules/ae_statementimport.c | ||
---|---|---|
|
||
int AE_StatementImport_ImportAccountInfo(AE_BOOK *b,
|
||
AB_IMEXPORTER_ACCOUNTINFO *iea,
|
||
AE_BOOK_TABLE_TYPE tt,
|
||
AEDB_ID bankAccountId,
|
||
uint32_t guiid) {
|
||
int rv;
|
||
... | ... | |
|
||
int AE_StatementImport_ImportContext(AE_BOOK *b,
|
||
AB_IMEXPORTER_CONTEXT *iec,
|
||
AE_BOOK_TABLE_TYPE tt,
|
||
int readFromTransactionList,
|
||
uint32_t guiid) {
|
||
int rv;
|
||
AB_IMEXPORTER_ACCOUNTINFO *iea;
|
||
... | ... | |
}
|
||
|
||
/* import account info */
|
||
rv=AE_StatementImport_ImportAccountInfo(b, iea, tt,
|
||
rv=AE_StatementImport_ImportAccountInfo(b, iea,
|
||
bankAccountId,
|
||
guiid);
|
||
if (rv<0) {
|
src/lib/engine/lib/modules/ae_statementimport.h | ||
---|---|---|
AE_API
|
||
int AE_StatementImport_ImportAccountInfo(AE_BOOK *b,
|
||
AB_IMEXPORTER_ACCOUNTINFO *iea,
|
||
AE_BOOK_TABLE_TYPE tt,
|
||
AEDB_ID bankAccountId,
|
||
uint32_t guiid);
|
||
|
||
AE_API
|
||
int AE_StatementImport_ImportContext(AE_BOOK *b,
|
||
AB_IMEXPORTER_CONTEXT *iec,
|
||
AE_BOOK_TABLE_TYPE tt,
|
||
int readFromTransactionList,
|
||
uint32_t guiid);
|
||
|
||
|
src/lib/engine/libtest.c | ||
---|---|---|
return 2;
|
||
}
|
||
|
||
rv=AE_StatementImport_ImportContext(b, ctx, AE_Book_TableType_BankStatement, 0, 0);
|
||
rv=AE_StatementImport_ImportContext(b, ctx, 0);
|
||
if (rv<0) {
|
||
fprintf(stderr, "ERROR: Unable to import context (%d)\n", rv);
|
||
AE_Book_free(b);
|
||
... | ... | |
return 2;
|
||
}
|
||
|
||
rv=AE_StatementImport_ImportContext(b, ctx, AE_Book_TableType_BankTransfer, 0, 0);
|
||
rv=AE_StatementImport_ImportContext(b, ctx, 0);
|
||
if (rv<0) {
|
||
fprintf(stderr, "ERROR: Unable to import context (%d)\n", rv);
|
||
AE_Book_free(b);
|
Auch abrufbar als: Unified diff
Simplified statement import API.