Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/tests/pivottable-test.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | { | 44 | { | ||
45 | storage = new MyMoneySeqAccessMgr; | 45 | storage = new MyMoneySeqAccessMgr; | ||
46 | file = MyMoneyFile::instance(); | 46 | file = MyMoneyFile::instance(); | ||
47 | file->attachStorage(storage); | 47 | file->attachStorage(storage); | ||
48 | 48 | | |||
49 | MyMoneyFileTransaction ft; | 49 | MyMoneyFileTransaction ft; | ||
50 | file->addCurrency(MyMoneySecurity("CAD", "Canadian Dollar", "C$")); | 50 | file->addCurrency(MyMoneySecurity("CAD", "Canadian Dollar", "C$")); | ||
51 | file->addCurrency(MyMoneySecurity("USD", "US Dollar", "$")); | 51 | file->addCurrency(MyMoneySecurity("USD", "US Dollar", "$")); | ||
52 | file->addCurrency(MyMoneySecurity("JPY", "Japanese Yen", QChar(0x00A5), 100, 1)); | 52 | file->addCurrency(MyMoneySecurity("JPY", "Japanese Yen", QChar(0x00A5), 1)); | ||
53 | file->addCurrency(MyMoneySecurity("GBP", "British Pound", "#")); | 53 | file->addCurrency(MyMoneySecurity("GBP", "British Pound", "#")); | ||
54 | file->setBaseCurrency(file->currency("USD")); | 54 | file->setBaseCurrency(file->currency("USD")); | ||
55 | 55 | | |||
56 | MyMoneyPayee payeeTest("Test Payee"); | 56 | MyMoneyPayee payeeTest("Test Payee"); | ||
57 | file->addPayee(payeeTest); | 57 | file->addPayee(payeeTest); | ||
58 | MyMoneyPayee payeeTest2("Thomas Baumgart"); | 58 | MyMoneyPayee payeeTest2("Thomas Baumgart"); | ||
59 | file->addPayee(payeeTest2); | 59 | file->addPayee(payeeTest2); | ||
60 | 60 | | |||
▲ Show 20 Lines • Show All 964 Lines • Show Last 20 Lines |