diff --git a/src/AppHeijunka.vue b/src/AppHeijunka.vue
index 6f2a668..e1769cf 100644
--- a/src/AppHeijunka.vue
+++ b/src/AppHeijunka.vue
@@ -115,10 +115,11 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {
|
- hour 1 |
- hour 2 |
- hour 3 |
- hour 4 |
+ 8:00 |
+ 9:00 |
+ 10:00 |
+ 11:00 |
+ dock |
@@ -136,6 +137,27 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {
+
+
+ |
@@ -215,7 +237,8 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {
day: {{ heijunkaStore.currentDay }} | current hour:
- {{ heijunkaStore.meta.currentHour }} hours
+ {{ heijunkaStore.meta.currentHour }} hours | cash flow:
+ {{ heijunkaStore.cashFlow }}
@@ -359,6 +382,12 @@ li {
align-items: center;
}
+.factory {
+ border: 2px solid var(--primary-color);
+ padding: 0 1rem;
+ margin: 1rem 0;
+}
+
.shop {
display: flex;
border: 2px solid var(--primary-color);
diff --git a/src/modules/heijkunka/heijunka-config.ts b/src/modules/heijkunka/heijunka-config.ts
index bb54266..0a23305 100644
--- a/src/modules/heijkunka/heijunka-config.ts
+++ b/src/modules/heijkunka/heijunka-config.ts
@@ -1,2 +1,3 @@
export const NUMBER_OF_DAYS = 3
export const NUMBER_OF_HOURS_PER_DAY = 4
+export const INITIAL_CASH_FLOW = 20
diff --git a/src/modules/heijkunka/heijunka-store.ts b/src/modules/heijkunka/heijunka-store.ts
index 700e9db..5ab2aa8 100644
--- a/src/modules/heijkunka/heijunka-store.ts
+++ b/src/modules/heijkunka/heijunka-store.ts
@@ -1,4 +1,5 @@
import {
+ INITIAL_CASH_FLOW,
NUMBER_OF_DAYS,
NUMBER_OF_HOURS_PER_DAY
} from '@/modules/heijkunka/heijunka-config'
@@ -20,7 +21,6 @@ type Inventory = {
}
type HeijunkaState = {
- money: number
inventory: Inventory
orders: Order[]
meta: {
@@ -52,7 +52,6 @@ const initialInventory: Inventory = {
export const useHeijunkaStore = defineStore('heijunka', {
state: (): HeijunkaState => ({
- money: 100,
inventory: { ...initialInventory },
orders: [],
meta: {
@@ -141,6 +140,10 @@ export const useHeijunkaStore = defineStore('heijunka', {
getters: {
currentDay: (state) =>
Math.ceil(state.meta.currentHour / NUMBER_OF_HOURS_PER_DAY),
+ cashFlow: (state) =>
+ INITIAL_CASH_FLOW -
+ state.meta.currentHour * 3 +
+ state.orders.filter((o) => o.status === 'received').length * 4,
remainingInventory: (state): Inventory => ({
shirt: Math.max(
state.inventory.shirt -