@rangka-os/create 0.5.0-alpha.14 → 0.5.0-alpha.16
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/grosir_distribusi/app.rk +2 -1
- package/template/base/apps/jasa_proyek/app.rk +4 -0
- package/template/base/apps/jasa_proyek/dashboards/rekap_absen.rk +1 -1
- package/template/base/apps/kasir/skills/rangka-app-kasir/SKILL.md +17 -1
- package/template/base/apps/kelas_kursus/app.rk +3 -0
- package/template/base/apps/langganan_jasa/app.rk +8 -1
- package/template/base/apps/produksi_pabrik/dashboards/produksi_overview.rk +1 -1
- package/template/base/apps/ritel_cabang/app.rk +3 -0
- package/template/base/apps/sewa_alat/app.rk +6 -1
- package/template/base/connectors/doku/mock/doku_mock.py +16 -5
- package/template/base/connectors/moka/connector.rk +6 -5
- package/template/base/connectors/moka/mock/moka_mock.py +210 -0
- package/template/base/connectors/xendit/mock/xendit_mock.py +231 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_booked.rk +12 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_booked_released.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_claim.rk +11 -1
- package/template/base/modules/bank_statement/flows/bank_transaction_confirm.rk +23 -5
- package/template/base/modules/bank_statement/flows/bank_transaction_suggest.rk +56 -14
- package/template/base/modules/bank_statement/models/bank_transaction.rk +27 -4
- package/template/base/modules/bank_statement/models/bank_transaction_claim.rk +1 -1
- package/template/base/modules/catalogue/models/item.rk +9 -0
- package/template/base/modules/catalogue/models/item_category.rk +2 -0
- package/template/base/modules/contacts/models/customer.rk +10 -1
- package/template/base/modules/contacts/models/vendor.rk +10 -1
- package/template/base/modules/coretax/module.rk +2 -2
- package/template/base/modules/coretax/print/coretax_faktur.rk +1 -1
- package/template/base/modules/coretax/print/coretax_faktur.xml +13 -7
- package/template/base/modules/courses/flows/session_attendance_checked.rk +14 -0
- package/template/base/modules/courses/flows/session_of_the_day.rk +34 -0
- package/template/base/modules/courses/models/course_attendance.rk +2 -0
- package/template/base/modules/courses/models/course_session.rk +1 -0
- package/template/base/modules/courses/module.rk +1 -1
- package/template/base/modules/courses/screens/absen_kelas.rk +17 -0
- package/template/base/modules/delivery/flows/invoice_qty_from_deliveries.rk +1 -1
- package/template/base/modules/delivery/module.rk +1 -1
- package/template/base/modules/distribution/flows/order_tier_pricing_created.rk +2 -2
- package/template/base/modules/distribution/flows/order_tier_pricing_updated.rk +2 -2
- package/template/base/modules/distribution/module.rk +1 -1
- package/template/base/modules/invoicing/models/sales_invoice.rk +31 -4
- package/template/base/modules/invoicing/models/sales_invoice_item.rk +7 -0
- package/template/base/modules/invoicing/module.rk +1 -1
- package/template/base/modules/invoicing/print/sales_invoice.html +15 -2
- package/template/base/modules/orders/models/customer_order.rk +2 -0
- package/template/base/modules/orders/models/customer_order_item.rk +10 -0
- package/template/base/modules/orders/module.rk +1 -1
- package/template/base/modules/outlet_sales/flows/moka_api_opened.rk +30 -0
- package/template/base/modules/outlet_sales/flows/moka_held_release.rk +35 -0
- package/template/base/modules/outlet_sales/flows/moka_line_mapped.rk +12 -3
- package/template/base/modules/outlet_sales/flows/moka_transaction_refused.rk +15 -0
- package/template/base/modules/outlet_sales/flows/moka_transaction_staged.rk +31 -11
- package/template/base/modules/outlet_sales/models/moka_sale_line.rk +9 -1
- package/template/base/modules/outlets/models/outlet.rk +13 -1
- package/template/base/modules/payments/flows/payment_refund_from_doku.rk +14 -0
- package/template/base/modules/payroll/flows/payroll_close_on_submit.rk +2 -2
- package/template/base/modules/payroll/flows/payslip_advance_guard.rk +3 -0
- package/template/base/modules/payroll/flows/payslip_from_recap.rk +30 -1
- package/template/base/modules/payroll/flows/payslip_ytd_guard.rk +18 -1
- package/template/base/modules/payroll/flows/payslip_ytd_on_create.rk +28 -1
- package/template/base/modules/payroll/models/payslip.rk +19 -1
- package/template/base/modules/payroll/module.rk +2 -2
- package/template/base/modules/pos/screens/kasir.rk +1 -1
- package/template/base/modules/production/models/production_batch.rk +3 -0
- package/template/base/modules/production/module.rk +1 -1
- package/template/base/modules/projects/flows/attendance_close_on_submit.rk +6 -2
- package/template/base/modules/projects/flows/attendance_log_guard_created.rk +3 -1
- package/template/base/modules/projects/flows/attendance_log_guard_submitted.rk +8 -4
- package/template/base/modules/projects/flows/attendance_log_guard_updated.rk +2 -1
- package/template/base/modules/projects/models/assignment.rk +3 -0
- package/template/base/modules/projects/models/attendance_close.rk +4 -0
- package/template/base/modules/projects/models/attendance_guard.rk +1 -1
- package/template/base/modules/projects/models/attendance_log.rk +63 -66
- package/template/base/modules/projects/models/work_site.rk +2 -1
- package/template/base/modules/projects/module.rk +1 -1
- package/template/base/modules/projects/roles/field_worker.rk +2 -0
- package/template/base/modules/projects/screens/absen.rk +21 -0
- package/template/base/modules/quotation/models/quotation.rk +14 -4
- package/template/base/modules/quotation/models/quotation_item.rk +13 -0
- package/template/base/modules/quotation/module.rk +1 -1
- package/template/base/modules/quotation/print/quotation.html +16 -2
- package/template/base/modules/rental/flows/rental_return_on_cancel.rk +5 -3
- package/template/base/modules/rental/models/rental_checkout.rk +10 -15
- package/template/base/modules/rental/models/rental_return.rk +3 -11
- package/template/base/modules/rental/models/rental_schedule.rk +8 -0
- package/template/base/modules/rental/models/rental_unit.rk +7 -0
- package/template/base/modules/rental/module.rk +1 -1
- package/template/base/modules/rental/screens/alat_keluar.rk +19 -0
- package/template/base/modules/rental/screens/alat_kembali.rk +19 -0
- package/template/base/modules/rental/screens/jadwal_alat.rk +21 -0
- package/template/base/modules/subscriptions/models/collection_visit.rk +47 -0
- package/template/base/modules/subscriptions/models/subscription.rk +3 -1
- package/template/base/modules/subscriptions/module.rk +1 -1
- package/template/base/modules/subscriptions/screens/catat_tagih.rk +18 -0
- package/template/base/modules/subscriptions/screens/rute_tagih.rk +25 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: collection_visit
|
|
3
|
+
label: {id: Kunjungan penagih, en: Collection visit}
|
|
4
|
+
icon: map
|
|
5
|
+
naming: KPG-{YYYY}-{#####}
|
|
6
|
+
title_field: customer_name
|
|
7
|
+
# The collector checked in at a subscriber's place (contract 0030 §2 route visit, screens/rute_tagih.rk): when, where
|
|
8
|
+
# the phone stood (geo) and a photo of the place. It moves no money: cash taken is a field_collection, deposited
|
|
9
|
+
# through collector_deposit. The distance from the subscriber's point is measured by the kernel (distance_m) so the
|
|
10
|
+
# finance team can see a visit made far from the house; a subscription without a point shows 0. Position and photo
|
|
11
|
+
# are set_once, and so are the subscriber and the time (a check-in cannot be moved afterwards, audit 2026-11-12 F6); the photo must be an attachment of this visit.
|
|
12
|
+
permissions:
|
|
13
|
+
- {role: collector, read: true, create: true, write: true}
|
|
14
|
+
- {role: finance_manager, read: true, export: true, print: true}
|
|
15
|
+
- {role: sales_manager, read: true}
|
|
16
|
+
fields:
|
|
17
|
+
- {name: subscription, type: link, to: subscription, label: {id: Langganan}, required: true, set_once: true, in_list: true}
|
|
18
|
+
- {name: customer_name, type: data, label: {id: Nama pelanggan}, compute: subscription.customer_name, in_list: true}
|
|
19
|
+
# Row scope of the collector role (roles/collector.rk): the member's own user record.
|
|
20
|
+
- {name: collector, type: link, to: user, label: {id: Penagih}, default: user.name, required: true, in_list: true}
|
|
21
|
+
- {name: visited_at, type: datetime, label: {id: Waktu kunjungan}, default: now(), required: true, set_once: true, in_list: true}
|
|
22
|
+
- {name: pos, type: geo, label: {id: Posisi saat kunjungan}, set_once: true}
|
|
23
|
+
- {name: photo, type: image, label: {id: Foto tempat}, set_once: true}
|
|
24
|
+
- {name: unpaid_amount, type: currency, label: {id: Belum dibayar saat kunjungan}, read_only: true, compute: subscription.unpaid_amount}
|
|
25
|
+
- {name: away_m, type: float, label: {id: Jarak dari titik pelanggan (m)}, hidden: true, read_only: true, compute: "distance_m(pos, subscription.location)"}
|
|
26
|
+
- name: distance_m
|
|
27
|
+
type: int
|
|
28
|
+
label: {id: Jarak dari titik pelanggan (m)}
|
|
29
|
+
read_only: true
|
|
30
|
+
in_list: true
|
|
31
|
+
compute: "away_m < 100000000.0 ? round(away_m) : 0"
|
|
32
|
+
- {name: notes, type: text, label: {id: Catatan}}
|
|
33
|
+
rules:
|
|
34
|
+
# The same area check as field_collection (flow field_collection_cap_*): a collector visits their own area's subscribers.
|
|
35
|
+
- name: own_area
|
|
36
|
+
on: save
|
|
37
|
+
check: subscription.collector == collector
|
|
38
|
+
message: {id: 'Langganan ini bukan di area penagih ini'}
|
|
39
|
+
- name: not_future
|
|
40
|
+
on: save
|
|
41
|
+
check: visited_at <= now()
|
|
42
|
+
message: {id: 'Waktu kunjungan tidak boleh sesudah sekarang'}
|
|
43
|
+
views:
|
|
44
|
+
list:
|
|
45
|
+
columns: [name, visited_at, customer_name, collector, distance_m, unpaid_amount]
|
|
46
|
+
filters: [collector, subscription]
|
|
47
|
+
sort: -visited_at
|
|
@@ -40,6 +40,8 @@ fields:
|
|
|
40
40
|
label: {id: ID layanan}
|
|
41
41
|
help: {id: 'Nomor pelanggan, user PPPoE, domain, atau nomor lisensi'}
|
|
42
42
|
- {name: area, type: link, to: service_area, label: {id: Area}, in_list: true}
|
|
43
|
+
# Where the service is (the house, the shop): the collector's route sorts and measures by it (screens/rute_tagih.rk).
|
|
44
|
+
- {name: location, type: geo, label: {id: Titik lokasi pelanggan}}
|
|
43
45
|
- {name: collector, type: link, to: user, label: {id: Penagih}, compute: area.collector}
|
|
44
46
|
- name: cycle
|
|
45
47
|
type: select
|
|
@@ -215,7 +217,7 @@ views:
|
|
|
215
217
|
layout:
|
|
216
218
|
- section: {id: Pelanggan}
|
|
217
219
|
columns:
|
|
218
|
-
- [customer, customer_name, phone, address]
|
|
220
|
+
- [customer, customer_name, phone, address, location]
|
|
219
221
|
- [service_id, area, collector, status]
|
|
220
222
|
- section: {id: Paket dan siklus}
|
|
221
223
|
columns:
|
|
@@ -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: subscriptions
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.1.0
|
|
4
4
|
title: {id: Langganan, en: Subscriptions}
|
|
5
5
|
summary:
|
|
6
6
|
id: Paket langganan, tagihan tiap periode, area layanan dan setoran penagih.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: catat_tagih
|
|
3
|
+
type: entry
|
|
4
|
+
label: {id: Catat uang tertagih, en: Record cash collected}
|
|
5
|
+
icon: wallet
|
|
6
|
+
# Cash taken at the subscriber's place (contract 0030 §2 entry): one field_collection. Opened from rute_tagih the
|
|
7
|
+
# subscription is filled (stop); opened alone the collector picks it. The flows field_collection_cap_* refuse more
|
|
8
|
+
# than what the subscription still owes and a subscriber of another area; the cash reaches the books through the
|
|
9
|
+
# collector's deposit (collector_deposit), checked by finance.
|
|
10
|
+
roles: [collector]
|
|
11
|
+
device: phone
|
|
12
|
+
offline: queue
|
|
13
|
+
entry:
|
|
14
|
+
model: field_collection
|
|
15
|
+
fields: [subscription, amount, notes]
|
|
16
|
+
set: {subscription: stop.name, collector: user.name}
|
|
17
|
+
submit: false
|
|
18
|
+
again: false
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: rute_tagih
|
|
3
|
+
type: route
|
|
4
|
+
label: {id: Rute tagih, en: Collection route}
|
|
5
|
+
icon: map
|
|
6
|
+
# The collector's day (plans/layar-kerja.md §3 #3, contract 0030 §2 route): subscribers of their area (row scope)
|
|
7
|
+
# who still owe more than what is already deposited and waiting, with the distance from the phone; check in at the
|
|
8
|
+
# place (collection_visit with position and photo), then record the cash taken (catat_tagih, prefilled with the
|
|
9
|
+
# subscription). Money moves only through field_collection and the deposit, as before; the screen writes nothing else.
|
|
10
|
+
# A stop stays on the list until its cash is deposited (unpaid_amount and deposit_waiting change at the deposit).
|
|
11
|
+
roles: [collector]
|
|
12
|
+
device: phone
|
|
13
|
+
needs: [location, photo]
|
|
14
|
+
route:
|
|
15
|
+
stops:
|
|
16
|
+
model: subscription
|
|
17
|
+
filter: "unpaid_amount > deposit_waiting"
|
|
18
|
+
sort: area
|
|
19
|
+
title: customer_name
|
|
20
|
+
subtitle: unpaid_amount
|
|
21
|
+
address: address
|
|
22
|
+
location: location
|
|
23
|
+
visit: {model: collection_visit, link: subscription, set: {collector: user.name}, location: pos, photo: photo}
|
|
24
|
+
actions:
|
|
25
|
+
- {label: {id: Catat uang tertagih, en: Record cash}, screen: catat_tagih}
|