@rangka-os/create 0.5.0-alpha.3 → 0.5.0-alpha.31
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 +42 -6
- package/package.json +1 -1
- package/template/base/apps/absen_karyawan/app.rk +41 -0
- package/template/base/apps/absen_karyawan/dashboards/absen_hari_ini.rk +20 -0
- package/template/base/apps/absen_karyawan/dashboards/absen_karyawan_saya.rk +14 -0
- package/template/base/apps/absen_karyawan/dashboards/jadwal_outlet.rk +19 -0
- package/template/base/apps/absen_karyawan/dashboards/jadwal_saya.rk +15 -0
- package/template/base/apps/absen_karyawan/dashboards/rekap_absen_karyawan.rk +12 -0
- package/template/base/apps/crm/app.rk +2 -0
- package/template/base/apps/crm/processes/lead_to_cash.rk +8 -0
- package/template/base/apps/dapur/app.rk +35 -0
- package/template/base/apps/dapur/dashboards/dapur_hari_ini.rk +26 -0
- package/template/base/apps/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 +13 -7
- package/template/base/apps/fnb_cabang/dashboards/fnb_overview.rk +38 -14
- package/template/base/apps/fnb_cabang/dashboards/outlet_harian.rk +36 -0
- package/template/base/apps/fnb_cabang/dashboards/stock_recap.rk +19 -16
- package/template/base/apps/grosir_distribusi/app.rk +57 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_ar.rk +66 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_overview.rk +91 -0
- package/template/base/apps/grosir_distribusi/dashboards/gudang_harian.rk +45 -0
- package/template/base/apps/grosir_distribusi/dashboards/salesman_harian.rk +51 -0
- package/template/base/apps/janji_temu/app.rk +35 -0
- package/template/base/apps/jasa_proyek/app.rk +27 -5
- package/template/base/apps/jasa_proyek/dashboards/absen_saya.rk +15 -0
- package/template/base/apps/jasa_proyek/dashboards/jasa_overview.rk +65 -38
- package/template/base/apps/jasa_proyek/dashboards/project_margin.rk +94 -0
- package/template/base/apps/jasa_proyek/dashboards/rekap_absen.rk +18 -0
- package/template/base/apps/jasa_proyek/processes/quote_to_cash.rk +10 -0
- package/template/base/apps/karyawan_gaji/app.rk +49 -0
- package/template/base/apps/karyawan_gaji/dashboards/gaji_ringkas.rk +34 -0
- package/template/base/apps/karyawan_gaji/dashboards/klaim_kasbon_saya.rk +15 -0
- package/template/base/apps/karyawan_gaji/dashboards/transfer_gaji.rk +17 -0
- package/template/base/apps/karyawan_gaji/skills/rangka-app-karyawan-gaji/SKILL.md +40 -0
- package/template/base/apps/karyawan_gaji/skills/rangka-app-karyawan-gaji/first-day.json +142 -0
- package/template/base/apps/kasir/app.rk +45 -0
- package/template/base/apps/kasir/dashboards/kasir_ringkas.rk +33 -0
- package/template/base/apps/kasir/skills/rangka-app-kasir/SKILL.md +120 -0
- package/template/base/apps/kelas_kursus/app.rk +32 -0
- package/template/base/apps/kelas_kursus/dashboards/kelas_saya.rk +41 -0
- package/template/base/apps/kelas_kursus/dashboards/kursus_ringkas.rk +67 -0
- package/template/base/apps/langganan_jasa/app.rk +39 -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 +22 -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 +62 -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 +36 -0
- package/template/base/apps/sewa_alat/dashboards/alat_hari_ini.rk +90 -0
- package/template/base/apps/sewa_alat/dashboards/sewa_ringkas.rk +86 -0
- package/template/base/apps/sewa_alat/skills/rangka-app-sewa-alat/SKILL.md +24 -0
- package/template/base/apps/sewa_alat/skills/rangka-app-sewa-alat/first-day.json +162 -0
- package/template/base/apps/stok_outlet/app.rk +34 -0
- package/template/base/apps/stok_outlet/dashboards/outlet_hari_ini.rk +45 -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/doku/connector.rk +128 -0
- package/template/base/connectors/doku/fixtures/create_checkout.json +6 -0
- package/template/base/connectors/doku/fixtures/expect.json +38 -0
- package/template/base/connectors/doku/fixtures/payment_notified.json +5 -0
- package/template/base/connectors/doku/fixtures/payment_notified_failed.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_no_type.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_null_type.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_refund.json +3 -0
- package/template/base/connectors/doku/mock/doku_mock.py +217 -0
- package/template/base/connectors/email/connector.rk +144 -0
- package/template/base/connectors/email/fixtures/email_received.json +33 -0
- package/template/base/connectors/email/fixtures/email_received_reply.json +31 -0
- package/template/base/connectors/email/fixtures/expect.json +20 -0
- package/template/base/connectors/email/fixtures/fetch_email.json +66 -0
- package/template/base/connectors/email/fixtures/send_email.json +4 -0
- package/template/base/connectors/loyverse/connector.rk +98 -0
- package/template/base/connectors/midtrans/connector.rk +249 -0
- package/template/base/connectors/midtrans/fixtures/charge_gopay.json +34 -0
- package/template/base/connectors/midtrans/fixtures/charge_qris.json +23 -0
- package/template/base/connectors/midtrans/fixtures/charge_va.json +20 -0
- package/template/base/connectors/midtrans/fixtures/create_snap.json +4 -0
- package/template/base/connectors/midtrans/fixtures/expect.json +88 -0
- package/template/base/connectors/midtrans/fixtures/get_status.json +15 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified.json +28 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_challenge.json +24 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_expire.json +24 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_other_amount.json +28 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_partial_refund.json +34 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_pending.json +31 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_refund.json +34 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_relabelled.json +28 -0
- package/template/base/connectors/midtrans/fixtures/payment_notified_va.json +32 -0
- package/template/base/connectors/midtrans/fixtures/signature_vector.txt +3 -0
- package/template/base/connectors/midtrans/mock/midtrans_mock.py +335 -0
- package/template/base/connectors/moka/connector.rk +121 -0
- package/template/base/connectors/moka/fixtures/expect.json +44 -0
- package/template/base/connectors/moka/fixtures/latest_transactions.json +79 -0
- package/template/base/connectors/moka/fixtures/list_items.json +4 -0
- package/template/base/connectors/moka/fixtures/list_outlets.json +4 -0
- package/template/base/connectors/moka/fixtures/transaction_created.json +44 -0
- package/template/base/connectors/moka/fixtures/transaction_created_refund.json +39 -0
- package/template/base/connectors/moka/fixtures/transaction_created_refund_later.json +51 -0
- package/template/base/connectors/moka/mock/moka_mock.py +210 -0
- package/template/base/connectors/rangka_whatsapp/README.md +105 -0
- package/template/base/connectors/rangka_whatsapp/connector.rk +141 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/expect.json +9 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/message_received.json +1 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/message_status.json +1 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/message_status_refused.json +1 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/opted_out.json +1 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/send_template.json +1 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/send_template_duplicate.json +1 -0
- package/template/base/connectors/rangka_whatsapp/fixtures/set_opt_out.json +1 -0
- package/template/base/connectors/rangka_whatsapp/mock/rangka_whatsapp_mock.py +354 -0
- package/template/base/connectors/shopee/connector.rk +360 -0
- package/template/base/connectors/shopee/fixtures/expect.json +119 -0
- package/template/base/connectors/shopee/fixtures/get_models.json +52 -0
- package/template/base/connectors/shopee/fixtures/get_order_detail.json +396 -0
- package/template/base/connectors/shopee/fixtures/get_settlement.json +90 -0
- package/template/base/connectors/shopee/fixtures/get_tracking.json +13 -0
- package/template/base/connectors/shopee/fixtures/list_items.json +29 -0
- package/template/base/connectors/shopee/fixtures/list_orders.json +31 -0
- package/template/base/connectors/shopee/fixtures/list_settlements.json +15 -0
- package/template/base/connectors/shopee/fixtures/order_changed.json +101 -0
- package/template/base/connectors/shopee/fixtures/order_changed_cancelled.json +72 -0
- package/template/base/connectors/shopee/fixtures/order_changed_completed.json +101 -0
- package/template/base/connectors/shopee/fixtures/order_changed_in_cancel.json +72 -0
- package/template/base/connectors/shopee/fixtures/order_changed_unpaid.json +71 -0
- package/template/base/connectors/shopee/fixtures/order_settled.json +92 -0
- package/template/base/connectors/shopee/fixtures/push_received.json +12 -0
- package/template/base/connectors/shopee/fixtures/push_received_tracking.json +11 -0
- package/template/base/connectors/shopee/fixtures/update_stock.json +15 -0
- package/template/base/connectors/shopee/mock/shopee_mock.py +894 -0
- package/template/base/connectors/tiktok_shop/connector.rk +300 -0
- package/template/base/connectors/tiktok_shop/fixtures/expect.json +105 -0
- package/template/base/connectors/tiktok_shop/fixtures/get_order_detail.json +136 -0
- package/template/base/connectors/tiktok_shop/fixtures/get_settlement.json +83 -0
- package/template/base/connectors/tiktok_shop/fixtures/get_tracking.json +28 -0
- package/template/base/connectors/tiktok_shop/fixtures/list_orders.json +242 -0
- package/template/base/connectors/tiktok_shop/fixtures/list_products.json +77 -0
- package/template/base/connectors/tiktok_shop/fixtures/list_settlements.json +22 -0
- package/template/base/connectors/tiktok_shop/fixtures/list_shops.json +17 -0
- package/template/base/connectors/tiktok_shop/fixtures/order_changed.json +129 -0
- package/template/base/connectors/tiktok_shop/fixtures/order_changed_cancelled.json +81 -0
- package/template/base/connectors/tiktok_shop/fixtures/order_changed_completed.json +106 -0
- package/template/base/connectors/tiktok_shop/fixtures/order_changed_on_hold.json +104 -0
- package/template/base/connectors/tiktok_shop/fixtures/order_changed_tokopedia.json +106 -0
- package/template/base/connectors/tiktok_shop/fixtures/order_changed_unpaid.json +79 -0
- package/template/base/connectors/tiktok_shop/fixtures/order_settled.json +73 -0
- package/template/base/connectors/tiktok_shop/fixtures/update_stock.json +6 -0
- package/template/base/connectors/tiktok_shop/fixtures/webhook_received.json +12 -0
- package/template/base/connectors/tiktok_shop/fixtures/webhook_received_cancellation.json +13 -0
- package/template/base/connectors/tiktok_shop/mock/tiktok_shop_mock.py +819 -0
- package/template/base/connectors/whatsapp_business/connector.rk +25 -2
- package/template/base/connectors/whatsapp_business/templates.md +44 -0
- package/template/base/connectors/xendit/connector.rk +184 -0
- package/template/base/connectors/xendit/mock/xendit_mock.py +231 -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_asset_disposal_post.rk +68 -0
- package/template/base/modules/accounting/flows/gl_asset_disposal_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_cash_advance_post.rk +33 -0
- package/template/base/modules/accounting/flows/gl_cash_advance_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_claim_payment_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_claim_payment_reverse.rk +194 -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_deposit_refund_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_deposit_refund_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_deposit_topup_post.rk +37 -0
- package/template/base/modules/accounting/flows/gl_deposit_topup_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_depreciation_run_post.rk +43 -0
- package/template/base/modules/accounting/flows/gl_depreciation_run_reverse.rk +36 -0
- package/template/base/modules/accounting/flows/gl_expense_claim_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_expense_claim_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_fixed_asset_post.rk +51 -0
- package/template/base/modules/accounting/flows/gl_fixed_asset_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_goods_receipt_post.rk +42 -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 +102 -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 +108 -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 +177 -0
- package/template/base/modules/accounting/models/opening_balance.rk +48 -0
- package/template/base/modules/accounting/models/period_close.rk +37 -0
- package/template/base/modules/accounting/module.rk +16 -0
- package/template/base/modules/appointments/flows/appointment_invoice_on_cancel.rk +18 -0
- package/template/base/modules/appointments/flows/appointment_invoice_on_delete.rk +12 -0
- package/template/base/modules/appointments/flows/appointment_invoice_on_submit.rk +43 -0
- package/template/base/modules/appointments/flows/appointment_invoice_tag_lock.rk +10 -0
- package/template/base/modules/appointments/flows/appointment_on_cancel.rk +19 -0
- package/template/base/modules/appointments/flows/appointment_on_submit.rk +82 -0
- package/template/base/modules/appointments/flows/appointment_reminder_tomorrow.rk +52 -0
- package/template/base/modules/appointments/flows/appointment_sale_by_hand.rk +13 -0
- package/template/base/modules/appointments/flows/appointment_sale_on_cancel.rk +12 -0
- package/template/base/modules/appointments/flows/appointment_sale_on_delete.rk +12 -0
- package/template/base/modules/appointments/flows/appointment_sale_on_submit.rk +20 -0
- package/template/base/modules/appointments/flows/appointment_sale_tag_lock.rk +10 -0
- package/template/base/modules/appointments/flows/appointment_slot_on_update.rk +59 -0
- package/template/base/modules/appointments/models/appointment.rk +161 -0
- package/template/base/modules/appointments/models/appointment_guard.rk +105 -0
- package/template/base/modules/appointments/models/appointment_line.rk +10 -0
- package/template/base/modules/appointments/models/appointment_setting.rk +26 -0
- package/template/base/modules/appointments/models/appointment_slot.rk +124 -0
- package/template/base/modules/appointments/models/appointment_slot_line.rk +8 -0
- package/template/base/modules/appointments/models/booking_resource.rk +72 -0
- package/template/base/modules/appointments/models/booking_service.rk +43 -0
- package/template/base/modules/appointments/models/resource_hours.rk +20 -0
- package/template/base/modules/appointments/models/resource_time_off.rk +36 -0
- package/template/base/modules/appointments/module.rk +42 -0
- package/template/base/modules/appointments/screens/jadwal_hari_ini.rk +21 -0
- package/template/base/modules/appointments/screens/pesanan_terbuka.rk +20 -0
- package/template/base/modules/attendance/flows/attendance_missing_digest.rk +30 -0
- package/template/base/modules/attendance/flows/attendance_period_on_cancel.rk +15 -0
- package/template/base/modules/attendance/flows/attendance_period_on_submit.rk +60 -0
- package/template/base/modules/attendance/flows/staff_attendance_cancel_guard.rk +14 -0
- package/template/base/modules/attendance/flows/staff_attendance_guard_created.rk +16 -0
- package/template/base/modules/attendance/flows/staff_attendance_guard_submitted.rk +37 -0
- package/template/base/modules/attendance/flows/staff_attendance_guard_updated.rk +14 -0
- package/template/base/modules/attendance/models/attendance_period.rk +62 -0
- package/template/base/modules/attendance/models/attendance_summary.rk +40 -0
- package/template/base/modules/attendance/models/staff_attendance.rk +293 -0
- package/template/base/modules/attendance/models/staff_attendance_guard.rk +50 -0
- package/template/base/modules/attendance/module.rk +20 -0
- package/template/base/modules/attendance/screens/absen_outlet.rk +22 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_booked.rk +12 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_booked_released.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_claim.rk +29 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_confirm.rk +61 -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 +73 -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 +147 -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 +151 -1
- package/template/base/modules/catalogue/models/item_category.rk +30 -0
- package/template/base/modules/catalogue/models/uom.rk +15 -0
- package/template/base/modules/catalogue/models/uom_conversion.rk +9 -0
- package/template/base/modules/catalogue/module.rk +8 -2
- 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/credit_guard.rk +40 -0
- package/template/base/modules/contacts/models/customer.rk +169 -3
- package/template/base/modules/contacts/models/vendor.rk +52 -2
- package/template/base/modules/contacts/module.rk +6 -1
- 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 +31 -0
- package/template/base/modules/coretax/print/coretax_bupot.xml +28 -0
- package/template/base/modules/coretax/print/coretax_faktur.rk +48 -0
- package/template/base/modules/coretax/print/coretax_faktur.xml +76 -0
- package/template/base/modules/coretax/print/rekap_ppn.html +162 -0
- package/template/base/modules/coretax/print/rekap_ppn.rk +27 -0
- package/template/base/modules/courses/flows/charge_cancel_guard.rk +23 -0
- package/template/base/modules/courses/flows/charge_invoice_on_submit.rk +73 -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_attendance_checked.rk +14 -0
- package/template/base/modules/courses/flows/session_fill_attendance.rk +16 -0
- package/template/base/modules/courses/flows/session_of_the_day.rk +34 -0
- package/template/base/modules/courses/flows/student_billing_on_create.rk +25 -0
- package/template/base/modules/courses/models/course_attendance.rk +24 -0
- package/template/base/modules/courses/models/course_batch.rk +119 -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 +94 -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/courses/screens/absen_kelas.rk +18 -0
- package/template/base/modules/currency/models/currency.rk +1 -0
- package/template/base/modules/currency/models/exchange_rate.rk +1 -0
- package/template/base/modules/currency/module.rk +5 -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 +106 -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 +93 -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/fixed_assets/flows/asset_disposal_on_cancel.rk +14 -0
- package/template/base/modules/fixed_assets/flows/asset_disposal_on_submit.rk +21 -0
- package/template/base/modules/fixed_assets/flows/asset_from_vendor_bill.rk +41 -0
- package/template/base/modules/fixed_assets/flows/depreciation_run_fill.rk +28 -0
- package/template/base/modules/fixed_assets/flows/depreciation_run_monthly.rk +36 -0
- package/template/base/modules/fixed_assets/flows/depreciation_run_on_cancel.rk +30 -0
- package/template/base/modules/fixed_assets/flows/depreciation_run_on_submit.rk +34 -0
- package/template/base/modules/fixed_assets/flows/fixed_asset_on_cancel.rk +24 -0
- package/template/base/modules/fixed_assets/flows/fixed_asset_on_submit.rk +69 -0
- package/template/base/modules/fixed_assets/flows/fixed_assets_setup.rk +29 -0
- package/template/base/modules/fixed_assets/flows/opening_balance_asset_guard.rk +15 -0
- package/template/base/modules/fixed_assets/flows/vendor_bill_asset_guard.rk +14 -0
- package/template/base/modules/fixed_assets/imports/asset_list.rk +22 -0
- package/template/base/modules/fixed_assets/models/asset_bill_line.rk +24 -0
- package/template/base/modules/fixed_assets/models/asset_book.rk +83 -0
- package/template/base/modules/fixed_assets/models/asset_category.rk +54 -0
- package/template/base/modules/fixed_assets/models/asset_disposal.rk +97 -0
- package/template/base/modules/fixed_assets/models/asset_guard.rk +90 -0
- package/template/base/modules/fixed_assets/models/depreciation_line.rk +13 -0
- package/template/base/modules/fixed_assets/models/depreciation_run.rk +65 -0
- package/template/base/modules/fixed_assets/models/fixed_asset.rk +165 -0
- package/template/base/modules/fixed_assets/models/fixed_asset_setting.rk +34 -0
- package/template/base/modules/fixed_assets/module.rk +30 -0
- package/template/base/modules/fixed_assets/print/fixed_asset_register.html +45 -0
- package/template/base/modules/fixed_assets/print/fixed_asset_register.rk +17 -0
- package/template/base/modules/invoicing/flows/invoice_due_digest.rk +50 -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 +19 -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 +347 -14
- package/template/base/modules/invoicing/models/sales_invoice_item.rk +27 -1
- package/template/base/modules/invoicing/module.rk +21 -3
- package/template/base/modules/invoicing/portal/tagihan.rk +22 -0
- package/template/base/modules/invoicing/print/sales_invoice.html +145 -32
- package/template/base/modules/invoicing/print/sales_invoice.rk +7 -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/kitchen/flows/kitchen_ticket_on_sale.rk +47 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_update.rk +30 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_void.rk +23 -0
- package/template/base/modules/kitchen/models/kitchen_guard.rk +40 -0
- package/template/base/modules/kitchen/models/kitchen_route.rk +26 -0
- package/template/base/modules/kitchen/models/kitchen_station.rk +40 -0
- package/template/base/modules/kitchen/models/kitchen_ticket.rk +83 -0
- package/template/base/modules/kitchen/models/kitchen_ticket_item.rk +10 -0
- package/template/base/modules/kitchen/module.rk +18 -0
- package/template/base/modules/kitchen/print/kitchen_ticket.html +29 -0
- package/template/base/modules/kitchen/print/kitchen_ticket.rk +9 -0
- package/template/base/modules/kitchen/roles/kitchen.rk +6 -0
- package/template/base/modules/kitchen/screens/dapur.rk +23 -0
- package/template/base/modules/loyalty/flows/deposit_on_payment.rk +36 -0
- package/template/base/modules/loyalty/flows/deposit_on_payment_cancel.rk +32 -0
- package/template/base/modules/loyalty/flows/deposit_refund_on_cancel.rk +21 -0
- package/template/base/modules/loyalty/flows/deposit_refund_on_submit.rk +23 -0
- package/template/base/modules/loyalty/flows/deposit_topup_on_cancel.rk +42 -0
- package/template/base/modules/loyalty/flows/deposit_topup_on_submit.rk +35 -0
- package/template/base/modules/loyalty/flows/loyalty_account_on_create.rk +53 -0
- package/template/base/modules/loyalty/flows/loyalty_check.rk +28 -0
- package/template/base/modules/loyalty/flows/loyalty_on_sale.rk +113 -0
- package/template/base/modules/loyalty/flows/loyalty_on_sale_cancel.rk +62 -0
- package/template/base/modules/loyalty/flows/loyalty_yearly.rk +38 -0
- package/template/base/modules/loyalty/flows/member_tier_guard_created.rk +13 -0
- package/template/base/modules/loyalty/flows/member_tier_guard_updated.rk +13 -0
- package/template/base/modules/loyalty/flows/member_tier_on_update.rk +21 -0
- package/template/base/modules/loyalty/flows/points_adjustment_on_cancel.rk +22 -0
- package/template/base/modules/loyalty/flows/points_adjustment_on_submit.rk +22 -0
- package/template/base/modules/loyalty/flows/points_expiry.rk +26 -0
- package/template/base/modules/loyalty/models/deposit_entry.rk +46 -0
- package/template/base/modules/loyalty/models/deposit_refund.rk +69 -0
- package/template/base/modules/loyalty/models/deposit_topup.rk +92 -0
- package/template/base/modules/loyalty/models/loyalty_account.rk +95 -0
- package/template/base/modules/loyalty/models/loyalty_entry.rk +47 -0
- package/template/base/modules/loyalty/models/loyalty_guard.rk +47 -0
- package/template/base/modules/loyalty/models/loyalty_mismatch.rk +22 -0
- package/template/base/modules/loyalty/models/member_spend.rk +33 -0
- package/template/base/modules/loyalty/models/member_tier.rk +94 -0
- package/template/base/modules/loyalty/models/points_adjustment.rk +33 -0
- package/template/base/modules/loyalty/module.rk +24 -0
- package/template/base/modules/orders/models/customer_order.rk +98 -2
- package/template/base/modules/orders/models/customer_order_item.rk +29 -0
- package/template/base/modules/orders/module.rk +7 -2
- package/template/base/modules/outlet_sales/flows/moka_api_opened.rk +30 -0
- package/template/base/modules/outlet_sales/flows/moka_daily_sales.rk +79 -0
- package/template/base/modules/outlet_sales/flows/moka_held_release.rk +35 -0
- package/template/base/modules/outlet_sales/flows/moka_legacy_key_overlap.rk +22 -0
- package/template/base/modules/outlet_sales/flows/moka_line_mapped.rk +38 -0
- package/template/base/modules/outlet_sales/flows/moka_transaction_refused.rk +15 -0
- package/template/base/modules/outlet_sales/flows/moka_transaction_staged.rk +172 -0
- package/template/base/modules/outlet_sales/flows/outlet_day_backfill_harian.rk +71 -0
- package/template/base/modules/outlet_sales/flows/outlet_day_free_sales.rk +19 -0
- package/template/base/modules/outlet_sales/flows/outlet_day_free_takings.rk +19 -0
- package/template/base/modules/outlet_sales/flows/outlet_day_on_sales.rk +19 -0
- package/template/base/modules/outlet_sales/flows/outlet_day_on_takings.rk +19 -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 +18 -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/moka_sale_line.rk +66 -0
- package/template/base/modules/outlet_sales/models/moka_transaction.rk +26 -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 +84 -7
- package/template/base/modules/outlet_sales/models/outlet_sales_guard.rk +40 -0
- package/template/base/modules/outlet_sales/models/outlet_sales_line.rk +2 -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 +36 -0
- package/template/base/modules/outlet_sales/models/pos_refund_item.rk +9 -0
- package/template/base/modules/outlet_sales/module.rk +7 -2
- package/template/base/modules/outlets/models/outlet.rk +178 -2
- package/template/base/modules/outlets/models/outlet_day.rk +30 -0
- package/template/base/modules/outlets/models/outlet_day_backfill.rk +25 -0
- package/template/base/modules/outlets/module.rk +11 -3
- package/template/base/modules/payments/flows/payment_from_doku.rk +73 -0
- package/template/base/modules/payments/flows/payment_from_midtrans.rk +85 -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/flows/payment_refund_from_doku.rk +14 -0
- package/template/base/modules/payments/flows/payment_refund_from_midtrans.rk +22 -0
- package/template/base/modules/payments/models/gateway_ref_claim.rk +42 -0
- package/template/base/modules/payments/models/payment.rk +71 -1
- package/template/base/modules/payments/models/withholding.rk +16 -2
- package/template/base/modules/payments/module.rk +7 -2
- package/template/base/modules/payments/print/statement.html +1 -1
- package/template/base/modules/payroll/flows/cash_advance_balance_on_cancel.rk +14 -0
- package/template/base/modules/payroll/flows/cash_advance_balance_on_submit.rk +15 -0
- package/template/base/modules/payroll/flows/cash_advance_cancel_guard.rk +15 -0
- package/template/base/modules/payroll/flows/cash_advance_open_guard.rk +21 -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 +38 -0
- package/template/base/modules/payroll/flows/payroll_close_on_submit.rk +69 -0
- package/template/base/modules/payroll/flows/payroll_reminder.rk +106 -0
- package/template/base/modules/payroll/flows/payroll_run_fill.rk +142 -0
- package/template/base/modules/payroll/flows/payroll_run_fill_on_create.rk +143 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_created.rk +16 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_updated.rk +16 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_cancel.rk +30 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_submit.rk +30 -0
- package/template/base/modules/payroll/flows/payslip_advance_guard.rk +23 -0
- package/template/base/modules/payroll/flows/payslip_advance_repaid_on_cancel.rk +19 -0
- package/template/base/modules/payroll/flows/payslip_advance_repaid_on_submit.rk +20 -0
- package/template/base/modules/payroll/flows/payslip_attendance_guard.rk +30 -0
- package/template/base/modules/payroll/flows/payslip_cancel_guard.rk +14 -0
- package/template/base/modules/payroll/flows/payslip_casual_guard.rk +19 -0
- package/template/base/modules/payroll/flows/payslip_from_attendance.rk +163 -0
- package/template/base/modules/payroll/flows/payslip_from_recap.rk +100 -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 +35 -0
- package/template/base/modules/payroll/flows/payslip_ytd_on_create.rk +69 -0
- package/template/base/modules/payroll/flows/recap_cancel_guard.rk +15 -0
- package/template/base/modules/payroll/imports/payroll_profile_list.rk +27 -0
- package/template/base/modules/payroll/models/cash_advance.rk +130 -0
- package/template/base/modules/payroll/models/cash_advance_balance.rk +56 -0
- package/template/base/modules/payroll/models/payroll_close.rk +85 -0
- package/template/base/modules/payroll/models/payroll_guard.rk +99 -0
- package/template/base/modules/payroll/models/payroll_profile.rk +146 -0
- package/template/base/modules/payroll/models/payroll_run.rk +289 -0
- package/template/base/modules/payroll/models/payslip.rk +473 -0
- package/template/base/modules/payroll/module.rk +32 -0
- package/template/base/modules/payroll/print/payslip.html +58 -0
- package/template/base/modules/payroll/print/payslip.rk +7 -0
- package/template/base/modules/payroll/screens/ajukan_kasbon.rk +15 -0
- package/template/base/modules/pipeline/module.rk +5 -0
- package/template/base/modules/pos/flows/outlet_day_backfill_kasir.rk +61 -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 +43 -0
- package/template/base/modules/pos/flows/pos_sale_on_submit.rk +61 -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 +24 -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 +478 -0
- package/template/base/modules/pos/models/pos_sale_item.rk +78 -0
- package/template/base/modules/pos/models/pos_shift.rk +124 -0
- package/template/base/modules/pos/models/pos_shift_close.rk +80 -0
- package/template/base/modules/pos/module.rk +25 -0
- package/template/base/modules/pos/print/pos_receipt.html +64 -0
- package/template/base/modules/pos/print/pos_receipt.rk +9 -0
- package/template/base/modules/pos/print/pos_receipt_whatsapp.html +33 -0
- package/template/base/modules/pos/print/pos_receipt_whatsapp.rk +9 -0
- package/template/base/modules/pos/screens/kasir.rk +47 -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/flows/reorder_draft_po.rk +61 -0
- package/template/base/modules/procurement/imports/opening_stock.rk +25 -0
- package/template/base/modules/procurement/models/goods_receipt.rk +4 -1
- package/template/base/modules/procurement/models/purchase_order.rk +23 -8
- package/template/base/modules/procurement/models/purchase_request.rk +12 -1
- package/template/base/modules/procurement/models/purchase_request_item.rk +2 -0
- package/template/base/modules/procurement/models/vendor_bill.rk +137 -5
- package/template/base/modules/procurement/module.rk +16 -2
- 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 +68 -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 +153 -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/attendance_close_cancel_guard.rk +15 -0
- package/template/base/modules/projects/flows/attendance_close_on_submit.rk +68 -0
- package/template/base/modules/projects/flows/attendance_log_cancel_guard.rk +14 -0
- package/template/base/modules/projects/flows/attendance_log_guard_created.rk +17 -0
- package/template/base/modules/projects/flows/attendance_log_guard_submitted.rk +38 -0
- package/template/base/modules/projects/flows/attendance_log_guard_updated.rk +15 -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/timesheet_attendance_overlap_guard.rk +20 -0
- package/template/base/modules/projects/flows/vendor_bill_cancel_guard.rk +15 -0
- package/template/base/modules/projects/flows/work_site_supervisor_changed.rk +19 -0
- package/template/base/modules/projects/flows/worker_employee_changed.rk +19 -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/assignment.rk +65 -3
- package/template/base/modules/projects/models/attendance_close.rk +67 -0
- package/template/base/modules/projects/models/attendance_guard.rk +57 -0
- package/template/base/modules/projects/models/attendance_log.rk +275 -0
- 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 +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 +100 -10
- package/template/base/modules/projects/models/work_site.rk +83 -0
- package/template/base/modules/projects/module.rk +8 -3
- package/template/base/modules/projects/roles/field_worker.rk +10 -0
- package/template/base/modules/projects/roles/site_supervisor.rk +8 -0
- package/template/base/modules/projects/screens/absen.rk +24 -0
- package/template/base/modules/promotions/flows/promo_code_batch_on_submit.rk +26 -0
- package/template/base/modules/promotions/flows/promotion_apply.rk +110 -0
- package/template/base/modules/promotions/flows/promotion_apply_on_create.rk +110 -0
- package/template/base/modules/promotions/flows/promotion_apply_on_delete.rk +111 -0
- package/template/base/modules/promotions/flows/promotion_apply_on_update.rk +110 -0
- package/template/base/modules/promotions/flows/promotion_on_sale.rk +95 -0
- package/template/base/modules/promotions/flows/promotion_on_sale_cancel.rk +43 -0
- package/template/base/modules/promotions/models/promo_code.rk +27 -0
- package/template/base/modules/promotions/models/promo_code_batch.rk +36 -0
- package/template/base/modules/promotions/models/promo_guard.rk +44 -0
- package/template/base/modules/promotions/models/promotion.rk +197 -0
- package/template/base/modules/promotions/models/promotion_ledger.rk +35 -0
- package/template/base/modules/promotions/module.rk +20 -0
- package/template/base/modules/quotation/models/quotation.rk +20 -4
- package/template/base/modules/quotation/models/quotation_item.rk +13 -0
- package/template/base/modules/quotation/module.rk +6 -1
- package/template/base/modules/quotation/print/quotation.html +17 -3
- package/template/base/modules/reimbursement/flows/claim_cancel_guard.rk +21 -0
- package/template/base/modules/reimbursement/flows/claim_payment_on_cancel.rk +15 -0
- package/template/base/modules/reimbursement/flows/claim_payment_on_submit.rk +28 -0
- package/template/base/modules/reimbursement/flows/claim_settlement_on_payslip_cancel.rk +17 -0
- package/template/base/modules/reimbursement/flows/claim_settlement_on_payslip_submit.rk +31 -0
- package/template/base/modules/reimbursement/flows/claim_settlement_on_submit.rk +15 -0
- package/template/base/modules/reimbursement/models/claim_payment.rk +53 -0
- package/template/base/modules/reimbursement/models/claim_settlement.rk +56 -0
- package/template/base/modules/reimbursement/models/expense_category.rk +59 -0
- package/template/base/modules/reimbursement/models/expense_claim.rk +154 -0
- package/template/base/modules/reimbursement/models/reimbursement_guard.rk +34 -0
- package/template/base/modules/reimbursement/module.rk +19 -0
- package/template/base/modules/reimbursement/screens/klaim_biaya.rk +16 -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 +46 -0
- package/template/base/modules/rental/flows/rental_checkout_on_cancel.rk +24 -0
- package/template/base/modules/rental/flows/rental_checkout_on_submit.rk +34 -0
- package/template/base/modules/rental/flows/rental_invoice_once.rk +21 -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 +28 -0
- package/template/base/modules/rental/flows/rental_return_on_submit.rk +46 -0
- package/template/base/modules/rental/models/rental_booking.rk +124 -0
- package/template/base/modules/rental/models/rental_checkout.rk +91 -0
- package/template/base/modules/rental/models/rental_checkout_unit.rk +22 -0
- package/template/base/modules/rental/models/rental_guard.rk +93 -0
- package/template/base/modules/rental/models/rental_item.rk +83 -0
- package/template/base/modules/rental/models/rental_return.rk +134 -0
- package/template/base/modules/rental/models/rental_return_unit.rk +29 -0
- package/template/base/modules/rental/models/rental_schedule.rk +59 -0
- package/template/base/modules/rental/models/rental_unit.rk +90 -0
- package/template/base/modules/rental/module.rk +25 -0
- package/template/base/modules/rental/print/rental_bast_in.html +107 -0
- package/template/base/modules/rental/print/rental_bast_in.rk +9 -0
- package/template/base/modules/rental/print/rental_bast_out.html +98 -0
- package/template/base/modules/rental/print/rental_bast_out.rk +11 -0
- package/template/base/modules/rental/roles/rental_staff.rk +7 -0
- package/template/base/modules/rental/screens/alat_keluar.rk +20 -0
- package/template/base/modules/rental/screens/alat_kembali.rk +20 -0
- package/template/base/modules/rental/screens/jadwal_alat.rk +22 -0
- package/template/base/modules/shifts/flows/shift_attendance_link.rk +21 -0
- package/template/base/modules/shifts/flows/shift_attendance_sync.rk +34 -0
- package/template/base/modules/shifts/flows/shift_pos_link.rk +20 -0
- package/template/base/modules/shifts/flows/shift_roster_guard_submitted.rk +16 -0
- package/template/base/modules/shifts/flows/shift_roster_publish.rk +44 -0
- package/template/base/modules/shifts/flows/shift_roster_unpublish.rk +16 -0
- package/template/base/modules/shifts/flows/shift_swap_apply.rk +22 -0
- package/template/base/modules/shifts/flows/shift_swap_revert.rk +22 -0
- package/template/base/modules/shifts/models/shift_assignment.rk +131 -0
- package/template/base/modules/shifts/models/shift_guard.rk +35 -0
- package/template/base/modules/shifts/models/shift_roster.rk +65 -0
- package/template/base/modules/shifts/models/shift_roster_line.rk +22 -0
- package/template/base/modules/shifts/models/shift_swap.rk +75 -0
- package/template/base/modules/shifts/models/shift_template.rk +72 -0
- package/template/base/modules/shifts/module.rk +16 -0
- package/template/base/modules/shifts/print/jadwal_mingguan.html +42 -0
- package/template/base/modules/shifts/print/jadwal_mingguan.rk +10 -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_balance_location_backfill.rk +20 -0
- package/template/base/modules/stock/flows/stock_low_alert.rk +65 -0
- package/template/base/modules/stock/flows/stock_negative_alert.rk +14 -4
- package/template/base/modules/stock/flows/stock_request_decided.rk +25 -0
- package/template/base/modules/stock/flows/stock_request_on_create.rk +33 -0
- package/template/base/modules/stock/flows/stock_request_receipt.rk +13 -0
- package/template/base/modules/stock/flows/stock_request_receipt_cancelled.rk +13 -0
- package/template/base/modules/stock/flows/stock_request_transfer_cancelled.rk +13 -0
- package/template/base/modules/stock/flows/stock_request_transfer_submitted.rk +12 -0
- package/template/base/modules/stock/models/recipe.rk +9 -0
- package/template/base/modules/stock/models/stock_adjustment.rk +3 -1
- package/template/base/modules/stock/models/stock_adjustment_value.rk +81 -0
- package/template/base/modules/stock/models/stock_balance.rk +22 -4
- package/template/base/modules/stock/models/stock_count.rk +4 -1
- package/template/base/modules/stock/models/stock_move.rk +19 -6
- package/template/base/modules/stock/models/stock_reorder.rk +34 -0
- package/template/base/modules/stock/models/stock_request.rk +93 -0
- package/template/base/modules/stock/models/stock_request_item.rk +15 -0
- package/template/base/modules/stock/models/stock_transfer.rk +21 -3
- package/template/base/modules/stock/models/stock_transfer_item.rk +1 -1
- package/template/base/modules/stock/models/stock_transfer_receipt.rk +2 -1
- package/template/base/modules/stock/module.rk +29 -2
- 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/collection_visit.rk +47 -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 +235 -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/subscriptions/screens/catat_tagih.rk +19 -0
- package/template/base/modules/subscriptions/screens/rute_tagih.rk +26 -0
- package/template/base/modules/tax_id/models/tax_code.rk +1 -0
- package/template/base/modules/tax_id/module.rk +5 -0
- package/template/base/modules/users/flows/summary_daily.rk +83 -0
- package/template/base/modules/users/flows/summary_monthly.rk +83 -0
- package/template/base/modules/users/flows/summary_weekly.rk +83 -0
- package/template/base/modules/users/models/business_summary.rk +67 -0
- package/template/base/modules/users/models/summary_setting.rk +35 -0
- package/template/base/modules/users/models/user.rk +44 -4
- package/template/base/modules/users/models/user_outlet.rk +6 -0
- package/template/base/modules/users/module.rk +27 -2
- 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/employee.rk +8 -0
- package/template/base/modules/users/roles/field_sales.rk +7 -0
- package/template/base/modules/users/roles/outlet_supervisor.rk +8 -0
- package/template/base/modules/users/roles/service_staff.rk +7 -0
- package/template/base/modules/users/roles/warehouse_staff.rk +8 -0
- package/template/base/modules/whatsapp/flows/whatsapp_customer_opt_out.rk +16 -0
- package/template/base/modules/whatsapp/flows/whatsapp_customer_opt_out_new.rk +17 -0
- package/template/base/modules/whatsapp/flows/whatsapp_message_status.rk +24 -0
- package/template/base/modules/whatsapp/flows/whatsapp_opted_out.rk +26 -0
- package/template/base/modules/whatsapp/models/whatsapp_message.rk +99 -0
- package/template/base/modules/whatsapp/models/whatsapp_opt_out.rk +44 -0
- package/template/base/modules/whatsapp/module.rk +23 -0
- package/template/base/modules/whatsapp_booking/flows/whatsapp_booking_tomorrow.rk +48 -0
- package/template/base/modules/whatsapp_booking/module.rk +13 -0
- package/template/base/modules/whatsapp_order_ready/flows/whatsapp_pickup_on_sale.rk +19 -0
- package/template/base/modules/whatsapp_order_ready/flows/whatsapp_ticket_ready.rk +40 -0
- package/template/base/modules/whatsapp_order_ready/models/whatsapp_pickup.rk +22 -0
- package/template/base/modules/whatsapp_order_ready/module.rk +14 -0
- package/template/base/modules/whatsapp_receipt/flows/whatsapp_receipt_on_sale.rk +43 -0
- package/template/base/modules/whatsapp_receipt/module.rk +13 -0
- package/template/base/modules/whatsapp_reminder/flows/whatsapp_invoice_overdue.rk +64 -0
- package/template/base/modules/whatsapp_reminder/module.rk +15 -0
- package/template/base/modules/workforce/imports/worker_list.rk +24 -0
- package/template/base/modules/workforce/models/certification.rk +1 -2
- package/template/base/modules/workforce/models/worker.rk +54 -4
- package/template/base/modules/workforce/module.rk +6 -1
- package/template/demo/fixtures/demo.rk +2 -2
|
@@ -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,18 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: rekap_absen
|
|
3
|
+
label: {id: Rekap absen lapangan, en: Field attendance}
|
|
4
|
+
description: {id: 'Siapa yang sudah absen hari ini, absen di luar radius yang menunggu persetujuan, dan hari hadir per pekerja'}
|
|
5
|
+
# For the site supervisor (only the logs of their sites, row scope supervisor) and the project admin (every site). The
|
|
6
|
+
# held submits themselves are decided in Persetujuan (contract 0007); this board shows which logs wait.
|
|
7
|
+
default_period: 31
|
|
8
|
+
roles: [site_supervisor, project_admin]
|
|
9
|
+
cache: 1m
|
|
10
|
+
widgets:
|
|
11
|
+
- {name: in_today, type: number, label: {id: Absen hari ini}, model: attendance_log, filter: work_date == today() && docstatus != 2, compact: true, span: 3}
|
|
12
|
+
- {name: outside_today, type: number, label: {id: Di luar radius hari ini}, model: attendance_log, filter: work_date == today() && docstatus != 2 && outside_site, compact: true, span: 3, good_when: down}
|
|
13
|
+
- {name: waiting, type: number, label: {id: Menunggu persetujuan}, description: {id: 'Sudah absen pulang tapi belum sah'}, model: attendance_log, filter: docstatus == 0 && clock_out != '', compact: true, span: 3, good_when: down}
|
|
14
|
+
- {name: days_present, type: number, label: {id: Hari hadir sah}, model: attendance_log, filter: docstatus == 1, period: work_date, compact: true, span: 3}
|
|
15
|
+
- {name: waiting_list, type: list, label: {id: Absen yang menunggu}, model: attendance_log, filter: docstatus == 0 && clock_out != '', columns: [worker_name, work_date, in_site_m, out_site_m, overtime_hours, reason], sort: work_date, limit: 20, span: 12}
|
|
16
|
+
- {name: by_worker, type: chart, chart: bar, label: {id: Hari hadir per pekerja}, model: attendance_log, group_by: worker_name, filter: docstatus == 1, period: work_date, sort: -value, span: 6}
|
|
17
|
+
- {name: by_site, type: chart, chart: bar, label: {id: Hari hadir per lokasi}, model: attendance_log, group_by: work_site, filter: docstatus == 1, period: work_date, sort: -value, span: 6}
|
|
18
|
+
- {name: today_list, type: list, label: {id: Absen hari ini}, model: attendance_log, filter: work_date == today() && docstatus != 2, columns: [worker_name, work_site, clock_in, clock_out, in_site_m, status], sort: clock_in, limit: 50, span: 12}
|
|
@@ -0,0 +1,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,49 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
name: karyawan_gaji
|
|
3
|
+
version: 1.1.0
|
|
4
|
+
title: {id: Karyawan dan gaji, en: Staff and payroll}
|
|
5
|
+
label: {id: Rangka Karyawan dan Gaji, en: Rangka Staff and Payroll}
|
|
6
|
+
summary:
|
|
7
|
+
id: Data karyawan dan gajinya, absen dari HP jadi slip gaji dengan BPJS dan PPh 21, cicilan kasbon, klaim biaya, file transfer gaji.
|
|
8
|
+
category: people
|
|
9
|
+
icon: team-line
|
|
10
|
+
rangka: '>=0.5'
|
|
11
|
+
# The staff bundle (rangka-apps#101) for a business paying its own employees, with no client contract: payroll 2.0
|
|
12
|
+
# internal runs (no project, no client invoice). Outlet staff clock in with module attendance; a submitted attendance
|
|
13
|
+
# period becomes draft payslips (flows payroll_run_fill and payslip_from_attendance), finance checks and submits them,
|
|
14
|
+
# then downloads the salary transfer file (docs/payroll.md, bank_transfer_csv). The attendance dashboards and clock
|
|
15
|
+
# screen and its Absen menu group stay in absen_karyawan, which a site installs next to this one (a second Absen group
|
|
16
|
+
# here showed twice); outsourcing firms keep jasa_proyek (client runs).
|
|
17
|
+
# The worker record (who is paid) stays apart from the employee record (who signs in), linked by worker.employee
|
|
18
|
+
# (contract 0056); flow worker_from_employee is not in this version (DECISIONS.md, 19 Nov 2026).
|
|
19
|
+
modules:
|
|
20
|
+
users: ^1.5
|
|
21
|
+
workforce: ^1.1
|
|
22
|
+
outlets: ^1.6
|
|
23
|
+
attendance: ^1.0
|
|
24
|
+
payroll: ^2.2
|
|
25
|
+
reimbursement: ^1.0
|
|
26
|
+
dashboards: [gaji_ringkas, transfer_gaji, klaim_kasbon_saya]
|
|
27
|
+
roles: [finance_manager, head_office, outlet_supervisor, cashier, outlet_staff, employee]
|
|
28
|
+
home: {dashboard: gaji_ringkas}
|
|
29
|
+
# rangka-apps#117: staff claim expenses and ask for a kasbon from their phone (Kerja group); the clock stays their home
|
|
30
|
+
# (absen_karyawan).
|
|
31
|
+
work:
|
|
32
|
+
- {screen: klaim_biaya, roles: [employee, cashier, outlet_staff, outlet_supervisor]}
|
|
33
|
+
- {screen: ajukan_kasbon, roles: [employee, cashier, outlet_staff, outlet_supervisor]}
|
|
34
|
+
menu:
|
|
35
|
+
- group: {id: Gaji}
|
|
36
|
+
items: [payroll_run, payslip, payroll_close, cash_advance, cash_advance_balance]
|
|
37
|
+
- group: {id: Klaim biaya}
|
|
38
|
+
items: [expense_claim, claim_settlement, claim_payment, expense_category]
|
|
39
|
+
- group: {id: Karyawan}
|
|
40
|
+
items: [worker, payroll_profile, user]
|
|
41
|
+
onboarding:
|
|
42
|
+
- ask: {id: 'Siapa saja karyawanmu, jabatannya, dan berapa gaji pokok per bulan atau upah per harinya?'}
|
|
43
|
+
sets: seed.workers
|
|
44
|
+
- ask: {id: 'Tanggal berapa periode gaji dipotong dan tanggal berapa gaji dibayar?'}
|
|
45
|
+
sets: payroll_run.period_from
|
|
46
|
+
- ask: {id: 'Berapa UMK kota tempat karyawanmu bekerja?'}
|
|
47
|
+
sets: payroll_run.umk
|
|
48
|
+
- ask: {id: 'Apakah karyawan sudah ikut BPJS Ketenagakerjaan dan BPJS Kesehatan?'}
|
|
49
|
+
sets: payroll_profile.bpjs_tk
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: gaji_ringkas
|
|
3
|
+
label: {id: Gaji karyawan, en: Staff payroll}
|
|
4
|
+
description: {id: 'Periode gaji yang masih terbuka, slip yang menunggu diperiksa, dan gaji bersih yang sudah dibayar'}
|
|
5
|
+
# For finance and the owner. Runs and slips of every kind (an outsourcing site sees its client runs too). Paid = the
|
|
6
|
+
# net pay of submitted slips whose run's pay date falls in the period; slips without an account number are the ones
|
|
7
|
+
# the transfer file leaves out (transfer_gaji).
|
|
8
|
+
default_period: 31
|
|
9
|
+
periods: [31, 92, 365]
|
|
10
|
+
roles: [finance_manager]
|
|
11
|
+
cache: 5m
|
|
12
|
+
widgets:
|
|
13
|
+
- {name: open_runs, type: number, label: {id: Periode gaji terbuka}, model: payroll_run, filter: "!closed", span: 3}
|
|
14
|
+
- {name: draft_slips, type: number, label: {id: Slip menunggu diperiksa}, description: {id: 'Slip draft dari absen atau diketik, belum diajukan'}, model: payslip, filter: "docstatus == 0", good_when: down, span: 3}
|
|
15
|
+
- {name: net_paid, type: number, label: {id: Gaji bersih dibayar}, model: payslip, aggregate: sum, field: net_pay, filter: "docstatus == 1", period: pay_date, compact: true, span: 3}
|
|
16
|
+
- {name: no_account, type: number, label: {id: Slip tanpa nomor rekening}, description: {id: 'Tidak masuk file transfer gaji'}, model: payslip, filter: "docstatus != 2 && bank_account == '' && net_pay > 0", good_when: down, span: 3}
|
|
17
|
+
# rangka-apps#117: approved expense claims not paid back yet, and kasbon not repaid yet
|
|
18
|
+
- {name: claims_due, type: number, label: {id: Klaim menunggu dibayar}, description: {id: 'Klaim biaya yang sudah disetujui dan belum dibayar tunai, transfer, atau bersama gaji'}, model: claim_settlement, aggregate: sum, field: amount, filter: "!paid && !cancelled", compact: true, span: 6}
|
|
19
|
+
- {name: kasbon_open, type: number, label: {id: Sisa kasbon karyawan}, model: cash_advance_balance, aggregate: sum, field: remaining, filter: "!cancelled", compact: true, span: 6}
|
|
20
|
+
- {name: runs, type: list, label: {id: Periode gaji terbuka}, model: payroll_run, filter: "!closed", columns: [name, outlet, period_to, pay_date, headcount, total_net_pay], sort: period_to, limit: 20, span: 12}
|
|
21
|
+
- {name: drafts, type: list, label: {id: Slip draft}, model: payslip, filter: "docstatus == 0", columns: [name, payroll_run, worker, days, late_min_total, net_pay], sort: payroll_run, limit: 50, span: 12}
|
|
22
|
+
- {name: claims_list, type: list, label: {id: Klaim menunggu dibayar}, model: claim_settlement, filter: "!paid && !cancelled", columns: [claim, claim_date, employee, amount, pay_with], sort: claim_date, limit: 50, span: 12}
|
|
23
|
+
- name: cost_by_month
|
|
24
|
+
type: chart
|
|
25
|
+
chart: bar
|
|
26
|
+
label: {id: Biaya gaji per bulan bayar}
|
|
27
|
+
model: payslip
|
|
28
|
+
group_by: pay_date
|
|
29
|
+
grain: month
|
|
30
|
+
aggregate: sum
|
|
31
|
+
field: employer_cost
|
|
32
|
+
filter: "docstatus == 1"
|
|
33
|
+
period: pay_date
|
|
34
|
+
span: 12
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: klaim_kasbon_saya
|
|
3
|
+
label: {id: Klaim dan kasbon saya, en: My claims and cash advances}
|
|
4
|
+
description: {id: 'Klaim biaya kamu yang menunggu disetujui atau dibayar, dan sisa kasbon yang masih dipotong dari gaji'}
|
|
5
|
+
# rangka-apps#117. Every widget filters on the member's own employee record, so head office and outlet supervisors (who
|
|
6
|
+
# read more claims) also see only their own here. Staff are limited to their own rows anyway (permission if:).
|
|
7
|
+
default_period: 92
|
|
8
|
+
roles: [cashier, outlet_staff, employee, outlet_supervisor, head_office]
|
|
9
|
+
cache: 1m
|
|
10
|
+
widgets:
|
|
11
|
+
- {name: claims_waiting, type: number, label: {id: Klaim menunggu disetujui}, model: expense_claim, filter: "employee == user.name && docstatus == 0", compact: true, span: 4, good_when: down}
|
|
12
|
+
- {name: claims_due, type: number, label: {id: Klaim menunggu dibayar}, description: {id: 'Sudah disetujui, dibayar tunai, transfer, atau bersama gaji berikutnya'}, model: claim_settlement, aggregate: sum, field: amount, filter: "employee == user.name && !paid && !cancelled", compact: true, span: 4}
|
|
13
|
+
- {name: kasbon_left, type: number, label: {id: Sisa kasbon}, model: cash_advance_balance, aggregate: sum, field: remaining, filter: "employee == user.name && !cancelled", compact: true, span: 4, good_when: down}
|
|
14
|
+
- {name: claims, type: list, label: {id: Klaim saya}, model: expense_claim, filter: "employee == user.name && docstatus != 2", period: claim_date, columns: [claim_date, category, amount, pay_with, status], sort: -claim_date, limit: 31, span: 12}
|
|
15
|
+
- {name: kasbon, type: list, label: {id: Kasbon saya}, model: cash_advance_balance, filter: "employee == user.name && !cancelled", columns: [advance_date, amount, installment, repaid_total, remaining, state], sort: -advance_date, limit: 12, span: 12}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/dashboard.json
|
|
2
|
+
name: transfer_gaji
|
|
3
|
+
label: {id: Transfer gaji, en: Salary transfers}
|
|
4
|
+
description: {id: 'Gaji bersih per rekening dari slip yang sudah diajukan, untuk ditransfer lewat bank'}
|
|
5
|
+
# bank_transfer_csv (docs/payroll.md): the salary transfer list. The list download of payslip with the transfer columns
|
|
6
|
+
# (contract 0024, GET /api/v1/export/r/payslip?filter=payroll_run == '<run>' && docstatus == 1&columns=...&format=xlsx)
|
|
7
|
+
# is the file a bank's bulk transfer takes (up to 50 000 rows); this dashboard shows the first 50 rows by pay date.
|
|
8
|
+
# Generic columns, no bank API and no bank-specific layout. Slips without an account number are left out here and
|
|
9
|
+
# counted on gaji_ringkas.
|
|
10
|
+
default_period: 31
|
|
11
|
+
periods: [31, 92]
|
|
12
|
+
roles: [finance_manager]
|
|
13
|
+
cache: 1m
|
|
14
|
+
widgets:
|
|
15
|
+
- {name: total, type: number, label: {id: Total ditransfer}, model: payslip, aggregate: sum, field: net_pay, filter: "docstatus == 1 && bank_account != '' && net_pay > 0", period: pay_date, compact: true, span: 6}
|
|
16
|
+
- {name: count, type: number, label: {id: Jumlah transfer}, model: payslip, filter: "docstatus == 1 && bank_account != '' && net_pay > 0", period: pay_date, span: 6}
|
|
17
|
+
- {name: transfers, type: list, label: {id: Daftar transfer gaji}, model: payslip, filter: "docstatus == 1 && bank_account != '' && net_pay > 0", period: pay_date, columns: [bank_account, account_holder, bank_name, net_pay, transfer_note], sort: account_holder, limit: 50, span: 12}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rangka-app-karyawan-gaji
|
|
3
|
+
description: "Rangka Karyawan dan Gaji (app karyawan_gaji): a business paying its own staff (no client contract): pay data per employee, staff attendance into draft payslips with BPJS and PPh 21 TER, kasbon repaid by monthly installments, expense claims paid back untaxed, salary transfer file. Use when an owner wants payroll for their own employees (warung, toko, klinik, kantor) and for the first day after it is built (first-day.json). Outsourcing firms billing a client use jasa_proyek."
|
|
4
|
+
metadata: {rangka: {version: 0.1.0, app: karyawan_gaji, requires: [rangka-compose, rangka-changesets]}}
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Rangka Karyawan dan Gaji
|
|
8
|
+
|
|
9
|
+
Read `rangka-compose` first. This app composes `users`, `workforce`, `outlets`, `attendance`, `payroll` (2.2, internal
|
|
10
|
+
runs) and `reimbursement`. Install `absen_karyawan` next to it for the clock screen and the attendance dashboards.
|
|
11
|
+
|
|
12
|
+
## How pay flows
|
|
13
|
+
|
|
14
|
+
1. Each employee has a worker record (who is paid) and, when they clock in, an employee record in Tim, linked by
|
|
15
|
+
`worker.employee`. Pay data (`payroll_profile`) holds salary, allowances, PTKP, BPJS and the bank account.
|
|
16
|
+
2. Staff clock in with `attendance`; head office submits an `attendance_period`, which writes one
|
|
17
|
+
`attendance_summary` per employee.
|
|
18
|
+
3. Finance opens an internal `payroll_run` (no project) and ticks "Isi slip dari absen": draft payslips are made from
|
|
19
|
+
the summaries (`payroll_run_fill`). Every morning `payslip_from_attendance` does the same for runs whose period is
|
|
20
|
+
over. Unpaid days are never guessed from absence: finance types them.
|
|
21
|
+
4. Finance checks and submits the slips, closes the run (`payroll_close`), then downloads the transfer list
|
|
22
|
+
(dashboard `transfer_gaji`, or the payslip list export with the transfer columns). No bank API.
|
|
23
|
+
5. Kasbon (rangka-apps#117): staff ask from their phone (screen `ajukan_kasbon`, a draft `cash_advance`); finance picks
|
|
24
|
+
the worker and submits it, which pays it out. Interest-free, one open kasbon per worker; the slips deduct its
|
|
25
|
+
monthly installment by themselves until `cash_advance_balance` shows it repaid.
|
|
26
|
+
6. Expense claims: staff claim with a receipt photo (screen `klaim_biaya`); the outlet supervisor or head office
|
|
27
|
+
approves; finance pays it from cash or bank (`claim_payment`) or it rides on the next slip as `reimbursement`,
|
|
28
|
+
outside the taxable gross. docs/reimbursement.md.
|
|
29
|
+
|
|
30
|
+
## First day (first-day.json)
|
|
31
|
+
|
|
32
|
+
Read by Rangka Cloud after the build. `seed` prepares workers with their pay data only from what the owner said, each
|
|
33
|
+
with the owner's quote; money fields are shown separately and nothing is written before the owner agrees. Never invent
|
|
34
|
+
salaries, NIK, NPWP, PTKP or account numbers. Say steps in the owner's words; never call Juragan an app.
|
|
35
|
+
|
|
36
|
+
## Rules to say when asked
|
|
37
|
+
|
|
38
|
+
- BPJS and PPh 21 follow docs/payroll.md (PP 44/2015, 45/2015, 46/2015, Perpres 82/2018, PP 58/2023, PMK 168/2023).
|
|
39
|
+
- Lateness is deducted only when the run sets a rate per minute (default off).
|
|
40
|
+
- The price of this app in Juragan is not decided here.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"greeting": "Ini langkah hari pertama gaji karyawan. Mulai dari daftar karyawan dan gajinya, lalu satu periode gaji percobaan.",
|
|
4
|
+
"steps": [
|
|
5
|
+
{
|
|
6
|
+
"id": "karyawan",
|
|
7
|
+
"title": "Isi karyawan dan gajinya",
|
|
8
|
+
"why": "Slip gaji menghitung BPJS dan PPh 21 dari data gaji ini.",
|
|
9
|
+
"model": "payroll_profile",
|
|
10
|
+
"done": {
|
|
11
|
+
"model": "payroll_profile",
|
|
12
|
+
"min": 1
|
|
13
|
+
},
|
|
14
|
+
"seed": "karyawan",
|
|
15
|
+
"action": "Buka data gaji"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "absen",
|
|
19
|
+
"title": "Ajak karyawan absen dari HP",
|
|
20
|
+
"why": "Rekap absen yang sudah diajukan jadi hari hadir dan menit telat di slip gaji.",
|
|
21
|
+
"link": "members",
|
|
22
|
+
"action": "Ajak karyawan"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "periode",
|
|
26
|
+
"title": "Buka satu periode gaji karyawan",
|
|
27
|
+
"why": "Periode menentukan tanggal potong, bulan pajak, UMK, dan tanggal bayar.",
|
|
28
|
+
"model": "payroll_run",
|
|
29
|
+
"done": {
|
|
30
|
+
"model": "payroll_run",
|
|
31
|
+
"min": 1
|
|
32
|
+
},
|
|
33
|
+
"action": "Buka periode gaji",
|
|
34
|
+
"new": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "slip",
|
|
38
|
+
"title": "Isi slip gaji dari absen lalu periksa",
|
|
39
|
+
"why": "Centang Isi slip dari absen di periode gaji; slip draft dibuat untuk tiap karyawan.",
|
|
40
|
+
"model": "payslip",
|
|
41
|
+
"done": {
|
|
42
|
+
"model": "payslip",
|
|
43
|
+
"min": 1
|
|
44
|
+
},
|
|
45
|
+
"action": "Buka slip gaji"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "transfer",
|
|
49
|
+
"title": "Unduh daftar transfer gaji",
|
|
50
|
+
"why": "Gaji bersih per rekening dari slip yang sudah diajukan, siap diunggah ke transfer massal bank. Buka dasbor Transfer gaji, lalu unduh.",
|
|
51
|
+
"action": "Tandai selesai"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"seed": [
|
|
55
|
+
{
|
|
56
|
+
"key": "karyawan",
|
|
57
|
+
"model": "payroll_profile",
|
|
58
|
+
"label": "Karyawan",
|
|
59
|
+
"creates": [
|
|
60
|
+
{
|
|
61
|
+
"as": "worker",
|
|
62
|
+
"model": "worker",
|
|
63
|
+
"fields": {
|
|
64
|
+
"worker_name": "name",
|
|
65
|
+
"role_title": "role",
|
|
66
|
+
"cost_day_rate": "day_wage"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"refs": {
|
|
71
|
+
"worker": "worker"
|
|
72
|
+
},
|
|
73
|
+
"fields": [
|
|
74
|
+
{
|
|
75
|
+
"name": "name",
|
|
76
|
+
"label": "Nama karyawan",
|
|
77
|
+
"type": "data",
|
|
78
|
+
"pseudo": true
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "role",
|
|
82
|
+
"label": "Jabatan",
|
|
83
|
+
"type": "data",
|
|
84
|
+
"pseudo": true
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "pay_basis",
|
|
88
|
+
"label": "Dibayar bulanan atau harian",
|
|
89
|
+
"type": "select",
|
|
90
|
+
"options": [
|
|
91
|
+
"monthly",
|
|
92
|
+
"daily"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "monthly_salary",
|
|
97
|
+
"label": "Gaji pokok per bulan (rupiah)",
|
|
98
|
+
"type": "currency",
|
|
99
|
+
"money": true
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "day_wage",
|
|
103
|
+
"label": "Upah per hari (rupiah)",
|
|
104
|
+
"type": "currency",
|
|
105
|
+
"money": true,
|
|
106
|
+
"pseudo": true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "fixed_allowance",
|
|
110
|
+
"label": "Tunjangan tetap per bulan (rupiah)",
|
|
111
|
+
"type": "currency",
|
|
112
|
+
"money": true
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"required": [
|
|
116
|
+
"name"
|
|
117
|
+
],
|
|
118
|
+
"max_rows": 30,
|
|
119
|
+
"hint": "Satu baris per karyawan yang pemilik sebut. Gaji per bulan masuk monthly_salary dengan pay_basis monthly; upah per hari masuk day_wage dengan pay_basis daily. Jangan menebak gaji yang tidak disebut; isi nama dan jabatan saja dan sebutkan di unclear. Uang makan atau transport per hari bukan tunjangan tetap; sebutkan di unclear. NIK, NPWP, status PTKP, dan nomor rekening tidak diminta di sini: pemilik mengisinya sendiri di data gaji.",
|
|
120
|
+
"save_requires": [
|
|
121
|
+
"pay_basis"
|
|
122
|
+
],
|
|
123
|
+
"count_word": "karyawan"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"menu": {
|
|
127
|
+
"payroll_run": "Periode gaji: tanggal potong, bulan pajak, UMK, dan tanggal bayar. Centang Isi slip dari absen untuk membuat slip draft.",
|
|
128
|
+
"payslip": "Slip gaji per karyawan: hari hadir, telat, lembur, BPJS, PPh 21, kasbon, dan gaji bersih.",
|
|
129
|
+
"payroll_close": "Tutup periode gaji setelah semua slip diajukan: totalnya dikunci.",
|
|
130
|
+
"cash_advance": "Kasbon karyawan tanpa bunga, dicicil dari gaji tiap bulan sebesar potongan per bulannya.",
|
|
131
|
+
"cash_advance_balance": "Sisa kasbon tiap karyawan: sudah dipotong berapa dan tinggal berapa.",
|
|
132
|
+
"expense_claim": "Klaim biaya karyawan dengan foto struk, disetujui kepala outlet atau kantor pusat.",
|
|
133
|
+
"claim_settlement": "Klaim yang sudah disetujui: menunggu dibayar atau sudah dibayar, dan dengan apa.",
|
|
134
|
+
"claim_payment": "Bayar klaim karyawan dari kas atau bank.",
|
|
135
|
+
"expense_category": "Kategori klaim: akun bebannya, wajib struk atau tidak, dan batas per klaim.",
|
|
136
|
+
"worker": "Daftar karyawan yang dibayar, dengan jabatan dan upah harian.",
|
|
137
|
+
"payroll_profile": "Data gaji per karyawan: gaji pokok, tunjangan, status pajak, BPJS, dan rekening.",
|
|
138
|
+
"user": "Karyawan yang masuk ke Rangka dan absen dari HP.",
|
|
139
|
+
"attendance_period": "Rekap absen per periode; setelah diajukan jadi ringkasan per karyawan untuk slip gaji.",
|
|
140
|
+
"attendance_summary": "Ringkasan absen per karyawan: hari hadir, menit telat, dan jam lembur yang sah."
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/app.json
|
|
2
|
+
name: kasir
|
|
3
|
+
version: 1.1.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
|
+
shifts: ^1.0
|
|
23
|
+
# promotions (rangka-apps#103) is added per site (config.modules, contract 0032): the kernel lists its models in their
|
|
24
|
+
# own menu group, and the dashboard shows its widgets only where it is installed
|
|
25
|
+
optional:
|
|
26
|
+
promotions: ^1.0
|
|
27
|
+
# loyalty (rangka-apps#102): members, points and deposit at the counter, added per site like promotions
|
|
28
|
+
loyalty: ^1.0
|
|
29
|
+
dashboards: [kasir_ringkas]
|
|
30
|
+
roles: [cashier, head_office]
|
|
31
|
+
home: {model: pos_sale}
|
|
32
|
+
# contract 0030: the cashier lands on the cashier screen; head office opens it from the Kerja group
|
|
33
|
+
work:
|
|
34
|
+
- {screen: kasir, roles: [cashier], home: true}
|
|
35
|
+
- {screen: kasir, roles: [head_office]}
|
|
36
|
+
menu:
|
|
37
|
+
- group: {id: Kasir}
|
|
38
|
+
items: [pos_sale, pos_shift, pos_shift_close]
|
|
39
|
+
- group: {id: Barang dan harga}
|
|
40
|
+
items: [item, uom_conversion, recipe, outlet, stock_balance]
|
|
41
|
+
onboarding:
|
|
42
|
+
- ask: {id: 'Outlet mana yang mau pakai kasir Juragan?'}
|
|
43
|
+
sets: outlet.sales_source
|
|
44
|
+
- ask: {id: 'Siapa saja kasirnya, dan di outlet mana?'}
|
|
45
|
+
sets: seed.users
|
|
@@ -0,0 +1,33 @@
|
|
|
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}
|
|
21
|
+
# module promotions: what promos cost this period (promotion_ledger: post rows minus voided ones) and per promo
|
|
22
|
+
- {name: promo_cost, type: number, label: {id: Biaya promo}, description: {id: 'Potongan dan produk gratis dari promo, struk batal sudah dikurangi'}, model: promotion_ledger, aggregate: sum, field: amount, period: date, compact: true, span: 4, if: "app_installed('promotions')"}
|
|
23
|
+
- {name: promo_uses, type: number, label: {id: Struk dengan promo}, model: promotion_ledger, filter: "entry == 'post'", period: date, compact: true, span: 4, if: "app_installed('promotions')"}
|
|
24
|
+
- {name: promo_by_promotion, type: chart, chart: bar, label: {id: Biaya promo per promo}, model: promotion_ledger, group_by: promotion, aggregate: sum, field: amount, period: date, sort: -value, span: 6, if: "app_installed('promotions')"}
|
|
25
|
+
# module loyalty: members, what their open points would take off bills (off-book in v1) and the deposits held for
|
|
26
|
+
# them (the 2-1400 Uang muka pelanggan of deposits)
|
|
27
|
+
- {name: members, type: number, label: {id: Member aktif}, model: loyalty_account, filter: active, compact: true, span: 3, if: "app_installed('loyalty')"}
|
|
28
|
+
- {name: members_new, type: number, label: {id: Member baru}, model: loyalty_account, period: joined_on, compact: true, span: 3, if: "app_installed('loyalty')"}
|
|
29
|
+
- {name: points_liability, type: number, label: {id: Nilai poin beredar}, description: {id: 'Potongan yang akan diberikan bila semua poin ditukar hari ini (tidak dibukukan)'}, model: loyalty_account, aggregate: sum, field: points_worth, compact: true, span: 3, if: "app_installed('loyalty')"}
|
|
30
|
+
- {name: deposit_liability, type: number, label: {id: Saldo deposit pelanggan}, description: {id: 'Uang pelanggan yang dititipkan; sama dengan akun 2-1400 untuk deposit'}, model: loyalty_account, aggregate: sum, field: deposit_balance, compact: true, span: 3, if: "app_installed('loyalty')"}
|
|
31
|
+
- {name: deposit_topups, type: number, label: {id: Isi deposit}, model: deposit_topup, aggregate: sum, field: amount, filter: docstatus == 1, period: date, compact: true, span: 4, if: "app_installed('loyalty')"}
|
|
32
|
+
- {name: deposit_spent, type: number, label: {id: Belanja pakai deposit}, model: pos_sale, aggregate: sum, field: deposit_used, filter: docstatus == 1, period: date, compact: true, span: 4, if: "app_installed('loyalty')"}
|
|
33
|
+
- {name: points_redeemed, type: number, label: {id: Potongan dari poin}, model: pos_sale, aggregate: sum, field: points_discount, filter: docstatus == 1, period: date, compact: true, span: 4, if: "app_installed('loyalty')"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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, for what to set up after it is added, and in the studio interview to decide whether a counter business gets the cashier on its map."
|
|
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
|
+
## In the studio interview: when the cashier goes on the map
|
|
34
|
+
|
|
35
|
+
For Raka's consultant interview (`rangka-consult`, contract 0042). The deciding fact is the tools the owner uses
|
|
36
|
+
today and whether Juragan replaces them:
|
|
37
|
+
|
|
38
|
+
- A business that serves buyers at a counter (kedai, kafe, restoran, toko) and has **no cashier app yet**, or chose
|
|
39
|
+
**ganti penuh**, gets a piece `{kind: catalogue, ref: kasir}` at the payment stage. Tell the owner the cashier
|
|
40
|
+
screen runs on a tablet or a phone:
|
|
41
|
+
|
|
42
|
+
> Untuk meja kasir aku pasang Kasir. Layarnya jalan di tablet atau HP, jadi tidak perlu mesin kasir khusus.
|
|
43
|
+
|
|
44
|
+
- If the owner keeps their current cashier (**pendamping**, for example Moka or another POS), do not place kasir. Their
|
|
45
|
+
sales come in through the imports from the cashier they already use (check which imports exist with
|
|
46
|
+
`rangka_catalogue` / `rangka_meta` before naming one).
|
|
47
|
+
- If you do not know yet, ask what they use at the counter today before placing anything.
|
|
48
|
+
|
|
49
|
+
## Explaining it to an owner who already runs an app
|
|
50
|
+
|
|
51
|
+
Use the catalogue's `shares` and `adds` for `kasir`. On a site running Rangka F&B Cabang it shares items, outlets,
|
|
52
|
+
stock and users and adds only the cashier. Say it in their words:
|
|
53
|
+
|
|
54
|
+
> Kasir pakai barang, outlet dan stok yang sama dengan sistem kamu sekarang, jadi tiap penjualan langsung
|
|
55
|
+
> mengurangi stok outlet itu. Yang baru: layar kasir, sesi kas, dan struk.
|
|
56
|
+
|
|
57
|
+
## After the change set is applied: what the owner sets up
|
|
58
|
+
|
|
59
|
+
You cannot do these yourself: they are records, set by a person. Tell the owner, one step at a time.
|
|
60
|
+
|
|
61
|
+
1. **Which outlets use the cashier.** On a site that also records outlet sales (module `outlet_sales`, part of F&B
|
|
62
|
+
Cabang and Ritel Cabang), each outlet sells through one source only. For each outlet that will use Kasir, the
|
|
63
|
+
owner opens the outlet (menu *Barang dan harga* → *Outlet*) and sets *Sumber penjualan* to *Kasir Juragan*. Until
|
|
64
|
+
then a sale at that outlet is refused. Outlets that keep the daily form or a POS file stay as they are.
|
|
65
|
+
2. **Who the cashiers are.** Each cashier is a user with role `cashier` and their outlets. The owner adds them in the
|
|
66
|
+
app's member settings (or asks Juragan). Ask for names and outlets; never ask for passwords.
|
|
67
|
+
3. **Float (optional).** *Modal kas kasir* on the outlet: the cash a shift opens with. Empty means the cashier types
|
|
68
|
+
it when opening the shift.
|
|
69
|
+
4. **Menu items need prices and, for F&B, recipes,** so stock goes out correctly. If items have no recipe yet, say
|
|
70
|
+
that sales still work but only the item itself leaves stock.
|
|
71
|
+
|
|
72
|
+
The app's own onboarding asks the first two: "Outlet mana yang mau pakai kasir Juragan?" and "Siapa saja kasirnya,
|
|
73
|
+
dan di outlet mana?". Use the same questions.
|
|
74
|
+
|
|
75
|
+
## Where it is once applied
|
|
76
|
+
|
|
77
|
+
- Cashiers land on the cashier screen (`#/w/kasir`) when they sign in.
|
|
78
|
+
- Head office: menu *Kasir* (sales, shifts, shift closes) and the *Kerja* group for the cashier screen.
|
|
79
|
+
|
|
80
|
+
Point the owner there only after `rangka_changeset_status` says the change set is applied (`rangka-changesets`).
|
|
81
|
+
|
|
82
|
+
## Promo (module `promotions`, added next to the cashier)
|
|
83
|
+
|
|
84
|
+
When the owner asks for discounts, happy hour, "beli 2 gratis 1", a voucher code or coupons, the module
|
|
85
|
+
`promotions` adds them to the cashier (the change set names it in `config.modules`). What exists:
|
|
86
|
+
|
|
87
|
+
- **Item promos, applied by themselves:** percent off, rupiah off per item, or buy X get Y of the same item, for one
|
|
88
|
+
item or one category, at one outlet or all, between two dates, on some days and between two hours (happy hour;
|
|
89
|
+
it starts and ends within 5 minutes). If two promos hit one item, the higher *Prioritas* wins.
|
|
90
|
+
- **Bill promos, picked at the counter before paying:** percent off the bill with a cap, rupiah off the bill, or a
|
|
91
|
+
free product, each with a minimum spend. Optionally with one shared voucher code (and a use limit) or with
|
|
92
|
+
single-use coupons made in a batch (*Kiriman kupon*).
|
|
93
|
+
- **What it costs:** *Pemakaian promo* lists every use; the cashier dashboard shows the promo cost of the period.
|
|
94
|
+
|
|
95
|
+
Say clearly: promos are set up by the owner or head office, never by the cashier and never by you. You may explain
|
|
96
|
+
the kinds, suggest one in words ("Mau coba diskon 10% jam 14.00 sampai 16.00?") and open an empty *Promo* form for the
|
|
97
|
+
owner; you never save, switch on or change a promo, and you never decide a price or a discount. A promo the owner set
|
|
98
|
+
up does not wait for head office's approval; a cashier's own discount above 20% still does. A coupon is checked when
|
|
99
|
+
the sale is sent, and the cashier never sees voucher or coupon codes (the buyer brings them), so on a device that is
|
|
100
|
+
offline a voucher or coupon sale is checked once it is back online.
|
|
101
|
+
|
|
102
|
+
## Member, poin dan deposit (module `loyalty`, added next to the cashier)
|
|
103
|
+
|
|
104
|
+
`loyalty` gives the shop members (one per WhatsApp number), points, member tiers and a rupiah deposit. What exists:
|
|
105
|
+
- **Sign-up:** the cashier picks *Member* at the counter's checkout and types a name and WhatsApp number ("Buat member
|
|
106
|
+
baru"); a member starts in the base tier. Head office can sign members up from *Member* too.
|
|
107
|
+
- **Points:** earned on every paid receipt of a member (the tier's *Belanja per 1 poin* and multiplier), redeemed at
|
|
108
|
+
the checkout with *Tukar poin* as a discount (the tier's point value, at most its share of the bill), given back
|
|
109
|
+
when the receipt is voided, all gone after the tier's months without a purchase (12 by default).
|
|
110
|
+
- **Tiers:** a member moves up as soon as its spend this year reaches a higher tier; on 1 January every member is
|
|
111
|
+
reviewed on last year's spend. A member discount and a bill promo never add up: the larger one applies.
|
|
112
|
+
- **Deposit:** *Isi deposit* at the counter (cash or QRIS on the cashier's shift) or at the desk (transfer); *Bayar
|
|
113
|
+
pakai deposit* at the checkout pays part or all of a receipt; invoices can be paid with method *Saldo deposit*.
|
|
114
|
+
Head office pays a deposit back with *Pengembalian deposit* (above Rp 1.000.000 finance or the owner approves).
|
|
115
|
+
- **Receipt and WhatsApp:** the receipt shows points earned and left and the deposit left; *Pesan struk dan poin WA*
|
|
116
|
+
opens WhatsApp on the shop's own phone with the text filled in.
|
|
117
|
+
|
|
118
|
+
Say clearly: you may read a member's points and deposit and explain them ("Poin Ibu Laras 1.250, hangus 20 Nov 2027
|
|
119
|
+
kalau tidak belanja"), and suggest tiers in words; you never change points, deposits or tiers, never sign a member up
|
|
120
|
+
and never refund. Points and deposit need a connection at the counter.
|