preparing for new accounting module
This commit is contained in:
5
accounting/build.gradle.kts
Normal file
5
accounting/build.gradle.kts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
description = "Umbrella : Accounting"
|
||||||
|
|
||||||
|
dependencies{
|
||||||
|
implementation(project(":core"))
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package de.srsoftware.umbrella.accounting;
|
||||||
|
|
||||||
|
import de.srsoftware.umbrella.core.BaseHandler;
|
||||||
|
import de.srsoftware.umbrella.core.api.AccountingService;
|
||||||
|
|
||||||
|
public class AccountingModule extends BaseHandler implements AccountingService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -85,6 +85,7 @@ public class SettingsService extends BaseHandler {
|
|||||||
entries.add(MenuEntry.of(13,Module.STOCK));
|
entries.add(MenuEntry.of(13,Module.STOCK));
|
||||||
entries.add(MenuEntry.of(14,Module.MESSAGE, MESSAGES));
|
entries.add(MenuEntry.of(14,Module.MESSAGE, MESSAGES));
|
||||||
entries.add(MenuEntry.of(15,Module.POLL,Text.POLLS));
|
entries.add(MenuEntry.of(15,Module.POLL,Text.POLLS));
|
||||||
|
entries.add(MenuEntry.of(16,Module.ACCOUNTING,Text.ACCOUNTING));
|
||||||
|
|
||||||
for (var i=0; i<entries.size(); i++){
|
for (var i=0; i<entries.size(); i++){
|
||||||
var entry = entries.get(i);
|
var entry = entries.get(i);
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package de.srsoftware.umbrella.core.api;
|
||||||
|
|
||||||
|
public interface AccountingService {
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
package de.srsoftware.umbrella.core.constants;
|
package de.srsoftware.umbrella.core.constants;
|
||||||
|
|
||||||
public class Module {
|
public class Module {
|
||||||
|
public static final String ACCOUNTING = "accounting";
|
||||||
public static final String BOOKMARK = "bookmark";
|
public static final String BOOKMARK = "bookmark";
|
||||||
public static final String COMPANY = "company";
|
public static final String COMPANY = "company";
|
||||||
public static final String CONTACT = "contact";
|
public static final String CONTACT = "contact";
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ package de.srsoftware.umbrella.core.constants;
|
|||||||
* This is a collection of messages that appear throughout the project
|
* This is a collection of messages that appear throughout the project
|
||||||
*/
|
*/
|
||||||
public class Text {
|
public class Text {
|
||||||
|
public static final String ACCOUNTING = "accounting";
|
||||||
|
|
||||||
public static final String BOOKMARK = "bookmark";
|
public static final String BOOKMARK = "bookmark";
|
||||||
public static final String BOOKMARKS = "bookmarks";
|
public static final String BOOKMARKS = "bookmarks";
|
||||||
public static final String BOOLEAN = "Boolean";
|
public static final String BOOLEAN = "Boolean";
|
||||||
@@ -47,8 +49,8 @@ public class Text {
|
|||||||
public static final String NOTE_WITH_ID = "note ({id})";
|
public static final String NOTE_WITH_ID = "note ({id})";
|
||||||
public static final String NUMBER = "number";
|
public static final String NUMBER = "number";
|
||||||
|
|
||||||
public static final Object OPTION = "option"
|
public static final Object OPTION = "option";
|
||||||
;
|
|
||||||
public static final String PATH = "path";
|
public static final String PATH = "path";
|
||||||
public static final String PERMISSION = "permission";
|
public static final String PERMISSION = "permission";
|
||||||
public static final String POLL = "poll";
|
public static final String POLL = "poll";
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
import { loadTranslation } from './translations.svelte';
|
import { loadTranslation } from './translations.svelte';
|
||||||
import { checkUser, user } from './user.svelte';
|
import { checkUser, user } from './user.svelte';
|
||||||
|
|
||||||
|
import Accounts from "./routes/accounting/index.svelte";
|
||||||
import AddDoc from "./routes/document/Add.svelte";
|
import AddDoc from "./routes/document/Add.svelte";
|
||||||
import AddTask from "./routes/task/Add.svelte";
|
import AddTask from "./routes/task/Add.svelte";
|
||||||
import Bookmark from "./routes/bookmark/View.svelte";
|
import Bookmark from "./routes/bookmark/View.svelte";
|
||||||
@@ -88,6 +89,7 @@
|
|||||||
<span class="warn">{@html messages.warning}</span>
|
<span class="warn">{@html messages.warning}</span>
|
||||||
{/if}
|
{/if}
|
||||||
<Route path="/" component={User} />
|
<Route path="/" component={User} />
|
||||||
|
<Route path="/accounting" component={Accounts} />
|
||||||
<Route path="/bookmark" component={Bookmarks} />
|
<Route path="/bookmark" component={Bookmarks} />
|
||||||
<Route path="/bookmark/:id/view" component={Bookmark} />
|
<Route path="/bookmark/:id/view" component={Bookmark} />
|
||||||
<Route path="/calc" component={Spreadsheet} />
|
<Route path="/calc" component={Spreadsheet} />
|
||||||
|
|||||||
1
frontend/src/routes/accounting/index.svelte
Normal file
1
frontend/src/routes/accounting/index.svelte
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<h1>Accounts</h1>
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
rootProject.name = "Umbrella25"
|
rootProject.name = "Umbrella25"
|
||||||
|
|
||||||
|
include("accounting")
|
||||||
include("backend")
|
include("backend")
|
||||||
include("bookmark")
|
include("bookmark")
|
||||||
include("bus")
|
include("bus")
|
||||||
@@ -23,4 +24,3 @@ include("translations")
|
|||||||
include("user")
|
include("user")
|
||||||
include("web")
|
include("web")
|
||||||
include("wiki")
|
include("wiki")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user