@rangka-os/create 0.5.0-alpha.10 → 0.5.0-alpha.12
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/dapur/app.rk +35 -0
- package/template/base/apps/dapur/dashboards/dapur_hari_ini.rk +26 -0
- package/template/base/apps/fnb_cabang/app.rk +2 -2
- package/template/base/apps/fnb_cabang/dashboards/outlet_harian.rk +36 -0
- package/template/base/apps/jasa_proyek/app.rk +5 -2
- package/template/base/apps/jasa_proyek/dashboards/absen_saya.rk +15 -0
- package/template/base/apps/jasa_proyek/dashboards/rekap_absen.rk +18 -0
- package/template/base/apps/kelas_kursus/app.rk +1 -1
- package/template/base/apps/kelas_kursus/dashboards/kelas_saya.rk +41 -0
- package/template/base/apps/penjualan_harian/app.rk +1 -1
- package/template/base/apps/ritel_cabang/app.rk +1 -1
- package/template/base/apps/sewa_alat/app.rk +7 -5
- package/template/base/apps/sewa_alat/dashboards/alat_hari_ini.rk +90 -0
- package/template/base/apps/stok_outlet/app.rk +1 -1
- package/template/base/apps/stok_outlet/dashboards/outlet_hari_ini.rk +33 -0
- package/template/base/connectors/doku/connector.rk +128 -0
- package/template/base/connectors/doku/fixtures/create_checkout.json +6 -0
- package/template/base/connectors/doku/fixtures/expect.json +38 -0
- package/template/base/connectors/doku/fixtures/payment_notified.json +5 -0
- package/template/base/connectors/doku/fixtures/payment_notified_failed.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_no_type.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_null_type.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_refund.json +3 -0
- package/template/base/connectors/doku/mock/doku_mock.py +206 -0
- package/template/base/connectors/moka/connector.rk +46 -12
- package/template/base/connectors/moka/fixtures/expect.json +44 -0
- package/template/base/connectors/moka/fixtures/latest_transactions.json +79 -0
- package/template/base/connectors/moka/fixtures/list_items.json +4 -0
- package/template/base/connectors/moka/fixtures/list_outlets.json +4 -0
- package/template/base/connectors/moka/fixtures/transaction_created.json +44 -0
- package/template/base/connectors/moka/fixtures/transaction_created_refund.json +39 -0
- package/template/base/connectors/moka/fixtures/transaction_created_refund_later.json +51 -0
- package/template/base/modules/courses/models/course_batch.rk +7 -0
- package/template/base/modules/courses/models/course_session.rk +4 -1
- package/template/base/modules/courses/module.rk +1 -1
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_sale.rk +29 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_update.rk +26 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_void.rk +15 -0
- package/template/base/modules/kitchen/models/kitchen_guard.rk +35 -0
- package/template/base/modules/kitchen/models/kitchen_route.rk +26 -0
- package/template/base/modules/kitchen/models/kitchen_station.rk +40 -0
- package/template/base/modules/kitchen/models/kitchen_ticket.rk +78 -0
- package/template/base/modules/kitchen/models/kitchen_ticket_item.rk +10 -0
- package/template/base/modules/kitchen/module.rk +18 -0
- package/template/base/modules/kitchen/print/kitchen_ticket.html +29 -0
- package/template/base/modules/kitchen/print/kitchen_ticket.rk +9 -0
- package/template/base/modules/kitchen/roles/kitchen.rk +6 -0
- package/template/base/modules/kitchen/screens/dapur.rk +22 -0
- package/template/base/modules/outlet_sales/flows/moka_daily_sales.rk +57 -0
- package/template/base/modules/outlet_sales/flows/moka_line_mapped.rk +14 -0
- package/template/base/modules/outlet_sales/flows/moka_transaction_staged.rk +90 -0
- package/template/base/modules/outlet_sales/models/moka_sale_line.rk +53 -0
- package/template/base/modules/outlet_sales/models/moka_transaction.rk +26 -0
- package/template/base/modules/outlet_sales/models/outlet_sales.rk +4 -3
- package/template/base/modules/outlet_sales/module.rk +1 -1
- package/template/base/modules/outlets/models/outlet.rk +9 -0
- package/template/base/modules/payments/flows/payment_from_doku.rk +73 -0
- package/template/base/modules/payments/models/payment.rk +1 -0
- package/template/base/modules/payments/module.rk +1 -1
- package/template/base/modules/projects/flows/attendance_close_cancel_guard.rk +15 -0
- package/template/base/modules/projects/flows/attendance_close_on_submit.rk +64 -0
- package/template/base/modules/projects/flows/attendance_log_cancel_guard.rk +14 -0
- package/template/base/modules/projects/flows/attendance_log_guard_created.rk +15 -0
- package/template/base/modules/projects/flows/attendance_log_guard_submitted.rk +34 -0
- package/template/base/modules/projects/flows/attendance_log_guard_updated.rk +14 -0
- package/template/base/modules/projects/flows/timesheet_attendance_overlap_guard.rk +20 -0
- package/template/base/modules/projects/models/assignment.rk +21 -1
- package/template/base/modules/projects/models/attendance_close.rk +63 -0
- package/template/base/modules/projects/models/attendance_guard.rk +57 -0
- package/template/base/modules/projects/models/attendance_log.rk +266 -0
- package/template/base/modules/projects/models/timesheet.rk +7 -1
- package/template/base/modules/projects/models/work_site.rk +73 -0
- package/template/base/modules/projects/module.rk +1 -1
- package/template/base/modules/projects/roles/field_worker.rk +7 -0
- package/template/base/modules/projects/roles/site_supervisor.rk +7 -0
- package/template/base/modules/rental/flows/rental_checkout_on_cancel.rk +11 -0
- package/template/base/modules/rental/flows/rental_checkout_on_submit.rk +13 -1
- package/template/base/modules/rental/flows/rental_return_on_cancel.rk +12 -1
- package/template/base/modules/rental/flows/rental_return_on_submit.rk +17 -0
- package/template/base/modules/rental/models/rental_booking.rk +1 -0
- package/template/base/modules/rental/models/rental_checkout.rk +61 -2
- package/template/base/modules/rental/models/rental_checkout_unit.rk +22 -0
- package/template/base/modules/rental/models/rental_guard.rk +21 -0
- package/template/base/modules/rental/models/rental_item.rk +10 -2
- package/template/base/modules/rental/models/rental_return.rk +67 -8
- package/template/base/modules/rental/models/rental_return_unit.rk +29 -0
- package/template/base/modules/rental/models/rental_schedule.rk +2 -0
- package/template/base/modules/rental/models/rental_unit.rk +73 -0
- package/template/base/modules/rental/module.rk +7 -1
- package/template/base/modules/rental/print/rental_bast_in.html +107 -0
- package/template/base/modules/rental/print/rental_bast_in.rk +9 -0
- package/template/base/modules/rental/print/rental_bast_out.html +98 -0
- package/template/base/modules/rental/print/rental_bast_out.rk +11 -0
- package/template/base/modules/rental/roles/rental_staff.rk +7 -0
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.12",
|
|
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",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
name: dapur
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: {id: Tiket dapur, en: Kitchen tickets}
|
|
5
|
+
label: {id: Rangka Tiket Dapur, en: Rangka Kitchen Tickets}
|
|
6
|
+
summary:
|
|
7
|
+
id: Pesanan dari kasir langsung jadi tiket per stasiun dapur (bar, dapur panas), dengan status dimasak, siap dan diambil, dan cetak tiket 80 mm.
|
|
8
|
+
category: sales
|
|
9
|
+
icon: restaurant-line
|
|
10
|
+
rangka: '>=0.5'
|
|
11
|
+
# A piece (riset/desain/11-susunan-kepingan.md) on top of kasir for an F&B outlet: stations per outlet, item categories
|
|
12
|
+
# routed to them, a ticket per station for each paid receipt. A shop on the same site sets no station and gets no
|
|
13
|
+
# ticket. Kitchen staff (role kitchen, scoped to their outlets) land on the kitchen screen (contract 0030 queue).
|
|
14
|
+
modules:
|
|
15
|
+
users: ^1.2
|
|
16
|
+
catalogue: ^1.3
|
|
17
|
+
outlets: ^1.2
|
|
18
|
+
pos: ^1.0
|
|
19
|
+
kitchen: ^1.0
|
|
20
|
+
dashboards: [dapur_hari_ini]
|
|
21
|
+
roles: [kitchen, cashier, head_office]
|
|
22
|
+
home: {dashboard: dapur_hari_ini}
|
|
23
|
+
work:
|
|
24
|
+
- {screen: dapur, roles: [kitchen], home: true}
|
|
25
|
+
- {screen: dapur, roles: [cashier, head_office]}
|
|
26
|
+
menu:
|
|
27
|
+
- group: {id: Dapur}
|
|
28
|
+
items: [kitchen_ticket]
|
|
29
|
+
- group: {id: Pengaturan dapur}
|
|
30
|
+
items: [kitchen_station, kitchen_route, item_category]
|
|
31
|
+
onboarding:
|
|
32
|
+
- ask: {id: 'Outlet mana yang punya dapur atau bar, dan apa saja stasiunnya?'}
|
|
33
|
+
sets: seed.kitchen_station
|
|
34
|
+
- ask: {id: 'Kategori menu mana dimasak di stasiun mana?'}
|
|
35
|
+
sets: seed.kitchen_route
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: dapur_hari_ini
|
|
3
|
+
label: {id: Dapur hari ini, en: Kitchen today}
|
|
4
|
+
description: {id: 'Tiket dapur hari ini per status dan stasiun, dan yang paling lama menunggu'}
|
|
5
|
+
default_period: 1
|
|
6
|
+
cache: 1m
|
|
7
|
+
# Kitchen staff, cashiers and outlet staff see only their outlets' tickets (row scope by outlet); head office sees
|
|
8
|
+
# every outlet. No money: a ticket carries no price, and no column links the receipt (its title is its total).
|
|
9
|
+
# Outlet staff land on outlet_hari_ini (stok_outlet comes before dapur in the site's apps); this one is in their menu.
|
|
10
|
+
roles: [kitchen, cashier, outlet_staff, head_office]
|
|
11
|
+
widgets:
|
|
12
|
+
- {name: waiting, type: number, label: {id: Belum dimasak}, model: kitchen_ticket, filter: "status == 'new' && date == today()", good_when: down, span: 3}
|
|
13
|
+
- {name: cooking, type: number, label: {id: Sedang dimasak}, model: kitchen_ticket, filter: "status == 'cooking' && date == today()", span: 3}
|
|
14
|
+
- {name: ready, type: number, label: {id: Siap diambil}, model: kitchen_ticket, filter: "status == 'ready' && date == today()", good_when: down, span: 3}
|
|
15
|
+
- {name: done, type: number, label: {id: Sudah diambil}, model: kitchen_ticket, filter: "status == 'picked_up' && date == today()", span: 3}
|
|
16
|
+
- name: open_list
|
|
17
|
+
type: list
|
|
18
|
+
label: {id: Tiket terbuka (paling lama dulu)}
|
|
19
|
+
model: kitchen_ticket
|
|
20
|
+
filter: "status != 'picked_up' && status != 'void' && date == today()"
|
|
21
|
+
sort: sent_at
|
|
22
|
+
limit: 30
|
|
23
|
+
columns: [name, heading, station, status, sent_at, item_count]
|
|
24
|
+
span: 12
|
|
25
|
+
- {name: by_station, type: chart, chart: bar, label: {id: Porsi per stasiun hari ini}, model: kitchen_ticket, group_by: station, aggregate: sum, field: item_count, filter: "status != 'void' && date == today()", sort: -value, span: 6}
|
|
26
|
+
- {name: voided, type: number, label: {id: Tiket batal hari ini}, model: kitchen_ticket, filter: "status == 'void' && date == today()", good_when: down, span: 6}
|
|
@@ -19,13 +19,13 @@ modules:
|
|
|
19
19
|
procurement: ^1.0
|
|
20
20
|
payments: ^1.0
|
|
21
21
|
invoicing: ^1.0
|
|
22
|
-
dashboards: [fnb_overview, stock_recap]
|
|
22
|
+
dashboards: [fnb_overview, stock_recap, outlet_harian]
|
|
23
23
|
roles: [head_office, outlet_staff]
|
|
24
24
|
home: {dashboard: fnb_overview}
|
|
25
25
|
# invoicing is only here because payments requires it; sales_invoice has no menu entry.
|
|
26
26
|
menu:
|
|
27
27
|
- group: {id: Penjualan outlet}
|
|
28
|
-
items: [outlet_sales, pos_refund, outlet_return]
|
|
28
|
+
items: [outlet_sales, pos_refund, outlet_return, moka_sale_line, moka_transaction]
|
|
29
29
|
- group: {id: Stok}
|
|
30
30
|
items: [stock_balance, stock_move, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment, recipe]
|
|
31
31
|
- group: {id: Pembelian}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: outlet_harian
|
|
3
|
+
label: {id: Outlet hari ini, en: Outlet today}
|
|
4
|
+
description: {id: 'Untuk staf outlet: kiriman yang harus diterima, opname, barang terbuang, dan pekerjaan hari ini di outlet kamu'}
|
|
5
|
+
default_period: 1
|
|
6
|
+
cache: 1m
|
|
7
|
+
# Outlet staff see only their outlets (row scope of role outlet_staff: outlet, from_outlet or to_outlet) and no money.
|
|
8
|
+
# "To receive" is a transfer to one of the member's outlets that has left and is not fully received; head office (no
|
|
9
|
+
# outlets) sees every outlet's.
|
|
10
|
+
roles: [outlet_staff, head_office]
|
|
11
|
+
widgets:
|
|
12
|
+
- {name: to_receive, type: number, label: {id: Kiriman belum diterima}, model: stock_transfer, filter: "docstatus == 1 && state != 'received' && (user.outlets.size() == 0 || to_outlet in user.outlets)", good_when: down, span: 3}
|
|
13
|
+
- {name: counts_today, type: number, label: {id: Opname hari ini}, model: stock_count, filter: count_date == today(), span: 3}
|
|
14
|
+
- {name: counts_draft, type: number, label: {id: Opname belum diajukan}, model: stock_count, filter: docstatus == 0, good_when: down, span: 3}
|
|
15
|
+
- {name: waste_today, type: number, label: {id: Catatan terbuang hari ini}, model: stock_adjustment, filter: "adjustment_date == today() && reason == 'waste'", span: 3}
|
|
16
|
+
- name: receive_list
|
|
17
|
+
type: list
|
|
18
|
+
label: {id: Kiriman yang harus diterima}
|
|
19
|
+
model: stock_transfer
|
|
20
|
+
filter: "docstatus == 1 && state != 'received' && (user.outlets.size() == 0 || to_outlet in user.outlets)"
|
|
21
|
+
sort: transfer_date
|
|
22
|
+
limit: 20
|
|
23
|
+
columns: [name, transfer_date, from_outlet, to_outlet, state]
|
|
24
|
+
span: 12
|
|
25
|
+
- name: waste_list
|
|
26
|
+
type: list
|
|
27
|
+
label: {id: 'Terbuang, rusak dan kedaluwarsa hari ini'}
|
|
28
|
+
model: stock_adjustment
|
|
29
|
+
filter: "adjustment_date == today() && (reason == 'waste' || reason == 'damage' || reason == 'expired')"
|
|
30
|
+
sort: -name
|
|
31
|
+
limit: 20
|
|
32
|
+
columns: [name, outlet, reason, docstatus]
|
|
33
|
+
span: 12
|
|
34
|
+
# Jalur A: the outlet's daily sales form of today and the drafts not yet submitted
|
|
35
|
+
- {name: sales_today, type: number, label: {id: Penjualan harian hari ini diajukan}, model: outlet_sales, filter: "date == today() && docstatus == 1", span: 6}
|
|
36
|
+
- {name: sales_draft, type: number, label: {id: Penjualan harian belum diajukan}, model: outlet_sales, filter: docstatus == 0, good_when: down, span: 6}
|
|
@@ -26,14 +26,17 @@ modules:
|
|
|
26
26
|
bank_statement: ^1.0
|
|
27
27
|
procurement: ^1.0
|
|
28
28
|
payroll: ^1.0
|
|
29
|
-
dashboards: [jasa_overview, ar_aging, project_margin]
|
|
30
|
-
|
|
29
|
+
dashboards: [jasa_overview, ar_aging, project_margin, absen_saya, rekap_absen]
|
|
30
|
+
# field_worker and site_supervisor (field attendance, A2) have their role files in the projects module.
|
|
31
|
+
roles: [sales_manager, finance_manager, purchasing_manager, project_admin, field_worker, site_supervisor]
|
|
31
32
|
home: {dashboard: jasa_overview}
|
|
32
33
|
menu:
|
|
33
34
|
- group: {id: Penjualan}
|
|
34
35
|
items: [quotation, customer_order, sales_invoice]
|
|
35
36
|
- group: {id: Proyek}
|
|
36
37
|
items: [project, billing_milestone, assignment, timesheet, project_expense, acceptance, project_ledger]
|
|
38
|
+
- group: {id: Absen lapangan}
|
|
39
|
+
items: [attendance_log, attendance_close, work_site]
|
|
37
40
|
- group: {id: Tenaga kerja}
|
|
38
41
|
items: [worker]
|
|
39
42
|
- group: {id: Penggajian}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: absen_saya
|
|
3
|
+
label: {id: Absen saya, en: My attendance}
|
|
4
|
+
description: {id: 'Absen masuk dan pulang kamu, hari hadir bulan ini dan yang masih menunggu persetujuan mandor'}
|
|
5
|
+
# For field_worker: every widget counts only the worker's own logs (row scope worker, contract 0010). A submitted log is a
|
|
6
|
+
# day present; a draft with a clock-out is waiting (for the supervisor, or for the worker to submit it).
|
|
7
|
+
default_period: 31
|
|
8
|
+
roles: [field_worker]
|
|
9
|
+
cache: 1m
|
|
10
|
+
widgets:
|
|
11
|
+
- {name: days_present, type: number, label: {id: Hari hadir}, description: {id: 'Absen yang sudah sah (diajukan atau disetujui mandor)'}, model: attendance_log, filter: docstatus == 1, period: work_date, compact: true, span: 4}
|
|
12
|
+
- {name: overtime, type: number, label: {id: Jam lembur}, model: attendance_log, aggregate: sum, field: overtime_hours, filter: docstatus == 1, period: work_date, compact: true, span: 4}
|
|
13
|
+
- {name: waiting, type: number, label: {id: Menunggu}, description: {id: 'Sudah absen pulang tapi belum sah: menunggu persetujuan mandor, atau belum kamu ajukan'}, model: attendance_log, filter: docstatus == 0 && clock_out != '', compact: true, span: 4, good_when: down}
|
|
14
|
+
- {name: today, type: list, label: {id: Absen hari ini}, model: attendance_log, filter: work_date == today() && docstatus != 2, columns: [name, work_site, clock_in, clock_out, outside_site, status], limit: 3, span: 12}
|
|
15
|
+
- {name: recent, type: list, label: {id: Absen terakhir}, model: attendance_log, filter: docstatus != 2, period: work_date, columns: [work_date, clock_in, clock_out, in_site_m, outside_site, status], sort: -work_date, limit: 31, span: 12}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: rekap_absen
|
|
3
|
+
label: {id: Rekap absen lapangan, en: Field attendance}
|
|
4
|
+
description: {id: 'Siapa yang sudah absen hari ini, absen di luar radius yang menunggu persetujuan, dan hari hadir per pekerja'}
|
|
5
|
+
# For the site supervisor (only the logs of their sites, row scope work_site) and the project admin (every site). The
|
|
6
|
+
# held submits themselves are decided in Persetujuan (contract 0007); this board shows which logs wait.
|
|
7
|
+
default_period: 31
|
|
8
|
+
roles: [site_supervisor, project_admin]
|
|
9
|
+
cache: 1m
|
|
10
|
+
widgets:
|
|
11
|
+
- {name: in_today, type: number, label: {id: Absen hari ini}, model: attendance_log, filter: work_date == today() && docstatus != 2, compact: true, span: 3}
|
|
12
|
+
- {name: outside_today, type: number, label: {id: Di luar radius hari ini}, model: attendance_log, filter: work_date == today() && docstatus != 2 && outside_site, compact: true, span: 3, good_when: down}
|
|
13
|
+
- {name: waiting, type: number, label: {id: Menunggu persetujuan}, description: {id: 'Sudah absen pulang tapi belum sah'}, model: attendance_log, filter: docstatus == 0 && clock_out != '', compact: true, span: 3, good_when: down}
|
|
14
|
+
- {name: days_present, type: number, label: {id: Hari hadir sah}, model: attendance_log, filter: docstatus == 1, period: work_date, compact: true, span: 3}
|
|
15
|
+
- {name: waiting_list, type: list, label: {id: Absen yang menunggu}, model: attendance_log, filter: docstatus == 0 && clock_out != '', columns: [name, worker_name, work_date, in_site_m, overtime_hours, reason], sort: work_date, limit: 20, span: 12}
|
|
16
|
+
- {name: by_worker, type: chart, chart: bar, label: {id: Hari hadir per pekerja}, model: attendance_log, group_by: worker_name, filter: docstatus == 1, period: work_date, sort: -value, span: 6}
|
|
17
|
+
- {name: by_site, type: chart, chart: bar, label: {id: Hari hadir per lokasi}, model: attendance_log, group_by: work_site, filter: docstatus == 1, period: work_date, sort: -value, span: 6}
|
|
18
|
+
- {name: today_list, type: list, label: {id: Absen hari ini}, model: attendance_log, filter: work_date == today() && docstatus != 2, columns: [worker_name, work_site, clock_in, clock_out, in_site_m, status], sort: clock_in, limit: 50, span: 12}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: kelas_saya
|
|
3
|
+
label: {id: Kelas saya, en: My classes}
|
|
4
|
+
description: {id: 'Untuk pengajar: kelas yang jadwalnya hari ini, peserta, dan absen pertemuan yang belum dicek'}
|
|
5
|
+
default_period: 30
|
|
6
|
+
cache: 1m
|
|
7
|
+
# A teacher sees only their own batches, meetings and students (row scope of role instructor: field instructor = the
|
|
8
|
+
# member's user record) and no money (enrollment fees are hidden from the role, contract 0027). Today's weekday comes
|
|
9
|
+
# from the days since a Monday (2024-01-01): CEL has no weekday function.
|
|
10
|
+
roles: [instructor]
|
|
11
|
+
widgets:
|
|
12
|
+
- name: classes_today
|
|
13
|
+
type: list
|
|
14
|
+
label: {id: Kelas hari ini (menurut jadwal mingguan)}
|
|
15
|
+
model: course_batch
|
|
16
|
+
filter: "start_date <= today() && (end_date == '' || end_date >= today()) && class_days.contains(['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'][days_between('2024-01-01', today()) % 7])"
|
|
17
|
+
sort: batch_name
|
|
18
|
+
limit: 20
|
|
19
|
+
columns: [batch_name, program, delivery, location, seats_taken]
|
|
20
|
+
span: 12
|
|
21
|
+
- {name: sessions_today, type: number, label: {id: Pertemuan dibuka hari ini}, model: course_session, filter: session_date == today(), span: 4}
|
|
22
|
+
- {name: attendance_open, type: number, label: {id: Absen belum dicek}, model: course_session, filter: "session_date <= today() && !attendance_taken", good_when: down, span: 4}
|
|
23
|
+
- {name: my_students, type: number, label: {id: Peserta aktif}, model: enrollment, filter: "status == 'registered' || status == 'active'", span: 4}
|
|
24
|
+
- name: attendance_list
|
|
25
|
+
type: list
|
|
26
|
+
label: {id: Pertemuan yang absennya belum dicek}
|
|
27
|
+
model: course_session
|
|
28
|
+
filter: "session_date <= today() && !attendance_taken"
|
|
29
|
+
sort: session_date
|
|
30
|
+
limit: 20
|
|
31
|
+
columns: [batch, session_no, session_date, topic, present_count, absent_count]
|
|
32
|
+
span: 12
|
|
33
|
+
- name: students
|
|
34
|
+
type: list
|
|
35
|
+
label: {id: Peserta saya}
|
|
36
|
+
model: enrollment
|
|
37
|
+
filter: "status == 'registered' || status == 'active'"
|
|
38
|
+
sort: batch
|
|
39
|
+
limit: 50
|
|
40
|
+
columns: [student, batch, status]
|
|
41
|
+
span: 12
|
|
@@ -25,7 +25,7 @@ roles: [head_office, outlet_staff]
|
|
|
25
25
|
home: {dashboard: penjualan_ringkas}
|
|
26
26
|
menu:
|
|
27
27
|
- group: {id: Penjualan outlet}
|
|
28
|
-
items: [outlet_sales, outlet_takings]
|
|
28
|
+
items: [outlet_sales, outlet_takings, moka_sale_line, moka_transaction]
|
|
29
29
|
onboarding:
|
|
30
30
|
- ask: {id: 'Outlet mana yang pakai Moka?'}
|
|
31
31
|
sets: imports.moka_item_details.outlets
|
|
@@ -32,7 +32,7 @@ home: {dashboard: ritel_overview}
|
|
|
32
32
|
# stock but has no menu entry: a shop sells goods as they are.
|
|
33
33
|
menu:
|
|
34
34
|
- group: {id: Penjualan toko}
|
|
35
|
-
items: [outlet_sales, outlet_takings, pos_refund, outlet_return]
|
|
35
|
+
items: [outlet_sales, outlet_takings, pos_refund, outlet_return, moka_sale_line, moka_transaction]
|
|
36
36
|
- group: {id: Stok}
|
|
37
37
|
items: [stock_balance, stock_move, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
38
38
|
- group: {id: Pembelian}
|
|
@@ -4,26 +4,28 @@ version: 1.0.0
|
|
|
4
4
|
title: {id: Sewa alat, en: Equipment rental}
|
|
5
5
|
label: {id: Rangka Sewa Alat, en: Rangka Equipment Rental}
|
|
6
6
|
summary:
|
|
7
|
-
id: Jadwal sewa tanpa bentrok,
|
|
7
|
+
id: Jadwal sewa tanpa bentrok, serah terima per unit dengan checklist dan berita acara, deposit, denda telat dan kerusakan, faktur sewa.
|
|
8
8
|
category: operations
|
|
9
9
|
icon: tools-line
|
|
10
10
|
rangka: '>=0.5'
|
|
11
11
|
# A piece (riset/desain/11-susunan-kepingan.md) for rental businesses (kamera, alat pesta, alat outdoor). The rent
|
|
12
|
-
# invoices it drafts are collected through faktur_piutang (payments); the deposit journals need pembukuan.
|
|
12
|
+
# invoices it drafts are collected through faktur_piutang (payments); the deposit journals need pembukuan. Staf gudang
|
|
13
|
+
# (rental_staff) records equipment out and back per unit with a checklist and prints the BAST; their dashboard is
|
|
14
|
+
# alat_hari_ini. The handover screens of contract 0030 (kernel WS8) bind here with work: once the renderer exists.
|
|
13
15
|
modules:
|
|
14
16
|
users: ^1.0
|
|
15
17
|
contacts: ^1.0
|
|
16
18
|
catalogue: ^1.0
|
|
17
19
|
invoicing: ^1.0
|
|
18
20
|
rental: ^1.0
|
|
19
|
-
dashboards: [sewa_ringkas]
|
|
20
|
-
roles: [sales_manager, finance_manager, head_office]
|
|
21
|
+
dashboards: [sewa_ringkas, alat_hari_ini]
|
|
22
|
+
roles: [sales_manager, finance_manager, head_office, rental_staff]
|
|
21
23
|
home: {dashboard: sewa_ringkas}
|
|
22
24
|
menu:
|
|
23
25
|
- group: {id: Sewa alat}
|
|
24
26
|
items: [rental_booking, rental_checkout, rental_return, rental_schedule]
|
|
25
27
|
- group: {id: Alat dan pelanggan}
|
|
26
|
-
items: [rental_item, item, customer]
|
|
28
|
+
items: [rental_item, rental_unit, item, customer]
|
|
27
29
|
onboarding:
|
|
28
30
|
- ask: {id: 'Alat apa saja yang kamu sewakan?'}
|
|
29
31
|
sets: seed.products
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: alat_hari_ini
|
|
3
|
+
label: {id: Alat hari ini, en: Equipment today}
|
|
4
|
+
description: {id: 'Untuk gudang: alat yang harus disiapkan keluar, yang harus kembali hari ini, yang telat, dan unit yang perlu diperiksa'}
|
|
5
|
+
default_period: 1
|
|
6
|
+
# The warehouse's list for the day, without money: read from rental_schedule (one row per submitted booking, kept by
|
|
7
|
+
# the flows) and rental_unit (where each tracked unit is and its last condition). The queue screen of the plan (kernel
|
|
8
|
+
# WS4) will show the same rows as cards; until then staff open the booking and record the checkout or return.
|
|
9
|
+
roles: [rental_staff, sales_manager, finance_manager, head_office]
|
|
10
|
+
widgets:
|
|
11
|
+
- name: to_go_out
|
|
12
|
+
type: number
|
|
13
|
+
label: {id: Siapkan keluar}
|
|
14
|
+
model: rental_schedule
|
|
15
|
+
filter: state == 'booked' && start_date <= today()
|
|
16
|
+
span: 3
|
|
17
|
+
- name: due_back
|
|
18
|
+
type: number
|
|
19
|
+
label: {id: Harus kembali hari ini}
|
|
20
|
+
model: rental_schedule
|
|
21
|
+
filter: state == 'out' && end_date == today()
|
|
22
|
+
span: 3
|
|
23
|
+
- name: late
|
|
24
|
+
type: number
|
|
25
|
+
label: {id: Telat kembali}
|
|
26
|
+
model: rental_schedule
|
|
27
|
+
filter: state == 'out' && end_date < today()
|
|
28
|
+
good_when: down
|
|
29
|
+
span: 3
|
|
30
|
+
- name: units_to_check
|
|
31
|
+
type: number
|
|
32
|
+
label: {id: Unit rusak atau hilang}
|
|
33
|
+
model: rental_unit
|
|
34
|
+
filter: active && (condition == 'rusak' || condition == 'hilang')
|
|
35
|
+
good_when: down
|
|
36
|
+
span: 3
|
|
37
|
+
- name: to_go_out_list
|
|
38
|
+
type: list
|
|
39
|
+
label: {id: Siapkan keluar}
|
|
40
|
+
model: rental_schedule
|
|
41
|
+
filter: state == 'booked' && start_date <= today()
|
|
42
|
+
sort: start_date
|
|
43
|
+
limit: 30
|
|
44
|
+
columns: [booking, customer, rental_item, qty, start_date]
|
|
45
|
+
span: 6
|
|
46
|
+
- name: due_back_list
|
|
47
|
+
type: list
|
|
48
|
+
label: {id: Harus kembali hari ini}
|
|
49
|
+
model: rental_schedule
|
|
50
|
+
filter: state == 'out' && end_date == today()
|
|
51
|
+
sort: rental_item
|
|
52
|
+
limit: 30
|
|
53
|
+
columns: [booking, customer, rental_item, qty, out_date]
|
|
54
|
+
span: 6
|
|
55
|
+
- name: late_list
|
|
56
|
+
type: list
|
|
57
|
+
label: {id: Telat kembali}
|
|
58
|
+
model: rental_schedule
|
|
59
|
+
filter: state == 'out' && end_date < today()
|
|
60
|
+
sort: end_date
|
|
61
|
+
limit: 30
|
|
62
|
+
columns: [booking, customer, rental_item, qty, end_date]
|
|
63
|
+
span: 6
|
|
64
|
+
- name: done_today
|
|
65
|
+
type: list
|
|
66
|
+
label: {id: Sudah keluar atau kembali hari ini}
|
|
67
|
+
model: rental_schedule
|
|
68
|
+
filter: (state == 'out' && out_date == today()) || (state == 'returned' && returned_date == today())
|
|
69
|
+
sort: rental_item
|
|
70
|
+
limit: 30
|
|
71
|
+
columns: [booking, customer, rental_item, qty, state]
|
|
72
|
+
span: 6
|
|
73
|
+
- name: units_out
|
|
74
|
+
type: list
|
|
75
|
+
label: {id: Unit sedang di luar}
|
|
76
|
+
model: rental_unit
|
|
77
|
+
filter: state == 'out'
|
|
78
|
+
sort: code
|
|
79
|
+
limit: 50
|
|
80
|
+
columns: [code, rental_item, booking, condition]
|
|
81
|
+
span: 6
|
|
82
|
+
- name: units_to_check_list
|
|
83
|
+
type: list
|
|
84
|
+
label: {id: Unit perlu diperbaiki atau dicari}
|
|
85
|
+
model: rental_unit
|
|
86
|
+
filter: active && (condition == 'rusak' || condition == 'hilang')
|
|
87
|
+
sort: code
|
|
88
|
+
limit: 30
|
|
89
|
+
columns: [code, rental_item, condition, last_return]
|
|
90
|
+
span: 6
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: outlet_hari_ini
|
|
3
|
+
label: {id: Outlet hari ini, en: Outlet today}
|
|
4
|
+
description: {id: 'Untuk staf outlet: kiriman yang harus diterima, opname, barang terbuang, dan pekerjaan hari ini di outlet kamu'}
|
|
5
|
+
default_period: 1
|
|
6
|
+
cache: 1m
|
|
7
|
+
# Outlet staff see only their outlets (row scope of role outlet_staff: outlet, from_outlet or to_outlet) and no money.
|
|
8
|
+
# "To receive" is a transfer to one of the member's outlets that has left and is not fully received; head office (no
|
|
9
|
+
# outlets) sees every outlet's.
|
|
10
|
+
roles: [outlet_staff, head_office]
|
|
11
|
+
widgets:
|
|
12
|
+
- {name: to_receive, type: number, label: {id: Kiriman belum diterima}, model: stock_transfer, filter: "docstatus == 1 && state != 'received' && (user.outlets.size() == 0 || to_outlet in user.outlets)", good_when: down, span: 3}
|
|
13
|
+
- {name: counts_today, type: number, label: {id: Opname hari ini}, model: stock_count, filter: count_date == today(), span: 3}
|
|
14
|
+
- {name: counts_draft, type: number, label: {id: Opname belum diajukan}, model: stock_count, filter: docstatus == 0, good_when: down, span: 3}
|
|
15
|
+
- {name: waste_today, type: number, label: {id: Catatan terbuang hari ini}, model: stock_adjustment, filter: "adjustment_date == today() && reason == 'waste'", span: 3}
|
|
16
|
+
- name: receive_list
|
|
17
|
+
type: list
|
|
18
|
+
label: {id: Kiriman yang harus diterima}
|
|
19
|
+
model: stock_transfer
|
|
20
|
+
filter: "docstatus == 1 && state != 'received' && (user.outlets.size() == 0 || to_outlet in user.outlets)"
|
|
21
|
+
sort: transfer_date
|
|
22
|
+
limit: 20
|
|
23
|
+
columns: [name, transfer_date, from_outlet, to_outlet, state]
|
|
24
|
+
span: 12
|
|
25
|
+
- name: waste_list
|
|
26
|
+
type: list
|
|
27
|
+
label: {id: 'Terbuang, rusak dan kedaluwarsa hari ini'}
|
|
28
|
+
model: stock_adjustment
|
|
29
|
+
filter: "adjustment_date == today() && (reason == 'waste' || reason == 'damage' || reason == 'expired')"
|
|
30
|
+
sort: -name
|
|
31
|
+
limit: 20
|
|
32
|
+
columns: [name, outlet, reason, docstatus]
|
|
33
|
+
span: 12
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/connector.json
|
|
2
|
+
# DOKU (Indonesia), Non-SNAP API: DOKU Checkout makes a payment page for an invoice or a cashier sale, with QRIS (and
|
|
3
|
+
# other channels DOKU enables on the account); DOKU sends an HTTP notification when it is paid.
|
|
4
|
+
# Why Non-SNAP Checkout: one endpoint and one signature scheme for QRIS and payment links; SNAP QRIS (qr-mpm-generate)
|
|
5
|
+
# needs a B2B token with RSA and is the next step when the cashier must show the QR itself. Research and sources:
|
|
6
|
+
# rangka (Juragan) reports/keputusan-riset/doku-connector.md.
|
|
7
|
+
# Signature (both ways): HMACSHA256= + base64(HMAC-SHA256(secret key, lines)), lines Client-Id, Request-Id,
|
|
8
|
+
# Request-Timestamp, Request-Target (the path) and Digest (base64 SHA-256 of the body; no Digest line for a GET).
|
|
9
|
+
# The kernel signs calls with auth.sign and checks notifications with verify.signature.lines (rangka-os contract 0002,
|
|
10
|
+
# refinement of 11 Nov 2026). The notification URL registered in DOKU Back Office is the hook's full path
|
|
11
|
+
# (https://<site>/hooks/<org>/doku/payment_notified); a proxy must not rewrite the path, it is signed.
|
|
12
|
+
# Every notification emits gateway_ref (DOKU's original request id of the payment), external_id (our invoice number)
|
|
13
|
+
# and paid (true only for transaction.status SUCCESS of a SALE, or of a notification without a type, with a null or
|
|
14
|
+
# an empty one, which DOKU's examples never send but a channel might; a REFUND notification is never paid): a flow that records money starts with `if: event.paid` and
|
|
15
|
+
# uses gateway_ref as idempotency key, as with xendit.
|
|
16
|
+
# Test mode: api_host api-sandbox.doku.com with sandbox keys from DOKU; the sandbox simulator pays and notifies. Until a
|
|
17
|
+
# sandbox account exists, doku/mock/doku_mock.py answers Checkout and sends signed notifications locally.
|
|
18
|
+
name: doku
|
|
19
|
+
label: {id: DOKU}
|
|
20
|
+
summary:
|
|
21
|
+
id: Terima pembayaran QRIS dan link bayar lewat DOKU Checkout.
|
|
22
|
+
en: Take QRIS and payment-link payments through DOKU Checkout.
|
|
23
|
+
category: payments
|
|
24
|
+
icon: secure-payment-line
|
|
25
|
+
version: 0.1.0
|
|
26
|
+
vendor: DOKU
|
|
27
|
+
docs: https://developers.doku.com/accept-payments/doku-checkout
|
|
28
|
+
hosts: [api-sandbox.doku.com, api.doku.com]
|
|
29
|
+
auth:
|
|
30
|
+
type: hmac
|
|
31
|
+
fields:
|
|
32
|
+
- name: client_id
|
|
33
|
+
label: {id: Client ID}
|
|
34
|
+
required: true
|
|
35
|
+
help: {id: 'DOKU Back Office > Integration > API Keys (diawali BRN-)'}
|
|
36
|
+
- name: secret_key
|
|
37
|
+
label: {id: Secret key}
|
|
38
|
+
secret: true
|
|
39
|
+
required: true
|
|
40
|
+
help: {id: 'DOKU Back Office > Integration > API Keys. Kunci sandbox untuk uji'}
|
|
41
|
+
- name: api_host
|
|
42
|
+
label: {id: Server DOKU}
|
|
43
|
+
required: true
|
|
44
|
+
help: {id: 'api-sandbox.doku.com untuk uji, api.doku.com untuk transaksi nyata'}
|
|
45
|
+
sign:
|
|
46
|
+
alg: hmac-sha256
|
|
47
|
+
key: secret_key
|
|
48
|
+
encoding: base64
|
|
49
|
+
header: Signature
|
|
50
|
+
prefix: HMACSHA256=
|
|
51
|
+
headers: {Client-Id: '{auth.client_id}', Request-Id: '{request.id}', Request-Timestamp: '{request.timestamp}'}
|
|
52
|
+
lines:
|
|
53
|
+
- 'Client-Id:{auth.client_id}'
|
|
54
|
+
- 'Request-Id:{request.id}'
|
|
55
|
+
- 'Request-Timestamp:{request.timestamp}'
|
|
56
|
+
- 'Request-Target:{request.target}'
|
|
57
|
+
- 'Digest:{request.digest}'
|
|
58
|
+
triggers:
|
|
59
|
+
- name: payment_notified
|
|
60
|
+
label: {id: Pembayaran DOKU masuk}
|
|
61
|
+
via: webhook
|
|
62
|
+
verify:
|
|
63
|
+
signature:
|
|
64
|
+
header: Signature
|
|
65
|
+
prefix: HMACSHA256=
|
|
66
|
+
alg: hmac-sha256
|
|
67
|
+
key: secret_key
|
|
68
|
+
encoding: base64
|
|
69
|
+
lines:
|
|
70
|
+
- 'Client-Id:{auth.client_id}'
|
|
71
|
+
- 'Request-Id:{header.Request-Id}'
|
|
72
|
+
- 'Request-Timestamp:{header.Request-Timestamp}'
|
|
73
|
+
- 'Request-Target:{request.target}'
|
|
74
|
+
- 'Digest:{request.digest}'
|
|
75
|
+
emit:
|
|
76
|
+
gateway_ref: transaction.original_request_id
|
|
77
|
+
external_id: order.invoice_number
|
|
78
|
+
paid_amount: order.amount
|
|
79
|
+
paid_at: transaction.date
|
|
80
|
+
status: transaction.status
|
|
81
|
+
# DOKU's transaction type: SALE for a payment; a REFUND (or anything but a sale) of status SUCCESS is not money in
|
|
82
|
+
type: transaction.type
|
|
83
|
+
# a notification without transaction.type counts as a sale (paid true), never as null: a null paid would be
|
|
84
|
+
# skipped by the flows without telling anyone
|
|
85
|
+
paid: "transaction.status == 'SUCCESS' && (!('type' in transaction) || transaction.type == null || transaction.type == 'SALE' || transaction.type == '')"
|
|
86
|
+
# DOKU's channel (QRIS, VIRTUAL_ACCOUNT_BCA, ...) and service (QRIS, VIRTUAL_ACCOUNT, ...); flows map them to
|
|
87
|
+
# payment.method
|
|
88
|
+
channel: channel.id
|
|
89
|
+
service: service.id
|
|
90
|
+
actions:
|
|
91
|
+
- name: create_checkout
|
|
92
|
+
label: {id: Buat halaman bayar DOKU}
|
|
93
|
+
request:
|
|
94
|
+
method: POST
|
|
95
|
+
url: https://{auth.api_host}/checkout/v1/payment
|
|
96
|
+
body:
|
|
97
|
+
order:
|
|
98
|
+
amount: '{input.amount}'
|
|
99
|
+
invoice_number: '{input.external_id}'
|
|
100
|
+
currency: IDR
|
|
101
|
+
callback_url: '{input.return_url}'
|
|
102
|
+
payment:
|
|
103
|
+
payment_due_date: '{input.due_minutes}'
|
|
104
|
+
payment_method_types: '{input.methods}'
|
|
105
|
+
customer:
|
|
106
|
+
name: '{input.customer_name}'
|
|
107
|
+
phone: '{input.customer_phone}'
|
|
108
|
+
input:
|
|
109
|
+
- {name: external_id, type: data, required: true, help: {id: 'Nomor faktur penjualan (maks 64 karakter), kembali sebagai external_id. Bayar dicatat ke faktur saja, bukan struk kasir'}}
|
|
110
|
+
- {name: amount, type: currency, required: true, help: {id: Rupiah utuh}}
|
|
111
|
+
- {name: methods, type: json, default: "['QRIS']", help: {id: 'Saluran yang ditawarkan, misalnya QRIS'}}
|
|
112
|
+
- {name: due_minutes, type: int, default: '60'}
|
|
113
|
+
- {name: return_url, type: data}
|
|
114
|
+
- {name: customer_name, type: data}
|
|
115
|
+
- {name: customer_phone, type: data}
|
|
116
|
+
# a payment page expires (due_minutes): a new page for the same invoice and amount is a new attempt, so it is not
|
|
117
|
+
# taken for a repeat of the first call
|
|
118
|
+
- {name: attempt, type: int, default: '1', help: {id: 'Naikkan untuk membuat halaman bayar baru setelah yang lama kedaluwarsa'}}
|
|
119
|
+
output:
|
|
120
|
+
payment_url: response.payment.url
|
|
121
|
+
token_id: response.payment.token_id
|
|
122
|
+
expires_at: response.payment.expired_date
|
|
123
|
+
external_id: response.order.invoice_number
|
|
124
|
+
retry: {max: 5, backoff: exponential, on: [429, 500, 502, 503]}
|
|
125
|
+
idempotency: input.external_id + ':' + string(input.amount) + ':' + string(input.attempt)
|
|
126
|
+
limits:
|
|
127
|
+
rate: per DOKU account
|
|
128
|
+
note: {id: 'Akun DOKU dan aktivasi QRIS lewat DOKU (KTP/NPWP). MDR QRIS mengikuti BI'}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{"message": ["SUCCESS"],
|
|
2
|
+
"response": {
|
|
3
|
+
"order": {"amount": "750000", "invoice_number": "INV/TC/26/0007", "currency": "IDR", "session_id": "sess-contoh-0007"},
|
|
4
|
+
"payment": {"payment_method_types": ["QRIS"], "payment_due_date": 60, "token_id": "tok-contoh-0007",
|
|
5
|
+
"url": "https://sandbox.doku.com/checkout-link-v2/tok-contoh-0007", "expired_date": "20261111131240"},
|
|
6
|
+
"uuid": 1234567890, "headers": {"request_id": "11111111-2222-4333-8444-555555555555", "signature": "HMACSHA256=..."}}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"payment_notified.json": {
|
|
3
|
+
"gateway_ref": "3f2b8c1e-7d4a-4b9e-9c21-0a1b2c3d4e5f",
|
|
4
|
+
"external_id": "INV/TC/26/0007",
|
|
5
|
+
"paid_amount": 750000,
|
|
6
|
+
"status": "SUCCESS",
|
|
7
|
+
"paid": true,
|
|
8
|
+
"channel": "QRIS",
|
|
9
|
+
"service": "QRIS",
|
|
10
|
+
"type": "SALE"
|
|
11
|
+
},
|
|
12
|
+
"payment_notified_failed.json": {
|
|
13
|
+
"external_id": "INV/TC/26/0008",
|
|
14
|
+
"paid": false,
|
|
15
|
+
"channel": "VIRTUAL_ACCOUNT_BCA"
|
|
16
|
+
},
|
|
17
|
+
"create_checkout.json": {
|
|
18
|
+
"payment_url": "https://sandbox.doku.com/checkout-link-v2/tok-contoh-0007",
|
|
19
|
+
"token_id": "tok-contoh-0007",
|
|
20
|
+
"external_id": "INV/TC/26/0007"
|
|
21
|
+
},
|
|
22
|
+
"payment_notified_refund.json": {
|
|
23
|
+
"type": "REFUND",
|
|
24
|
+
"status": "SUCCESS",
|
|
25
|
+
"paid": false
|
|
26
|
+
},
|
|
27
|
+
"payment_notified_no_type.json": {
|
|
28
|
+
"external_id": "INV/TC/26/0009",
|
|
29
|
+
"status": "SUCCESS",
|
|
30
|
+
"type": null,
|
|
31
|
+
"paid": true
|
|
32
|
+
},
|
|
33
|
+
"payment_notified_null_type.json": {
|
|
34
|
+
"external_id": "INV/TC/26/0010",
|
|
35
|
+
"type": null,
|
|
36
|
+
"paid": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0007", "amount": 750000},
|
|
2
|
+
"customer": {"name": "Pelanggan Contoh", "email": "pelanggan@contoh.test"},
|
|
3
|
+
"transaction": {"type": "SALE", "status": "SUCCESS", "date": "2026-11-11T05:12:40Z", "original_request_id": "3f2b8c1e-7d4a-4b9e-9c21-0a1b2c3d4e5f"},
|
|
4
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"},
|
|
5
|
+
"additional_info": {"origin": {"product": "CHECKOUT"}}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0008", "amount": 120000},
|
|
2
|
+
"transaction": {"type": "SALE", "status": "FAILED", "date": "2026-11-11T05:20:00Z", "original_request_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"},
|
|
3
|
+
"service": {"id": "VIRTUAL_ACCOUNT"}, "acquirer": {"id": "BCA"}, "channel": {"id": "VIRTUAL_ACCOUNT_BCA"}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0009", "amount": 250000},
|
|
2
|
+
"transaction": {"status": "SUCCESS", "date": "2026-11-12T04:10:00Z", "original_request_id": "8d0c1b2a-3e4f-4a5b-8c6d-7e8f9a0b1c2d"},
|
|
3
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0010", "amount": 125000},
|
|
2
|
+
"transaction": {"type": null, "status": "SUCCESS", "date": "2026-11-12T05:00:00Z", "original_request_id": "1b2c3d4e-5f60-4718-8a9b-0c1d2e3f4a5b"},
|
|
3
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0007", "amount": 750000},
|
|
2
|
+
"transaction": {"type": "REFUND", "status": "SUCCESS", "date": "2026-11-12T03:00:00Z", "original_request_id": "3f2b8c1e-7d4a-4b9e-9c21-0a1b2c3d4e5f"},
|
|
3
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"}}
|