@rangka-os/create 0.5.0-alpha.5 → 0.5.0-alpha.7
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/fnb_cabang/dashboards/stock_recap.rk +6 -4
- package/template/base/apps/grosir_distribusi/app.rk +48 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_ar.rk +62 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_overview.rk +85 -0
- package/template/base/apps/jasa_proyek/app.rk +5 -4
- package/template/base/apps/jasa_proyek/dashboards/jasa_overview.rk +20 -0
- package/template/base/apps/jasa_proyek/dashboards/project_margin.rk +66 -0
- package/template/base/apps/jasa_proyek/processes/quote_to_cash.rk +2 -1
- package/template/base/apps/produksi_pabrik/app.rk +46 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_overview.rk +96 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_upah.rk +39 -0
- package/template/base/apps/ritel_cabang/app.rk +50 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_overview.rk +123 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_stock.rk +146 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_tax.rk +76 -0
- package/template/base/connectors/loyverse/connector.rk +93 -0
- package/template/base/connectors/moka/connector.rk +81 -0
- package/template/base/connectors/whatsapp_business/connector.rk +16 -0
- package/template/base/connectors/whatsapp_business/templates.md +32 -0
- package/template/base/connectors/xendit/connector.rk +179 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_claim.rk +19 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_confirm.rk +43 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_link_locked.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_matched.rk +13 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_release.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_suggest.rk +21 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_unmatched.rk +11 -0
- package/template/base/modules/bank_statement/imports/bank_statement_csv.rk +25 -0
- package/template/base/modules/bank_statement/models/bank_transaction.rk +124 -0
- package/template/base/modules/bank_statement/models/bank_transaction_claim.rk +49 -0
- package/template/base/modules/bank_statement/module.rk +7 -0
- package/template/base/modules/catalogue/imports/item_list.rk +20 -0
- package/template/base/modules/catalogue/imports/item_master.rk +25 -0
- package/template/base/modules/catalogue/models/item.rk +56 -1
- package/template/base/modules/catalogue/models/item_category.rk +27 -0
- package/template/base/modules/catalogue/models/uom.rk +1 -0
- package/template/base/modules/catalogue/module.rk +2 -1
- package/template/base/modules/consignment/flows/consignment_bill.rk +36 -0
- package/template/base/modules/consignment/flows/consignment_bill_cancelled.rk +14 -0
- package/template/base/modules/consignment/models/consignment_settlement.rk +93 -0
- package/template/base/modules/consignment/models/consignment_settlement_item.rk +37 -0
- package/template/base/modules/consignment/module.rk +10 -0
- package/template/base/modules/contacts/imports/customer_list.rk +17 -0
- package/template/base/modules/contacts/imports/vendor_list.rk +16 -0
- package/template/base/modules/contacts/models/customer.rk +58 -1
- package/template/base/modules/contacts/module.rk +1 -1
- package/template/base/modules/delivery/flows/delivery_cancel_guard.rk +18 -0
- package/template/base/modules/delivery/flows/fulfilment_on_delivery_cancelled.rk +21 -0
- package/template/base/modules/delivery/flows/fulfilment_on_delivery_submitted.rk +21 -0
- package/template/base/modules/delivery/flows/fulfilment_on_invoice_cancelled.rk +22 -0
- package/template/base/modules/delivery/flows/fulfilment_on_invoice_submitted.rk +22 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_created.rk +18 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_submitted.rk +16 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_updated.rk +19 -0
- package/template/base/modules/delivery/flows/fulfilment_on_return_cancelled.rk +16 -0
- package/template/base/modules/delivery/flows/fulfilment_on_return_submitted.rk +16 -0
- package/template/base/modules/delivery/flows/invoice_qty_from_deliveries.rk +20 -0
- package/template/base/modules/delivery/flows/order_cancel_guard.rk +10 -0
- package/template/base/modules/delivery/flows/return_cancel_guard.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_payment_cancelled.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_payment_submitted.rk +21 -0
- package/template/base/modules/delivery/flows/return_credit_on_return_cancelled.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_return_submitted.rk +10 -0
- package/template/base/modules/delivery/models/delivery_guard.rk +48 -0
- package/template/base/modules/delivery/models/delivery_note.rk +94 -0
- package/template/base/modules/delivery/models/delivery_note_item.rk +9 -0
- package/template/base/modules/delivery/models/order_fulfilment.rk +27 -0
- package/template/base/modules/delivery/models/order_fulfilment_item.rk +10 -0
- package/template/base/modules/delivery/models/return_credit.rk +23 -0
- package/template/base/modules/delivery/models/sales_return.rk +87 -0
- package/template/base/modules/delivery/models/sales_return_item.rk +16 -0
- package/template/base/modules/delivery/module.rk +11 -0
- package/template/base/modules/distribution/flows/credit_on_invoice_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_invoice_submitted.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_order_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_order_submitted.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_payment_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_payment_submitted.rk +17 -0
- package/template/base/modules/distribution/flows/giro_bounced.rk +20 -0
- package/template/base/modules/distribution/flows/giro_from_payment.rk +21 -0
- package/template/base/modules/distribution/flows/order_tier_pricing_created.rk +17 -0
- package/template/base/modules/distribution/flows/order_tier_pricing_updated.rk +17 -0
- package/template/base/modules/distribution/models/giro.rk +79 -0
- package/template/base/modules/distribution/module.rk +9 -0
- package/template/base/modules/invoicing/flows/invoice_due_digest.rk +12 -0
- package/template/base/modules/invoicing/flows/milestone_invoiced.rk +23 -0
- package/template/base/modules/invoicing/flows/milestone_reopened.rk +19 -0
- package/template/base/modules/invoicing/flows/project_billed_on_cancel.rk +16 -0
- package/template/base/modules/invoicing/flows/project_billed_on_submit.rk +16 -0
- package/template/base/modules/invoicing/flows/project_revenue_on_cancel.rk +22 -0
- package/template/base/modules/invoicing/flows/project_revenue_on_submit.rk +17 -0
- package/template/base/modules/invoicing/models/invoice_reminder.rk +83 -0
- package/template/base/modules/invoicing/models/sales_invoice.rk +108 -3
- package/template/base/modules/invoicing/models/sales_invoice_item.rk +9 -0
- package/template/base/modules/invoicing/module.rk +2 -2
- package/template/base/modules/invoicing/print/sales_invoice.html +2 -1
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.html +33 -0
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.rk +8 -0
- package/template/base/modules/orders/models/customer_order.rk +80 -2
- package/template/base/modules/orders/models/customer_order_item.rk +19 -0
- package/template/base/modules/orders/module.rk +2 -2
- package/template/base/modules/outlet_sales/flows/moka_legacy_key_overlap.rk +22 -0
- package/template/base/modules/outlet_sales/imports/daily_form.rk +3 -1
- package/template/base/modules/outlet_sales/imports/loyverse_receipts.rk +28 -0
- package/template/base/modules/outlet_sales/imports/moka_item_details.rk +14 -4
- package/template/base/modules/outlet_sales/imports/pos_sales_file.rk +28 -0
- package/template/base/modules/outlet_sales/imports/takings_file.rk +23 -0
- package/template/base/modules/outlet_sales/models/outlet_sales.rk +72 -6
- package/template/base/modules/outlet_sales/models/outlet_sales_line.rk +1 -0
- package/template/base/modules/outlet_sales/models/outlet_takings.rk +83 -0
- package/template/base/modules/outlet_sales/models/outlet_takings_line.rk +37 -0
- package/template/base/modules/outlets/models/outlet.rk +18 -0
- package/template/base/modules/outlets/module.rk +1 -1
- package/template/base/modules/payments/flows/payment_gateway_claim_created.rk +19 -0
- package/template/base/modules/payments/flows/payment_gateway_claim_submitted.rk +19 -0
- package/template/base/modules/payments/flows/payment_gateway_release.rk +12 -0
- package/template/base/modules/payments/models/gateway_ref_claim.rk +42 -0
- package/template/base/modules/payments/models/payment.rk +59 -1
- package/template/base/modules/payments/models/withholding.rk +3 -1
- package/template/base/modules/payments/module.rk +2 -2
- package/template/base/modules/procurement/flows/project_vendor_cost_on_cancel.rk +22 -0
- package/template/base/modules/procurement/flows/project_vendor_cost_on_submit.rk +17 -0
- package/template/base/modules/procurement/imports/opening_stock.rk +25 -0
- package/template/base/modules/procurement/models/goods_receipt.rk +1 -1
- package/template/base/modules/procurement/models/purchase_order.rk +15 -7
- package/template/base/modules/procurement/models/purchase_request.rk +11 -1
- package/template/base/modules/procurement/models/vendor_bill.rk +12 -1
- package/template/base/modules/procurement/module.rk +1 -1
- package/template/base/modules/production/flows/batch_cancel_guard.rk +12 -0
- package/template/base/modules/production/flows/batch_from_bom.rk +19 -0
- package/template/base/modules/production/flows/wage_sheet_on_batch_cancelled.rk +14 -0
- package/template/base/modules/production/flows/wage_sheet_on_batch_submitted.rk +12 -0
- package/template/base/modules/production/flows/work_order_materials_created.rk +20 -0
- package/template/base/modules/production/flows/work_order_materials_updated.rk +20 -0
- package/template/base/modules/production/models/bom.rk +67 -0
- package/template/base/modules/production/models/bom_byproduct.rk +7 -0
- package/template/base/modules/production/models/bom_line.rk +11 -0
- package/template/base/modules/production/models/production_batch.rk +149 -0
- package/template/base/modules/production/models/production_guard.rk +23 -0
- package/template/base/modules/production/models/production_labour.rk +10 -0
- package/template/base/modules/production/models/production_material.rk +8 -0
- package/template/base/modules/production/models/production_output.rk +8 -0
- package/template/base/modules/production/models/production_stage.rk +19 -0
- package/template/base/modules/production/models/wage_line.rk +11 -0
- package/template/base/modules/production/models/wage_sheet.rk +28 -0
- package/template/base/modules/production/models/work_order.rk +63 -0
- package/template/base/modules/production/models/work_order_material.rk +8 -0
- package/template/base/modules/production/module.rk +12 -0
- package/template/base/modules/projects/flows/milestone_back_on_acceptance_cancel.rk +15 -0
- package/template/base/modules/projects/flows/milestone_lock_on_update.rk +16 -0
- package/template/base/modules/projects/flows/milestone_ready_on_acceptance.rk +40 -0
- package/template/base/modules/projects/flows/milestone_scheduled_on_create.rk +14 -0
- package/template/base/modules/projects/flows/milestone_scheduled_on_update.rk +27 -0
- package/template/base/modules/projects/flows/project_expense_on_cancel.rk +21 -0
- package/template/base/modules/projects/flows/project_expense_on_submit.rk +16 -0
- package/template/base/modules/projects/flows/project_labor_on_cancel.rk +22 -0
- package/template/base/modules/projects/flows/project_labor_on_submit.rk +17 -0
- package/template/base/modules/projects/flows/project_terms_lock.rk +26 -0
- package/template/base/modules/projects/flows/vendor_bill_cancel_guard.rk +15 -0
- package/template/base/modules/projects/imports/billing_milestone.rk +20 -0
- package/template/base/modules/projects/models/assignment.rk +21 -1
- package/template/base/modules/projects/models/billing_milestone.rk +217 -0
- package/template/base/modules/projects/models/project.rk +76 -2
- package/template/base/modules/projects/models/project_expense.rk +119 -0
- package/template/base/modules/projects/models/project_guard.rk +27 -0
- package/template/base/modules/projects/models/project_ledger.rk +132 -0
- package/template/base/modules/projects/models/timesheet.rk +38 -3
- package/template/base/modules/projects/module.rk +1 -1
- package/template/base/modules/stock/flows/adjustment_value_backfill.rk +94 -0
- package/template/base/modules/stock/flows/adjustment_value_on_cancel.rk +19 -0
- package/template/base/modules/stock/flows/adjustment_value_on_submit.rk +17 -0
- package/template/base/modules/stock/models/recipe.rk +8 -0
- package/template/base/modules/stock/models/stock_adjustment.rk +1 -0
- package/template/base/modules/stock/models/stock_adjustment_value.rk +75 -0
- package/template/base/modules/stock/models/stock_balance.rk +3 -0
- package/template/base/modules/stock/models/stock_move.rk +10 -1
- package/template/base/modules/stock/module.rk +1 -1
- package/template/base/modules/users/models/user.rk +1 -0
- package/template/base/modules/users/module.rk +1 -1
- package/template/base/modules/users/roles/field_sales.rk +7 -0
- package/template/base/modules/workforce/imports/worker_list.rk +16 -0
- package/template/base/modules/workforce/models/worker.rk +22 -1
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.7",
|
|
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",
|
|
@@ -109,13 +109,15 @@ widgets:
|
|
|
109
109
|
- name: waste_by_outlet
|
|
110
110
|
type: chart
|
|
111
111
|
chart: bar
|
|
112
|
-
label: {id:
|
|
113
|
-
description: {id: Nilai
|
|
114
|
-
|
|
112
|
+
label: {id: Penyesuaian stok per outlet}
|
|
113
|
+
description: {id: 'Nilai stok keluar karena terbuang, rusak, kedaluwarsa atau lainnya (negatif = keluar); selisih opname tidak termasuk'}
|
|
114
|
+
# Every adjustment reason (waste, damage, expired, other), from stock_adjustment_value: one row per submitted
|
|
115
|
+
# adjustment and one opposite row when it is cancelled, both on the adjustment's date, so a cancelled one nets to
|
|
116
|
+
# zero in its own period. Count differences (opname) are not adjustments and are not here.
|
|
117
|
+
model: stock_adjustment_value
|
|
115
118
|
group_by: outlet
|
|
116
119
|
aggregate: sum
|
|
117
120
|
field: value
|
|
118
|
-
filter: reason == 'waste'
|
|
119
121
|
period: posting_date
|
|
120
122
|
span: 6
|
|
121
123
|
- name: negative_balances
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
# Back office of a sub-distributor (grosir FMCG): salesmen take orders for their own customers at the customer's price
|
|
3
|
+
# tier, an order is held for the sales manager when the customer is on hold, overdue or over its limit, the warehouse
|
|
4
|
+
# delivers with a delivery note (stock out), invoices go out with PPN, giro is followed to the bank, a bounced giro
|
|
5
|
+
# opens the invoices again, and AR is read per salesman.
|
|
6
|
+
name: grosir_distribusi
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
title: {id: Grosir dan distribusi, en: Wholesale distribution}
|
|
9
|
+
label: {id: Rangka Grosir Distribusi, en: Rangka Wholesale Distribution}
|
|
10
|
+
summary:
|
|
11
|
+
id: Pesanan salesman dengan harga per tier, tahan kredit otomatis, surat jalan, retur, giro dan piutang per salesman.
|
|
12
|
+
rangka: '>=0.5'
|
|
13
|
+
modules:
|
|
14
|
+
contacts: ^1.0
|
|
15
|
+
catalogue: ^1.0
|
|
16
|
+
outlets: ^1.0
|
|
17
|
+
users: ^1.0
|
|
18
|
+
stock: ^1.0
|
|
19
|
+
orders: ^1.0
|
|
20
|
+
invoicing: ^1.0
|
|
21
|
+
payments: ^1.0
|
|
22
|
+
procurement: ^1.0
|
|
23
|
+
distribution: ^1.0
|
|
24
|
+
delivery: ^1.0
|
|
25
|
+
dashboards: [grosir_overview, grosir_ar]
|
|
26
|
+
roles: [sales_manager, finance_manager, head_office, field_sales]
|
|
27
|
+
home: {dashboard: grosir_overview}
|
|
28
|
+
# recipe is installed with stock but has no menu entry: a distributor sells goods as they are.
|
|
29
|
+
menu:
|
|
30
|
+
- group: {id: Penjualan}
|
|
31
|
+
items: [customer_order, sales_invoice, payment, giro]
|
|
32
|
+
- group: {id: Pengiriman}
|
|
33
|
+
items: [delivery_note, sales_return, order_fulfilment, return_credit]
|
|
34
|
+
- group: {id: Gudang}
|
|
35
|
+
items: [stock_balance, stock_move, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
36
|
+
- group: {id: Pembelian}
|
|
37
|
+
items: [purchase_order, goods_receipt, vendor_bill]
|
|
38
|
+
- group: {id: Data induk}
|
|
39
|
+
items: [customer, item, item_category, price_list, outlet, uom, vendor, user]
|
|
40
|
+
onboarding:
|
|
41
|
+
- ask: {id: 'Berapa salesman yang mengambil pesanan?'}
|
|
42
|
+
sets: seed.salesmen
|
|
43
|
+
- ask: {id: 'Apakah usaha kamu PKP (memungut PPN)?'}
|
|
44
|
+
options: ['true', 'false']
|
|
45
|
+
sets: tax.pkp
|
|
46
|
+
- ask: {id: 'Apakah ada mobil kanvas (jual langsung dari mobil)?'}
|
|
47
|
+
options: ['true', 'false']
|
|
48
|
+
sets: seed.canvas_van
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: grosir_ar
|
|
3
|
+
label: {id: Piutang dan penagihan, en: Receivables and collections}
|
|
4
|
+
cache: 5m
|
|
5
|
+
widgets:
|
|
6
|
+
- name: ar_by_salesman
|
|
7
|
+
type: chart
|
|
8
|
+
chart: bar
|
|
9
|
+
label: {id: Piutang per salesman}
|
|
10
|
+
model: sales_invoice
|
|
11
|
+
group_by: salesman
|
|
12
|
+
aggregate: sum
|
|
13
|
+
field: outstanding
|
|
14
|
+
filter: docstatus == 1 && outstanding > 0
|
|
15
|
+
span: 6
|
|
16
|
+
- name: overdue_by_salesman
|
|
17
|
+
type: chart
|
|
18
|
+
chart: bar
|
|
19
|
+
label: {id: Lewat jatuh tempo per salesman}
|
|
20
|
+
model: sales_invoice
|
|
21
|
+
group_by: salesman
|
|
22
|
+
aggregate: sum
|
|
23
|
+
field: outstanding
|
|
24
|
+
filter: docstatus == 1 && outstanding > 0 && due_date < today()
|
|
25
|
+
span: 6
|
|
26
|
+
- name: collected_by_salesman
|
|
27
|
+
type: chart
|
|
28
|
+
chart: bar
|
|
29
|
+
label: {id: Tertagih per salesman (30 hari)}
|
|
30
|
+
model: payment
|
|
31
|
+
group_by: salesman
|
|
32
|
+
aggregate: sum
|
|
33
|
+
field: amount
|
|
34
|
+
filter: docstatus == 1 && direction == 'receive' && method != 'sales_return'
|
|
35
|
+
period: payment_date
|
|
36
|
+
span: 6
|
|
37
|
+
- name: on_hold
|
|
38
|
+
type: list
|
|
39
|
+
label: {id: Pelanggan ditahan kredit}
|
|
40
|
+
model: customer
|
|
41
|
+
filter: credit_hold == true
|
|
42
|
+
limit: 20
|
|
43
|
+
columns: [customer_name, salesman, credit_hold_reason, outstanding]
|
|
44
|
+
span: 6
|
|
45
|
+
- name: returns_not_credited
|
|
46
|
+
label: {id: Retur belum dipotongkan}
|
|
47
|
+
description: {id: 'Retur yang sudah diterima gudang tapi belum dipotong dari piutang (pembayaran metode Potong retur)'}
|
|
48
|
+
type: list
|
|
49
|
+
model: return_credit
|
|
50
|
+
filter: credited < return_total
|
|
51
|
+
limit: 20
|
|
52
|
+
columns: [sales_return, return_total, credited]
|
|
53
|
+
span: 12
|
|
54
|
+
- name: overdue_list
|
|
55
|
+
type: list
|
|
56
|
+
label: {id: Faktur lewat jatuh tempo}
|
|
57
|
+
model: sales_invoice
|
|
58
|
+
filter: docstatus == 1 && outstanding > 0 && due_date < today()
|
|
59
|
+
sort: due_date
|
|
60
|
+
limit: 20
|
|
61
|
+
columns: [name, customer, salesman, due_date, outstanding]
|
|
62
|
+
span: 12
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: grosir_overview
|
|
3
|
+
label: {id: Ringkasan distribusi, en: Distribution overview}
|
|
4
|
+
default_period: 30
|
|
5
|
+
cache: 5m
|
|
6
|
+
# The owner's daily questions: what did the salesmen sell, which orders wait, who pays late, which giro is due.
|
|
7
|
+
widgets:
|
|
8
|
+
- name: sales_period
|
|
9
|
+
type: number
|
|
10
|
+
label: {id: Penjualan (faktur)}
|
|
11
|
+
description: {id: 'Nilai sebelum PPN, faktur yang sudah diterbitkan pada periode ini'}
|
|
12
|
+
model: sales_invoice
|
|
13
|
+
aggregate: sum
|
|
14
|
+
field: subtotal
|
|
15
|
+
filter: docstatus == 1
|
|
16
|
+
period: posting_date
|
|
17
|
+
compact: true
|
|
18
|
+
span: 3
|
|
19
|
+
- name: ar_open
|
|
20
|
+
type: number
|
|
21
|
+
label: {id: Piutang berjalan}
|
|
22
|
+
model: sales_invoice
|
|
23
|
+
aggregate: sum
|
|
24
|
+
field: outstanding
|
|
25
|
+
filter: docstatus == 1 && outstanding > 0
|
|
26
|
+
compact: true
|
|
27
|
+
span: 3
|
|
28
|
+
- name: overdue_ar
|
|
29
|
+
type: number
|
|
30
|
+
label: {id: Piutang lewat jatuh tempo}
|
|
31
|
+
model: sales_invoice
|
|
32
|
+
aggregate: sum
|
|
33
|
+
field: outstanding
|
|
34
|
+
filter: docstatus == 1 && outstanding > 0 && due_date < today()
|
|
35
|
+
compact: true
|
|
36
|
+
good_when: down
|
|
37
|
+
span: 3
|
|
38
|
+
- name: held_orders
|
|
39
|
+
type: number
|
|
40
|
+
label: {id: Pesanan belum jalan}
|
|
41
|
+
description: {id: Draft dan pesanan yang menunggu persetujuan kredit}
|
|
42
|
+
model: customer_order
|
|
43
|
+
aggregate: count
|
|
44
|
+
filter: docstatus == 0
|
|
45
|
+
span: 3
|
|
46
|
+
- name: sales_by_salesman
|
|
47
|
+
type: chart
|
|
48
|
+
chart: bar
|
|
49
|
+
label: {id: Penjualan per salesman}
|
|
50
|
+
model: sales_invoice
|
|
51
|
+
group_by: salesman
|
|
52
|
+
aggregate: sum
|
|
53
|
+
field: subtotal
|
|
54
|
+
filter: docstatus == 1
|
|
55
|
+
period: posting_date
|
|
56
|
+
span: 6
|
|
57
|
+
- name: ar_by_salesman
|
|
58
|
+
type: chart
|
|
59
|
+
chart: bar
|
|
60
|
+
label: {id: Piutang per salesman}
|
|
61
|
+
model: sales_invoice
|
|
62
|
+
group_by: salesman
|
|
63
|
+
aggregate: sum
|
|
64
|
+
field: outstanding
|
|
65
|
+
filter: docstatus == 1 && outstanding > 0
|
|
66
|
+
span: 6
|
|
67
|
+
- name: giro_due
|
|
68
|
+
type: list
|
|
69
|
+
label: {id: Giro belum cair}
|
|
70
|
+
description: {id: 'Giro diterima atau disetor, urut tanggal efektif'}
|
|
71
|
+
model: giro
|
|
72
|
+
filter: status == 'received' || status == 'deposited'
|
|
73
|
+
sort: effective_date
|
|
74
|
+
limit: 10
|
|
75
|
+
columns: [giro_no, customer, effective_date, amount, status]
|
|
76
|
+
span: 6
|
|
77
|
+
- name: late_customers
|
|
78
|
+
type: list
|
|
79
|
+
label: {id: Pelanggan telat bayar}
|
|
80
|
+
model: customer
|
|
81
|
+
filter: oldest_open_due != '' && oldest_open_due < today()
|
|
82
|
+
sort: oldest_open_due
|
|
83
|
+
limit: 10
|
|
84
|
+
columns: [customer_name, salesman, oldest_open_due, outstanding, credit_hold]
|
|
85
|
+
span: 6
|
|
@@ -19,19 +19,20 @@ modules:
|
|
|
19
19
|
workforce: ^1.0
|
|
20
20
|
projects: ^1.0
|
|
21
21
|
payments: ^1.0
|
|
22
|
+
bank_statement: ^1.0
|
|
22
23
|
procurement: ^1.0
|
|
23
|
-
dashboards: [jasa_overview, ar_aging]
|
|
24
|
+
dashboards: [jasa_overview, ar_aging, project_margin]
|
|
24
25
|
roles: [sales_manager, finance_manager, purchasing_manager, project_admin]
|
|
25
26
|
home: {dashboard: jasa_overview}
|
|
26
27
|
menu:
|
|
27
28
|
- group: {id: Penjualan}
|
|
28
29
|
items: [quotation, customer_order, sales_invoice]
|
|
29
30
|
- group: {id: Proyek}
|
|
30
|
-
items: [project, assignment, timesheet, acceptance]
|
|
31
|
+
items: [project, billing_milestone, assignment, timesheet, project_expense, acceptance, project_ledger]
|
|
31
32
|
- group: {id: Tenaga kerja}
|
|
32
33
|
items: [worker]
|
|
33
34
|
- group: {id: Keuangan}
|
|
34
|
-
items: [payment, withholding, vendor_bill]
|
|
35
|
+
items: [payment, bank_transaction, invoice_reminder, withholding, vendor_bill]
|
|
35
36
|
- group: {id: Pembelian}
|
|
36
37
|
items: [purchase_request, purchase_order]
|
|
37
38
|
- group: {id: Data induk}
|
|
@@ -43,7 +44,7 @@ onboarding:
|
|
|
43
44
|
options: ['true', 'false']
|
|
44
45
|
sets: tax.pkp
|
|
45
46
|
- ask: {id: 'Apa bidang usaha kamu?'}
|
|
46
|
-
options: [manpower, inspeksi, rental, training]
|
|
47
|
+
options: [manpower, inspeksi, rental, training, konsultan]
|
|
47
48
|
sets: settings.business_line
|
|
48
49
|
- ask: {id: 'Berapa PT yang kamu kelola?'}
|
|
49
50
|
sets: seed.orgs
|
|
@@ -119,3 +119,23 @@ widgets:
|
|
|
119
119
|
limit: 10
|
|
120
120
|
columns: [name, worker_name, role_title, day_rate]
|
|
121
121
|
span: 5
|
|
122
|
+
# Billing schedule (billing_milestone): what can be billed now, and what is due by date.
|
|
123
|
+
- name: ready_to_bill
|
|
124
|
+
type: number
|
|
125
|
+
label: {id: Siap ditagih}
|
|
126
|
+
description: {id: 'Termin yang berita acaranya sudah ada, belum ada fakturnya'}
|
|
127
|
+
model: billing_milestone
|
|
128
|
+
aggregate: sum
|
|
129
|
+
field: amount
|
|
130
|
+
filter: state == 'ready'
|
|
131
|
+
compact: true
|
|
132
|
+
span: 3
|
|
133
|
+
- name: milestones_due
|
|
134
|
+
type: list
|
|
135
|
+
label: {id: Termin jatuh tempo}
|
|
136
|
+
model: billing_milestone
|
|
137
|
+
filter: state == 'ready' || (state == 'planned' && trigger == 'date' && due_date <= today())
|
|
138
|
+
sort: due_date
|
|
139
|
+
limit: 10
|
|
140
|
+
columns: [project, title, amount, due_date, state]
|
|
141
|
+
span: 12
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
# Margin per project from project_ledger: revenue rows are positive, cost rows negative, so a sum is the margin.
|
|
3
|
+
name: project_margin
|
|
4
|
+
label: {id: Untung per proyek, en: Project margin}
|
|
5
|
+
default_period: 365
|
|
6
|
+
cache: 5m
|
|
7
|
+
widgets:
|
|
8
|
+
- name: margin_total
|
|
9
|
+
type: number
|
|
10
|
+
label: {id: Untung proyek}
|
|
11
|
+
description: {id: 'Pendapatan dikurangi biaya tenaga kerja, proyek dan pemasok (DPP), dari dokumen yang diajukan sejak buku ini aktif'}
|
|
12
|
+
model: project_ledger
|
|
13
|
+
aggregate: sum
|
|
14
|
+
field: amount
|
|
15
|
+
period: posting_date
|
|
16
|
+
compact: true
|
|
17
|
+
span: 4
|
|
18
|
+
- name: revenue_total
|
|
19
|
+
type: number
|
|
20
|
+
label: {id: Pendapatan proyek}
|
|
21
|
+
model: project_ledger
|
|
22
|
+
aggregate: sum
|
|
23
|
+
field: amount
|
|
24
|
+
filter: kind == 'revenue'
|
|
25
|
+
period: posting_date
|
|
26
|
+
compact: true
|
|
27
|
+
span: 4
|
|
28
|
+
- name: backlog_total
|
|
29
|
+
type: number
|
|
30
|
+
label: {id: Nilai kontrak berjalan}
|
|
31
|
+
description: {id: 'Nilai kontrak proyek yang belum selesai'}
|
|
32
|
+
model: project
|
|
33
|
+
aggregate: sum
|
|
34
|
+
field: contract_value
|
|
35
|
+
filter: state == 'planned' || state == 'running'
|
|
36
|
+
compact: true
|
|
37
|
+
span: 4
|
|
38
|
+
- name: margin_by_project
|
|
39
|
+
type: chart
|
|
40
|
+
chart: bar
|
|
41
|
+
label: {id: Untung per proyek}
|
|
42
|
+
model: project_ledger
|
|
43
|
+
group_by: project
|
|
44
|
+
aggregate: sum
|
|
45
|
+
field: amount
|
|
46
|
+
period: posting_date
|
|
47
|
+
sort: -value
|
|
48
|
+
span: 6
|
|
49
|
+
- name: result_by_kind
|
|
50
|
+
type: chart
|
|
51
|
+
chart: bar
|
|
52
|
+
label: {id: Pendapatan dan biaya}
|
|
53
|
+
model: project_ledger
|
|
54
|
+
group_by: kind
|
|
55
|
+
aggregate: sum
|
|
56
|
+
field: amount
|
|
57
|
+
period: posting_date
|
|
58
|
+
span: 6
|
|
59
|
+
- name: latest_rows
|
|
60
|
+
type: list
|
|
61
|
+
label: {id: Catatan terakhir}
|
|
62
|
+
model: project_ledger
|
|
63
|
+
sort: -posting_date
|
|
64
|
+
limit: 10
|
|
65
|
+
columns: [project, kind, source_name, amount]
|
|
66
|
+
span: 12
|
|
@@ -4,6 +4,7 @@ label: {id: Dari penawaran sampai lunas, en: Quote to cash}
|
|
|
4
4
|
stages:
|
|
5
5
|
- {name: quotation, label: {id: Penawaran, en: Quotation}, model: quotation}
|
|
6
6
|
- {name: order, label: {id: Pesanan, en: Order}, model: customer_order}
|
|
7
|
-
- {name: project, label: {id: Proyek, en: Project}, model: project, models: [assignment, timesheet, acceptance]}
|
|
7
|
+
- {name: project, label: {id: Proyek, en: Project}, model: project, models: [assignment, timesheet, acceptance, project_expense]}
|
|
8
|
+
- {name: billing, label: {id: Termin, en: Billing schedule}, model: billing_milestone}
|
|
8
9
|
- {name: invoice, label: {id: Faktur, en: Invoice}, model: sales_invoice}
|
|
9
10
|
- {name: paid, label: {id: Lunas, en: Paid}, model: sales_invoice, when: "status == 'paid'", models: [payment, payment_allocation, withholding]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
# Back office of a small factory (frozen food, bakery, konveksi): multi-level recipes with a standard cost, work
|
|
3
|
+
# orders (SPK), batch results with production code and expiry, actual cost per batch (materials, piece-rate wages,
|
|
4
|
+
# overhead), weekly piece-rate wages per worker, material purchasing and stock of materials and finished goods.
|
|
5
|
+
name: produksi_pabrik
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
title: {id: Produksi pabrik kecil, en: Small-factory production}
|
|
8
|
+
label: {id: Rangka Produksi Pabrik, en: Rangka Factory Production}
|
|
9
|
+
summary:
|
|
10
|
+
id: Resep bertingkat, SPK, hasil per batch dengan kedaluwarsa, HPP aktual dan upah borongan.
|
|
11
|
+
rangka: '>=0.5'
|
|
12
|
+
modules:
|
|
13
|
+
contacts: ^1.0
|
|
14
|
+
catalogue: ^1.0
|
|
15
|
+
outlets: ^1.0
|
|
16
|
+
users: ^1.0
|
|
17
|
+
stock: ^1.0
|
|
18
|
+
workforce: ^1.0
|
|
19
|
+
production: ^1.0
|
|
20
|
+
procurement: ^1.0
|
|
21
|
+
payments: ^1.0
|
|
22
|
+
invoicing: ^1.0
|
|
23
|
+
dashboards: [produksi_overview, produksi_upah]
|
|
24
|
+
roles: [head_office, outlet_staff]
|
|
25
|
+
home: {dashboard: produksi_overview}
|
|
26
|
+
# invoicing is only here because payments requires it; selling (orders, delivery notes) comes with grosir_distribusi.
|
|
27
|
+
menu:
|
|
28
|
+
- group: {id: Produksi}
|
|
29
|
+
items: [work_order, production_batch, wage_sheet]
|
|
30
|
+
- group: {id: Resep dan tarif}
|
|
31
|
+
items: [bom, production_stage, worker]
|
|
32
|
+
- group: {id: Stok}
|
|
33
|
+
items: [stock_balance, stock_move, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
34
|
+
- group: {id: Pembelian}
|
|
35
|
+
items: [purchase_order, goods_receipt, vendor_bill, payment]
|
|
36
|
+
- group: {id: Data induk}
|
|
37
|
+
items: [item, item_category, outlet, uom, vendor]
|
|
38
|
+
onboarding:
|
|
39
|
+
- ask: {id: 'Apa produk utama yang kamu buat?'}
|
|
40
|
+
sets: seed.products
|
|
41
|
+
- ask: {id: 'Apakah pekerja produksi dibayar borongan (per hasil)?'}
|
|
42
|
+
options: ['true', 'false']
|
|
43
|
+
sets: seed.piece_rate
|
|
44
|
+
- ask: {id: 'Apakah usaha kamu PKP (memungut PPN)?'}
|
|
45
|
+
options: ['true', 'false']
|
|
46
|
+
sets: tax.pkp
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: produksi_overview
|
|
3
|
+
label: {id: Ringkasan produksi, en: Production overview}
|
|
4
|
+
default_period: 30
|
|
5
|
+
cache: 5m
|
|
6
|
+
# The owner's questions: how much did we make, what did it really cost, how much went to waste, what expires soon.
|
|
7
|
+
widgets:
|
|
8
|
+
- name: batches
|
|
9
|
+
type: number
|
|
10
|
+
label: {id: Batch selesai}
|
|
11
|
+
model: production_batch
|
|
12
|
+
aggregate: count
|
|
13
|
+
filter: docstatus == 1
|
|
14
|
+
period: production_date
|
|
15
|
+
span: 3
|
|
16
|
+
- name: good_qty
|
|
17
|
+
type: number
|
|
18
|
+
label: {id: Hasil baik}
|
|
19
|
+
model: production_batch
|
|
20
|
+
aggregate: sum
|
|
21
|
+
field: good_qty
|
|
22
|
+
filter: docstatus == 1
|
|
23
|
+
period: production_date
|
|
24
|
+
span: 3
|
|
25
|
+
- name: hpp_total
|
|
26
|
+
type: number
|
|
27
|
+
label: {id: HPP produksi}
|
|
28
|
+
description: {id: 'Bahan, upah borongan dan overhead'}
|
|
29
|
+
model: production_batch
|
|
30
|
+
aggregate: sum
|
|
31
|
+
field: hpp_total
|
|
32
|
+
filter: docstatus == 1
|
|
33
|
+
period: production_date
|
|
34
|
+
compact: true
|
|
35
|
+
span: 3
|
|
36
|
+
- name: reject_qty
|
|
37
|
+
type: number
|
|
38
|
+
label: {id: Reject}
|
|
39
|
+
model: production_batch
|
|
40
|
+
aggregate: sum
|
|
41
|
+
field: reject_qty
|
|
42
|
+
filter: docstatus == 1
|
|
43
|
+
period: production_date
|
|
44
|
+
good_when: down
|
|
45
|
+
span: 3
|
|
46
|
+
- name: hpp_by_product
|
|
47
|
+
type: chart
|
|
48
|
+
chart: bar
|
|
49
|
+
label: {id: HPP per produk}
|
|
50
|
+
model: production_batch
|
|
51
|
+
group_by: item
|
|
52
|
+
aggregate: sum
|
|
53
|
+
field: hpp_total
|
|
54
|
+
filter: docstatus == 1
|
|
55
|
+
period: production_date
|
|
56
|
+
span: 6
|
|
57
|
+
- name: output_by_product
|
|
58
|
+
type: chart
|
|
59
|
+
chart: bar
|
|
60
|
+
label: {id: Hasil baik per produk}
|
|
61
|
+
model: production_batch
|
|
62
|
+
group_by: item
|
|
63
|
+
aggregate: sum
|
|
64
|
+
field: good_qty
|
|
65
|
+
filter: docstatus == 1
|
|
66
|
+
period: production_date
|
|
67
|
+
span: 6
|
|
68
|
+
- name: recent_batches
|
|
69
|
+
type: list
|
|
70
|
+
label: {id: Batch terakhir}
|
|
71
|
+
description: {id: 'HPP aktual per satuan dibanding standar resep'}
|
|
72
|
+
model: production_batch
|
|
73
|
+
filter: docstatus == 1
|
|
74
|
+
sort: -production_date
|
|
75
|
+
limit: 10
|
|
76
|
+
columns: [name, item, good_qty, hpp_per_unit, standard_unit_cost, expiry_date]
|
|
77
|
+
span: 12
|
|
78
|
+
- name: expiring
|
|
79
|
+
type: list
|
|
80
|
+
label: {id: Batch mendekati kedaluwarsa}
|
|
81
|
+
description: {id: Kedaluwarsa dalam 30 hari}
|
|
82
|
+
model: production_batch
|
|
83
|
+
filter: "docstatus == 1 && expiry_date != '' && expiry_date <= today() + duration('30d')"
|
|
84
|
+
sort: expiry_date
|
|
85
|
+
limit: 10
|
|
86
|
+
columns: [name, item, good_qty, expiry_date]
|
|
87
|
+
span: 6
|
|
88
|
+
- name: open_work_orders
|
|
89
|
+
type: list
|
|
90
|
+
label: {id: SPK berjalan}
|
|
91
|
+
model: work_order
|
|
92
|
+
filter: docstatus == 1
|
|
93
|
+
sort: due_date
|
|
94
|
+
limit: 10
|
|
95
|
+
columns: [name, item, qty, due_date]
|
|
96
|
+
span: 6
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: produksi_upah
|
|
3
|
+
label: {id: Upah borongan, en: Piece-rate wages}
|
|
4
|
+
default_period: 7
|
|
5
|
+
cache: 5m
|
|
6
|
+
# Weekly recap for paying the piece-rate workers (period 7 days); PPh 21 is not computed here yet.
|
|
7
|
+
widgets:
|
|
8
|
+
- name: wages_total
|
|
9
|
+
type: number
|
|
10
|
+
label: {id: Total upah borongan}
|
|
11
|
+
model: wage_line
|
|
12
|
+
aggregate: sum
|
|
13
|
+
field: amount
|
|
14
|
+
filter: "!cancelled"
|
|
15
|
+
period: work_date
|
|
16
|
+
compact: true
|
|
17
|
+
span: 4
|
|
18
|
+
- name: wages_by_worker
|
|
19
|
+
type: chart
|
|
20
|
+
chart: bar
|
|
21
|
+
label: {id: Upah per pekerja}
|
|
22
|
+
model: wage_line
|
|
23
|
+
group_by: worker
|
|
24
|
+
aggregate: sum
|
|
25
|
+
field: amount
|
|
26
|
+
filter: "!cancelled"
|
|
27
|
+
period: work_date
|
|
28
|
+
span: 8
|
|
29
|
+
- name: qty_by_stage
|
|
30
|
+
type: chart
|
|
31
|
+
chart: bar
|
|
32
|
+
label: {id: Qty per tahap}
|
|
33
|
+
model: wage_line
|
|
34
|
+
group_by: stage
|
|
35
|
+
aggregate: sum
|
|
36
|
+
field: qty
|
|
37
|
+
filter: "!cancelled"
|
|
38
|
+
period: work_date
|
|
39
|
+
span: 12
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
# Retail back office for a shop that keeps its POS (Jalur A): sales arrive as POS files per outlet, stock per outlet
|
|
3
|
+
# follows them, purchasing and supplier bills, consignment in, daily takings, and the reports an owner reads weekly.
|
|
4
|
+
# No cashier, receipt or shift here. Built on the fnb_cabang modules without recipes: an item without a recipe takes
|
|
5
|
+
# itself out of stock on a sale.
|
|
6
|
+
name: ritel_cabang
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
title: {id: Ritel multi cabang, en: Multi-branch retail}
|
|
9
|
+
label: {id: Rangka Ritel Cabang, en: Rangka Multi-branch Retail}
|
|
10
|
+
summary:
|
|
11
|
+
id: Impor penjualan dari kasir lama, stok per cabang, pembelian, barang titipan, setoran harian dan laporan barang laku.
|
|
12
|
+
rangka: '>=0.5'
|
|
13
|
+
modules:
|
|
14
|
+
contacts: ^1.0
|
|
15
|
+
catalogue: ^1.0
|
|
16
|
+
outlets: ^1.0
|
|
17
|
+
users: ^1.0
|
|
18
|
+
stock: ^1.0
|
|
19
|
+
outlet_sales: ^1.0
|
|
20
|
+
procurement: ^1.0
|
|
21
|
+
payments: ^1.0
|
|
22
|
+
invoicing: ^1.0
|
|
23
|
+
consignment: ^1.0
|
|
24
|
+
dashboards: [ritel_overview, ritel_stock, ritel_tax]
|
|
25
|
+
roles: [head_office, outlet_staff]
|
|
26
|
+
home: {dashboard: ritel_overview}
|
|
27
|
+
# invoicing is only here because payments requires it; sales_invoice has no menu entry. recipe is installed with
|
|
28
|
+
# stock but has no menu entry: a shop sells goods as they are.
|
|
29
|
+
menu:
|
|
30
|
+
- group: {id: Penjualan toko}
|
|
31
|
+
items: [outlet_sales, outlet_takings]
|
|
32
|
+
- group: {id: Stok}
|
|
33
|
+
items: [stock_balance, stock_move, stock_transfer, stock_transfer_receipt, stock_count, stock_adjustment]
|
|
34
|
+
- group: {id: Pembelian}
|
|
35
|
+
items: [purchase_request, purchase_order, goods_receipt, vendor_bill, payment]
|
|
36
|
+
- group: {id: Titipan}
|
|
37
|
+
items: [consignment_settlement]
|
|
38
|
+
- group: {id: Data induk}
|
|
39
|
+
items: [item, item_category, outlet, uom, uom_conversion, vendor]
|
|
40
|
+
onboarding:
|
|
41
|
+
- ask: {id: 'Berapa cabang toko kamu?'}
|
|
42
|
+
sets: seed.outlets
|
|
43
|
+
- ask: {id: 'Cabang mana yang pakai Moka?'}
|
|
44
|
+
sets: imports.moka_item_details.outlets
|
|
45
|
+
- ask: {id: 'Kasir apa yang dipakai cabang lain?'}
|
|
46
|
+
options: [form, file, loyverse]
|
|
47
|
+
sets: outlet.sales_source
|
|
48
|
+
- ask: {id: 'Apakah usaha kamu PKP (memungut PPN)?'}
|
|
49
|
+
options: ['true', 'false']
|
|
50
|
+
sets: tax.pkp
|