Skip to content

Commit

Permalink
Fix TransactionDetail view (#313)
Browse files Browse the repository at this point in the history
* Fix `TransactionDetail` view

Copy/Paste bug introduced here: https://github.com/EnAccess/micropowermanager/pull/149/files#diff-70cb427d394f8cf075204ca82b5625aa287f84e63e29f4f6e4b42b0dd64e3ff3

* Set default currency in Demo data
  • Loading branch information
dmohns authored Oct 17, 2024
1 parent 6b7783a commit e9852c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/backend/database/seeders/TenantSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
'email' => '[email protected]',
'protected_page_password' => '123123',
];
const DUMMY_COMPANY_SETTINGS = [
'company_name' => 'Dummy Company',
'currency' => 'TSZ',
];
const DUMMY_COMPANY_ADMIN = [
'password' => '123123',
'email' => '[email protected]',
Expand Down Expand Up @@ -75,7 +79,10 @@ function () {
$mainSettings = $this->mainSettingsService->getAll()->first();
$this->mainSettingsService->update(
$mainSettings,
['company_name' => DUMMY_COMPANY_DATA['name']]
[
'company_name' => DUMMY_COMPANY_SETTINGS['company_name'],
'currency' => DUMMY_COMPANY_SETTINGS['currency'],
]
);
}
);
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/src/ExportedRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import Reports from "./pages/Report/index.vue"
import CustomerList from "./pages/Client/index.vue"
import CustomerDetail from "./pages/Client/_id.vue"
import TransactionList from "./pages/Transaction/index.vue"
import TransactionSearch from "./pages/Client/_id.vue"
import TransactionDetail from "./pages/Client/_id.vue"
import TransactionSearch from "./pages/Transaction/index.vue"
import TransactionDetail from "./pages/Transaction/_id.vue"
import TicketList from "./pages/Ticket/index.vue"
import TicketSettingsUsers from "./pages/Ticket/Setting/User/index.vue"
import TicketSettingsCategories from "./pages/Ticket/Setting/Category/index.vue"
Expand Down

0 comments on commit e9852c7

Please sign in to comment.