@rangka-os/create 0.5.0-alpha.31 → 0.5.0-alpha.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/base/apps/absen_karyawan/app.rk +1 -1
- package/template/base/apps/absen_karyawan/dashboards/absen_karyawan_saya.rk +2 -2
- package/template/base/apps/absen_karyawan/dashboards/jadwal_saya.rk +4 -4
- package/template/base/apps/grosir_distribusi/app.rk +1 -1
- package/template/base/apps/karyawan_gaji/app.rk +6 -2
- package/template/base/apps/karyawan_gaji/dashboards/klaim_kasbon_saya.rk +3 -3
- package/template/base/apps/karyawan_gaji/dashboards/saya.rk +20 -0
- package/template/base/apps/karyawan_gaji/skills/rangka-app-karyawan-gaji/SKILL.md +3 -0
- package/template/base/apps/produksi_pabrik/app.rk +1 -1
- package/template/base/apps/ritel_cabang/app.rk +1 -1
- package/template/base/modules/attendance/models/attendance_summary.rk +2 -4
- package/template/base/modules/attendance/models/staff_attendance.rk +3 -0
- package/template/base/modules/attendance/module.rk +1 -1
- package/template/base/modules/catalogue/models/item.rk +24 -0
- package/template/base/modules/catalogue/module.rk +1 -1
- package/template/base/modules/delivery/models/delivery_note.rk +3 -1
- package/template/base/modules/delivery/models/delivery_note_item.rk +4 -0
- package/template/base/modules/delivery/models/sales_return.rk +2 -2
- package/template/base/modules/delivery/models/sales_return_item.rk +3 -0
- package/template/base/modules/delivery/module.rk +2 -2
- package/template/base/modules/payroll/models/cash_advance.rk +2 -0
- package/template/base/modules/payroll/models/cash_advance_balance.rk +2 -4
- package/template/base/modules/payroll/models/payroll_run.rk +1 -0
- package/template/base/modules/payroll/models/payslip.rk +43 -12
- package/template/base/modules/payroll/module.rk +1 -1
- package/template/base/modules/payroll/print/payslip.html +4 -4
- package/template/base/modules/procurement/models/goods_receipt_item.rk +21 -0
- package/template/base/modules/procurement/module.rk +2 -2
- package/template/base/modules/production/models/production_batch.rk +10 -5
- package/template/base/modules/production/models/production_material.rk +3 -0
- package/template/base/modules/production/models/production_output.rk +12 -0
- package/template/base/modules/production/module.rk +2 -2
- package/template/base/modules/reimbursement/models/claim_settlement.rk +1 -0
- package/template/base/modules/reimbursement/models/expense_claim.rk +3 -0
- package/template/base/modules/reimbursement/module.rk +1 -1
- package/template/base/modules/shifts/models/shift_assignment.rk +2 -3
- package/template/base/modules/shifts/models/shift_swap.rk +2 -0
- package/template/base/modules/shifts/module.rk +1 -1
- package/template/base/modules/stock/flows/item_tracking_lock.rk +37 -0
- package/template/base/modules/stock/flows/lot_expiry_digest.rk +103 -0
- package/template/base/modules/stock/models/serial_no.rk +55 -0
- package/template/base/modules/stock/models/stock_adjustment_item.rk +4 -0
- package/template/base/modules/stock/models/stock_expiry.rk +47 -0
- package/template/base/modules/stock/models/stock_guard.rk +40 -0
- package/template/base/modules/stock/models/stock_lot.rk +38 -0
- package/template/base/modules/stock/models/stock_lot_balance.rk +30 -0
- package/template/base/modules/stock/models/stock_move.rk +6 -2
- package/template/base/modules/stock/models/stock_transfer_item.rk +4 -0
- package/template/base/modules/stock/models/stock_transfer_receipt_item.rk +3 -0
- package/template/base/modules/stock/module.rk +9 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
-
# Hasil produksi per batch. The
|
|
3
|
-
# product's shelf life. Submit takes the materials out of the production outlet at their moving average and puts
|
|
2
|
+
# Hasil produksi per batch. The production code printed on the pack is the lot of the outputs (contract 0070); the
|
|
3
|
+
# expiry date follows the product's shelf life. Submit takes the materials out of the production outlet at their moving average and puts
|
|
4
4
|
# the outputs into the finished-goods outlet at the value of those materials, split by cost_share (contract 0021,
|
|
5
5
|
# K-o). The actual cost (HPP) of the batch adds the piece-rate wages and the overhead rate to the material cost; the
|
|
6
6
|
# stock value holds the material cost only until K-r. Cancel reverses the stock (stock.reverse_moves).
|
|
@@ -22,6 +22,9 @@ fields:
|
|
|
22
22
|
- {name: outlet, type: link, to: outlet, label: {id: Tempat produksi (bahan keluar)}, default: work_order.outlet, required: true}
|
|
23
23
|
- {name: output_outlet, type: link, to: outlet, label: {id: Gudang barang jadi}, required: true}
|
|
24
24
|
- {name: production_date, type: date, label: {id: Tanggal produksi}, default: today(), required: true, in_list: true}
|
|
25
|
+
# rangka-os#260: the lot number of what this batch makes (contract 0070); empty = the production date, so batches of one
|
|
26
|
+
# item made on one day share a lot
|
|
27
|
+
- {name: production_code, type: data, label: {id: Kode produksi (lot)}, help: {id: 'Kode yang dicetak di kemasan. Kosongkan: tanggal produksi jadi nomor lotnya'}, in_list: true}
|
|
25
28
|
- {name: shelf_life_days, type: int, label: {id: Umur simpan (hari)}, default: item.shelf_life_days}
|
|
26
29
|
- name: expiry_date
|
|
27
30
|
type: date
|
|
@@ -59,8 +62,10 @@ fields:
|
|
|
59
62
|
stock:
|
|
60
63
|
date: production_date
|
|
61
64
|
moves:
|
|
62
|
-
-
|
|
63
|
-
|
|
65
|
+
# rangka-os contract 0070: materials leave from the picked lot, else earliest expiry first (expired lots skipped);
|
|
66
|
+
# outputs come in as the lot of the batch's production code (else its production date), with the batch's expiry
|
|
67
|
+
- {lines: materials, out: outlet, reason: production_out, cogs: cogs, lot: {pick: lot}, serials: serial_nos}
|
|
68
|
+
- {lines: outputs, in: output_outlet, reason: production_in, cost: {consumed: true, split: cost_share}, lot: {no: lot_no, expiry: expiry_date, made: made_date}, serials: serial_nos}
|
|
64
69
|
cogs_total: material_cost
|
|
65
70
|
# Deviations from the plan wait for head office: materials that are not in the BOM, or more good output than 110% of
|
|
66
71
|
# the planned qty (a batch puts stock in at the value of what it took out, so an inflated output dilutes the cost).
|
|
@@ -138,7 +143,7 @@ views:
|
|
|
138
143
|
- section: {id: Batch}
|
|
139
144
|
columns:
|
|
140
145
|
- [work_order, item, bom, planned_qty]
|
|
141
|
-
- [production_date, shelf_life_days, expiry_date, outlet, output_outlet]
|
|
146
|
+
- [production_date, production_code, shelf_life_days, expiry_date, outlet, output_outlet]
|
|
142
147
|
- section: {id: Bahan terpakai}
|
|
143
148
|
fields: [materials]
|
|
144
149
|
- section: {id: Hasil}
|
|
@@ -6,3 +6,6 @@ fields:
|
|
|
6
6
|
- {name: qty, type: float, label: {id: Qty terpakai}}
|
|
7
7
|
- {name: uom, type: link, to: uom, label: {id: Satuan}, default: item.stock_uom}
|
|
8
8
|
- {name: cogs, type: currency, label: {id: Biaya bahan}, read_only: true, hidden_for: [outlet_staff]}
|
|
9
|
+
# rangka-os contract 0070: the lot used (empty = earliest expiry first) and, for a serial item, the units consumed
|
|
10
|
+
- {name: lot, type: link, to: stock_lot, label: {id: Lot bahan}, depends_on: "item.tracking in ['lot', 'lot_expiry']", help: {id: 'Kosongkan: lot yang paling dulu kedaluwarsa dipakai'}}
|
|
11
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri}, depends_on: "item.tracking == 'serial'", help: {id: 'Satu nomor seri per baris'}}
|
|
@@ -6,3 +6,15 @@ fields:
|
|
|
6
6
|
- {name: qty, type: float, label: {id: Qty}}
|
|
7
7
|
- {name: uom, type: link, to: uom, label: {id: Satuan}, default: item.stock_uom}
|
|
8
8
|
- {name: cost_share, type: float, label: {id: Porsi biaya bahan (%)}, default: '100'}
|
|
9
|
+
# rangka-os contract 0070: the batch's production code (printed on the pack) is the lot of what it made, else its
|
|
10
|
+
# production date; the main product takes the batch's expiry, a by-product its own shelf life. Not the batch number:
|
|
11
|
+
# a draft is named on submit, after its computes (follow-up: a kernel lot number from the document's own name).
|
|
12
|
+
# A serial product names its units.
|
|
13
|
+
- {name: lot_no, type: data, label: {id: Nomor lot}, compute: "parent.production_code != '' ? parent.production_code : string(parent.production_date)", depends_on: "item.tracking in ['lot', 'lot_expiry']"}
|
|
14
|
+
- name: expiry_date
|
|
15
|
+
type: date
|
|
16
|
+
label: {id: Kedaluwarsa}
|
|
17
|
+
compute: "item.tracking != 'lot_expiry' ? '' : (item == parent.item ? parent.expiry_date : (item.shelf_life_days > 0 ? parent.production_date + duration(item.shelf_life_days) : ''))"
|
|
18
|
+
depends_on: "item.tracking == 'lot_expiry'"
|
|
19
|
+
- {name: made_date, type: date, label: {id: Tanggal produksi}, compute: parent.production_date, hidden: true}
|
|
20
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri}, depends_on: "item.tracking == 'serial'", help: {id: 'Satu nomor seri per baris'}}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
# at the value of those materials through the declarative stock block of contract 0021 (K-o). Wages and overhead are
|
|
6
6
|
# in the batch's actual cost (HPP) but not in the stock value until K-r.
|
|
7
7
|
name: production
|
|
8
|
-
version: 1.
|
|
8
|
+
version: 1.3.0
|
|
9
9
|
title: {id: Produksi, en: Production}
|
|
10
10
|
summary:
|
|
11
11
|
id: Resep produksi, SPK, hasil per batch dan upah borongan.
|
|
12
12
|
en: Bills of materials, work orders, batch output and piece-rate wages.
|
|
13
13
|
category: operations
|
|
14
14
|
icon: hammer-line
|
|
15
|
-
requires: {rangka: '>=0.5', users: ^1.0, catalogue: ^1.
|
|
15
|
+
requires: {rangka: '>=0.5', users: ^1.0, catalogue: ^1.6, outlets: ^1.0, stock: ^1.6, workforce: ^1.0}
|
|
16
16
|
optional: {orders: ^1.0}
|
|
17
17
|
hooks: [stock.reverse_moves]
|
|
@@ -16,6 +16,7 @@ permissions:
|
|
|
16
16
|
- {role: employee, read: true, create: true, if: "employee == user.name"}
|
|
17
17
|
- {role: cashier, read: true, create: true, if: "employee == user.name"}
|
|
18
18
|
- {role: outlet_staff, read: true, create: true, if: "employee == user.name"}
|
|
19
|
+
- {role: member, read: true, if: "employee == user.name"}
|
|
19
20
|
# the outlet supervisor reads the claims of their outlets (row scope on outlet) and creates their own
|
|
20
21
|
- {role: outlet_supervisor, read: true}
|
|
21
22
|
- {role: outlet_supervisor, create: true, if: "employee == user.name"}
|
|
@@ -22,6 +22,9 @@ permissions:
|
|
|
22
22
|
- {role: employee, read: true, create: true, write: true, delete: true, submit: true, if: "employee == user.name"}
|
|
23
23
|
- {role: cashier, read: true, create: true, write: true, delete: true, submit: true, if: "employee == user.name"}
|
|
24
24
|
- {role: outlet_staff, read: true, create: true, write: true, delete: true, submit: true, if: "employee == user.name"}
|
|
25
|
+
# Every employee whatever their role reads their own claims (member grant, rangka-os contract 0074); claiming stays
|
|
26
|
+
# with the roles above for now.
|
|
27
|
+
- {role: member, read: true, if: "employee == user.name"}
|
|
25
28
|
# The outlet supervisor reads the claims of their outlets (role row scope on outlet) to approve them, and claims too.
|
|
26
29
|
- {role: outlet_supervisor, read: true, print: true}
|
|
27
30
|
- {role: outlet_supervisor, create: true, write: true, delete: true, submit: true, if: "employee == user.name"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
2
|
name: reimbursement
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.1.0
|
|
4
4
|
title: {id: Klaim biaya karyawan, en: Expense claims}
|
|
5
5
|
summary:
|
|
6
6
|
id: Karyawan mengajukan klaim biaya dengan foto struk, atasan menyetujui, keuangan membayar tunai, transfer, atau bersama gaji tanpa dipajaki.
|
|
@@ -19,9 +19,8 @@ title_field: employee_name
|
|
|
19
19
|
permissions:
|
|
20
20
|
- {role: head_office, read: true, create: true, write: true, delete: true, export: true, print: true}
|
|
21
21
|
- {role: outlet_supervisor, read: true, create: true, write: true, delete: true, print: true}
|
|
22
|
-
|
|
23
|
-
- {role:
|
|
24
|
-
- {role: employee, read: true, if: "employee == user.name && published"}
|
|
22
|
+
# their own published shifts: every employee whatever their role (member grant, rangka-os contract 0074)
|
|
23
|
+
- {role: member, read: true, if: "employee == user.name && published"}
|
|
25
24
|
fields:
|
|
26
25
|
- {name: employee, type: link, to: user, label: {id: Karyawan}, required: true, in_list: true}
|
|
27
26
|
- name: employee_name
|
|
@@ -19,6 +19,8 @@ permissions:
|
|
|
19
19
|
- {role: cashier, read: true, create: true, write: true, delete: true, if: "requested_by == user.name"}
|
|
20
20
|
- {role: outlet_staff, read: true, create: true, write: true, delete: true, if: "requested_by == user.name"}
|
|
21
21
|
- {role: employee, read: true, create: true, write: true, delete: true, if: "requested_by == user.name"}
|
|
22
|
+
# every employee whatever their role reads their own requests (member grant, rangka-os contract 0074; jadwal_saya)
|
|
23
|
+
- {role: member, read: true, if: "requested_by == user.name"}
|
|
22
24
|
fields:
|
|
23
25
|
- {name: requested_by, type: link, to: user, label: {id: Diminta oleh}, default: user.name, read_only: true}
|
|
24
26
|
- {name: requested_name, type: data, label: {id: Nama}, read_only: true, in_list: true, compute: "requested_by != '' ? requested_by.full_name : ''"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
2
|
name: shifts
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.1.0
|
|
4
4
|
title: {id: Jadwal shift, en: Work shifts}
|
|
5
5
|
summary:
|
|
6
6
|
id: Pola shift per outlet, jadwal mingguan yang diterbitkan, jadwal tiap karyawan, tukar shift, dan absen dibandingkan dengan jadwal.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# Inside an item's save (rangka-os#260, audit 2026-11-21 F2/F3): item.tracking may change only where the stock registers
|
|
3
|
+
# stay true. Switching lots on (none -> lot / lot_expiry, or between the two lot modes) is always allowed: stock from
|
|
4
|
+
# before sits in the no-lot bucket (contract 0070 §2). Refused:
|
|
5
|
+
# - leaving the lot modes while a real lot still holds stock (the lot rows would freeze, and Σ lots would drift from
|
|
6
|
+
# stock_balance as the item keeps moving untracked);
|
|
7
|
+
# - leaving serial while a serial is in stock or in transit (the register would go stale);
|
|
8
|
+
# - switching to serial while the item has stock anywhere (no document could take those units out: every one would
|
|
9
|
+
# be refused serial_count_mismatch or serial_not_here).
|
|
10
|
+
# Each find runs only for the switch it guards; a role that cannot read the register is refused by the kernel, so the
|
|
11
|
+
# change fails safe (head office and the owner read every register).
|
|
12
|
+
name: item_tracking_lock
|
|
13
|
+
label: {id: Pelacakan stok hanya diubah bila stoknya cocok}
|
|
14
|
+
on: item.updated
|
|
15
|
+
if: "event.before != null && (event.before.tracking == '' ? 'none' : event.before.tracking) != (event.tracking == '' ? 'none' : event.tracking)"
|
|
16
|
+
steps:
|
|
17
|
+
- if: "event.before.tracking in ['lot', 'lot_expiry'] && !(event.tracking in ['lot', 'lot_expiry'])"
|
|
18
|
+
find: stock_lot_balance
|
|
19
|
+
where: "item == event.name && lot != '' && qty != 0"
|
|
20
|
+
as: lb
|
|
21
|
+
- if: "event.before.tracking in ['lot', 'lot_expiry'] && !(event.tracking in ['lot', 'lot_expiry']) && lb != null"
|
|
22
|
+
create: stock_guard
|
|
23
|
+
set: {reason: "'lots_in_stock'", document: event.name}
|
|
24
|
+
- if: "event.before.tracking == 'serial'"
|
|
25
|
+
find: serial_no
|
|
26
|
+
where: "item == event.name && state in ['in_stock', 'in_transit']"
|
|
27
|
+
as: sn
|
|
28
|
+
- if: "event.before.tracking == 'serial' && sn != null"
|
|
29
|
+
create: stock_guard
|
|
30
|
+
set: {reason: "'serials_in_stock'", document: event.name}
|
|
31
|
+
- if: "event.tracking == 'serial'"
|
|
32
|
+
find: stock_balance
|
|
33
|
+
where: "item == event.name && qty != 0"
|
|
34
|
+
as: sb
|
|
35
|
+
- if: "event.tracking == 'serial' && sb != null"
|
|
36
|
+
create: stock_guard
|
|
37
|
+
set: {reason: "'stock_without_serials'", document: event.name}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# Every morning at 06:40 (scheduler.timezone), and by the owner from the flow list: the expiry-soon list stock_expiry
|
|
3
|
+
# (rangka-os#260, contract 0070). A lot balance is in the window when it holds stock and its lot expires within the item's
|
|
4
|
+
# expiry_warning_days (0 = 30 days, the default of items made before catalogue 1.6), or has expired.
|
|
5
|
+
# 1. Open rows, the 1000 least recently checked: a row whose lot balance is used up, gone, or out of the window is
|
|
6
|
+
# closed with today's qty; any other gets today's qty, days_left and state (soon, or expired once the date passed).
|
|
7
|
+
# Every row touched gets checked_on = today, so a business with more open rows refreshes them over several mornings.
|
|
8
|
+
# 2. Candidates: the 500 lot balances in the window that expire soonest from today, and the 500 that expired most
|
|
9
|
+
# recently (so new ones are never starved by old expired stock). Each without an open row gets one.
|
|
10
|
+
# 3. The rows not yet told about (notified false) go out once to head office and the warehouse (notice stock_expiry),
|
|
11
|
+
# then are marked notified. Running twice a day tells nobody twice.
|
|
12
|
+
# Nothing is moved here: expired stock leaves through a stock adjustment with reason expired (the kernel takes expired
|
|
13
|
+
# lots first), and deliveries skip expired lots by default.
|
|
14
|
+
name: lot_expiry_digest
|
|
15
|
+
label: {id: Kabari stok yang hampir kedaluwarsa, en: Expiring stock digest}
|
|
16
|
+
description: {id: 'Tiap pagi, lot barang yang masih ada stoknya dan mendekati atau melewati tanggal kedaluwarsa dikabarkan sekali ke kantor pusat dan gudang.'}
|
|
17
|
+
schedule: '40 6 * * *'
|
|
18
|
+
steps:
|
|
19
|
+
- find_all: stock_expiry
|
|
20
|
+
where: open
|
|
21
|
+
sort: checked_on
|
|
22
|
+
limit: 1000
|
|
23
|
+
as: marks
|
|
24
|
+
- for_each: marks
|
|
25
|
+
as: m
|
|
26
|
+
do:
|
|
27
|
+
- {find: stock_lot_balance, where: name == m.balance, as: mb}
|
|
28
|
+
- {find: item, where: name == m.item, as: mi}
|
|
29
|
+
- if: "mb == null || mi == null || mb.qty <= 0 || days_between(today(), m.expiry_date) > (mi.expiry_warning_days > 0 ? mi.expiry_warning_days : 30)"
|
|
30
|
+
update: m
|
|
31
|
+
set: {open: 'false', qty: "mb == null ? 0 : mb.qty", checked_on: today()}
|
|
32
|
+
- if: "mb != null && mi != null && mb.qty > 0 && days_between(today(), m.expiry_date) <= (mi.expiry_warning_days > 0 ? mi.expiry_warning_days : 30)"
|
|
33
|
+
update: m
|
|
34
|
+
set:
|
|
35
|
+
qty: mb.qty
|
|
36
|
+
days_left: days_between(today(), m.expiry_date)
|
|
37
|
+
state: "days_between(today(), m.expiry_date) < 0 ? 'expired' : 'soon'"
|
|
38
|
+
checked_on: today()
|
|
39
|
+
- find_all: stock_lot_balance
|
|
40
|
+
where: "qty > 0 && lot != '' && expiry_date != '' && days_between(today(), expiry_date) >= 0 && days_between(today(), expiry_date) <= (item.expiry_warning_days > 0 ? item.expiry_warning_days : 30)"
|
|
41
|
+
sort: expiry_date
|
|
42
|
+
limit: 500
|
|
43
|
+
as: upcoming
|
|
44
|
+
- find_all: stock_lot_balance
|
|
45
|
+
where: "qty > 0 && lot != '' && expiry_date != '' && days_between(today(), expiry_date) < 0"
|
|
46
|
+
sort: -expiry_date
|
|
47
|
+
limit: 500
|
|
48
|
+
as: expired
|
|
49
|
+
- for_each: "upcoming + expired"
|
|
50
|
+
as: b
|
|
51
|
+
do:
|
|
52
|
+
- {find: stock_expiry, where: "open && balance == b.name", as: had}
|
|
53
|
+
- {find: stock_lot, where: name == b.lot, as: lt}
|
|
54
|
+
- {find: item, where: name == b.item, as: it}
|
|
55
|
+
- if: had == null
|
|
56
|
+
create: stock_expiry
|
|
57
|
+
set:
|
|
58
|
+
balance: b.name
|
|
59
|
+
outlet: b.outlet
|
|
60
|
+
item: b.item
|
|
61
|
+
lot: b.lot
|
|
62
|
+
lot_no: lt.lot_no
|
|
63
|
+
item_name: it.item_name
|
|
64
|
+
expiry_date: b.expiry_date
|
|
65
|
+
qty: b.qty
|
|
66
|
+
days_left: days_between(today(), b.expiry_date)
|
|
67
|
+
state: "days_between(today(), b.expiry_date) < 0 ? 'expired' : 'soon'"
|
|
68
|
+
alerted_on: today()
|
|
69
|
+
checked_on: today()
|
|
70
|
+
open: 'true'
|
|
71
|
+
notified: 'false'
|
|
72
|
+
- find_all: stock_expiry
|
|
73
|
+
where: "open && !notified"
|
|
74
|
+
sort: expiry_date
|
|
75
|
+
limit: 500
|
|
76
|
+
as: fresh
|
|
77
|
+
- {if: "fresh.size() > 0", find: stock_expiry, where: "name == fresh[0].name", as: ex}
|
|
78
|
+
# the notice links to the soonest new row and counts the others
|
|
79
|
+
- if: fresh.size() > 0
|
|
80
|
+
notify: head_office
|
|
81
|
+
notice: stock_expiry
|
|
82
|
+
channel: email
|
|
83
|
+
record: ex
|
|
84
|
+
id: "'expiry:' + ex.name"
|
|
85
|
+
title: '{fresh.size()} lot barang hampir kedaluwarsa'
|
|
86
|
+
template: >-
|
|
87
|
+
{ex.item_name} lot {ex.lot_no} ({ex.qty} tersisa) kedaluwarsa {ex.expiry_date}{fresh.size() > 1 ? ', dan ' + string(fresh.size() - 1) + ' lot lain juga baru masuk daftar' : ''}.
|
|
88
|
+
Buka daftar "Stok hampir kedaluwarsa" untuk melihat semuanya.
|
|
89
|
+
- if: fresh.size() > 0
|
|
90
|
+
notify: warehouse_staff
|
|
91
|
+
notice: stock_expiry
|
|
92
|
+
channel: email
|
|
93
|
+
record: ex
|
|
94
|
+
id: "'expiry-wh:' + ex.name"
|
|
95
|
+
title: '{fresh.size()} lot barang hampir kedaluwarsa'
|
|
96
|
+
template: >-
|
|
97
|
+
{ex.item_name} lot {ex.lot_no} kedaluwarsa {ex.expiry_date}. Keluarkan dulu lot yang paling dekat
|
|
98
|
+
kedaluwarsanya, dan catat barang yang sudah lewat di Penyesuaian stok dengan alasan Kedaluwarsa.
|
|
99
|
+
- for_each: fresh
|
|
100
|
+
as: f
|
|
101
|
+
do:
|
|
102
|
+
- update: f
|
|
103
|
+
set: {notified: 'true'}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: serial_no
|
|
3
|
+
label: {id: Nomor seri, en: Serial number}
|
|
4
|
+
icon: stock
|
|
5
|
+
naming: SN-{######}
|
|
6
|
+
title_field: serial
|
|
7
|
+
# One row per item and serial (rangka-os contract 0070 §2 and §6): where the unit is and what moved it last. Written
|
|
8
|
+
# only by the stock hooks. history is the kernel's stack of the forward moves still standing (one line
|
|
9
|
+
# "<type>/<name>|<state before>" each, oldest first); with it a cancel must undo the serial's last document first
|
|
10
|
+
# (409 serial_moved), so cancelling an old sale never puts a resold unit back on the shelf.
|
|
11
|
+
permissions:
|
|
12
|
+
- {role: head_office, read: true, export: true}
|
|
13
|
+
- {role: purchasing_manager, read: true, export: true}
|
|
14
|
+
- {role: sales_manager, read: true}
|
|
15
|
+
- {role: outlet_staff, read: true}
|
|
16
|
+
- {role: warehouse_staff, read: true}
|
|
17
|
+
- {role: cashier, read: true}
|
|
18
|
+
fields:
|
|
19
|
+
- {name: serial, type: data, label: {id: Nomor seri}, required: true, read_only: true, in_list: true}
|
|
20
|
+
- {name: item, type: link, to: item, label: {id: Barang}, required: true, read_only: true, in_list: true}
|
|
21
|
+
- name: state
|
|
22
|
+
type: select
|
|
23
|
+
label: {id: Status}
|
|
24
|
+
read_only: true
|
|
25
|
+
in_list: true
|
|
26
|
+
chip: true
|
|
27
|
+
options:
|
|
28
|
+
- {value: in_stock, label: {id: Di gudang}}
|
|
29
|
+
- {value: in_transit, label: {id: Dalam perjalanan}}
|
|
30
|
+
- {value: sold, label: {id: Terjual}}
|
|
31
|
+
- {value: returned, label: {id: Diretur ke pemasok}}
|
|
32
|
+
- {value: consumed, label: {id: Dipakai produksi}}
|
|
33
|
+
- {value: scrapped, label: {id: Dibuang}}
|
|
34
|
+
- {value: cancelled, label: {id: Dibatalkan}}
|
|
35
|
+
- {name: outlet, type: link, to: outlet, label: {id: Lokasi}, read_only: true, in_list: true}
|
|
36
|
+
- {name: lot, type: link, to: stock_lot, label: {id: Lot}, read_only: true, hidden: true}
|
|
37
|
+
- {name: last_voucher_type, type: data, label: {id: Jenis dokumen terakhir}, read_only: true}
|
|
38
|
+
- {name: last_voucher, type: data, label: {id: Dokumen terakhir}, read_only: true, in_list: true}
|
|
39
|
+
- {name: in_date, type: date, label: {id: Tanggal masuk}, read_only: true}
|
|
40
|
+
- {name: out_date, type: date, label: {id: Tanggal keluar}, read_only: true}
|
|
41
|
+
- {name: prev_state, type: data, label: {id: Status sebelumnya}, read_only: true, hidden: true}
|
|
42
|
+
- {name: history, type: text, label: {id: Riwayat dokumen}, read_only: true}
|
|
43
|
+
views:
|
|
44
|
+
list:
|
|
45
|
+
columns: [serial, item, state, outlet, last_voucher]
|
|
46
|
+
filters: [item, state, outlet]
|
|
47
|
+
sort: serial
|
|
48
|
+
form:
|
|
49
|
+
layout:
|
|
50
|
+
- section: {id: Nomor seri}
|
|
51
|
+
columns:
|
|
52
|
+
- [serial, item, in_date, last_voucher_type]
|
|
53
|
+
- [state, outlet, out_date, last_voucher]
|
|
54
|
+
- section: {id: Riwayat}
|
|
55
|
+
fields: [history]
|
|
@@ -30,3 +30,7 @@ fields:
|
|
|
30
30
|
type: float
|
|
31
31
|
label: {id: Qty stok}
|
|
32
32
|
compute: "packing == '' ? qty : qty * packing.factor"
|
|
33
|
+
# rangka-os contract 0070 §7 (Go rule): the lot to take (empty = earliest expiry first; reason expired or waste takes
|
|
34
|
+
# expired lots first) and, for a serial item, the serials that leave, one per line.
|
|
35
|
+
- {name: lot, type: link, to: stock_lot, label: {id: Lot}, depends_on: "item.tracking in ['lot', 'lot_expiry']", help: {id: 'Kosongkan: lot yang paling dulu kedaluwarsa diambil'}}
|
|
36
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri}, depends_on: "item.tracking == 'serial'", help: {id: 'Satu nomor seri per baris'}}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
# The expiry-soon list: one row per lot balance (outlet, item, lot) with stock that expires within the item's
|
|
3
|
+
# expiry_warning_days, or has expired. Written only by flow lot_expiry_digest, every morning: it opens a row for a lot
|
|
4
|
+
# balance newly in the window, refreshes qty, days_left and state of open rows, and closes a row (open = false) when the
|
|
5
|
+
# lot is used up, so head office and the warehouse are told once per lot, not every day. Every field is read_only.
|
|
6
|
+
name: stock_expiry
|
|
7
|
+
label: {id: Stok hampir kedaluwarsa, en: Expiring stock}
|
|
8
|
+
icon: alarm-warning-line
|
|
9
|
+
naming: EXP-{YYYY}-{#####}
|
|
10
|
+
title_field: item
|
|
11
|
+
permissions:
|
|
12
|
+
- {role: head_office, read: true, export: true}
|
|
13
|
+
- {role: purchasing_manager, read: true, export: true}
|
|
14
|
+
- {role: sales_manager, read: true}
|
|
15
|
+
- {role: outlet_staff, read: true}
|
|
16
|
+
- {role: warehouse_staff, read: true}
|
|
17
|
+
fields:
|
|
18
|
+
- {name: balance, type: link, to: stock_lot_balance, label: {id: Stok per lot}, required: true, read_only: true}
|
|
19
|
+
- {name: outlet, type: link, to: outlet, label: {id: Lokasi}, required: true, read_only: true, in_list: true}
|
|
20
|
+
- {name: item, type: link, to: item, label: {id: Barang}, required: true, read_only: true, in_list: true}
|
|
21
|
+
- {name: lot, type: link, to: stock_lot, label: {id: Lot}, required: true, read_only: true, in_list: true}
|
|
22
|
+
# the lot number and item name as text, for the notice (a template reads the row's own fields)
|
|
23
|
+
- {name: lot_no, type: data, label: {id: Nomor lot}, read_only: true}
|
|
24
|
+
- {name: item_name, type: data, label: {id: Nama barang}, read_only: true, hidden: true}
|
|
25
|
+
- {name: expiry_date, type: date, label: {id: Kedaluwarsa}, read_only: true, in_list: true}
|
|
26
|
+
- {name: qty, type: float, label: {id: Sisa qty}, read_only: true, in_list: true}
|
|
27
|
+
- {name: days_left, type: int, label: {id: Sisa hari}, read_only: true, in_list: true, help: {id: 'Dihitung tiap pagi; minus = sudah lewat'}}
|
|
28
|
+
- name: state
|
|
29
|
+
type: select
|
|
30
|
+
label: {id: Status}
|
|
31
|
+
read_only: true
|
|
32
|
+
in_list: true
|
|
33
|
+
chip: true
|
|
34
|
+
options:
|
|
35
|
+
- {value: soon, label: {id: Hampir kedaluwarsa}}
|
|
36
|
+
- {value: expired, label: {id: Sudah kedaluwarsa}}
|
|
37
|
+
- {name: alerted_on, type: date, label: {id: Tanggal dikabari}, read_only: true}
|
|
38
|
+
- {name: open, type: check, label: {id: Masih ada stoknya}, read_only: true, in_list: true, in_filter: true}
|
|
39
|
+
# the digest's bookkeeping: the day it last refreshed the row (it refreshes the least recently checked first) and
|
|
40
|
+
# whether the notice about the row went out
|
|
41
|
+
- {name: checked_on, type: date, label: {id: Terakhir diperiksa}, read_only: true}
|
|
42
|
+
- {name: notified, type: check, label: {id: Sudah dikabari}, read_only: true}
|
|
43
|
+
views:
|
|
44
|
+
list:
|
|
45
|
+
columns: [item, lot, expiry_date, days_left, outlet, qty, state]
|
|
46
|
+
filters: [outlet, item, state, open]
|
|
47
|
+
sort: expiry_date
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
# Never stored: a flow that must refuse the change it runs in creates one of these with a reason, and the matching rule
|
|
3
|
+
# fails with that reason's message, which rolls the whole change back (the delivery_guard pattern). Create is granted
|
|
4
|
+
# to the roles that write items, whose saves run flow item_tracking_lock.
|
|
5
|
+
name: stock_guard
|
|
6
|
+
label: {id: Penjaga stok, en: Stock guard}
|
|
7
|
+
icon: check
|
|
8
|
+
naming: SGR-{######}
|
|
9
|
+
title_field: reason
|
|
10
|
+
permissions:
|
|
11
|
+
- {role: head_office, create: true}
|
|
12
|
+
- {role: sales_manager, create: true}
|
|
13
|
+
- {role: finance_manager, create: true}
|
|
14
|
+
- {role: purchasing_manager, create: true}
|
|
15
|
+
- {role: project_admin, create: true}
|
|
16
|
+
fields:
|
|
17
|
+
- name: reason
|
|
18
|
+
type: select
|
|
19
|
+
label: {id: Alasan}
|
|
20
|
+
required: true
|
|
21
|
+
options:
|
|
22
|
+
- {value: lots_in_stock, label: {id: Masih ada stok per lot}}
|
|
23
|
+
- {value: serials_in_stock, label: {id: Masih ada nomor seri di gudang}}
|
|
24
|
+
- {value: stock_without_serials, label: {id: Stok belum bernomor seri}}
|
|
25
|
+
- name: document
|
|
26
|
+
type: data
|
|
27
|
+
label: {id: Dokumen}
|
|
28
|
+
rules:
|
|
29
|
+
- name: lots_in_stock
|
|
30
|
+
on: save
|
|
31
|
+
check: reason != 'lots_in_stock'
|
|
32
|
+
message: {id: 'Barang ini masih punya stok per lot. Habiskan atau sesuaikan stok lotnya dulu sebelum pelacakan lot dimatikan'}
|
|
33
|
+
- name: serials_in_stock
|
|
34
|
+
on: save
|
|
35
|
+
check: reason != 'serials_in_stock'
|
|
36
|
+
message: {id: 'Masih ada nomor seri barang ini di gudang atau dalam perjalanan. Keluarkan unitnya dulu sebelum pelacakan nomor seri dimatikan'}
|
|
37
|
+
- name: stock_without_serials
|
|
38
|
+
on: save
|
|
39
|
+
check: reason != 'stock_without_serials'
|
|
40
|
+
message: {id: 'Barang ini masih punya stok tanpa nomor seri. Nolkan stoknya dulu (opname atau penyesuaian), lalu terima lagi dengan nomor serinya'}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: stock_lot
|
|
3
|
+
label: {id: Lot barang, en: Stock lot}
|
|
4
|
+
icon: stock
|
|
5
|
+
naming: LOT-{#####}
|
|
6
|
+
title_field: lot_no
|
|
7
|
+
# One row per item and lot number (rangka-os contract 0070 §2), created by the first incoming move that names the lot
|
|
8
|
+
# (goods receipt, production batch, transfer receipt, count). Written only by the stock hooks: every field but notes is
|
|
9
|
+
# read_only, and no role may create or delete one. The lot's trace is the stock_move list filtered by this lot.
|
|
10
|
+
permissions:
|
|
11
|
+
- {role: head_office, read: true, write: true, export: true, print: true}
|
|
12
|
+
- {role: purchasing_manager, read: true, export: true}
|
|
13
|
+
- {role: sales_manager, read: true}
|
|
14
|
+
- {role: field_sales, read: true}
|
|
15
|
+
- {role: outlet_staff, read: true}
|
|
16
|
+
- {role: warehouse_staff, read: true}
|
|
17
|
+
- {role: cashier, read: true}
|
|
18
|
+
fields:
|
|
19
|
+
- {name: lot_no, type: data, label: {id: Nomor lot}, required: true, read_only: true, in_list: true}
|
|
20
|
+
- {name: item, type: link, to: item, label: {id: Barang}, required: true, read_only: true, in_list: true}
|
|
21
|
+
- {name: expiry_date, type: date, label: {id: Kedaluwarsa}, read_only: true, in_list: true}
|
|
22
|
+
- {name: made_date, type: date, label: {id: Tanggal produksi}, read_only: true}
|
|
23
|
+
- {name: first_voucher_type, type: data, label: {id: Pertama masuk lewat}, read_only: true}
|
|
24
|
+
- {name: first_voucher, type: data, label: {id: Dokumen pertama}, read_only: true, in_list: true}
|
|
25
|
+
- {name: notes, type: text, label: {id: Catatan}}
|
|
26
|
+
views:
|
|
27
|
+
list:
|
|
28
|
+
columns: [lot_no, item, expiry_date, first_voucher]
|
|
29
|
+
filters: [item]
|
|
30
|
+
sort: expiry_date
|
|
31
|
+
form:
|
|
32
|
+
layout:
|
|
33
|
+
- section: {id: Lot}
|
|
34
|
+
columns:
|
|
35
|
+
- [lot_no, item, first_voucher_type]
|
|
36
|
+
- [expiry_date, made_date, first_voucher]
|
|
37
|
+
- section: {id: Catatan}
|
|
38
|
+
fields: [notes]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: stock_lot_balance
|
|
3
|
+
label: {id: Stok per lot, en: Stock per lot}
|
|
4
|
+
icon: stock
|
|
5
|
+
naming: LB-{######}
|
|
6
|
+
# Quantity per outlet, item and lot (rangka-os contract 0070 §2), written only by the stock hooks. The row with an empty
|
|
7
|
+
# lot is the no-lot bucket: stock from before the item was tracked, or moved by a document without a lot, so the rows
|
|
8
|
+
# of an outlet and item always add up to its stock_balance.qty. Value stays on stock_balance (moving average per
|
|
9
|
+
# outlet and item, no cost per lot in v1). expiry_date and expiry_warn copy the lot and item when the row is written.
|
|
10
|
+
permissions:
|
|
11
|
+
- {role: head_office, read: true, export: true}
|
|
12
|
+
- {role: purchasing_manager, read: true, export: true}
|
|
13
|
+
- {role: sales_manager, read: true}
|
|
14
|
+
- {role: outlet_staff, read: true}
|
|
15
|
+
- {role: warehouse_staff, read: true}
|
|
16
|
+
- {role: cashier, read: true}
|
|
17
|
+
fields:
|
|
18
|
+
- {name: outlet, type: link, to: outlet, label: {id: Lokasi}, required: true, read_only: true, in_list: true}
|
|
19
|
+
- {name: item, type: link, to: item, label: {id: Barang}, required: true, read_only: true, in_list: true}
|
|
20
|
+
- {name: lot, type: link, to: stock_lot, label: {id: Lot}, read_only: true, in_list: true, help: {id: 'Kosong = stok tanpa nomor lot'}}
|
|
21
|
+
# the lot number as text for the list, "Tanpa lot" on the no-lot bucket row (a link cell would be empty)
|
|
22
|
+
- {name: lot_no, type: data, label: {id: Nomor lot}, read_only: true, in_list: true, compute: "lot != '' ? lot.lot_no : 'Tanpa lot'"}
|
|
23
|
+
- {name: qty, type: float, label: {id: Qty}, read_only: true, in_list: true}
|
|
24
|
+
- {name: expiry_date, type: date, label: {id: Kedaluwarsa}, read_only: true, in_list: true, compute: "lot != '' ? lot.expiry_date : ''"}
|
|
25
|
+
- {name: negative, type: check, label: {id: Stok minus}, compute: qty < 0, in_list: true}
|
|
26
|
+
views:
|
|
27
|
+
list:
|
|
28
|
+
columns: [item, lot_no, expiry_date, outlet, qty, negative]
|
|
29
|
+
filters: [outlet, item, lot, negative]
|
|
30
|
+
sort: expiry_date
|
|
@@ -47,8 +47,12 @@ fields:
|
|
|
47
47
|
- {value: return_in, label: {id: Retur penjualan masuk}}
|
|
48
48
|
- {value: production_out, label: {id: Bahan ke produksi}}
|
|
49
49
|
- {value: production_in, label: {id: Hasil produksi}}
|
|
50
|
+
# rangka-os contract 0070: the lot this move took or added (empty = the no-lot bucket) and the serials it moved, one
|
|
51
|
+
# per line. A lot item's line that spans lots writes one move per lot. Filter by lot to trace a lot.
|
|
52
|
+
- {name: lot, type: link, to: stock_lot, label: {id: Lot}, read_only: true, in_list: true}
|
|
53
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri}, read_only: true}
|
|
50
54
|
views:
|
|
51
55
|
list:
|
|
52
|
-
columns: [name, posting_date, outlet, item, qty, value, balance_qty, negative, voucher_type, voucher, reason]
|
|
53
|
-
filters: [outlet, item, reason, negative]
|
|
56
|
+
columns: [name, posting_date, outlet, item, lot, qty, value, balance_qty, negative, voucher_type, voucher, reason]
|
|
57
|
+
filters: [outlet, item, lot, reason, negative]
|
|
54
58
|
sort: -name
|
|
@@ -32,3 +32,7 @@ fields:
|
|
|
32
32
|
compute: "packing == '' ? qty : qty * packing.factor"
|
|
33
33
|
- {name: unit_cost, type: currency, read_only: true, label: {id: Biaya per satuan}, help: {id: 'Diisi saat transfer dikirim: rata-rata outlet asal'}, hidden_for: [outlet_staff, cashier, warehouse_staff]}
|
|
34
34
|
- {name: received_qty, type: float, read_only: true, label: {id: Qty diterima}}
|
|
35
|
+
# rangka-os contract 0070 §7: the lot sent (empty = earliest expiry first) and the serials sent, one per line. The
|
|
36
|
+
# transfer receipt brings the same lots in.
|
|
37
|
+
- {name: lot, type: link, to: stock_lot, label: {id: Lot}, depends_on: "item.tracking in ['lot', 'lot_expiry']", help: {id: 'Kosongkan: lot yang paling dulu kedaluwarsa dikirim'}}
|
|
38
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri}, depends_on: "item.tracking == 'serial'", help: {id: 'Satu nomor seri per baris'}}
|
|
@@ -16,3 +16,6 @@ fields:
|
|
|
16
16
|
label: {id: Qty diterima}
|
|
17
17
|
help: {id: 'Dalam satuan stok barang'}
|
|
18
18
|
required: true
|
|
19
|
+
# rangka-os contract 0070 §7: the serials that arrived, one per line; empty when the line takes the whole remainder
|
|
20
|
+
# of the item (every serial still in transit comes in). Lots follow the transfer, nothing to type.
|
|
21
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri diterima}, depends_on: "item.tracking == 'serial'", help: {id: 'Kosongkan kalau semua unit yang dikirim sudah sampai'}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
2
|
name: stock
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.6.0
|
|
4
4
|
title: {id: Stok, en: Stock}
|
|
5
5
|
summary:
|
|
6
6
|
id: Saldo dan mutasi stok per toko dan gudang, permintaan barang ke gudang, transfer, opname dan penyesuaian.
|
|
@@ -8,7 +8,8 @@ summary:
|
|
|
8
8
|
category: stock
|
|
9
9
|
icon: archive-line
|
|
10
10
|
# contacts: stock_reorder.vendor links a vendor. catalogue already requires contacts, so no site gains a module.
|
|
11
|
-
requires: {rangka: '>=0.5', users: ^1.2, contacts: ^1.0, catalogue: ^1.
|
|
11
|
+
requires: {rangka: '>=0.5', users: ^1.2, contacts: ^1.0, catalogue: ^1.6, outlets: ^1.7}
|
|
12
|
+
# catalogue 1.6: item.tracking and expiry_warning_days (rangka-os contract 0070, lots and serials; rangka-os#260).
|
|
12
13
|
# outlets 1.7: location_type and supply_from (rangka-apps#104: warehouses apart from stores, stock_request).
|
|
13
14
|
# Semantics fixed in docs/kernel-hooks.md (section stock). stock.post_moves is a core hook on the on_submit of
|
|
14
15
|
# goods_receipt, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment and outlet_sales; stock.reverse_moves is declared here.
|
|
@@ -33,3 +34,9 @@ notices:
|
|
|
33
34
|
description: {id: 'Toko meminta barang ke gudang; gudang memproses atau menolak.'}
|
|
34
35
|
severity: info
|
|
35
36
|
to: [warehouse_staff, head_office]
|
|
37
|
+
# flow lot_expiry_digest: every morning, lots with stock that newly entered the item's expiry window (rangka-os#260)
|
|
38
|
+
- name: stock_expiry
|
|
39
|
+
label: {id: Stok hampir kedaluwarsa, en: Expiring stock}
|
|
40
|
+
description: {id: 'Ada lot barang yang masih punya stok dan akan atau sudah lewat tanggal kedaluwarsanya.'}
|
|
41
|
+
severity: warn
|
|
42
|
+
to: [owner, head_office, warehouse_staff]
|