@rangka-os/create 0.0.0-stage → 0.5.0-alpha.10
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/index.js +137 -0
- package/package.json +29 -4
- package/template/base/README.md +32 -0
- package/template/base/_gitignore +3 -0
- package/template/base/_vscode/settings.json +4 -0
- package/template/base/apps/crm/app.rk +44 -0
- package/template/base/apps/crm/dashboards/crm_overview.rk +88 -0
- package/template/base/apps/crm/dashboards/sales_overview.rk +66 -0
- package/template/base/apps/crm/processes/lead_to_cash.rk +8 -0
- package/template/base/apps/faktur_piutang/app.rk +31 -0
- package/template/base/apps/faktur_piutang/dashboards/piutang_ringkas.rk +88 -0
- package/template/base/apps/fnb_cabang/app.rk +46 -0
- package/template/base/apps/fnb_cabang/dashboards/fnb_overview.rk +104 -0
- package/template/base/apps/fnb_cabang/dashboards/stock_recap.rk +132 -0
- package/template/base/apps/grosir_distribusi/app.rk +56 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_ar.rk +62 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_overview.rk +87 -0
- package/template/base/apps/jasa_proyek/app.rk +61 -0
- package/template/base/apps/jasa_proyek/dashboards/ar_aging.rk +88 -0
- package/template/base/apps/jasa_proyek/dashboards/jasa_overview.rk +148 -0
- package/template/base/apps/jasa_proyek/dashboards/project_margin.rk +94 -0
- package/template/base/apps/jasa_proyek/processes/quote_to_cash.rk +10 -0
- package/template/base/apps/kasir/app.rk +38 -0
- package/template/base/apps/kasir/dashboards/kasir_ringkas.rk +20 -0
- package/template/base/apps/kasir/skills/rangka-app-kasir/SKILL.md +64 -0
- package/template/base/apps/kelas_kursus/app.rk +29 -0
- package/template/base/apps/kelas_kursus/dashboards/kursus_ringkas.rk +67 -0
- package/template/base/apps/langganan_jasa/app.rk +32 -0
- package/template/base/apps/langganan_jasa/dashboards/langganan_ringkas.rk +167 -0
- package/template/base/apps/langganan_jasa/dashboards/penagihan_saya.rk +54 -0
- package/template/base/apps/mutasi_bank/app.rk +22 -0
- package/template/base/apps/pajak/app.rk +25 -0
- package/template/base/apps/pembelian_pemasok/app.rk +23 -0
- package/template/base/apps/pembukuan/app.rk +19 -0
- package/template/base/apps/penjualan_harian/app.rk +34 -0
- package/template/base/apps/penjualan_harian/dashboards/penjualan_ringkas.rk +87 -0
- package/template/base/apps/produksi_pabrik/app.rk +54 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_overview.rk +101 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_upah.rk +39 -0
- package/template/base/apps/ritel_cabang/app.rk +58 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_overview.rk +137 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_stock.rk +147 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_tax.rk +76 -0
- package/template/base/apps/sewa_alat/app.rk +29 -0
- package/template/base/apps/sewa_alat/dashboards/sewa_ringkas.rk +86 -0
- package/template/base/apps/stok_outlet/app.rk +34 -0
- package/template/base/apps/stok_outlet/dashboards/stok_ringkas.rk +50 -0
- package/template/base/connectors/biteship/connector.rk +246 -0
- package/template/base/connectors/biteship/fixtures/cancel_order.json +1 -0
- package/template/base/connectors/biteship/fixtures/create_order.json +8 -0
- package/template/base/connectors/biteship/fixtures/expect.json +9 -0
- package/template/base/connectors/biteship/fixtures/get_order.json +2 -0
- package/template/base/connectors/biteship/fixtures/get_rates.json +7 -0
- package/template/base/connectors/biteship/fixtures/get_tracking.json +7 -0
- package/template/base/connectors/biteship/fixtures/order_price.json +11 -0
- package/template/base/connectors/biteship/fixtures/order_status.json +15 -0
- package/template/base/connectors/biteship/fixtures/order_status_cancelled.json +15 -0
- package/template/base/connectors/biteship/fixtures/order_waybill.json +7 -0
- package/template/base/connectors/biteship/fixtures/search_areas.json +1 -0
- package/template/base/connectors/loyverse/connector.rk +98 -0
- package/template/base/connectors/moka/connector.rk +86 -0
- package/template/base/connectors/whatsapp_business/connector.rk +89 -0
- package/template/base/connectors/whatsapp_business/templates.md +32 -0
- package/template/base/connectors/xendit/connector.rk +184 -0
- package/template/base/docker-compose.yml +16 -0
- package/template/base/env.example +12 -0
- package/template/base/modules/accounting/flows/financial_report_compute.rk +47 -0
- package/template/base/modules/accounting/flows/financial_report_recompute.rk +47 -0
- package/template/base/modules/accounting/flows/gl_delivery_note_post.rk +37 -0
- package/template/base/modules/accounting/flows/gl_delivery_note_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_goods_receipt_post.rk +41 -0
- package/template/base/modules/accounting/flows/gl_goods_receipt_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_opening_balance_post.rk +132 -0
- package/template/base/modules/accounting/flows/gl_opening_balance_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_return_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_outlet_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_sales_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_outlet_sales_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_takings_post.rk +71 -0
- package/template/base/modules/accounting/flows/gl_outlet_takings_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_payment_post.rk +63 -0
- package/template/base/modules/accounting/flows/gl_payment_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_payroll_close_post.rk +89 -0
- package/template/base/modules/accounting/flows/gl_payroll_close_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_pos_sale_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_pos_sale_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_pos_shift_close_post.rk +59 -0
- package/template/base/modules/accounting/flows/gl_pos_shift_close_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_production_batch_post.rk +62 -0
- package/template/base/modules/accounting/flows/gl_production_batch_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_project_expense_post.rk +64 -0
- package/template/base/modules/accounting/flows/gl_project_expense_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_rental_booking_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_rental_booking_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_rental_return_post.rk +47 -0
- package/template/base/modules/accounting/flows/gl_rental_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_sales_invoice_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_sales_invoice_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_sales_return_post.rk +40 -0
- package/template/base/modules/accounting/flows/gl_sales_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_adjustment_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_adjustment_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_count_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_count_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_receipt_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_receipt_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_timesheet_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_timesheet_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_vendor_bill_post.rk +63 -0
- package/template/base/modules/accounting/flows/gl_vendor_bill_reverse.rk +194 -0
- package/template/base/modules/accounting/imports/opening_balance_sheet.rk +22 -0
- package/template/base/modules/accounting/models/financial_report.rk +85 -0
- package/template/base/modules/accounting/models/gl_entry.rk +161 -0
- package/template/base/modules/accounting/models/opening_balance.rk +48 -0
- package/template/base/modules/accounting/models/period_close.rk +33 -0
- package/template/base/modules/accounting/module.rk +16 -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 +31 -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 +12 -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 +129 -0
- package/template/base/modules/catalogue/models/item_category.rk +27 -0
- package/template/base/modules/catalogue/models/price_list.rk +34 -0
- package/template/base/modules/catalogue/models/price_list_item.rk +21 -0
- package/template/base/modules/catalogue/models/uom.rk +34 -0
- package/template/base/modules/catalogue/models/uom_conversion.rk +44 -0
- package/template/base/modules/catalogue/module.rk +11 -0
- package/template/base/modules/consignment/flows/consignment_bill.rk +39 -0
- package/template/base/modules/consignment/flows/consignment_bill_cancelled.rk +14 -0
- package/template/base/modules/consignment/models/consignment_settlement.rk +111 -0
- package/template/base/modules/consignment/models/consignment_settlement_item.rk +37 -0
- package/template/base/modules/consignment/module.rk +15 -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/contact_person.rk +21 -0
- package/template/base/modules/contacts/models/credit_guard.rk +40 -0
- package/template/base/modules/contacts/models/customer.rk +180 -0
- package/template/base/modules/contacts/models/vendor.rk +104 -0
- package/template/base/modules/contacts/module.rk +10 -0
- package/template/base/modules/coretax/models/tax_period.rk +89 -0
- package/template/base/modules/coretax/module.rk +13 -0
- package/template/base/modules/coretax/print/coretax_bupot.rk +26 -0
- package/template/base/modules/coretax/print/coretax_bupot.xml +28 -0
- package/template/base/modules/coretax/print/coretax_faktur.rk +34 -0
- package/template/base/modules/coretax/print/coretax_faktur.xml +58 -0
- package/template/base/modules/courses/flows/charge_cancel_guard.rk +23 -0
- package/template/base/modules/courses/flows/charge_invoice_on_submit.rk +56 -0
- package/template/base/modules/courses/flows/enrollment_seats_on_create.rk +15 -0
- package/template/base/modules/courses/flows/enrollment_seats_on_update.rk +35 -0
- package/template/base/modules/courses/flows/invoice_course_once.rk +22 -0
- package/template/base/modules/courses/flows/invoice_course_tag_lock.rk +16 -0
- package/template/base/modules/courses/flows/session_fill_attendance.rk +16 -0
- package/template/base/modules/courses/flows/student_billing_on_create.rk +25 -0
- package/template/base/modules/courses/models/course_attendance.rk +22 -0
- package/template/base/modules/courses/models/course_batch.rk +112 -0
- package/template/base/modules/courses/models/course_batch_slot.rk +18 -0
- package/template/base/modules/courses/models/course_charge.rk +125 -0
- package/template/base/modules/courses/models/course_guard.rk +50 -0
- package/template/base/modules/courses/models/course_program.rk +101 -0
- package/template/base/modules/courses/models/course_session.rk +90 -0
- package/template/base/modules/courses/models/enrollment.rk +136 -0
- package/template/base/modules/courses/models/student.rk +68 -0
- package/template/base/modules/courses/module.rk +14 -0
- package/template/base/modules/courses/roles/instructor.rk +7 -0
- package/template/base/modules/currency/models/currency.rk +34 -0
- package/template/base/modules/currency/models/exchange_rate.rk +39 -0
- package/template/base/modules/currency/module.rk +10 -0
- 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 +28 -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 +101 -0
- package/template/base/modules/delivery/models/delivery_note_item.rk +11 -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 +16 -0
- package/template/base/modules/delivery/print/delivery_note.html +96 -0
- package/template/base/modules/delivery/print/delivery_note.rk +9 -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 +25 -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 +14 -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/payment_instruction_on_submit.rk +25 -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/flows/sales_invoice_credit_recheck.rk +18 -0
- package/template/base/modules/invoicing/models/bank_account.rk +134 -0
- package/template/base/modules/invoicing/models/invoice_reminder.rk +83 -0
- package/template/base/modules/invoicing/models/payment_instruction.rk +72 -0
- package/template/base/modules/invoicing/models/sales_invoice.rk +480 -0
- package/template/base/modules/invoicing/models/sales_invoice_item.rk +53 -0
- package/template/base/modules/invoicing/module.rk +14 -0
- package/template/base/modules/invoicing/print/sales_invoice.html +163 -0
- package/template/base/modules/invoicing/print/sales_invoice.rk +14 -0
- package/template/base/modules/invoicing/print/sales_invoice_nota.html +71 -0
- package/template/base/modules/invoicing/print/sales_invoice_nota.rk +13 -0
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.html +45 -0
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.rk +15 -0
- package/template/base/modules/orders/models/customer_order.rk +186 -0
- package/template/base/modules/orders/models/customer_order_item.rk +49 -0
- package/template/base/modules/orders/module.rk +14 -0
- package/template/base/modules/outlet_sales/flows/moka_legacy_key_overlap.rk +22 -0
- package/template/base/modules/outlet_sales/flows/refund_on_return_cancelled.rk +15 -0
- package/template/base/modules/outlet_sales/flows/refund_on_return_submitted.rk +26 -0
- package/template/base/modules/outlet_sales/flows/refund_on_sales_submitted.rk +14 -0
- package/template/base/modules/outlet_sales/flows/sales_cancel_guard.rk +14 -0
- package/template/base/modules/outlet_sales/imports/daily_form.rk +22 -0
- package/template/base/modules/outlet_sales/imports/loyverse_receipts.rk +28 -0
- package/template/base/modules/outlet_sales/imports/moka_item_details.rk +34 -0
- 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_return.rk +66 -0
- package/template/base/modules/outlet_sales/models/outlet_return_item.rk +7 -0
- package/template/base/modules/outlet_sales/models/outlet_sales.rk +175 -0
- package/template/base/modules/outlet_sales/models/outlet_sales_guard.rk +35 -0
- package/template/base/modules/outlet_sales/models/outlet_sales_line.rk +40 -0
- package/template/base/modules/outlet_sales/models/outlet_takings.rk +85 -0
- package/template/base/modules/outlet_sales/models/outlet_takings_line.rk +37 -0
- package/template/base/modules/outlet_sales/models/pos_refund.rk +33 -0
- package/template/base/modules/outlet_sales/models/pos_refund_item.rk +9 -0
- package/template/base/modules/outlet_sales/module.rk +12 -0
- package/template/base/modules/outlets/models/outlet.rk +75 -0
- package/template/base/modules/outlets/module.rk +10 -0
- package/template/base/modules/payments/flows/payment_from_xendit_invoice.rk +59 -0
- package/template/base/modules/payments/flows/payment_from_xendit_qr.rk +59 -0
- package/template/base/modules/payments/flows/payment_from_xendit_va.rk +59 -0
- 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 +214 -0
- package/template/base/modules/payments/models/payment_allocation.rk +35 -0
- package/template/base/modules/payments/models/withholding.rk +76 -0
- package/template/base/modules/payments/module.rk +13 -0
- package/template/base/modules/payments/print/statement.html +55 -0
- package/template/base/modules/payments/print/statement.rk +13 -0
- package/template/base/modules/payroll/flows/invoice_payroll_once.rk +20 -0
- package/template/base/modules/payroll/flows/invoice_payroll_tag_lock.rk +13 -0
- package/template/base/modules/payroll/flows/payroll_close_on_cancel.rk +35 -0
- package/template/base/modules/payroll/flows/payroll_close_on_submit.rk +66 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_created.rk +14 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_updated.rk +14 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_cancel.rk +29 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_submit.rk +29 -0
- package/template/base/modules/payroll/flows/payslip_cancel_guard.rk +14 -0
- package/template/base/modules/payroll/flows/payslip_from_recap.rk +47 -0
- package/template/base/modules/payroll/flows/payslip_month_guard_created.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_month_guard_submitted.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_order_guard_cancelled.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_order_guard_submitted.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_pay_overlap_guard.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_ytd_guard.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_ytd_on_create.rk +20 -0
- package/template/base/modules/payroll/flows/recap_cancel_guard.rk +15 -0
- package/template/base/modules/payroll/models/payroll_close.rk +80 -0
- package/template/base/modules/payroll/models/payroll_guard.rk +74 -0
- package/template/base/modules/payroll/models/payroll_profile.rk +136 -0
- package/template/base/modules/payroll/models/payroll_run.rk +220 -0
- package/template/base/modules/payroll/models/payslip.rk +293 -0
- package/template/base/modules/payroll/module.rk +13 -0
- package/template/base/modules/payroll/print/payslip.html +53 -0
- package/template/base/modules/payroll/print/payslip.rk +7 -0
- package/template/base/modules/pipeline/flows/morning_follow_up.rk +10 -0
- package/template/base/modules/pipeline/flows/whatsapp_to_lead.rk +24 -0
- package/template/base/modules/pipeline/models/activity.rk +83 -0
- package/template/base/modules/pipeline/models/deal.rk +139 -0
- package/template/base/modules/pipeline/models/lead.rk +119 -0
- package/template/base/modules/pipeline/module.rk +12 -0
- package/template/base/modules/pos/flows/pos_daily_form_guard.rk +18 -0
- package/template/base/modules/pos/flows/pos_sale_on_cancel.rk +33 -0
- package/template/base/modules/pos/flows/pos_sale_on_submit.rk +46 -0
- package/template/base/modules/pos/flows/pos_shift_close_on_cancel.rk +26 -0
- package/template/base/modules/pos/flows/pos_shift_close_on_submit.rk +23 -0
- package/template/base/modules/pos/flows/pos_shift_on_create.rk +21 -0
- package/template/base/modules/pos/flows/pos_shift_on_update.rk +10 -0
- package/template/base/modules/pos/flows/pos_takings_guard.rk +28 -0
- package/template/base/modules/pos/models/pos_guard.rk +76 -0
- package/template/base/modules/pos/models/pos_payment.rk +17 -0
- package/template/base/modules/pos/models/pos_sale.rk +222 -0
- package/template/base/modules/pos/models/pos_sale_item.rk +43 -0
- package/template/base/modules/pos/models/pos_shift.rk +92 -0
- package/template/base/modules/pos/models/pos_shift_close.rk +77 -0
- package/template/base/modules/pos/module.rk +22 -0
- package/template/base/modules/pos/print/pos_receipt.html +50 -0
- package/template/base/modules/pos/print/pos_receipt.rk +9 -0
- package/template/base/modules/pos/screens/kasir.rk +41 -0
- 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 +85 -0
- package/template/base/modules/procurement/models/goods_receipt_item.rk +42 -0
- package/template/base/modules/procurement/models/purchase_order.rk +156 -0
- package/template/base/modules/procurement/models/purchase_order_item.rk +46 -0
- package/template/base/modules/procurement/models/purchase_request.rk +91 -0
- package/template/base/modules/procurement/models/purchase_request_item.rk +35 -0
- package/template/base/modules/procurement/models/vendor_bill.rk +272 -0
- package/template/base/modules/procurement/models/vendor_bill_item.rk +33 -0
- package/template/base/modules/procurement/module.rk +14 -0
- package/template/base/modules/procurement/print/purchase_order.html +120 -0
- package/template/base/modules/procurement/print/purchase_order.rk +7 -0
- 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 +15 -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 +17 -0
- package/template/base/modules/production/print/wage_sheet.html +75 -0
- package/template/base/modules/production/print/wage_sheet.rk +9 -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/timesheet_assignment_on_create.rk +28 -0
- package/template/base/modules/projects/flows/vendor_bill_cancel_guard.rk +15 -0
- package/template/base/modules/projects/imports/attendance_recap.rk +23 -0
- package/template/base/modules/projects/imports/billing_milestone.rk +20 -0
- package/template/base/modules/projects/models/acceptance.rk +68 -0
- package/template/base/modules/projects/models/assignment.rk +96 -0
- package/template/base/modules/projects/models/billing_milestone.rk +217 -0
- package/template/base/modules/projects/models/project.rk +155 -0
- package/template/base/modules/projects/models/project_expense.rk +121 -0
- package/template/base/modules/projects/models/project_guard.rk +27 -0
- package/template/base/modules/projects/models/project_ledger.rk +146 -0
- package/template/base/modules/projects/models/timesheet.rk +161 -0
- package/template/base/modules/projects/module.rk +11 -0
- package/template/base/modules/quotation/models/quotation.rk +201 -0
- package/template/base/modules/quotation/models/quotation_item.rk +37 -0
- package/template/base/modules/quotation/module.rk +14 -0
- package/template/base/modules/quotation/print/quotation.html +65 -0
- package/template/base/modules/quotation/print/quotation.rk +7 -0
- package/template/base/modules/rental/flows/rental_booking_on_cancel.rk +19 -0
- package/template/base/modules/rental/flows/rental_booking_on_submit.rk +45 -0
- package/template/base/modules/rental/flows/rental_checkout_on_cancel.rk +13 -0
- package/template/base/modules/rental/flows/rental_checkout_on_submit.rk +21 -0
- package/template/base/modules/rental/flows/rental_invoice_once.rk +20 -0
- package/template/base/modules/rental/flows/rental_invoice_tag_lock.rk +12 -0
- package/template/base/modules/rental/flows/rental_return_on_cancel.rk +15 -0
- package/template/base/modules/rental/flows/rental_return_on_submit.rk +28 -0
- package/template/base/modules/rental/models/rental_booking.rk +123 -0
- package/template/base/modules/rental/models/rental_checkout.rk +37 -0
- package/template/base/modules/rental/models/rental_guard.rk +72 -0
- package/template/base/modules/rental/models/rental_item.rk +75 -0
- package/template/base/modules/rental/models/rental_return.rk +83 -0
- package/template/base/modules/rental/models/rental_schedule.rk +49 -0
- package/template/base/modules/rental/module.rk +19 -0
- package/template/base/modules/stock/flows/adjustment_value_backfill.rk +95 -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/flows/stock_negative_alert.rk +15 -0
- package/template/base/modules/stock/models/recipe.rk +68 -0
- package/template/base/modules/stock/models/recipe_line.rk +24 -0
- package/template/base/modules/stock/models/stock_adjustment.rk +62 -0
- package/template/base/modules/stock/models/stock_adjustment_item.rk +32 -0
- package/template/base/modules/stock/models/stock_adjustment_value.rk +79 -0
- package/template/base/modules/stock/models/stock_balance.rk +27 -0
- package/template/base/modules/stock/models/stock_count.rk +54 -0
- package/template/base/modules/stock/models/stock_count_item.rk +33 -0
- package/template/base/modules/stock/models/stock_move.rk +53 -0
- package/template/base/modules/stock/models/stock_transfer.rk +70 -0
- package/template/base/modules/stock/models/stock_transfer_item.rk +34 -0
- package/template/base/modules/stock/models/stock_transfer_receipt.rk +57 -0
- package/template/base/modules/stock/models/stock_transfer_receipt_item.rk +18 -0
- package/template/base/modules/stock/module.rk +13 -0
- package/template/base/modules/subscriptions/flows/collector_deposit_on_submit.rk +57 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_kept.rk +17 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_not_cancelled.rk +14 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_not_deleted.rk +14 -0
- package/template/base/modules/subscriptions/flows/field_collection_cap_created.rk +24 -0
- package/template/base/modules/subscriptions/flows/field_collection_cap_updated.rk +24 -0
- package/template/base/modules/subscriptions/flows/field_collection_locked.rk +12 -0
- package/template/base/modules/subscriptions/flows/field_collection_not_deleted.rk +10 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_kept.rk +19 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_once.rk +34 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_tag_lock.rk +13 -0
- package/template/base/modules/subscriptions/flows/service_area_collector.rk +14 -0
- package/template/base/modules/subscriptions/flows/subscription_billing.rk +79 -0
- package/template/base/modules/subscriptions/flows/subscription_dunning.rk +81 -0
- package/template/base/modules/subscriptions/flows/subscription_extra_locked.rk +14 -0
- package/template/base/modules/subscriptions/flows/subscription_status_on_payment.rk +48 -0
- package/template/base/modules/subscriptions/models/collector_deposit.rk +36 -0
- package/template/base/modules/subscriptions/models/field_collection.rk +42 -0
- package/template/base/modules/subscriptions/models/service_area.rk +19 -0
- package/template/base/modules/subscriptions/models/subscription.rk +233 -0
- package/template/base/modules/subscriptions/models/subscription_bill.rk +48 -0
- package/template/base/modules/subscriptions/models/subscription_extra.rk +50 -0
- package/template/base/modules/subscriptions/models/subscription_guard.rk +65 -0
- package/template/base/modules/subscriptions/models/subscription_month.rk +29 -0
- package/template/base/modules/subscriptions/models/subscription_plan.rk +75 -0
- package/template/base/modules/subscriptions/models/subscription_status_log.rk +27 -0
- package/template/base/modules/subscriptions/module.rk +18 -0
- package/template/base/modules/subscriptions/roles/collector.rk +7 -0
- package/template/base/modules/tax_id/models/tax_code.rk +49 -0
- package/template/base/modules/tax_id/module.rk +10 -0
- package/template/base/modules/users/models/user.rk +29 -0
- package/template/base/modules/users/module.rk +10 -0
- package/template/base/modules/users/roles/cashier.rk +8 -0
- package/template/base/modules/users/roles/course_admin.rk +4 -0
- package/template/base/modules/users/roles/field_sales.rk +7 -0
- package/template/base/modules/users/roles/finance_manager.rk +4 -0
- package/template/base/modules/users/roles/head_office.rk +4 -0
- package/template/base/modules/users/roles/outlet_staff.rk +6 -0
- package/template/base/modules/users/roles/project_admin.rk +4 -0
- package/template/base/modules/users/roles/purchasing_manager.rk +4 -0
- package/template/base/modules/users/roles/sales_manager.rk +4 -0
- package/template/base/modules/users/roles/sales_rep.rk +4 -0
- package/template/base/modules/workforce/imports/worker_list.rk +21 -0
- package/template/base/modules/workforce/models/certification.rk +25 -0
- package/template/base/modules/workforce/models/worker.rk +94 -0
- package/template/base/modules/workforce/module.rk +10 -0
- package/template/base/package.json +17 -0
- package/template/blank/fixtures/start.rk +5 -0
- package/template/blank/site/config.rk +13 -0
- package/template/blank/site/custom/README.md +2 -0
- package/template/blank/site/features.rk +13 -0
- package/template/blank/site/layouts/main.rk +14 -0
- package/template/blank/site/system.rk +20 -0
- package/template/blank/site/themes/main.rk +8 -0
- package/template/demo/fixtures/crm_demo.rk +168 -0
- package/template/demo/fixtures/demo.rk +417 -0
- package/template/demo/site/config.rk +13 -0
- package/template/demo/site/features.rk +13 -0
- package/template/demo/site/layouts/crm_first.rk +23 -0
- package/template/demo/site/system.rk +26 -0
- package/template/demo/site/themes/kopi_senja.rk +10 -0
- package/README.md +0 -3
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: jasa_overview
|
|
3
|
+
label: {id: Ringkasan jasa proyek, en: Project services overview}
|
|
4
|
+
default_period: 30
|
|
5
|
+
cache: 5m
|
|
6
|
+
widgets:
|
|
7
|
+
# riset desain K-A2: "perlu_" lists open the home as "Perlu diurus" rows (P2); the amount is the last money column
|
|
8
|
+
- name: perlu_lewat_jatuh_tempo
|
|
9
|
+
type: list
|
|
10
|
+
label: {id: Faktur lewat jatuh tempo}
|
|
11
|
+
model: sales_invoice
|
|
12
|
+
filter: docstatus == 1 && outstanding > 0 && due_date < today()
|
|
13
|
+
sort: due_date
|
|
14
|
+
limit: 10
|
|
15
|
+
columns: [customer, due_date, name, outstanding]
|
|
16
|
+
span: 12
|
|
17
|
+
# Money first (P7, owner on a phone): receivables, overdue, ready to bill and billed, then what is overdue by name.
|
|
18
|
+
# List columns lead with who and how much, so the first two fit a 375px screen without scrolling sideways.
|
|
19
|
+
- name: outstanding_ar
|
|
20
|
+
type: number
|
|
21
|
+
label: {id: Piutang berjalan}
|
|
22
|
+
description: {id: Sisa tagihan semua faktur yang belum lunas}
|
|
23
|
+
model: sales_invoice
|
|
24
|
+
aggregate: sum
|
|
25
|
+
field: outstanding
|
|
26
|
+
filter: docstatus == 1 && outstanding > 0
|
|
27
|
+
good_when: down
|
|
28
|
+
compact: true
|
|
29
|
+
span: 3
|
|
30
|
+
- name: overdue_count
|
|
31
|
+
type: number
|
|
32
|
+
label: {id: Faktur lewat jatuh tempo}
|
|
33
|
+
model: sales_invoice
|
|
34
|
+
filter: docstatus == 1 && outstanding > 0 && due_date < today()
|
|
35
|
+
good_when: down
|
|
36
|
+
span: 3
|
|
37
|
+
# Billing schedule (billing_milestone): what can be billed now, and what is due by date.
|
|
38
|
+
- name: ready_to_bill
|
|
39
|
+
type: number
|
|
40
|
+
label: {id: Siap ditagih}
|
|
41
|
+
description: {id: 'Termin yang berita acaranya sudah ada, belum ada fakturnya'}
|
|
42
|
+
model: billing_milestone
|
|
43
|
+
aggregate: sum
|
|
44
|
+
field: amount
|
|
45
|
+
filter: state == 'ready'
|
|
46
|
+
compact: true
|
|
47
|
+
span: 3
|
|
48
|
+
- name: invoices_issued
|
|
49
|
+
type: number
|
|
50
|
+
label: {id: Faktur terbit}
|
|
51
|
+
description: {id: 'Total faktur yang sudah diajukan pada periode ini'}
|
|
52
|
+
model: sales_invoice
|
|
53
|
+
aggregate: sum
|
|
54
|
+
field: grand_total
|
|
55
|
+
filter: docstatus == 1
|
|
56
|
+
period: posting_date
|
|
57
|
+
compact: true
|
|
58
|
+
span: 3
|
|
59
|
+
- name: milestones_due
|
|
60
|
+
type: list
|
|
61
|
+
label: {id: Termin jatuh tempo}
|
|
62
|
+
model: billing_milestone
|
|
63
|
+
filter: state == 'ready' || (state == 'planned' && trigger == 'date' && due_date <= today())
|
|
64
|
+
sort: due_date
|
|
65
|
+
limit: 10
|
|
66
|
+
columns: [project, amount, due_date, title, state]
|
|
67
|
+
span: 12
|
|
68
|
+
- name: open_quotations
|
|
69
|
+
type: number
|
|
70
|
+
label: {id: Penawaran terbuka}
|
|
71
|
+
description: {id: 'Sudah dikirim, belum ada hasil'}
|
|
72
|
+
model: quotation
|
|
73
|
+
filter: docstatus == 1 && outcome == 'open'
|
|
74
|
+
span: 3
|
|
75
|
+
- name: quotations_won
|
|
76
|
+
type: number
|
|
77
|
+
label: {id: Penawaran menang}
|
|
78
|
+
model: quotation
|
|
79
|
+
filter: docstatus == 1 && outcome == 'accepted'
|
|
80
|
+
period: quotation_date
|
|
81
|
+
span: 3
|
|
82
|
+
- name: quotations_lost
|
|
83
|
+
type: number
|
|
84
|
+
label: {id: Penawaran kalah}
|
|
85
|
+
model: quotation
|
|
86
|
+
filter: docstatus == 1 && outcome == 'lost'
|
|
87
|
+
period: quotation_date
|
|
88
|
+
good_when: down
|
|
89
|
+
span: 3
|
|
90
|
+
- name: active_projects
|
|
91
|
+
type: number
|
|
92
|
+
label: {id: Proyek aktif}
|
|
93
|
+
description: {id: Direncanakan atau berjalan}
|
|
94
|
+
model: project
|
|
95
|
+
filter: state == 'planned' || state == 'running'
|
|
96
|
+
span: 3
|
|
97
|
+
- name: active_workers
|
|
98
|
+
# worker carries pay: only roles that may read it (audit L1)
|
|
99
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
100
|
+
type: number
|
|
101
|
+
label: {id: Tenaga kerja aktif}
|
|
102
|
+
model: worker
|
|
103
|
+
filter: active
|
|
104
|
+
span: 3
|
|
105
|
+
- name: quotation_outcomes
|
|
106
|
+
type: chart
|
|
107
|
+
chart: donut
|
|
108
|
+
label: {id: Hasil penawaran}
|
|
109
|
+
model: quotation
|
|
110
|
+
group_by: outcome
|
|
111
|
+
filter: docstatus == 1
|
|
112
|
+
period: quotation_date
|
|
113
|
+
span: 4
|
|
114
|
+
- name: invoices_by_week
|
|
115
|
+
type: chart
|
|
116
|
+
chart: line
|
|
117
|
+
label: {id: Faktur terbit per minggu}
|
|
118
|
+
model: sales_invoice
|
|
119
|
+
group_by: posting_date
|
|
120
|
+
grain: week
|
|
121
|
+
aggregate: sum
|
|
122
|
+
field: grand_total
|
|
123
|
+
filter: docstatus == 1
|
|
124
|
+
period: posting_date
|
|
125
|
+
span: 8
|
|
126
|
+
- name: running_projects
|
|
127
|
+
type: list
|
|
128
|
+
label: {id: Proyek aktif}
|
|
129
|
+
model: project
|
|
130
|
+
filter: state == 'planned' || state == 'running'
|
|
131
|
+
sort: start_date
|
|
132
|
+
limit: 10
|
|
133
|
+
columns: [name, project_name, customer, site, state, end_date]
|
|
134
|
+
span: 7
|
|
135
|
+
# Certification expiry cannot be a widget: `expired` lives on child rows (certification) and is a stored compute that goes
|
|
136
|
+
# stale once expires_on passes. The closest honest view is the list of active workers; open one to see its certifications.
|
|
137
|
+
- name: workers_certifications
|
|
138
|
+
# worker carries pay: only roles that may read it (audit L1)
|
|
139
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
140
|
+
type: list
|
|
141
|
+
label: {id: Tenaga kerja aktif}
|
|
142
|
+
description: {id: Buka satu untuk melihat masa berlaku sertifikasinya}
|
|
143
|
+
model: worker
|
|
144
|
+
filter: active
|
|
145
|
+
sort: worker_name
|
|
146
|
+
limit: 10
|
|
147
|
+
columns: [name, worker_name, role_title, day_rate]
|
|
148
|
+
span: 5
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
# Margin is cost: owner, finance and the project admin only. Sales and purchasing read only their own rows of the
|
|
7
|
+
# ledger, so a sum would show them revenue as "untung". The kernel enforces `roles` from alpha.9 (contract 0027); every
|
|
8
|
+
# widget on the ledger, timesheets or workers also keeps the same `if` for older kernels.
|
|
9
|
+
roles: [finance_manager, project_admin]
|
|
10
|
+
cache: 5m
|
|
11
|
+
widgets:
|
|
12
|
+
- name: margin_total
|
|
13
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
14
|
+
type: number
|
|
15
|
+
label: {id: Untung proyek}
|
|
16
|
+
description: {id: 'Pendapatan dikurangi biaya tenaga kerja, proyek dan pemasok (DPP), dari dokumen yang diajukan sejak buku ini aktif'}
|
|
17
|
+
model: project_ledger
|
|
18
|
+
aggregate: sum
|
|
19
|
+
field: amount
|
|
20
|
+
period: posting_date
|
|
21
|
+
compact: true
|
|
22
|
+
span: 4
|
|
23
|
+
- name: revenue_total
|
|
24
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
25
|
+
type: number
|
|
26
|
+
label: {id: Pendapatan proyek}
|
|
27
|
+
model: project_ledger
|
|
28
|
+
aggregate: sum
|
|
29
|
+
field: amount
|
|
30
|
+
filter: kind == 'revenue'
|
|
31
|
+
period: posting_date
|
|
32
|
+
compact: true
|
|
33
|
+
span: 4
|
|
34
|
+
- name: backlog_total
|
|
35
|
+
type: number
|
|
36
|
+
label: {id: Nilai kontrak berjalan}
|
|
37
|
+
description: {id: 'Nilai kontrak proyek yang belum selesai'}
|
|
38
|
+
model: project
|
|
39
|
+
aggregate: sum
|
|
40
|
+
field: contract_value
|
|
41
|
+
filter: state == 'planned' || state == 'running'
|
|
42
|
+
compact: true
|
|
43
|
+
span: 4
|
|
44
|
+
# A margin is only as good as its labour cost: absensi without pay add no cost, so they are counted here (G5).
|
|
45
|
+
- name: timesheets_without_pay
|
|
46
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
47
|
+
type: number
|
|
48
|
+
label: {id: Absensi tanpa upah}
|
|
49
|
+
description: {id: 'Absensi diajukan yang upahnya belum diisi: untung proyek di atas belum termasuk biaya tenaga ini'}
|
|
50
|
+
model: timesheet
|
|
51
|
+
filter: docstatus == 1 && cost_missing
|
|
52
|
+
good_when: down
|
|
53
|
+
span: 6
|
|
54
|
+
- name: workers_without_pay
|
|
55
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
56
|
+
type: number
|
|
57
|
+
label: {id: Tenaga tanpa upah}
|
|
58
|
+
description: {id: 'Tenaga aktif yang upah per hari dan per jamnya belum diisi'}
|
|
59
|
+
model: worker
|
|
60
|
+
filter: active && cost_day_rate == 0 && cost_hour_rate == 0
|
|
61
|
+
good_when: down
|
|
62
|
+
span: 6
|
|
63
|
+
- name: margin_by_project
|
|
64
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
65
|
+
type: chart
|
|
66
|
+
chart: bar
|
|
67
|
+
label: {id: Untung per proyek}
|
|
68
|
+
model: project_ledger
|
|
69
|
+
group_by: project
|
|
70
|
+
aggregate: sum
|
|
71
|
+
field: amount
|
|
72
|
+
period: posting_date
|
|
73
|
+
sort: -value
|
|
74
|
+
span: 6
|
|
75
|
+
- name: result_by_kind
|
|
76
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
77
|
+
type: chart
|
|
78
|
+
chart: bar
|
|
79
|
+
label: {id: Pendapatan dan biaya}
|
|
80
|
+
model: project_ledger
|
|
81
|
+
group_by: kind
|
|
82
|
+
aggregate: sum
|
|
83
|
+
field: amount
|
|
84
|
+
period: posting_date
|
|
85
|
+
span: 6
|
|
86
|
+
- name: latest_rows
|
|
87
|
+
if: "'owner' in user.roles || 'finance_manager' in user.roles || 'project_admin' in user.roles"
|
|
88
|
+
type: list
|
|
89
|
+
label: {id: Catatan terakhir}
|
|
90
|
+
model: project_ledger
|
|
91
|
+
sort: -posting_date
|
|
92
|
+
limit: 10
|
|
93
|
+
columns: [project, kind, source_name, amount]
|
|
94
|
+
span: 12
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/process.json
|
|
2
|
+
name: quote_to_cash
|
|
3
|
+
label: {id: Dari penawaran sampai lunas, en: Quote to cash}
|
|
4
|
+
stages:
|
|
5
|
+
- {name: quotation, label: {id: Penawaran, en: Quotation}, model: quotation}
|
|
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, project_expense]}
|
|
8
|
+
- {name: billing, label: {id: Termin, en: Billing schedule}, model: billing_milestone}
|
|
9
|
+
- {name: invoice, label: {id: Faktur, en: Invoice}, model: sales_invoice}
|
|
10
|
+
- {name: paid, label: {id: Lunas, en: Paid}, model: sales_invoice, when: "status == 'paid'", models: [payment, payment_allocation, withholding]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
name: kasir
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: {id: Kasir, en: Cashier}
|
|
5
|
+
label: {id: Rangka Kasir, en: Rangka Cashier}
|
|
6
|
+
summary:
|
|
7
|
+
id: Kasir di browser untuk toko dan kedai, sesi kas per outlet, struk bernomor, tunai dan QRIS, stok dan resep terpotong otomatis.
|
|
8
|
+
category: sales
|
|
9
|
+
icon: shopping-basket-line
|
|
10
|
+
rangka: '>=0.5'
|
|
11
|
+
# A piece (riset/desain/11-susunan-kepingan.md) for a shop or an F&B outlet that rings up its sales in Juragan
|
|
12
|
+
# (Jalur B v0: online, no devices). The stock it takes out lives in stok_outlet's modules, so a site with this piece
|
|
13
|
+
# can add stok_outlet for transfers and counts; pembukuan journals each receipt and each shift's cash difference.
|
|
14
|
+
# A cashier (role cashier, scoped to the member's outlets) sees only the cashier screens of their own outlet.
|
|
15
|
+
modules:
|
|
16
|
+
users: ^1.2
|
|
17
|
+
contacts: ^1.0
|
|
18
|
+
catalogue: ^1.3
|
|
19
|
+
outlets: ^1.2
|
|
20
|
+
stock: ^1.2
|
|
21
|
+
pos: ^1.0
|
|
22
|
+
dashboards: [kasir_ringkas]
|
|
23
|
+
roles: [cashier, head_office]
|
|
24
|
+
home: {model: pos_sale}
|
|
25
|
+
# contract 0030: the cashier lands on the cashier screen; head office opens it from the Kerja group
|
|
26
|
+
work:
|
|
27
|
+
- {screen: kasir, roles: [cashier], home: true}
|
|
28
|
+
- {screen: kasir, roles: [head_office]}
|
|
29
|
+
menu:
|
|
30
|
+
- group: {id: Kasir}
|
|
31
|
+
items: [pos_sale, pos_shift, pos_shift_close]
|
|
32
|
+
- group: {id: Barang dan harga}
|
|
33
|
+
items: [item, uom_conversion, recipe, outlet, stock_balance]
|
|
34
|
+
onboarding:
|
|
35
|
+
- ask: {id: 'Outlet mana yang mau pakai kasir Juragan?'}
|
|
36
|
+
sets: outlet.sales_source
|
|
37
|
+
- ask: {id: 'Siapa saja kasirnya, dan di outlet mana?'}
|
|
38
|
+
sets: seed.users
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: kasir_ringkas
|
|
3
|
+
label: {id: Ringkasan kasir, en: Cashier summary}
|
|
4
|
+
default_period: 30
|
|
5
|
+
cache: 5m
|
|
6
|
+
roles: [head_office]
|
|
7
|
+
# What the cashiers rang up (paid receipts, docstatus 1), per outlet, per day and per payment method, and how the
|
|
8
|
+
# drawers closed. A voided receipt (docstatus 2) is out of every sum; its amended replacement is in.
|
|
9
|
+
widgets:
|
|
10
|
+
- {name: net_total, type: number, label: {id: Penjualan kasir}, model: pos_sale, aggregate: sum, field: grand_total, filter: docstatus == 1, period: date, compact: true, span: 3}
|
|
11
|
+
- {name: margin_period, type: number, label: {id: Margin}, description: {id: Penjualan dikurangi harga pokok barang dan bahan}, model: pos_sale, aggregate: sum, field: margin, filter: docstatus == 1, period: date, compact: true, span: 3}
|
|
12
|
+
- {name: receipts, type: number, label: {id: Struk}, model: pos_sale, filter: docstatus == 1, period: date, compact: true, span: 3}
|
|
13
|
+
- {name: voids, type: number, label: {id: Struk dibatalkan}, model: pos_sale, filter: docstatus == 2, period: date, compact: true, span: 3, good_when: down}
|
|
14
|
+
- {name: open_shifts, type: number, label: {id: Sesi kasir terbuka}, model: pos_shift, filter: state == 'open', compact: true, span: 4}
|
|
15
|
+
- {name: cash_difference, type: number, label: {id: Selisih kas}, description: {id: 'Jumlah selisih laci saat tutup sesi; minus berarti kas kurang'}, model: pos_shift_close, aggregate: sum, field: cash_difference, filter: docstatus == 1, period: close_date, compact: true, span: 4}
|
|
16
|
+
- {name: qris_period, type: number, label: {id: Masuk lewat QRIS}, model: pos_sale, aggregate: sum, field: qris_amount, filter: docstatus == 1, period: date, compact: true, span: 4}
|
|
17
|
+
- {name: net_by_outlet, type: chart, chart: bar, label: {id: Penjualan kasir per outlet}, model: pos_sale, group_by: outlet, aggregate: sum, field: grand_total, filter: docstatus == 1, period: date, sort: -value, span: 6}
|
|
18
|
+
- {name: net_by_day, type: chart, chart: bar, label: {id: Penjualan kasir per hari}, model: pos_sale, group_by: date, grain: day, aggregate: sum, field: grand_total, filter: docstatus == 1, period: date, span: 6}
|
|
19
|
+
- {name: net_by_method, type: chart, chart: donut, label: {id: Cara bayar}, model: pos_sale, group_by: method, aggregate: sum, field: grand_total, filter: docstatus == 1, period: date, span: 6}
|
|
20
|
+
- {name: shifts_short, type: list, label: {id: Sesi dengan selisih kas}, model: pos_shift_close, filter: docstatus == 1 && cash_difference != 0, period: close_date, columns: [name, outlet, close_date, shift, cash_difference], sort: cash_difference, limit: 10, span: 6}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rangka-app-kasir
|
|
3
|
+
description: "Rangka Kasir (app kasir): the browser cashier for shops and F&B outlets, with shifts per outlet, numbered receipts, cash and QRIS, stock and recipes taken out automatically. Use when an owner asks for a cashier or POS (\"mau pakai kasir\", \"tambahin POS\", \"jualan langsung di outlet\"), to explain what it shares with apps they already run, and for what to set up after it is added."
|
|
4
|
+
metadata: {rangka: {version: 1.0.0, app: kasir, requires: [rangka-compose, rangka-changesets]}}
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Rangka Kasir
|
|
8
|
+
|
|
9
|
+
Read `rangka-compose` first: it covers the catalogue check and the `config.rk` change. This skill adds what is
|
|
10
|
+
specific to the cashier.
|
|
11
|
+
|
|
12
|
+
## What it is
|
|
13
|
+
|
|
14
|
+
- Module `pos` plus the shared modules `users`, `contacts`, `catalogue`, `outlets`, `stock`.
|
|
15
|
+
- A cashier opens a **shift** at an outlet with the float in the drawer, rings up **sales** (items or menu, any unit of
|
|
16
|
+
the item, line and receipt discounts), takes **cash** (with change), **QRIS** or both, and closes the shift by
|
|
17
|
+
counting the drawer. The difference is booked as *selisih kas*; the cashier does not see the expected amount, head
|
|
18
|
+
office does (dashboard *Ringkasan kasir*).
|
|
19
|
+
- Each sale gets a receipt number per outlet and takes its goods out of that outlet's stock, a menu item through its
|
|
20
|
+
recipe. With `accounting` installed it is journalled.
|
|
21
|
+
- A sale can be voided or corrected only on its own day, while its shift is open.
|
|
22
|
+
- Roles: `cashier` (sees only the cashier screen of their own outlets; it is their home) and `head_office`.
|
|
23
|
+
|
|
24
|
+
## What it is not (say so when asked)
|
|
25
|
+
|
|
26
|
+
- **Online only.** It runs in the browser and needs the internet. Offline selling, receipt printers and cash drawers
|
|
27
|
+
come later with Rangka Edge.
|
|
28
|
+
- **QRIS is recorded, not processed.** The cashier records a QRIS payment and its reference from the notification;
|
|
29
|
+
Kasir does not show a dynamic QR or confirm the payment itself.
|
|
30
|
+
- **Not GoFood, GrabFood or ShopeeFood.** Orders from those apps are not rung up here; see `rangka-compose`, "When
|
|
31
|
+
nothing fits".
|
|
32
|
+
|
|
33
|
+
## Explaining it to an owner who already runs an app
|
|
34
|
+
|
|
35
|
+
Use the catalogue's `shares` and `adds` for `kasir`. On a site running Rangka F&B Cabang it shares items, outlets,
|
|
36
|
+
stock and users and adds only the cashier. Say it in their words:
|
|
37
|
+
|
|
38
|
+
> Kasir pakai barang, outlet dan stok yang sama dengan sistem kamu sekarang, jadi tiap penjualan langsung
|
|
39
|
+
> mengurangi stok outlet itu. Yang baru: layar kasir, sesi kas, dan struk.
|
|
40
|
+
|
|
41
|
+
## After the change set is applied: what the owner sets up
|
|
42
|
+
|
|
43
|
+
You cannot do these yourself: they are records, set by a person. Tell the owner, one step at a time.
|
|
44
|
+
|
|
45
|
+
1. **Which outlets use the cashier.** On a site that also records outlet sales (module `outlet_sales`, part of F&B
|
|
46
|
+
Cabang and Ritel Cabang), each outlet sells through one source only. For each outlet that will use Kasir, the
|
|
47
|
+
owner opens the outlet (menu *Barang dan harga* → *Outlet*) and sets *Sumber penjualan* to *Kasir Juragan*. Until
|
|
48
|
+
then a sale at that outlet is refused. Outlets that keep the daily form or a POS file stay as they are.
|
|
49
|
+
2. **Who the cashiers are.** Each cashier is a user with role `cashier` and their outlets. The owner adds them in the
|
|
50
|
+
app's member settings (or asks Juragan). Ask for names and outlets; never ask for passwords.
|
|
51
|
+
3. **Float (optional).** *Modal kas kasir* on the outlet: the cash a shift opens with. Empty means the cashier types
|
|
52
|
+
it when opening the shift.
|
|
53
|
+
4. **Menu items need prices and, for F&B, recipes,** so stock goes out correctly. If items have no recipe yet, say
|
|
54
|
+
that sales still work but only the item itself leaves stock.
|
|
55
|
+
|
|
56
|
+
The app's own onboarding asks the first two: "Outlet mana yang mau pakai kasir Juragan?" and "Siapa saja kasirnya,
|
|
57
|
+
dan di outlet mana?". Use the same questions.
|
|
58
|
+
|
|
59
|
+
## Where it is once applied
|
|
60
|
+
|
|
61
|
+
- Cashiers land on the cashier screen (`#/w/kasir`) when they sign in.
|
|
62
|
+
- Head office: menu *Kasir* (sales, shifts, shift closes) and the *Kerja* group for the cashier screen.
|
|
63
|
+
|
|
64
|
+
Point the owner there only after `rangka_changeset_status` says the change set is applied (`rangka-changesets`).
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
name: kelas_kursus
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: {id: Kelas dan kursus, en: Classes and courses}
|
|
5
|
+
label: {id: Rangka Kelas & Kursus, en: Rangka Classes & Courses}
|
|
6
|
+
summary:
|
|
7
|
+
id: Program kelas, angkatan dengan kuota dan jadwal, peserta, pendaftaran, absen per pertemuan, dan tagihan bayar penuh, cicilan atau per bulan.
|
|
8
|
+
category: operations
|
|
9
|
+
icon: graduation-cap-line
|
|
10
|
+
rangka: '>=0.5'
|
|
11
|
+
# A piece (riset/desain/11-susunan-kepingan.md) for course schools, tutoring, online courses and company training. The
|
|
12
|
+
# charges become sales invoices; receiving their payment, reminders and aging come from faktur_piutang, the books from
|
|
13
|
+
# pembukuan.
|
|
14
|
+
modules:
|
|
15
|
+
users: ^1.0
|
|
16
|
+
contacts: ^1.0
|
|
17
|
+
catalogue: ^1.0
|
|
18
|
+
invoicing: ^1.0
|
|
19
|
+
courses: ^1.0
|
|
20
|
+
dashboards: [kursus_ringkas]
|
|
21
|
+
roles: [course_admin, instructor, finance_manager]
|
|
22
|
+
home: {dashboard: kursus_ringkas}
|
|
23
|
+
menu:
|
|
24
|
+
- group: {id: Kelas}
|
|
25
|
+
items: [course_batch, course_session, enrollment]
|
|
26
|
+
- group: {id: Peserta dan tagihan}
|
|
27
|
+
items: [student, course_charge]
|
|
28
|
+
- group: {id: Pengaturan kelas}
|
|
29
|
+
items: [course_program]
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: kursus_ringkas
|
|
3
|
+
label: {id: Ringkasan kelas, en: Classes overview}
|
|
4
|
+
description: {id: 'Peserta aktif, kelas minggu ini dan tagihan yang belum dibayar'}
|
|
5
|
+
default_period: 30
|
|
6
|
+
roles: [course_admin, finance_manager]
|
|
7
|
+
cache: 5m
|
|
8
|
+
# Tunggakan: invoices not paid by their due date (on a course site these are the course charges' invoices).
|
|
9
|
+
widgets:
|
|
10
|
+
- name: active_students
|
|
11
|
+
type: number
|
|
12
|
+
label: {id: Peserta aktif}
|
|
13
|
+
model: enrollment
|
|
14
|
+
aggregate: count
|
|
15
|
+
filter: status == 'active' || status == 'registered'
|
|
16
|
+
span: 3
|
|
17
|
+
- name: running_batches
|
|
18
|
+
type: number
|
|
19
|
+
label: {id: Angkatan berjalan}
|
|
20
|
+
model: course_batch
|
|
21
|
+
aggregate: count
|
|
22
|
+
filter: start_date <= today() && (end_date == '' || end_date >= today())
|
|
23
|
+
span: 3
|
|
24
|
+
- name: sessions_this_week
|
|
25
|
+
type: number
|
|
26
|
+
label: {id: Kelas minggu ini}
|
|
27
|
+
model: course_session
|
|
28
|
+
aggregate: count
|
|
29
|
+
filter: session_date >= today() && session_date < today() + duration(7)
|
|
30
|
+
span: 3
|
|
31
|
+
- name: overdue_total
|
|
32
|
+
type: number
|
|
33
|
+
label: {id: Tunggakan}
|
|
34
|
+
model: sales_invoice
|
|
35
|
+
aggregate: sum
|
|
36
|
+
field: outstanding
|
|
37
|
+
filter: docstatus == 1 && outstanding > 0 && due_date < today()
|
|
38
|
+
good_when: down
|
|
39
|
+
compact: true
|
|
40
|
+
span: 3
|
|
41
|
+
- name: week_sessions
|
|
42
|
+
type: list
|
|
43
|
+
label: {id: Jadwal kelas 7 hari ke depan}
|
|
44
|
+
model: course_session
|
|
45
|
+
filter: session_date >= today() && session_date < today() + duration(7)
|
|
46
|
+
sort: session_date
|
|
47
|
+
limit: 20
|
|
48
|
+
columns: [session_date, start_time, batch, session_no, topic]
|
|
49
|
+
span: 12
|
|
50
|
+
- name: seats
|
|
51
|
+
type: list
|
|
52
|
+
label: {id: Kursi per angkatan}
|
|
53
|
+
model: course_batch
|
|
54
|
+
filter: end_date == '' || end_date >= today()
|
|
55
|
+
sort: start_date
|
|
56
|
+
limit: 20
|
|
57
|
+
columns: [batch_name, start_date, teacher_name, quota, seats_taken]
|
|
58
|
+
span: 12
|
|
59
|
+
- name: overdue_invoices
|
|
60
|
+
type: list
|
|
61
|
+
label: {id: Tagihan lewat jatuh tempo}
|
|
62
|
+
model: sales_invoice
|
|
63
|
+
filter: docstatus == 1 && outstanding > 0 && due_date < today()
|
|
64
|
+
sort: due_date
|
|
65
|
+
limit: 20
|
|
66
|
+
columns: [name, customer, due_date, outstanding]
|
|
67
|
+
span: 12
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
name: langganan_jasa
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: {id: Langganan jasa, en: Service subscriptions}
|
|
5
|
+
label: {id: Rangka Langganan, en: Rangka Subscriptions}
|
|
6
|
+
summary:
|
|
7
|
+
id: Paket, siklus per klien, tagihan otomatis tiap periode, status layanan dan isolir, area, penagih dan setorannya, MRR dan tingkat tertagih.
|
|
8
|
+
category: sales
|
|
9
|
+
icon: repeat-line
|
|
10
|
+
rangka: '>=0.5'
|
|
11
|
+
# A piece (riset/desain/11-susunan-kepingan.md) for businesses that bill the same client every period: digital agency
|
|
12
|
+
# retainers, RT/RW net, resellers of a software licence, maintenance contracts. The bills become sales invoices;
|
|
13
|
+
# receiving their payment, reminders and aging come from faktur_piutang, the books from pembukuan. payments requires
|
|
14
|
+
# procurement, so its modules come along; their entries live in faktur_piutang's and pembelian_pemasok's menus.
|
|
15
|
+
modules:
|
|
16
|
+
users: ^1.0
|
|
17
|
+
contacts: ^1.0
|
|
18
|
+
catalogue: ^1.0
|
|
19
|
+
invoicing: ^1.0
|
|
20
|
+
payments: ^1.0
|
|
21
|
+
procurement: ^1.0
|
|
22
|
+
subscriptions: ^1.0
|
|
23
|
+
dashboards: [langganan_ringkas, penagihan_saya]
|
|
24
|
+
roles: [finance_manager, collector]
|
|
25
|
+
home: {dashboard: langganan_ringkas}
|
|
26
|
+
menu:
|
|
27
|
+
- group: {id: Langganan}
|
|
28
|
+
items: [subscription, subscription_bill, subscription_extra, subscription_status_log]
|
|
29
|
+
- group: {id: Penagihan lapangan}
|
|
30
|
+
items: [field_collection, collector_deposit, service_area]
|
|
31
|
+
- group: {id: Pengaturan langganan}
|
|
32
|
+
items: [subscription_plan, subscription_month]
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: langganan_ringkas
|
|
3
|
+
label: {id: Ringkasan langganan, en: Subscriptions overview}
|
|
4
|
+
description: {id: 'MRR, tagihan bulan ini, tingkat tertagih, tunggakan per umur dan layanan yang ditangguhkan'}
|
|
5
|
+
default_period: 30
|
|
6
|
+
roles: [finance_manager]
|
|
7
|
+
cache: 5m
|
|
8
|
+
# Subscription invoices are the sales invoices whose notes carry {langganan:<subscription>} (flow subscription_billing).
|
|
9
|
+
# MRR is the monthly value (price less discount) of the subscriptions not stopped (Stripe's definition: a yearly
|
|
10
|
+
# subscription counts a twelfth). The collection rate is the month recap's (flow subscription_dunning, every night):
|
|
11
|
+
# paid over invoiced, of the submitted subscription invoices dated this month.
|
|
12
|
+
widgets:
|
|
13
|
+
- name: mrr
|
|
14
|
+
type: number
|
|
15
|
+
label: {id: MRR (nilai per bulan)}
|
|
16
|
+
model: subscription
|
|
17
|
+
aggregate: sum
|
|
18
|
+
field: monthly_net
|
|
19
|
+
filter: status != 'stopped'
|
|
20
|
+
compact: true
|
|
21
|
+
span: 3
|
|
22
|
+
- name: running
|
|
23
|
+
type: number
|
|
24
|
+
label: {id: Langganan berjalan}
|
|
25
|
+
model: subscription
|
|
26
|
+
aggregate: count
|
|
27
|
+
filter: status != 'stopped'
|
|
28
|
+
span: 3
|
|
29
|
+
- name: billed_this_month
|
|
30
|
+
type: number
|
|
31
|
+
label: {id: Tagihan bulan ini}
|
|
32
|
+
model: sales_invoice
|
|
33
|
+
aggregate: sum
|
|
34
|
+
field: amount_due
|
|
35
|
+
filter: docstatus == 1 && notes.contains('{langganan:') && posting_date >= truncate(today(), 7) + '-01'
|
|
36
|
+
compact: true
|
|
37
|
+
span: 3
|
|
38
|
+
- name: collection_rate
|
|
39
|
+
type: number
|
|
40
|
+
label: {id: Tingkat tertagih bulan ini (%)}
|
|
41
|
+
model: subscription_month
|
|
42
|
+
aggregate: max
|
|
43
|
+
field: collection_rate
|
|
44
|
+
filter: month == truncate(today(), 7)
|
|
45
|
+
span: 3
|
|
46
|
+
- name: drafts_waiting
|
|
47
|
+
type: number
|
|
48
|
+
label: {id: Draf faktur menunggu diajukan}
|
|
49
|
+
model: sales_invoice
|
|
50
|
+
aggregate: count
|
|
51
|
+
filter: docstatus == 0 && notes.contains('{langganan:')
|
|
52
|
+
good_when: down
|
|
53
|
+
span: 3
|
|
54
|
+
- name: due_soon
|
|
55
|
+
type: number
|
|
56
|
+
label: {id: Jatuh tempo 3 hari lagi}
|
|
57
|
+
model: sales_invoice
|
|
58
|
+
aggregate: sum
|
|
59
|
+
field: outstanding
|
|
60
|
+
filter: docstatus == 1 && outstanding > 0 && notes.contains('{langganan:') && due_date >= today() && due_date <= today() + duration(3)
|
|
61
|
+
compact: true
|
|
62
|
+
span: 3
|
|
63
|
+
- name: suspended
|
|
64
|
+
type: number
|
|
65
|
+
label: {id: Ditangguhkan (isolir)}
|
|
66
|
+
model: subscription
|
|
67
|
+
aggregate: count
|
|
68
|
+
filter: status == 'suspended'
|
|
69
|
+
good_when: down
|
|
70
|
+
span: 3
|
|
71
|
+
- name: cash_with_collectors
|
|
72
|
+
type: number
|
|
73
|
+
label: {id: Uang di penagih belum disetor}
|
|
74
|
+
model: field_collection
|
|
75
|
+
aggregate: sum
|
|
76
|
+
field: amount
|
|
77
|
+
filter: deposit == ''
|
|
78
|
+
good_when: down
|
|
79
|
+
compact: true
|
|
80
|
+
span: 3
|
|
81
|
+
- name: overdue_1_30
|
|
82
|
+
type: number
|
|
83
|
+
label: {id: Tunggakan 1-30 hari}
|
|
84
|
+
model: sales_invoice
|
|
85
|
+
aggregate: sum
|
|
86
|
+
field: outstanding
|
|
87
|
+
filter: docstatus == 1 && outstanding > 0 && notes.contains('{langganan:') && due_date < today() && due_date >= today() - duration(30)
|
|
88
|
+
good_when: down
|
|
89
|
+
compact: true
|
|
90
|
+
span: 3
|
|
91
|
+
- name: overdue_31_60
|
|
92
|
+
type: number
|
|
93
|
+
label: {id: Tunggakan 31-60 hari}
|
|
94
|
+
model: sales_invoice
|
|
95
|
+
aggregate: sum
|
|
96
|
+
field: outstanding
|
|
97
|
+
filter: docstatus == 1 && outstanding > 0 && notes.contains('{langganan:') && due_date < today() - duration(30) && due_date >= today() - duration(60)
|
|
98
|
+
good_when: down
|
|
99
|
+
compact: true
|
|
100
|
+
span: 3
|
|
101
|
+
- name: overdue_61_90
|
|
102
|
+
type: number
|
|
103
|
+
label: {id: Tunggakan 61-90 hari}
|
|
104
|
+
model: sales_invoice
|
|
105
|
+
aggregate: sum
|
|
106
|
+
field: outstanding
|
|
107
|
+
filter: docstatus == 1 && outstanding > 0 && notes.contains('{langganan:') && due_date < today() - duration(60) && due_date >= today() - duration(90)
|
|
108
|
+
good_when: down
|
|
109
|
+
compact: true
|
|
110
|
+
span: 3
|
|
111
|
+
- name: overdue_over_90
|
|
112
|
+
type: number
|
|
113
|
+
label: {id: Tunggakan lebih dari 90 hari}
|
|
114
|
+
model: sales_invoice
|
|
115
|
+
aggregate: sum
|
|
116
|
+
field: outstanding
|
|
117
|
+
filter: docstatus == 1 && outstanding > 0 && notes.contains('{langganan:') && due_date < today() - duration(90)
|
|
118
|
+
good_when: down
|
|
119
|
+
compact: true
|
|
120
|
+
span: 3
|
|
121
|
+
- name: rate_by_month
|
|
122
|
+
type: chart
|
|
123
|
+
chart: bar
|
|
124
|
+
label: {id: Tingkat tertagih per bulan (%)}
|
|
125
|
+
model: subscription_month
|
|
126
|
+
aggregate: max
|
|
127
|
+
field: collection_rate
|
|
128
|
+
group_by: month_start
|
|
129
|
+
grain: month
|
|
130
|
+
span: 6
|
|
131
|
+
- name: by_status
|
|
132
|
+
type: chart
|
|
133
|
+
chart: donut
|
|
134
|
+
label: {id: Langganan per status}
|
|
135
|
+
model: subscription
|
|
136
|
+
aggregate: count
|
|
137
|
+
group_by: status
|
|
138
|
+
span: 6
|
|
139
|
+
- name: overdue_by_area
|
|
140
|
+
type: chart
|
|
141
|
+
chart: bar
|
|
142
|
+
label: {id: Tunggakan per area}
|
|
143
|
+
model: subscription
|
|
144
|
+
aggregate: sum
|
|
145
|
+
field: overdue_amount
|
|
146
|
+
filter: overdue_amount > 0
|
|
147
|
+
group_by: area
|
|
148
|
+
sort: -value
|
|
149
|
+
span: 12
|
|
150
|
+
- name: suspended_list
|
|
151
|
+
type: list
|
|
152
|
+
label: {id: Layanan ditangguhkan (isolir)}
|
|
153
|
+
model: subscription
|
|
154
|
+
filter: status == 'suspended'
|
|
155
|
+
sort: overdue_since
|
|
156
|
+
limit: 30
|
|
157
|
+
columns: [customer_name, service_id, area, overdue_since, overdue_amount]
|
|
158
|
+
span: 12
|
|
159
|
+
- name: overdue_invoices
|
|
160
|
+
type: list
|
|
161
|
+
label: {id: Tagihan langganan lewat jatuh tempo}
|
|
162
|
+
model: sales_invoice
|
|
163
|
+
filter: docstatus == 1 && outstanding > 0 && notes.contains('{langganan:') && due_date < today()
|
|
164
|
+
sort: due_date
|
|
165
|
+
limit: 30
|
|
166
|
+
columns: [name, customer, due_date, outstanding]
|
|
167
|
+
span: 12
|