@rangka-os/create 0.5.0-alpha.32 → 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rangka-os/create",
|
|
3
|
-
"version": "0.5.0-alpha.
|
|
3
|
+
"version": "0.5.0-alpha.33",
|
|
4
4
|
"description": "Start a Rangka OS project: npm create @rangka-os@latest my-shop",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"homepage": "https://rangka-os.github.io/rangka-os/guide/quick-start",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
2
|
name: absen_karyawan
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.1.0
|
|
4
4
|
title: {id: Absen karyawan, en: Staff attendance}
|
|
5
5
|
label: {id: Rangka Absen Karyawan, en: Rangka Staff Attendance}
|
|
6
6
|
summary:
|
|
@@ -5,10 +5,10 @@ description: {id: 'Absen masuk dan pulang kamu, hari hadir dan menit terlambat b
|
|
|
5
5
|
# Every widget filters on the member's own employee record, so head office and outlet supervisors (who read more logs)
|
|
6
6
|
# also see only their own days here. Staff are limited to their own logs anyway (staff_attendance read if:).
|
|
7
7
|
default_period: 31
|
|
8
|
-
roles: [
|
|
8
|
+
roles: [member]
|
|
9
9
|
cache: 1m
|
|
10
10
|
widgets:
|
|
11
11
|
- {name: days_present, type: number, label: {id: Hari hadir}, model: staff_attendance, filter: "employee == user.name && docstatus == 1", period: work_date, compact: true, span: 4}
|
|
12
12
|
- {name: late_min, type: number, label: {id: Menit terlambat}, model: staff_attendance, aggregate: sum, field: late_min, filter: "employee == user.name && docstatus == 1", period: work_date, compact: true, span: 4, good_when: down}
|
|
13
13
|
- {name: waiting, type: number, label: {id: Menunggu}, description: {id: 'Sudah absen pulang tapi belum sah: menunggu persetujuan kepala outlet'}, model: staff_attendance, filter: "employee == user.name && docstatus == 0 && clock_out != ''", compact: true, span: 4, good_when: down}
|
|
14
|
-
- {name: recent, type: list, label: {id: Absen terakhir}, model: staff_attendance, filter: "employee == user.name && docstatus != 2", period: work_date, columns: [work_date, clock_in, clock_out, late_min, outside_site, status], sort: -work_date, limit: 31, span: 12}
|
|
14
|
+
- {name: recent, type: list, empty: {id: 'Belum ada absen di periode ini.'}, label: {id: Absen terakhir}, model: staff_attendance, filter: "employee == user.name && docstatus != 2", period: work_date, columns: [work_date, clock_in, clock_out, late_min, outside_site, status], sort: -work_date, limit: 31, span: 12}
|
|
@@ -7,9 +7,9 @@ description: {id: 'Shift kamu hari ini dan 13 hari ke depan, dan permintaan tuka
|
|
|
7
7
|
# (shift_assignment read if:).
|
|
8
8
|
periods: [1]
|
|
9
9
|
default_period: 1
|
|
10
|
-
roles: [
|
|
10
|
+
roles: [member]
|
|
11
11
|
cache: 1m
|
|
12
12
|
widgets:
|
|
13
|
-
- {name: today, type: list, label: {id: Hari ini}, model: shift_assignment, filter: "employee == user.name && published && work_date == today()", columns: [shift_label, outlet, outcome], limit: 1, span: 12}
|
|
14
|
-
- {name: next, type: list, label: {id: 14 hari ke depan}, model: shift_assignment, filter: "employee == user.name && published && work_date > today() && days_between(today(), work_date) <= 13", columns: [work_date, shift_label, outlet], sort: work_date, limit: 14, span: 12}
|
|
15
|
-
- {name: swaps, type: list, label: {id: Tukar shift menunggu}, model: shift_swap, filter: "requested_by == user.name && docstatus == 0", columns: [work_date, my_shift_name, with_note], sort: work_date, limit: 10, span: 12}
|
|
13
|
+
- {name: today, type: list, empty: {id: 'Tidak ada shift hari ini.'}, label: {id: Hari ini}, model: shift_assignment, filter: "employee == user.name && published && work_date == today()", columns: [shift_label, outlet, outcome], limit: 1, span: 12}
|
|
14
|
+
- {name: next, type: list, empty: {id: 'Belum ada jadwal 14 hari ke depan.'}, label: {id: 14 hari ke depan}, model: shift_assignment, filter: "employee == user.name && published && work_date > today() && days_between(today(), work_date) <= 13", columns: [work_date, shift_label, outlet], sort: work_date, limit: 14, span: 12}
|
|
15
|
+
- {name: swaps, type: list, empty: {id: 'Tidak ada permintaan tukar shift.'}, label: {id: Tukar shift menunggu}, model: shift_swap, filter: "requested_by == user.name && docstatus == 0", columns: [work_date, my_shift_name, with_note], sort: work_date, limit: 10, span: 12}
|
|
@@ -37,7 +37,7 @@ menu:
|
|
|
37
37
|
- group: {id: Pengiriman}
|
|
38
38
|
items: [delivery_note, sales_return, order_fulfilment, return_credit]
|
|
39
39
|
- group: {id: Gudang}
|
|
40
|
-
items: [stock_balance, stock_move, stock_request, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
40
|
+
items: [stock_balance, stock_lot_balance, stock_expiry, serial_no, stock_move, stock_request, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
41
41
|
- group: {id: Pembelian}
|
|
42
42
|
items: [purchase_order, goods_receipt, vendor_bill]
|
|
43
43
|
- group: {id: Pembukuan}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
2
|
name: karyawan_gaji
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.2.0
|
|
4
4
|
title: {id: Karyawan dan gaji, en: Staff and payroll}
|
|
5
5
|
label: {id: Rangka Karyawan dan Gaji, en: Rangka Staff and Payroll}
|
|
6
6
|
summary:
|
|
@@ -23,7 +23,11 @@ modules:
|
|
|
23
23
|
attendance: ^1.0
|
|
24
24
|
payroll: ^2.2
|
|
25
25
|
reimbursement: ^1.0
|
|
26
|
-
|
|
26
|
+
# shifts (rangka-apps#120) comes with absen_karyawan; the saya dashboard shows the coming shifts where it is installed
|
|
27
|
+
optional:
|
|
28
|
+
shifts: ^1.0
|
|
29
|
+
# saya: the employee app's page (rangka-os#261, contract 0074), open to every employee whatever their role
|
|
30
|
+
dashboards: [gaji_ringkas, transfer_gaji, klaim_kasbon_saya, saya]
|
|
27
31
|
roles: [finance_manager, head_office, outlet_supervisor, cashier, outlet_staff, employee]
|
|
28
32
|
home: {dashboard: gaji_ringkas}
|
|
29
33
|
# rangka-apps#117: staff claim expenses and ask for a kasbon from their phone (Kerja group); the clock stays their home
|
|
@@ -5,11 +5,11 @@ description: {id: 'Klaim biaya kamu yang menunggu disetujui atau dibayar, dan si
|
|
|
5
5
|
# rangka-apps#117. Every widget filters on the member's own employee record, so head office and outlet supervisors (who
|
|
6
6
|
# read more claims) also see only their own here. Staff are limited to their own rows anyway (permission if:).
|
|
7
7
|
default_period: 92
|
|
8
|
-
roles: [
|
|
8
|
+
roles: [member]
|
|
9
9
|
cache: 1m
|
|
10
10
|
widgets:
|
|
11
11
|
- {name: claims_waiting, type: number, label: {id: Klaim menunggu disetujui}, model: expense_claim, filter: "employee == user.name && docstatus == 0", compact: true, span: 4, good_when: down}
|
|
12
12
|
- {name: claims_due, type: number, label: {id: Klaim menunggu dibayar}, description: {id: 'Sudah disetujui, dibayar tunai, transfer, atau bersama gaji berikutnya'}, model: claim_settlement, aggregate: sum, field: amount, filter: "employee == user.name && !paid && !cancelled", compact: true, span: 4}
|
|
13
13
|
- {name: kasbon_left, type: number, label: {id: Sisa kasbon}, model: cash_advance_balance, aggregate: sum, field: remaining, filter: "employee == user.name && !cancelled", compact: true, span: 4, good_when: down}
|
|
14
|
-
- {name: claims, type: list, label: {id: Klaim saya}, model: expense_claim, filter: "employee == user.name && docstatus != 2", period: claim_date, columns: [claim_date, category, amount, pay_with, status], sort: -claim_date, limit: 31, span: 12}
|
|
15
|
-
- {name: kasbon, type: list, label: {id: Kasbon saya}, model: cash_advance_balance, filter: "employee == user.name && !cancelled", columns: [advance_date, amount, installment, repaid_total, remaining, state], sort: -advance_date, limit: 12, span: 12}
|
|
14
|
+
- {name: claims, type: list, empty: {id: 'Belum ada klaim di periode ini.'}, label: {id: Klaim saya}, model: expense_claim, filter: "employee == user.name && docstatus != 2", period: claim_date, columns: [claim_date, category, amount, pay_with, status], sort: -claim_date, limit: 31, span: 12}
|
|
15
|
+
- {name: kasbon, type: list, empty: {id: 'Tidak ada kasbon yang masih dipotong.'}, label: {id: Kasbon saya}, model: cash_advance_balance, filter: "employee == user.name && !cancelled", columns: [advance_date, amount, installment, repaid_total, remaining, state], sort: -advance_date, limit: 12, span: 12}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: saya
|
|
3
|
+
label: {id: Saya, en: Me}
|
|
4
|
+
description: {id: 'Slip gaji, absen, kasbon, klaim, dan jadwal kamu di satu tempat'}
|
|
5
|
+
# The employee app (rangka-os#261): every employee, whatever their role, opens it from the phone (Lainnya, or the
|
|
6
|
+
# "Slip gaji" shortcut of the installed app). Every widget filters on the person's own employee record, and the member
|
|
7
|
+
# grants (rangka-os contract 0074) let them read only their own rows: payslips once released (submitted, run closed or
|
|
8
|
+
# pay day reached), attendance logs, kasbon, claims and published shifts.
|
|
9
|
+
default_period: 31
|
|
10
|
+
roles: [member]
|
|
11
|
+
cache: 1m
|
|
12
|
+
widgets:
|
|
13
|
+
- {name: pay, type: number, label: {id: Gaji bersih diterima}, description: {id: 'Jumlah slip gaji yang periodenya berakhir di rentang ini'}, model: payslip, aggregate: sum, field: net_pay, filter: "employee == user.name && docstatus == 1", period: run_period_to, compact: true, span: 4}
|
|
14
|
+
- {name: days_present, type: number, label: {id: Hari hadir}, model: staff_attendance, filter: "employee == user.name && docstatus == 1", period: work_date, compact: true, span: 4}
|
|
15
|
+
- {name: late_min, type: number, label: {id: Menit terlambat}, model: staff_attendance, aggregate: sum, field: late_min, filter: "employee == user.name && docstatus == 1", period: work_date, compact: true, span: 4, good_when: down}
|
|
16
|
+
- {name: slips, type: list, empty: {id: 'Belum ada slip gaji. Slip muncul setelah gaji periode itu dibayar.'}, label: {id: Slip gaji saya}, description: {id: 'Slip muncul setelah gaji periode itu dibayar. Buka slip untuk mencetak atau menyimpan PDF.'}, model: payslip, filter: "employee == user.name && docstatus == 1", columns: [run_period_from, net_pay, run_period_to], sort: -run_period_to, limit: 12, span: 12}
|
|
17
|
+
- {name: next_shifts, type: list, empty: {id: 'Belum ada jadwal minggu ini.'}, label: {id: Jadwal 7 hari ke depan}, model: shift_assignment, filter: "employee == user.name && published && work_date >= today() && days_between(today(), work_date) <= 6", columns: [work_date, shift_label, outlet], sort: work_date, limit: 7, span: 12, if: "app_installed('shifts')"}
|
|
18
|
+
- {name: kasbon_left, type: number, label: {id: Sisa kasbon}, model: cash_advance_balance, aggregate: sum, field: remaining, filter: "employee == user.name && !cancelled", compact: true, span: 6, good_when: down}
|
|
19
|
+
- {name: claims_due, type: number, label: {id: Klaim menunggu dibayar}, model: claim_settlement, aggregate: sum, field: amount, filter: "employee == user.name && !paid && !cancelled", compact: true, span: 6}
|
|
20
|
+
- {name: attendance, type: list, empty: {id: 'Belum ada absen di periode ini.'}, label: {id: Absen terakhir}, model: staff_attendance, filter: "employee == user.name && docstatus != 2", period: work_date, columns: [work_date, status], sort: -work_date, limit: 7, span: 12}
|
|
@@ -26,6 +26,9 @@ runs) and `reimbursement`. Install `absen_karyawan` next to it for the clock scr
|
|
|
26
26
|
6. Expense claims: staff claim with a receipt photo (screen `klaim_biaya`); the outlet supervisor or head office
|
|
27
27
|
approves; finance pays it from cash or bank (`claim_payment`) or it rides on the next slip as `reimbursement`,
|
|
28
28
|
outside the taxable gross. docs/reimbursement.md.
|
|
29
|
+
7. Every employee, whatever their role, opens dashboard `saya` from the phone (or the "Slip gaji" shortcut of the
|
|
30
|
+
installed app): their own payslips, attendance, kasbon, claims and coming shifts (member grants, rangka-os contract
|
|
31
|
+
0074). A slip shows there once released: submitted, and its run closed or its pay date reached.
|
|
29
32
|
|
|
30
33
|
## First day (first-day.json)
|
|
31
34
|
|
|
@@ -34,7 +34,7 @@ menu:
|
|
|
34
34
|
- group: {id: Resep dan tarif}
|
|
35
35
|
items: [bom, production_stage, worker]
|
|
36
36
|
- group: {id: Stok}
|
|
37
|
-
items: [stock_balance, stock_move, stock_request, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
37
|
+
items: [stock_balance, stock_lot_balance, stock_expiry, serial_no, stock_move, stock_request, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
38
38
|
- group: {id: Pembelian}
|
|
39
39
|
items: [purchase_order, goods_receipt, vendor_bill, payment]
|
|
40
40
|
- group: {id: Pembukuan}
|
|
@@ -36,7 +36,7 @@ menu:
|
|
|
36
36
|
- group: {id: Penjualan toko}
|
|
37
37
|
items: [outlet_sales, outlet_takings, pos_refund, outlet_return, moka_sale_line, moka_transaction]
|
|
38
38
|
- group: {id: Stok}
|
|
39
|
-
items: [stock_balance, stock_move, stock_request, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
39
|
+
items: [stock_balance, stock_lot_balance, stock_expiry, stock_move, stock_request, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
40
40
|
- group: {id: Pembelian}
|
|
41
41
|
items: [purchase_request, purchase_order, goods_receipt, vendor_bill, payment]
|
|
42
42
|
- group: {id: Bank}
|
|
@@ -15,10 +15,8 @@ permissions:
|
|
|
15
15
|
# Finance reads every summary: payroll_run_fill runs as the person ticking "Isi slip dari absen" and fills the payslips
|
|
16
16
|
# from them (rangka-apps#101 slice b). Read only: days, lateness and overtime, no position or selfie (staff_attendance).
|
|
17
17
|
- {role: finance_manager, read: true}
|
|
18
|
-
# Staff read their own.
|
|
19
|
-
- {role:
|
|
20
|
-
- {role: outlet_staff, read: true, if: "employee == user.name"}
|
|
21
|
-
- {role: employee, read: true, if: "employee == user.name"}
|
|
18
|
+
# Staff read their own: every employee whatever their role (member grant, rangka-os contract 0074).
|
|
19
|
+
- {role: member, read: true, if: "employee == user.name"}
|
|
22
20
|
fields:
|
|
23
21
|
- {name: attendance_period, type: link, to: attendance_period, label: {id: Rekap absen}, read_only: true, in_list: true}
|
|
24
22
|
- {name: employee, type: link, to: user, label: {id: Karyawan}, read_only: true}
|
|
@@ -30,6 +30,9 @@ permissions:
|
|
|
30
30
|
- {role: cashier, read: true, create: true, write: true, submit: true, if: "employee == user.name"}
|
|
31
31
|
- {role: outlet_staff, read: true, create: true, write: true, submit: true, if: "employee == user.name"}
|
|
32
32
|
- {role: employee, read: true, create: true, write: true, submit: true, if: "employee == user.name"}
|
|
33
|
+
# Every employee whatever their role reads their own logs (member grant, rangka-os contract 0074). Clocking in stays
|
|
34
|
+
# with the roles above: its flows create guard records those roles are granted.
|
|
35
|
+
- {role: member, read: true, if: "employee == user.name"}
|
|
33
36
|
# The outlet supervisor reads and prints the logs of their outlets and decides the held submits; they clock in too.
|
|
34
37
|
- {role: outlet_supervisor, read: true, print: true}
|
|
35
38
|
- {role: outlet_supervisor, create: true, write: 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: attendance
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.2.0
|
|
4
4
|
title: {id: Absen karyawan, en: Staff attendance}
|
|
5
5
|
summary:
|
|
6
6
|
id: Absen masuk dan pulang dari HP di outlet, dengan lokasi GPS dan selfie, terlambat dan lembur, rekap bulanan per karyawan.
|
|
@@ -94,6 +94,26 @@ fields:
|
|
|
94
94
|
type: int
|
|
95
95
|
label: {id: Umur simpan (hari)}
|
|
96
96
|
depends_on: app_installed('production')
|
|
97
|
+
# Lots and serials (module stock, rangka-os contract 0070): lot = quantity per batch number (FEFO on the way out),
|
|
98
|
+
# lot_expiry = lot plus an expiry date that goods receipts must give, serial = one serial number per unit. Empty or
|
|
99
|
+
# none moves stock as before. Switching it on for an item with stock puts that stock in the no-lot bucket.
|
|
100
|
+
- name: tracking
|
|
101
|
+
type: select
|
|
102
|
+
label: {id: Pelacakan stok, en: Stock tracking}
|
|
103
|
+
help: {id: 'Per lot untuk barang bernomor batch (obat, makanan, kosmetik). Per nomor seri untuk barang yang tiap unitnya bernomor (HP, mesin)'}
|
|
104
|
+
default: "'none'"
|
|
105
|
+
depends_on: app_installed('stock') && kind != 'service'
|
|
106
|
+
options:
|
|
107
|
+
- {value: none, label: {id: Tidak dilacak}}
|
|
108
|
+
- {value: lot, label: {id: Per lot}}
|
|
109
|
+
- {value: lot_expiry, label: {id: Per lot dengan tanggal kedaluwarsa}}
|
|
110
|
+
- {value: serial, label: {id: Per nomor seri}}
|
|
111
|
+
- name: expiry_warning_days
|
|
112
|
+
type: int
|
|
113
|
+
label: {id: Kabari sebelum kedaluwarsa (hari), en: Expiry warning (days)}
|
|
114
|
+
help: {id: 'Lot yang kedaluwarsa dalam jumlah hari ini masuk daftar Stok hampir kedaluwarsa. 0 = 30 hari'}
|
|
115
|
+
default: '30'
|
|
116
|
+
depends_on: app_installed('stock') && tracking == 'lot_expiry'
|
|
97
117
|
- name: standard_cost
|
|
98
118
|
type: currency
|
|
99
119
|
label: {id: Harga pokok standar}
|
|
@@ -200,6 +220,10 @@ fields:
|
|
|
200
220
|
in_list: true
|
|
201
221
|
in_filter: true
|
|
202
222
|
rules:
|
|
223
|
+
- name: expiry_warning_not_negative
|
|
224
|
+
on: save
|
|
225
|
+
check: expiry_warning_days >= 0
|
|
226
|
+
message: {id: Hari peringatan kedaluwarsa tidak boleh negatif}
|
|
203
227
|
- name: reorder_not_negative
|
|
204
228
|
on: save
|
|
205
229
|
check: reorder_level >= 0 && reorder_qty >= 0
|
|
@@ -42,7 +42,9 @@ fields:
|
|
|
42
42
|
stock:
|
|
43
43
|
date: delivery_date
|
|
44
44
|
moves:
|
|
45
|
-
-
|
|
45
|
+
# rangka-os contract 0070 §5: a lot item leaves from the lot picked on the line, else earliest expiry first
|
|
46
|
+
# (FEFO), skipping expired lots; a serial item names the units that leave
|
|
47
|
+
- {lines: items, out: outlet, reason: delivery, cogs: cogs, lot: {pick: lot}, serials: serial_nos}
|
|
46
48
|
cogs_total: cogs_total
|
|
47
49
|
# Credit control at the door (module distribution): goods do not leave for a customer on hold, overdue, or whose open
|
|
48
50
|
# invoices + goods delivered and not yet invoiced + this delivery go over its limit, without the sales manager or
|
|
@@ -9,3 +9,7 @@ fields:
|
|
|
9
9
|
# the unit's name for the printed surat jalan (a print reads only top-level links)
|
|
10
10
|
- {name: uom_name, type: data, label: {id: Nama satuan}, hidden: true, compute: "uom != '' ? uom.uom_name : ''"}
|
|
11
11
|
- {name: cogs, type: currency, label: {id: Harga pokok}, read_only: true, hidden_for: [field_sales]}
|
|
12
|
+
# rangka-os contract 0070: the lot to send (empty = the lot that expires first, expired lots skipped) and, for a serial
|
|
13
|
+
# item, the serials that leave, one per line. The lots taken are on the stock moves of this note.
|
|
14
|
+
- {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'}}
|
|
15
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri}, depends_on: "item.tracking == 'serial'", help: {id: 'Satu nomor seri per baris'}}
|
|
@@ -40,8 +40,8 @@ fields:
|
|
|
40
40
|
stock:
|
|
41
41
|
date: return_date
|
|
42
42
|
moves:
|
|
43
|
-
- {lines: items, in: outlet, if: "line.condition == 'good'", reason: return_in, cost: {source: delivery_note}}
|
|
44
|
-
- {lines: items, in: damaged_outlet, if: "line.condition == 'damaged'", reason: return_in, cost: {source: delivery_note}}
|
|
43
|
+
- {lines: items, in: outlet, if: "line.condition == 'good'", reason: return_in, cost: {source: delivery_note}, serials: serial_nos}
|
|
44
|
+
- {lines: items, in: damaged_outlet, if: "line.condition == 'damaged'", reason: return_in, cost: {source: delivery_note}, serials: serial_nos}
|
|
45
45
|
rules:
|
|
46
46
|
- name: qty_positive
|
|
47
47
|
on: save
|
|
@@ -14,3 +14,6 @@ fields:
|
|
|
14
14
|
options:
|
|
15
15
|
- {value: good, label: {id: Baik (bisa dijual lagi)}}
|
|
16
16
|
- {value: damaged, label: {id: Rusak}}
|
|
17
|
+
# rangka-os contract 0070: a lot item goes back into the lot its delivery note took (when that was one lot); a serial
|
|
18
|
+
# item names the units that came back, one per line
|
|
19
|
+
- {name: serial_nos, type: text, label: {id: Nomor seri}, depends_on: "item.tracking == 'serial'", help: {id: 'Satu nomor seri per baris'}}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
# it. order_fulfilment keeps per order what was ordered, delivered, returned and invoiced, because a submitted order
|
|
6
6
|
# cannot be written (K-p, contract 0022, will move this into the kernel's conversions).
|
|
7
7
|
name: delivery
|
|
8
|
-
version: 1.
|
|
8
|
+
version: 1.2.0
|
|
9
9
|
title: {id: Pengiriman dan retur, en: Delivery and returns}
|
|
10
10
|
summary:
|
|
11
11
|
id: Surat jalan, pemenuhan pesanan dan retur penjualan.
|
|
12
12
|
en: Delivery notes, order fulfilment and sales returns.
|
|
13
13
|
category: operations
|
|
14
14
|
icon: truck-line
|
|
15
|
-
requires: {rangka: '>=0.5', users: ^1.0, contacts: ^1.0, catalogue: ^1.
|
|
15
|
+
requires: {rangka: '>=0.5', users: ^1.0, contacts: ^1.0, catalogue: ^1.6, outlets: ^1.0, stock: ^1.6, orders: ^1.0, invoicing: ^1.0, payments: ^1.0}
|
|
16
16
|
hooks: [stock.reverse_moves]
|
|
@@ -36,6 +36,8 @@ permissions:
|
|
|
36
36
|
- {role: outlet_staff, create: true, write: true, delete: true, if: "requested_by == user.name && worker == ''"}
|
|
37
37
|
- {role: outlet_supervisor, read: true, if: "requested_by == user.name || employee == user.name"}
|
|
38
38
|
- {role: outlet_supervisor, create: true, write: true, delete: true, if: "requested_by == user.name && worker == ''"}
|
|
39
|
+
# Every employee whatever their role reads their own kasbon (member grant, rangka-os contract 0074).
|
|
40
|
+
- {role: member, read: true, if: "requested_by == user.name || employee == user.name"}
|
|
39
41
|
fields:
|
|
40
42
|
# Empty on a staff request (staff do not read the worker list): finance picks it before submitting (rule
|
|
41
43
|
# worker_on_submit), and on a request it must be the requester's own worker record (rule request_own_worker).
|
|
@@ -15,10 +15,8 @@ permissions:
|
|
|
15
15
|
- {role: head_office, read: true, export: true}
|
|
16
16
|
# the recap flow of a client run reads it when it drafts a slip (payslip_from_recap runs as the project admin)
|
|
17
17
|
- {role: project_admin, read: true}
|
|
18
|
-
|
|
19
|
-
- {role:
|
|
20
|
-
- {role: outlet_staff, read: true, if: "employee == user.name"}
|
|
21
|
-
- {role: outlet_supervisor, read: true, if: "employee == user.name"}
|
|
18
|
+
# what is left of their own kasbon: every employee whatever their role (member grant, rangka-os contract 0074)
|
|
19
|
+
- {role: member, read: true, if: "employee == user.name"}
|
|
22
20
|
fields:
|
|
23
21
|
- name: cash_advance
|
|
24
22
|
type: link
|
|
@@ -15,14 +15,22 @@ permissions:
|
|
|
15
15
|
- {role: finance_manager, read: true, create: true, write: true, delete: true, submit: true, cancel: true, amend: true, export: true, print: true}
|
|
16
16
|
# Recaps are submitted by the project admin; their flow makes the draft slip as that person (no submit).
|
|
17
17
|
- {role: project_admin, read: true, create: true}
|
|
18
|
+
# Every employee reads and prints their own slip from the phone, whatever their role (member grant, rangka-os contract
|
|
19
|
+
# 0074; rangka-os#261), once it is released: submitted, and its run closed or its pay date reached. A draft or a
|
|
20
|
+
# submitted slip before pay day stays with finance, so a figure still being checked is never shown. The run, profile
|
|
21
|
+
# and tax working fields are hidden_for every role but finance_manager and project_admin, so the employee sees
|
|
22
|
+
# period, pay, deductions, net pay and bank; the print reads only fields left visible.
|
|
23
|
+
- {role: member, read: true, print: true, if: "employee == user.name && docstatus == 1 && (payroll_run.closed || (payroll_run.pay_date != '' && payroll_run.pay_date <= today()))"}
|
|
18
24
|
fields:
|
|
19
25
|
- name: payroll_run
|
|
26
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
20
27
|
type: link
|
|
21
28
|
to: payroll_run
|
|
22
29
|
label: {id: Periode gaji}
|
|
23
30
|
required: true
|
|
24
31
|
in_list: true
|
|
25
32
|
- name: profile
|
|
33
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
26
34
|
type: link
|
|
27
35
|
to: payroll_profile
|
|
28
36
|
label: {id: Data gaji pekerja}
|
|
@@ -49,12 +57,23 @@ fields:
|
|
|
49
57
|
to: user
|
|
50
58
|
label: {id: Karyawan, en: Employee}
|
|
51
59
|
compute: profile.worker.employee
|
|
60
|
+
# Who the slip is for and where it is paid, copied from the worker and the profile so the printed slip (print payslip)
|
|
61
|
+
# needs no read of them: an employee reading their own slip (member grant) does not read the worker record, which
|
|
62
|
+
# holds the cost rates. A slip submitted before payroll 2.3.0 keeps these empty (the kernel does not backfill a
|
|
63
|
+
# computed link read on a submitted document): the print falls back to the linked worker and profile, which finance
|
|
64
|
+
# reads; the employee's own print of such an old slip shows no name or account line (audit 261a F1).
|
|
65
|
+
- {name: slip_worker_name, type: data, label: {id: Nama pekerja, en: Worker name}, hidden: true, compute: profile.worker.worker_name}
|
|
66
|
+
- {name: slip_employee_no, type: data, label: {id: No. pegawai, en: Employee number}, hidden: true, compute: profile.worker.employee_no}
|
|
67
|
+
- {name: slip_role_title, type: data, label: {id: Jabatan, en: Job title}, hidden: true, compute: profile.worker.role_title}
|
|
68
|
+
- {name: slip_bank_name, type: data, label: {id: Bank, en: Bank}, hidden: true, compute: profile.bank_name}
|
|
69
|
+
- {name: slip_bank_account, type: data, label: {id: Nomor rekening, en: Account number}, hidden: true, compute: profile.bank_account}
|
|
52
70
|
- name: project
|
|
53
71
|
type: link
|
|
54
72
|
to: project
|
|
55
73
|
label: {id: Proyek}
|
|
56
74
|
compute: payroll_run.project
|
|
57
75
|
- name: timesheet
|
|
76
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
58
77
|
type: link
|
|
59
78
|
to: timesheet
|
|
60
79
|
label: {id: Rekap absensi}
|
|
@@ -62,6 +81,7 @@ fields:
|
|
|
62
81
|
# The staff attendance summary (module attendance) the slip was filled from by payroll_run_fill or
|
|
63
82
|
# payslip_from_attendance: the last one of the run's period when there were several. Empty for a slip typed by hand.
|
|
64
83
|
- name: attendance_summary
|
|
84
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
65
85
|
type: link
|
|
66
86
|
to: attendance_summary
|
|
67
87
|
label: {id: Rekap absen karyawan, en: Staff attendance summary}
|
|
@@ -76,10 +96,11 @@ fields:
|
|
|
76
96
|
- {name: att_days, type: float, label: {id: Hari hadir menurut rekap}, default: '0', read_only: true, hidden: true}
|
|
77
97
|
- {name: att_late, type: int, label: {id: Menit telat menurut rekap}, default: '0', read_only: true, hidden: true}
|
|
78
98
|
- {name: att_ot, type: float, label: {id: Jam lembur menurut rekap}, default: '0', read_only: true, hidden: true}
|
|
79
|
-
- {name: tax_year, type: int, label: {id: Tahun pajak}, default: payroll_run.tax_year}
|
|
99
|
+
- {name: tax_year, type: int, grouping: false, label: {id: Tahun pajak}, default: payroll_run.tax_year}
|
|
80
100
|
- {name: tax_month, type: int, label: {id: Bulan pajak}, default: payroll_run.tax_month}
|
|
81
101
|
# December, or the month the worker leaves: PPh 21 is recomputed for the year (Pasal 17).
|
|
82
102
|
- name: last_month
|
|
103
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
83
104
|
type: check
|
|
84
105
|
label: {id: Masa pajak terakhir (Desember atau keluar)}
|
|
85
106
|
default: payroll_run.tax_month == 12
|
|
@@ -92,6 +113,7 @@ fields:
|
|
|
92
113
|
- {value: daily, label: {id: Harian}}
|
|
93
114
|
- {value: monthly, label: {id: Bulanan}}
|
|
94
115
|
- name: employment
|
|
116
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
95
117
|
type: select
|
|
96
118
|
label: {id: Status pegawai (PPh 21)}
|
|
97
119
|
default: profile.employment
|
|
@@ -134,7 +156,7 @@ fields:
|
|
|
134
156
|
# A kasbon of this worker not yet repaid in full by the submitted slips linking it, found when the slip is made
|
|
135
157
|
# (payslip_ytd_on_create, payslip_from_recap). A deduction without a link while one is open is warned at submit
|
|
136
158
|
# (audit gelombang 3 r2 R1): linked, the kasbon cannot be cancelled after its repayment.
|
|
137
|
-
- {name: open_advance, type: link, to: cash_advance, label: {id: Kasbon belum lunas}, read_only: true}
|
|
159
|
+
- {name: open_advance, type: link, to: cash_advance, label: {id: Kasbon belum lunas}, read_only: true, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
138
160
|
# The slip-making flows (payslip_from_recap, payslip_from_attendance and the fills, payslip_ytd_on_create) put the
|
|
139
161
|
# open kasbon's monthly installment here: cash_advance = that kasbon, other_deduction = min(installment, what is left
|
|
140
162
|
# after the submitted slips), when the kasbon has an installment (rangka-apps#117). Editable while the slip is a draft.
|
|
@@ -146,6 +168,7 @@ fields:
|
|
|
146
168
|
# which are then marked paid by this slip; a cancel releases them.
|
|
147
169
|
- {name: reimbursement, type: currency, label: {id: Penggantian biaya (tidak kena pajak), en: Expense reimbursement (untaxed)}, default: '0'}
|
|
148
170
|
- name: ptkp_status
|
|
171
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
149
172
|
type: select
|
|
150
173
|
label: {id: Status PTKP}
|
|
151
174
|
default: profile.ptkp_status
|
|
@@ -158,17 +181,17 @@ fields:
|
|
|
158
181
|
- {value: k1, label: {id: K/1}}
|
|
159
182
|
- {value: k2, label: {id: K/2}}
|
|
160
183
|
- {value: k3, label: {id: K/3}}
|
|
161
|
-
- {name: has_tax_id, type: check, label: {id: Punya NIK/NPWP valid}, default: profile.has_tax_id}
|
|
162
|
-
- {name: bpjs_tk, type: check, label: {id: BPJS Ketenagakerjaan}, default: profile.bpjs_tk}
|
|
163
|
-
- {name: bpjs_jp, type: check, label: {id: Jaminan Pensiun}, default: profile.bpjs_jp}
|
|
164
|
-
- {name: bpjs_kes, type: check, label: {id: BPJS Kesehatan}, default: profile.bpjs_kes}
|
|
184
|
+
- {name: has_tax_id, type: check, label: {id: Punya NIK/NPWP valid}, default: profile.has_tax_id, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
185
|
+
- {name: bpjs_tk, type: check, label: {id: BPJS Ketenagakerjaan}, default: profile.bpjs_tk, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
186
|
+
- {name: bpjs_jp, type: check, label: {id: Jaminan Pensiun}, default: profile.bpjs_jp, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
187
|
+
- {name: bpjs_kes, type: check, label: {id: BPJS Kesehatan}, default: profile.bpjs_kes, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
165
188
|
# The recap's own labour cost, already on the project ledger (project_labor_on_submit): the run books only the rest.
|
|
166
|
-
- {name: timesheet_cost, type: currency, label: {id: Biaya sudah dibukukan absensi}, compute: "timesheet != '' ? timesheet.cost_amount : 0"}
|
|
189
|
+
- {name: timesheet_cost, type: currency, label: {id: Biaya sudah dibukukan absensi}, compute: "timesheet != '' ? timesheet.cost_amount : 0", hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
167
190
|
# Year to date (earlier submitted slips of this worker and tax year), filled by payslip_ytd_on_create.
|
|
168
|
-
- {name: ytd_gross, type: currency, label: {id: Bruto sebelumnya tahun ini}, default: '0', read_only: true}
|
|
169
|
-
- {name: ytd_pph21, type: currency, label: {id: PPh 21 sebelumnya tahun ini}, default: '0', read_only: true}
|
|
170
|
-
- {name: ytd_pension, type: currency, label: {id: JHT + JP pekerja sebelumnya}, default: '0', read_only: true}
|
|
171
|
-
- {name: ytd_months, type: int, label: {id: Bulan sebelumnya tahun ini}, default: '0', read_only: true}
|
|
191
|
+
- {name: ytd_gross, type: currency, label: {id: Bruto sebelumnya tahun ini}, default: '0', read_only: true, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
192
|
+
- {name: ytd_pph21, type: currency, label: {id: PPh 21 sebelumnya tahun ini}, default: '0', read_only: true, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
193
|
+
- {name: ytd_pension, type: currency, label: {id: JHT + JP pekerja sebelumnya}, default: '0', read_only: true, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
194
|
+
- {name: ytd_months, type: int, label: {id: Bulan sebelumnya tahun ini}, default: '0', read_only: true, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
172
195
|
# Pay.
|
|
173
196
|
- name: unpaid_deduction
|
|
174
197
|
type: currency
|
|
@@ -218,6 +241,7 @@ fields:
|
|
|
218
241
|
label: {id: Dasar upah BPJS}
|
|
219
242
|
compute: "(pay_basis == 'monthly' ? monthly_salary : base_pay) + fixed_allowance > payroll_run.umk ? (pay_basis == 'monthly' ? monthly_salary : base_pay) + fixed_allowance : payroll_run.umk"
|
|
220
243
|
- name: below_umk
|
|
244
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
221
245
|
type: check
|
|
222
246
|
label: {id: Upah di bawah UMK}
|
|
223
247
|
compute: "(pay_basis == 'monthly' ? monthly_salary : day_rate * (payroll_run.workdays_per_week == 5 ? 21 : 25)) < payroll_run.umk"
|
|
@@ -241,6 +265,7 @@ fields:
|
|
|
241
265
|
# TER in basis points of a percent (25 = 0,25%): the PP 58/2023 tables as [upper bound, step to the next rate], summed
|
|
242
266
|
# over the bounds the gross is above. Replace the three lists when the table changes.
|
|
243
267
|
- name: ter_bp
|
|
268
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
244
269
|
type: int
|
|
245
270
|
label: {id: TER (per sepuluh ribu)}
|
|
246
271
|
compute: >-
|
|
@@ -282,27 +307,32 @@ fields:
|
|
|
282
307
|
+ (gross_taxable * 0.5 > 5000000000 ? gross_taxable * 0.5 - 5000000000 : 0) * 35) * (has_tax_id ? 100 : 120) / 10000.0 - 0.5))
|
|
283
308
|
# Annual recomputation (last_month).
|
|
284
309
|
- name: ptkp
|
|
310
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
285
311
|
type: currency
|
|
286
312
|
label: {id: PTKP setahun}
|
|
287
313
|
compute: "54000000 + (ptkp_status.startsWith('k') ? 4500000 : 0) + (ptkp_status.endsWith('1') ? 4500000 : (ptkp_status.endsWith('2') ? 9000000 : (ptkp_status.endsWith('3') ? 13500000 : 0)))"
|
|
288
|
-
- {name: year_gross, type: currency, label: {id: Bruto setahun}, compute: ytd_gross + gross_taxable}
|
|
314
|
+
- {name: year_gross, type: currency, label: {id: Bruto setahun}, compute: ytd_gross + gross_taxable, hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]}
|
|
289
315
|
# Biaya jabatan 5%, at most 500.000 per month worked (6.000.000 a year).
|
|
290
316
|
- name: job_cost
|
|
317
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
291
318
|
type: currency
|
|
292
319
|
label: {id: Biaya jabatan setahun}
|
|
293
320
|
compute: "round(year_gross * 5 / 100.0 - 0.5) < 500000 * (ytd_months + 1) ? round(year_gross * 5 / 100.0 - 0.5) : 500000 * (ytd_months + 1)"
|
|
294
321
|
- name: year_net
|
|
322
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
295
323
|
type: currency
|
|
296
324
|
label: {id: Neto setahun}
|
|
297
325
|
compute: year_gross - job_cost - ytd_pension - jht_employee - jp_employee
|
|
298
326
|
# Rounded down to thousands.
|
|
299
327
|
- name: year_pkp
|
|
328
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
300
329
|
type: currency
|
|
301
330
|
label: {id: PKP setahun}
|
|
302
331
|
compute: "year_net > ptkp ? round((year_net - ptkp) / 1000.0 - 0.5) * 1000 : 0"
|
|
303
332
|
# Pasal 17 layers 5/15/25/30/35% on PKP (a multiple of 1.000, so every layer is whole rupiah), x 120% without a tax
|
|
304
333
|
# number, truncated to the rupiah.
|
|
305
334
|
- name: year_pph21
|
|
335
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
306
336
|
type: currency
|
|
307
337
|
label: {id: PPh 21 setahun (Pasal 17)}
|
|
308
338
|
compute: >-
|
|
@@ -338,6 +368,7 @@ fields:
|
|
|
338
368
|
compute: cash_gross - employee_bpjs - pph21 - other_deduction + reimbursement
|
|
339
369
|
in_list: true
|
|
340
370
|
- name: employer_cost
|
|
371
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
341
372
|
type: currency
|
|
342
373
|
label: {id: Biaya perusahaan}
|
|
343
374
|
compute: cash_gross + employer_bpjs
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
{{template "letterhead" .}}
|
|
15
15
|
<h1>Slip gaji</h1>
|
|
16
16
|
<table class="meta">
|
|
17
|
-
<tr><td>Nama</td><td>: {{.Links.worker.worker_name}}</td><td>No. slip</td><td>: {{.Doc.name}}</td></tr>
|
|
18
|
-
<tr><td>No. pegawai</td><td>: {{.Links.worker.employee_no}}</td><td>Masa pajak</td><td>: {{.Doc.tax_month}}/{{.Doc.tax_year}}</td></tr>
|
|
19
|
-
<tr><td>Jabatan</td><td>: {{.Links.worker.role_title}}</td><td>Periode</td><td>: {{date .
|
|
17
|
+
<tr><td>Nama</td><td>: {{or .Doc.slip_worker_name .Links.worker.worker_name}}</td><td>No. slip</td><td>: {{.Doc.name}}</td></tr>
|
|
18
|
+
<tr><td>No. pegawai</td><td>: {{or .Doc.slip_employee_no .Links.worker.employee_no}}</td><td>Masa pajak</td><td>: {{.Doc.tax_month}}/{{.Doc.tax_year}}</td></tr>
|
|
19
|
+
<tr><td>Jabatan</td><td>: {{or .Doc.slip_role_title .Links.worker.role_title}}</td><td>Periode</td><td>: {{date .Doc.run_period_from}} s.d. {{date .Doc.run_period_to}}</td></tr>
|
|
20
20
|
<tr><td>Hari hadir</td><td>: {{.Doc.days}}</td><td>Lembur</td><td>: {{.Doc.overtime_hours}} jam</td></tr>
|
|
21
21
|
</table>
|
|
22
22
|
<div class="cols">
|
|
@@ -55,4 +55,4 @@
|
|
|
55
55
|
<div class="net"><span>Gaji bersih diterima</span><span>{{rupiah .Doc.net_pay}}</span></div>
|
|
56
56
|
<p class="note">Ditanggung perusahaan, tidak dipotong dari gaji: JKK {{rupiah .Doc.jkk}}, JKM {{rupiah .Doc.jkm}}, JHT 3,7% {{rupiah .Doc.jht_employer}}, JP 2% {{rupiah .Doc.jp_employer}}, BPJS Kesehatan 4% {{rupiah .Doc.kes_employer}}.
|
|
57
57
|
Dasar upah BPJS {{rupiah .Doc.bpjs_base}}. {{if .Doc.ter_daily}}PPh 21 TER harian, bruto sehari {{rupiah .Doc.daily_gross}}{{else}}PPh 21 kategori TER {{.Doc.ter_category}}{{end}}, bruto {{rupiah .Doc.gross_taxable}}.</p>
|
|
58
|
-
{{
|
|
58
|
+
{{with or .Doc.slip_bank_account .Links.profile.bank_account}}<p class="note">Ditransfer ke {{or $.Doc.slip_bank_name $.Links.profile.bank_name}} {{.}}.</p>{{end}}
|
|
@@ -40,3 +40,24 @@ fields:
|
|
|
40
40
|
type: currency
|
|
41
41
|
label: {id: Biaya per satuan stok}
|
|
42
42
|
compute: "stock_qty > 0 ? round(amount / stock_qty) : 0"
|
|
43
|
+
# rangka-os contract 0070 §7 (goods_receipt stays on the kernel's Go rule, which reads these line fields): the lot
|
|
44
|
+
# number and dates printed on the pack, and for a serial item one serial per line. Empty lot number on a lot item puts
|
|
45
|
+
# the quantity in the no-lot bucket; a lot item with expiry needs it (409 lot_required at submit).
|
|
46
|
+
- name: lot_no
|
|
47
|
+
type: data
|
|
48
|
+
label: {id: Nomor lot / batch}
|
|
49
|
+
depends_on: "item.tracking in ['lot', 'lot_expiry']"
|
|
50
|
+
- name: expiry_date
|
|
51
|
+
type: date
|
|
52
|
+
label: {id: Kedaluwarsa}
|
|
53
|
+
help: {id: 'Wajib untuk lot baru. Lot yang sudah tercatat memakai tanggalnya sendiri'}
|
|
54
|
+
depends_on: "item.tracking == 'lot_expiry'"
|
|
55
|
+
- name: made_date
|
|
56
|
+
type: date
|
|
57
|
+
label: {id: Tanggal produksi}
|
|
58
|
+
depends_on: "item.tracking in ['lot', 'lot_expiry']"
|
|
59
|
+
- name: serial_nos
|
|
60
|
+
type: text
|
|
61
|
+
label: {id: Nomor seri}
|
|
62
|
+
help: {id: 'Satu nomor seri per baris; jumlahnya sama dengan qty'}
|
|
63
|
+
depends_on: "item.tracking == 'serial'"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
2
|
name: procurement
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.5.0
|
|
4
4
|
title: {id: Pembelian, en: Procurement}
|
|
5
5
|
summary:
|
|
6
6
|
id: Permintaan dan pesanan pembelian, barang datang dan tagihan pemasok.
|
|
7
7
|
en: Purchase requests and orders, goods received and supplier bills.
|
|
8
8
|
category: purchasing
|
|
9
9
|
icon: shopping-bag-line
|
|
10
|
-
requires: {rangka: '>=0.5', users: ^1.0, contacts: ^1.0, catalogue: ^1.
|
|
10
|
+
requires: {rangka: '>=0.5', users: ^1.0, contacts: ^1.0, catalogue: ^1.6}
|
|
11
11
|
optional: {outlets: ^1.0, currency: ^1.0, stock: ^1.4, projects: ^1.0, fixed_assets: ^1.0}
|
|
12
12
|
# Semantics fixed in docs/kernel-hooks.md (section procurement). stock.post_moves is a core hook (goods_receipt.on_submit);
|
|
13
13
|
# stock.reverse_moves (goods_receipt.on_cancel) is declared here too, since stock is optional for procurement (a no-op without it).
|