@rangka-os/create 0.5.0-alpha.12 → 0.5.0-alpha.14
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/jasa_proyek/app.rk +1 -1
- package/template/base/apps/ritel_cabang/dashboards/ritel_stock.rk +4 -4
- package/template/base/modules/accounting/flows/gl_cash_advance_post.rk +33 -0
- package/template/base/modules/accounting/flows/gl_cash_advance_reverse.rk +194 -0
- package/template/base/modules/accounting/models/gl_entry.rk +1 -1
- package/template/base/modules/accounting/module.rk +1 -1
- package/template/base/modules/coretax/module.rk +1 -1
- package/template/base/modules/coretax/print/coretax_bupot.rk +10 -5
- package/template/base/modules/coretax/print/coretax_faktur.rk +12 -7
- package/template/base/modules/coretax/print/coretax_faktur.xml +4 -0
- package/template/base/modules/invoicing/models/sales_invoice.rk +3 -2
- package/template/base/modules/invoicing/module.rk +1 -1
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_sale.rk +26 -8
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_update.rk +5 -1
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_void.rk +9 -1
- package/template/base/modules/kitchen/models/kitchen_guard.rk +5 -0
- package/template/base/modules/kitchen/models/kitchen_ticket.rk +5 -0
- package/template/base/modules/outlet_sales/flows/moka_daily_sales.rk +39 -18
- package/template/base/modules/outlet_sales/flows/moka_line_mapped.rk +16 -1
- package/template/base/modules/outlet_sales/flows/moka_transaction_staged.rk +85 -24
- package/template/base/modules/outlet_sales/flows/sales_cancel_guard.rk +5 -1
- package/template/base/modules/outlet_sales/models/moka_sale_line.rk +6 -1
- package/template/base/modules/outlet_sales/models/pos_refund.rk +4 -1
- package/template/base/modules/outlet_sales/module.rk +1 -1
- package/template/base/modules/payroll/flows/cash_advance_cancel_guard.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_advance_guard.rk +20 -0
- package/template/base/modules/payroll/flows/payslip_casual_guard.rk +19 -0
- package/template/base/modules/payroll/flows/payslip_from_recap.rk +1 -1
- package/template/base/modules/payroll/flows/payslip_ytd_guard.rk +3 -1
- package/template/base/modules/payroll/flows/payslip_ytd_on_create.rk +3 -1
- package/template/base/modules/payroll/models/cash_advance.rk +53 -0
- package/template/base/modules/payroll/models/payroll_guard.rk +15 -0
- package/template/base/modules/payroll/models/payroll_profile.rk +11 -1
- package/template/base/modules/payroll/models/payslip.rk +66 -7
- package/template/base/modules/payroll/module.rk +1 -1
- package/template/base/modules/payroll/print/payslip.html +4 -3
- package/template/base/modules/pos/models/pos_sale.rk +2 -1
- package/template/base/modules/pos/models/pos_sale_item.rk +3 -0
- package/template/base/modules/procurement/models/vendor_bill.rk +3 -2
- package/template/base/modules/procurement/module.rk +1 -1
- package/template/base/modules/projects/models/assignment.rk +2 -2
- package/template/base/modules/projects/models/timesheet.rk +5 -0
- package/template/base/modules/projects/module.rk +1 -1
- package/template/base/modules/workforce/models/worker.rk +4 -4
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
<tr><td>Gaji pokok</td><td class="num">{{rupiah .Doc.base_pay}}</td></tr>
|
|
28
28
|
{{if .Doc.allowance_pay}}<tr><td>Tunjangan</td><td class="num">{{rupiah .Doc.allowance_pay}}</td></tr>{{end}}
|
|
29
29
|
{{if .Doc.overtime_pay}}<tr><td>Lembur</td><td class="num">{{rupiah .Doc.overtime_pay}}</td></tr>{{end}}
|
|
30
|
+
{{if .Doc.holiday_overtime_pay}}<tr><td>Lembur hari libur ({{.Doc.holiday_overtime_days}} hari)</td><td class="num">{{rupiah .Doc.holiday_overtime_pay}}</td></tr>{{end}}
|
|
30
31
|
{{if .Doc.thr_pay}}<tr><td>THR</td><td class="num">{{rupiah .Doc.thr_pay}}</td></tr>{{end}}
|
|
31
32
|
{{if .Doc.other_income}}<tr><td>Insentif</td><td class="num">{{rupiah .Doc.other_income}}</td></tr>{{end}}
|
|
32
33
|
<tr class="total"><td>Jumlah penghasilan</td><td class="num">{{rupiah .Doc.cash_gross}}</td></tr>
|
|
@@ -40,8 +41,8 @@
|
|
|
40
41
|
<tr><td>JHT 2%</td><td class="num">{{rupiah .Doc.jht_employee}}</td></tr>
|
|
41
42
|
{{if .Doc.jp_employee}}<tr><td>Jaminan Pensiun 1%</td><td class="num">{{rupiah .Doc.jp_employee}}</td></tr>{{end}}
|
|
42
43
|
{{if .Doc.kes_employee}}<tr><td>BPJS Kesehatan 1%</td><td class="num">{{rupiah .Doc.kes_employee}}</td></tr>{{end}}
|
|
43
|
-
<tr><td>PPh 21{{if .Doc.last_month}} (hitung tahunan){{end}}</td><td class="num">{{rupiah .Doc.pph21}}</td></tr>
|
|
44
|
-
{{if .Doc.other_deduction}}<tr><td>Potongan lain</td><td class="num">{{rupiah .Doc.other_deduction}}</td></tr>{{end}}
|
|
44
|
+
<tr><td>PPh 21{{if .Doc.ter_daily}} (TER harian){{else if .Doc.last_month}} (hitung tahunan){{end}}</td><td class="num">{{rupiah .Doc.pph21}}</td></tr>
|
|
45
|
+
{{if .Doc.other_deduction}}<tr><td>Potongan lain{{if .Doc.cash_advance}} (kasbon {{.Doc.cash_advance}}){{end}}</td><td class="num">{{rupiah .Doc.other_deduction}}</td></tr>{{end}}
|
|
45
46
|
<tr class="total"><td>Jumlah potongan</td><td class="num">{{rupiah (sub .Doc.cash_gross .Doc.net_pay)}}</td></tr>
|
|
46
47
|
</tbody>
|
|
47
48
|
</table>
|
|
@@ -49,5 +50,5 @@
|
|
|
49
50
|
</div>
|
|
50
51
|
<div class="net"><span>Gaji bersih diterima</span><span>{{rupiah .Doc.net_pay}}</span></div>
|
|
51
52
|
<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}}.
|
|
52
|
-
Dasar upah BPJS {{rupiah .Doc.bpjs_base}}. PPh 21 kategori TER {{.Doc.ter_category}}, bruto {{rupiah .Doc.gross_taxable}}.</p>
|
|
53
|
+
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>
|
|
53
54
|
{{if .Links.profile.bank_account}}<p class="note">Ditransfer ke {{.Links.profile.bank_name}} {{.Links.profile.bank_account}}.</p>{{end}}
|
|
@@ -13,8 +13,9 @@ name: pos_sale
|
|
|
13
13
|
label: {id: Transaksi kasir, en: Cashier sale}
|
|
14
14
|
icon: receipt
|
|
15
15
|
is_submittable: true
|
|
16
|
+
# No title_field: a receipt's title is its number (STRK-...), so a link to it (a kitchen ticket, a daily sales check)
|
|
17
|
+
# shows the number and never the total to a role that may not read the receipt.
|
|
16
18
|
naming: STRK-{outlet.code}-{YY}{MM}-{#####}
|
|
17
|
-
title_field: grand_total
|
|
18
19
|
on_submit: [stock.post_moves]
|
|
19
20
|
on_cancel: [stock.reverse_moves]
|
|
20
21
|
permissions:
|
|
@@ -7,6 +7,9 @@ name: pos_sale_item
|
|
|
7
7
|
is_child: true
|
|
8
8
|
fields:
|
|
9
9
|
- {name: item, type: link, to: item, label: {id: Barang atau menu}, required: true, peek: [rate, stock_uom]}
|
|
10
|
+
# the item's category when the line was saved: the kitchen routes a paid line by it (module kitchen) without reading
|
|
11
|
+
# the whole catalogue during the payment
|
|
12
|
+
- {name: category, type: link, to: item_category, label: {id: Kategori}, hidden: true, compute: item.category}
|
|
10
13
|
- {name: description, type: text, label: {id: Uraian}, default: item.item_name}
|
|
11
14
|
- name: packing
|
|
12
15
|
type: link
|
|
@@ -126,7 +126,8 @@ fields:
|
|
|
126
126
|
depends_on: app_installed('coretax')
|
|
127
127
|
compute: "vendor.nitku != '' ? vendor.nitku : (vendor.npwp != '' ? vendor.npwp + '000000' : (vendor.nik != '' ? vendor.nik + '000000' : ''))"
|
|
128
128
|
# The first bill of the amend chain and its date (frozen at submit): a bill whose chain started in an earlier period
|
|
129
|
-
# had its withholding slip reported there; the correction is a pembetulan in Coretax, not a new slip.
|
|
129
|
+
# had its withholding slip reported there; the correction is a pembetulan in Coretax, not a new slip. Empty when the
|
|
130
|
+
# bill it amends froze before the coretax module and was itself an amend (its origin is unknown).
|
|
130
131
|
- name: replaces
|
|
131
132
|
type: link
|
|
132
133
|
to: vendor_bill
|
|
@@ -137,7 +138,7 @@ fields:
|
|
|
137
138
|
type: data
|
|
138
139
|
label: {id: Tanggal tagihan asal}
|
|
139
140
|
hidden: true
|
|
140
|
-
compute: "replaces == '' ? bill_date : (replaces.origin_bill_date != '' ? replaces.origin_bill_date : replaces.bill_date)"
|
|
141
|
+
compute: "replaces == '' ? bill_date : (replaces.origin_bill_date != '' ? replaces.origin_bill_date : (replaces.replaces == '' ? replaces.bill_date : ''))"
|
|
141
142
|
- name: amount_due
|
|
142
143
|
type: currency
|
|
143
144
|
label: {id: Tagihan bersih}
|
|
@@ -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: procurement
|
|
3
|
-
version: 1.1.
|
|
3
|
+
version: 1.1.1
|
|
4
4
|
title: {id: Pembelian, en: Procurement}
|
|
5
5
|
summary:
|
|
6
6
|
id: Permintaan dan pesanan pembelian, barang datang dan tagihan pemasok.
|
|
@@ -73,7 +73,7 @@ fields:
|
|
|
73
73
|
- name: cost_rate
|
|
74
74
|
type: currency
|
|
75
75
|
label: {id: Biaya per satuan}
|
|
76
|
-
hidden_for: [field_worker, site_supervisor]
|
|
76
|
+
hidden_for: [sales_manager, purchasing_manager, head_office, outlet_staff, sales_rep, field_worker, site_supervisor]
|
|
77
77
|
default: "rate_basis == 'hour' ? worker.cost_hour_rate : worker.cost_day_rate"
|
|
78
78
|
# Overtime per hour on this project, from the worker unless the client agreed another rate.
|
|
79
79
|
- name: overtime_rate
|
|
@@ -84,7 +84,7 @@ fields:
|
|
|
84
84
|
- name: overtime_cost_rate
|
|
85
85
|
type: currency
|
|
86
86
|
label: {id: Upah lembur per jam}
|
|
87
|
-
hidden_for: [field_worker, site_supervisor]
|
|
87
|
+
hidden_for: [sales_manager, purchasing_manager, head_office, outlet_staff, sales_rep, field_worker, site_supervisor]
|
|
88
88
|
default: worker.overtime_cost_rate
|
|
89
89
|
- name: notes
|
|
90
90
|
type: text
|
|
@@ -82,9 +82,12 @@ fields:
|
|
|
82
82
|
type: currency
|
|
83
83
|
label: {id: Tarif per jam}
|
|
84
84
|
default: "assignment != '' ? assignment.hour_rate : worker.hour_rate"
|
|
85
|
+
# The pay copied from the worker (cost_*) keeps the worker's hidden_for (contract 0027 enforces it; a copy without
|
|
86
|
+
# hidden_for would show the pay here).
|
|
85
87
|
- name: cost_rate
|
|
86
88
|
type: currency
|
|
87
89
|
label: {id: Biaya per satuan}
|
|
90
|
+
hidden_for: [sales_manager, purchasing_manager, head_office, outlet_staff, sales_rep, field_worker, site_supervisor]
|
|
88
91
|
default: "assignment != '' ? assignment.cost_rate : (rate_basis == 'hour' ? worker.cost_hour_rate : worker.cost_day_rate)"
|
|
89
92
|
- name: overtime_rate
|
|
90
93
|
type: currency
|
|
@@ -93,6 +96,7 @@ fields:
|
|
|
93
96
|
- name: overtime_cost_rate
|
|
94
97
|
type: currency
|
|
95
98
|
label: {id: Upah lembur per jam}
|
|
99
|
+
hidden_for: [sales_manager, purchasing_manager, head_office, outlet_staff, sales_rep, field_worker, site_supervisor]
|
|
96
100
|
default: "assignment != '' ? assignment.overtime_cost_rate : worker.overtime_cost_rate"
|
|
97
101
|
- name: amount
|
|
98
102
|
type: currency
|
|
@@ -102,6 +106,7 @@ fields:
|
|
|
102
106
|
- name: cost_amount
|
|
103
107
|
type: currency
|
|
104
108
|
label: {id: Biaya}
|
|
109
|
+
hidden_for: [sales_manager, purchasing_manager, head_office, outlet_staff, sales_rep, field_worker, site_supervisor]
|
|
105
110
|
compute: "round((rate_basis == 'hour' ? hours : days) * cost_rate) + round(overtime_hours * overtime_cost_rate)"
|
|
106
111
|
# No pay entered for this work (G5): the cost is not 0, it is unknown. The project margin dashboard counts these so
|
|
107
112
|
# a margin without labour cost is read as incomplete; fix the pay on the worker, then cancel and amend.
|
|
@@ -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: projects
|
|
3
|
-
version: 1.1.
|
|
3
|
+
version: 1.1.1
|
|
4
4
|
title: {id: Proyek, en: Projects}
|
|
5
5
|
summary:
|
|
6
6
|
id: Proyek dengan penugasan, absensi, biaya, termin tagihan dan untung per proyek.
|
|
@@ -5,8 +5,8 @@ icon: user
|
|
|
5
5
|
naming: WRK-{####}
|
|
6
6
|
title_field: worker_name
|
|
7
7
|
permissions:
|
|
8
|
-
# Pay (cost_*_rate, overtime_cost_rate) lives on the worker
|
|
9
|
-
# purchasing have no access at all (audit L1): workers are managed by finance and the project admin.
|
|
8
|
+
# Pay (cost_*_rate, overtime_cost_rate) lives on the worker. The kernel enforces hidden_for (contract 0027), and sales
|
|
9
|
+
# and purchasing still have no access at all (audit L1): workers are managed by finance and the project admin.
|
|
10
10
|
- {role: finance_manager, read: true, create: true, write: true, print: true}
|
|
11
11
|
- {role: project_admin, read: true, create: true, write: true, print: true}
|
|
12
12
|
- {role: head_office, read: true, create: true, write: true, print: true}
|
|
@@ -39,8 +39,8 @@ fields:
|
|
|
39
39
|
type: currency
|
|
40
40
|
label: {id: Tarif per jam}
|
|
41
41
|
default: '0'
|
|
42
|
-
# Pay per person:
|
|
43
|
-
#
|
|
42
|
+
# Pay per person: hidden_for removes it from every read of these roles (API, lists, prints, exports; contract 0027).
|
|
43
|
+
# assignment and timesheet copy it into cost_rate, overtime_cost_rate and cost_amount, which carry the same hidden_for.
|
|
44
44
|
# Pay per day (upah harian). 0 means not entered yet: timesheets of this person are then flagged cost_missing and
|
|
45
45
|
# the project margin dashboard counts them, so a margin without labour cost is never read as complete.
|
|
46
46
|
- name: cost_day_rate
|