Skip to content

Commit

Permalink
feat(export): add column 'cost center'
Browse files Browse the repository at this point in the history
  • Loading branch information
Akanksh Saxena authored and velrest committed Jan 27, 2022
1 parent 6917c0e commit ec133c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/services/timed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default class TimedService extends Service {

async getAllProjects() {
return await this.store.query("subscription-project", {
include: "billing_type,customer,orders",
include: "billing_type,customer,orders,cost_center",
ordering: "name",
});
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/app/subscriptions/list/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default class SubscriptionsListController extends Controller {
this.intl.t("page.subscriptions.list.table.customer"),
this.intl.t("page.subscriptions.list.table.project"),
this.intl.t("page.subscriptions.list.table.billing"),
this.intl.t("page.subscriptions.list.table.cost-center"),
this.intl.t("page.subscriptions.list.table.time-purchased"),
this.intl.t("page.subscriptions.list.table.time-spent"),
this.intl.t("page.subscriptions.list.table.time-total"),
Expand All @@ -88,6 +89,7 @@ export default class SubscriptionsListController extends Controller {
project.get("customer.name"),
project.get("name"),
project.get("billingType.name"),
project.get("costCenter.name"),
formatDurationShort(project.get("purchasedTime")),
formatDurationShort(project.get("spentTime")),
formatDurationShort(project.get("totalTime")),
Expand Down
1 change: 1 addition & 0 deletions frontend/translations/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ page:
project: Projekt
customer: Kunde
billing: Verrechnungsart
cost-center: Kostenstelle
time-purchased: Bestellte Zeit
time-spent: Gebuchtes Guthaben
time-total: Totales Guthaben
Expand Down
1 change: 1 addition & 0 deletions frontend/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ page:
project: Project
customer: Customer
billing: Billing type
cost-center: Cost center
time-purchased: Timed ordered
time-spent: Time used
time-total: Time total
Expand Down

0 comments on commit ec133c2

Please sign in to comment.