@rangka-os/create 0.5.0-alpha.14 → 0.5.0-alpha.15
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 +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 +5 -1
- package/template/base/apps/sewa_alat/app.rk +6 -1
- package/template/base/connectors/moka/connector.rk +6 -5
- package/template/base/modules/catalogue/models/item.rk +9 -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/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/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/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/pos/screens/kasir.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/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
|
@@ -10,9 +10,10 @@ title_field: booking
|
|
|
10
10
|
# Handover (berita acara serah terima): the checklist lists each unit handed over and its condition; an item with
|
|
11
11
|
# track_units must list exactly the booked number of units, and the customer who receives them signs (signed_by,
|
|
12
12
|
# required on submit). A photo and the drawn signature are attachments of this record (contract 0011); their ids are
|
|
13
|
-
# kept in photo and signature
|
|
14
|
-
#
|
|
15
|
-
#
|
|
13
|
+
# kept in photo and signature (image and signature fields: the kernel accepts only an image attachment of this same
|
|
14
|
+
# record, contract 0030 §4). The warehouse fills it on the handover screen alat_keluar (opened from jadwal_alat with
|
|
15
|
+
# the booking prefilled): scan units, photo, signature, submit, BAST. The BAST prints from rental_bast_out. The flow
|
|
16
|
+
# marks each unit out with this booking and refuses a unit that is already out.
|
|
16
17
|
permissions:
|
|
17
18
|
- {role: sales_manager, read: true, create: true, write: true, delete: true, submit: true, cancel: true, amend: true, export: true, print: true}
|
|
18
19
|
# warehouse staff hand the equipment over (no money moves on a checkout); undoing one is the admin's
|
|
@@ -33,19 +34,21 @@ fields:
|
|
|
33
34
|
- {name: notes, type: text, label: {id: 'Catatan (kondisi alat, kelengkapan)'}}
|
|
34
35
|
- {name: signed_by, type: data, label: {id: Diterima oleh (nama penyewa)}, in_list: true}
|
|
35
36
|
- {name: handed_by, type: data, label: {id: Diserahkan oleh (petugas)}}
|
|
36
|
-
- {name: photo, type: image, label: {id: Foto alat saat keluar}, help: {id: '
|
|
37
|
-
- {name: signature, type: signature, label: {id: Tanda tangan penyewa}, help: {id: '
|
|
37
|
+
- {name: photo, type: image, label: {id: Foto alat saat keluar}, help: {id: 'Foto pertama dari layar serah terima; foto lain ikut terlampir di catatan ini'}}
|
|
38
|
+
- {name: signature, type: signature, label: {id: Tanda tangan penyewa}, help: {id: 'Ditandatangani di layar serah terima'}}
|
|
38
39
|
rules:
|
|
39
40
|
- name: booking_submitted
|
|
40
41
|
on: save
|
|
41
42
|
check: booking.docstatus == 1
|
|
42
43
|
message: {id: Pesanan sewa belum diajukan atau sudah batal}
|
|
44
|
+
# The handover screen (screens/alat_keluar.rk) creates the draft from the schedule, then saves the checklist one
|
|
45
|
+
# scan at a time: the count is checked when it is submitted (the unit moves happen at submit).
|
|
43
46
|
- name: units_required
|
|
44
|
-
on:
|
|
47
|
+
on: submit
|
|
45
48
|
check: "!track_units || units.size() > 0"
|
|
46
49
|
message: {id: 'Alat ini diserahkan per unit: isi checklist unit yang keluar'}
|
|
47
50
|
- name: units_match_qty
|
|
48
|
-
on:
|
|
51
|
+
on: submit
|
|
49
52
|
check: units.size() == 0 || units.size() == qty
|
|
50
53
|
message: {id: Jumlah unit di checklist harus sama dengan jumlah unit pesanan}
|
|
51
54
|
- name: units_of_item
|
|
@@ -68,14 +71,6 @@ rules:
|
|
|
68
71
|
on: save
|
|
69
72
|
check: signature == '' || signed_by != ''
|
|
70
73
|
message: {id: Tanda tangan perlu nama penyewa yang menandatangani}
|
|
71
|
-
- name: photo_is_attachment
|
|
72
|
-
on: save
|
|
73
|
-
check: "photo == '' || photo.startsWith('att_')"
|
|
74
|
-
message: {id: 'Foto harus berupa lampiran catatan ini (id att_...)'}
|
|
75
|
-
- name: signature_is_attachment
|
|
76
|
-
on: save
|
|
77
|
-
check: "signature == '' || signature.startsWith('att_')"
|
|
78
|
-
message: {id: 'Tanda tangan harus berupa lampiran catatan ini (id att_...)'}
|
|
79
74
|
views:
|
|
80
75
|
list:
|
|
81
76
|
columns: [name, booking, customer, rental_item, out_date, signed_by, status]
|
|
@@ -63,8 +63,8 @@ fields:
|
|
|
63
63
|
- {value: transfer, label: {id: Transfer bank}}
|
|
64
64
|
- {name: signed_by, type: data, label: {id: Diserahkan kembali oleh (nama penyewa)}, in_list: true}
|
|
65
65
|
- {name: received_by, type: data, label: {id: Diterima oleh (petugas)}}
|
|
66
|
-
- {name: photo, type: image, label: {id: Foto alat saat kembali}, help: {id: '
|
|
67
|
-
- {name: signature, type: signature, label: {id: Tanda tangan penyewa}, help: {id: '
|
|
66
|
+
- {name: photo, type: image, label: {id: Foto alat saat kembali}, help: {id: 'Foto pertama dari layar serah terima; foto kerusakan lain ikut terlampir di catatan ini'}}
|
|
67
|
+
- {name: signature, type: signature, label: {id: Tanda tangan penyewa}, help: {id: 'Ditandatangani di layar serah terima'}}
|
|
68
68
|
rules:
|
|
69
69
|
- name: booking_submitted
|
|
70
70
|
on: save
|
|
@@ -84,7 +84,7 @@ rules:
|
|
|
84
84
|
check: "damage_fee >= 0 && units.map(r, r.fee < 0 ? 1 : 0).sum() == 0"
|
|
85
85
|
message: {id: Biaya kerusakan tidak boleh minus}
|
|
86
86
|
- name: units_match_qty
|
|
87
|
-
on:
|
|
87
|
+
on: submit
|
|
88
88
|
check: units.size() == 0 || units.size() == qty
|
|
89
89
|
message: {id: 'Jumlah unit di checklist harus sama dengan jumlah unit pesanan (unit hilang tetap dicatat, kondisi Hilang)'}
|
|
90
90
|
- name: units_of_item
|
|
@@ -108,14 +108,6 @@ rules:
|
|
|
108
108
|
on: save
|
|
109
109
|
check: signature == '' || signed_by != ''
|
|
110
110
|
message: {id: Tanda tangan perlu nama penyewa yang menandatangani}
|
|
111
|
-
- name: photo_is_attachment
|
|
112
|
-
on: save
|
|
113
|
-
check: "photo == '' || photo.startsWith('att_')"
|
|
114
|
-
message: {id: 'Foto harus berupa lampiran catatan ini (id att_...)'}
|
|
115
|
-
- name: signature_is_attachment
|
|
116
|
-
on: save
|
|
117
|
-
check: "signature == '' || signature.startsWith('att_')"
|
|
118
|
-
message: {id: 'Tanda tangan harus berupa lampiran catatan ini (id att_...)'}
|
|
119
111
|
views:
|
|
120
112
|
list:
|
|
121
113
|
columns: [name, booking, customer, return_date, late_days, signed_by, deposit_refund, extra_due, status]
|
|
@@ -37,6 +37,14 @@ fields:
|
|
|
37
37
|
- {name: returned_date, type: date, label: {id: Tanggal kembali aktual}, read_only: true}
|
|
38
38
|
- {name: checkout, type: link, to: rental_checkout, label: {id: Bukti alat keluar}, read_only: true}
|
|
39
39
|
- {name: rental_return, type: link, to: rental_return, label: {id: Bukti alat kembali}, read_only: true}
|
|
40
|
+
# For the warehouse's route of the day (screens/jadwal_alat.rk): what to do with this booking today.
|
|
41
|
+
- {name: item_title, type: data, label: {id: Nama alat}, read_only: true, compute: "rental_item.title"}
|
|
42
|
+
- {name: customer_name, type: data, label: {id: Nama pelanggan}, read_only: true, compute: "customer.customer_name"}
|
|
43
|
+
- name: todo
|
|
44
|
+
type: data
|
|
45
|
+
label: {id: Tugas hari ini}
|
|
46
|
+
read_only: true
|
|
47
|
+
compute: "state == 'booked' ? 'Serahkan ke ' + customer_name : (state == 'out' ? 'Terima kembali dari ' + customer_name : '')"
|
|
40
48
|
rules:
|
|
41
49
|
# Made by rental_booking_on_submit inside the booking's submit; a row for a draft booking (made by hand) would hold
|
|
42
50
|
# units for a booking that was never confirmed, and would block that booking's own row (booking is unique).
|
|
@@ -54,6 +54,13 @@ fields:
|
|
|
54
54
|
- {name: last_return, type: link, to: rental_return, label: {id: Alat kembali terakhir}, read_only: true}
|
|
55
55
|
- {name: active, type: check, label: {id: Masih dipakai}, default: 'true'}
|
|
56
56
|
- {name: notes, type: text, label: {id: Catatan}}
|
|
57
|
+
rules:
|
|
58
|
+
# A unit out with a booking stays a unit of the booked item until it comes back (audit 8 Nov L2): moving it to another
|
|
59
|
+
# item's pool while out would lock the booking's return (units_of_item) and count it twice.
|
|
60
|
+
- name: item_locked_while_out
|
|
61
|
+
on: save
|
|
62
|
+
check: state != 'out' || booking == '' || rental_item == booking.rental_item
|
|
63
|
+
message: {id: 'Unit sedang keluar: alatnya tidak bisa diganti sampai unit kembali'}
|
|
57
64
|
views:
|
|
58
65
|
list:
|
|
59
66
|
columns: [code, rental_item, serial_no, condition, state, booking]
|
|
@@ -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: rental
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.2.0
|
|
4
4
|
title: {id: Sewa alat, en: Equipment rental}
|
|
5
5
|
summary:
|
|
6
6
|
id: Sewa alat dengan jadwal tanpa bentrok, alat keluar dan kembali.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: alat_keluar
|
|
3
|
+
type: handover
|
|
4
|
+
label: {id: Serah alat keluar, en: Equipment out}
|
|
5
|
+
icon: truck
|
|
6
|
+
# Equipment goes out with proof (contract 0030 §2 handover, WS8): scan each unit (rental_unit.code), mark its
|
|
7
|
+
# condition, at least one photo, the renter signs, submit, print the BAST. Opened from jadwal_alat, the new draft gets
|
|
8
|
+
# the booking of that stop; otherwise the warehouse's drafts are offered. Units, deposit and schedule move in
|
|
9
|
+
# rental_checkout and its submit flow (audited there), not in the screen. Photos and the signature need the connection.
|
|
10
|
+
roles: [rental_staff, sales_manager]
|
|
11
|
+
device: tablet
|
|
12
|
+
needs: [scan, photo, signature, print]
|
|
13
|
+
handover:
|
|
14
|
+
document: {model: rental_checkout, find: "docstatus == 0", create: true, set: {booking: stop.booking}, title: item_title, subtitle: customer_name}
|
|
15
|
+
rows: {table: units, unit: unit, condition: condition, note: notes}
|
|
16
|
+
scan: {match: code}
|
|
17
|
+
photos: {field: photo, min: 1}
|
|
18
|
+
signature: {field: signature, by: signed_by}
|
|
19
|
+
print: rental_bast_out
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: alat_kembali
|
|
3
|
+
type: handover
|
|
4
|
+
label: {id: Terima alat kembali, en: Equipment back}
|
|
5
|
+
icon: undo
|
|
6
|
+
# Equipment comes back with proof (contract 0030 §2 handover): scan each unit, mark its condition (Hilang for a lost
|
|
7
|
+
# one), photos of the damage, the renter signs. The warehouse only saves the checklist (submit: false): the damage
|
|
8
|
+
# fees and the submit, which pays the deposit back, stay with the admin (rental_return permissions). Opened from
|
|
9
|
+
# jadwal_alat the new draft gets the booking; return_date defaults to today, the actual day.
|
|
10
|
+
roles: [rental_staff, sales_manager]
|
|
11
|
+
device: tablet
|
|
12
|
+
needs: [scan, photo, signature]
|
|
13
|
+
handover:
|
|
14
|
+
document: {model: rental_return, find: "docstatus == 0", create: true, set: {booking: stop.booking}, title: item_title, subtitle: customer_name}
|
|
15
|
+
rows: {table: units, unit: unit, condition: condition, note: notes}
|
|
16
|
+
scan: {match: code}
|
|
17
|
+
photos: {field: photo, min: 1}
|
|
18
|
+
signature: {field: signature, by: signed_by}
|
|
19
|
+
submit: false
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: jadwal_alat
|
|
3
|
+
type: route
|
|
4
|
+
label: {id: Jadwal alat hari ini, en: Today's equipment}
|
|
5
|
+
icon: calendar
|
|
6
|
+
# The warehouse's list of the day (plans/layar-kerja.md §3 #6-7): bookings whose equipment goes out today (or is
|
|
7
|
+
# overdue to go out) and those due back today or late. Each opens the handover screen with the booking prefilled
|
|
8
|
+
# (contract 0030 §2 route actions, ?stop=rental_schedule/<name>). No visit record and no position: the stops are at
|
|
9
|
+
# the counter, not places to drive to.
|
|
10
|
+
roles: [rental_staff, sales_manager]
|
|
11
|
+
device: tablet
|
|
12
|
+
route:
|
|
13
|
+
stops:
|
|
14
|
+
model: rental_schedule
|
|
15
|
+
filter: "(state == 'booked' && start_date <= today()) || (state == 'out' && end_date <= today())"
|
|
16
|
+
sort: start_date
|
|
17
|
+
title: item_title
|
|
18
|
+
subtitle: todo
|
|
19
|
+
actions:
|
|
20
|
+
- {label: {id: Serah keluar, en: Hand out}, screen: alat_keluar}
|
|
21
|
+
- {label: {id: Terima kembali, en: Take back}, screen: alat_kembali}
|
|
@@ -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}
|