@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,27 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: subscription_status_log
|
|
3
|
+
label: {id: Riwayat status layanan, en: Service status log}
|
|
4
|
+
icon: history
|
|
5
|
+
naming: RSL-{YYYY}-{######}
|
|
6
|
+
title_field: subscription
|
|
7
|
+
# One row per change of a subscription's service status, written by the dunning flows. The suspended rows of today are
|
|
8
|
+
# the list of connections to isolate (by hand until the router connector exists; rangka-edge D6).
|
|
9
|
+
permissions:
|
|
10
|
+
# created only by the dunning flows (every field read-only), as whoever submits a payment
|
|
11
|
+
- {role: finance_manager, read: true, create: true, export: true, print: true}
|
|
12
|
+
- {role: sales_manager, read: true, create: true}
|
|
13
|
+
- {role: collector, read: true}
|
|
14
|
+
fields:
|
|
15
|
+
- {name: subscription, type: link, to: subscription, label: {id: Langganan}, required: true, read_only: true, in_list: true}
|
|
16
|
+
- {name: customer_name, type: data, label: {id: Pelanggan}, compute: subscription.customer_name, in_list: true}
|
|
17
|
+
- {name: collector, type: link, to: user, label: {id: Penagih}, compute: subscription.collector}
|
|
18
|
+
- {name: changed_on, type: date, label: {id: Tanggal}, required: true, read_only: true, in_list: true}
|
|
19
|
+
- {name: from_status, type: data, label: {id: Dari}, read_only: true, in_list: true}
|
|
20
|
+
- {name: to_status, type: data, label: {id: Menjadi}, read_only: true, in_list: true}
|
|
21
|
+
- {name: overdue_since, type: date, label: {id: Telat sejak}, read_only: true}
|
|
22
|
+
- {name: overdue_amount, type: currency, label: {id: Lewat jatuh tempo}, read_only: true}
|
|
23
|
+
views:
|
|
24
|
+
list:
|
|
25
|
+
columns: [changed_on, customer_name, from_status, to_status, overdue_amount]
|
|
26
|
+
filters: [subscription, to_status]
|
|
27
|
+
sort: -changed_on
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
|
+
name: subscriptions
|
|
3
|
+
version: 1.1.0
|
|
4
|
+
title: {id: Langganan, en: Subscriptions}
|
|
5
|
+
summary:
|
|
6
|
+
id: Paket langganan, tagihan tiap periode, area layanan dan setoran penagih.
|
|
7
|
+
en: Subscription plans, bills each period, service areas and collector deposits.
|
|
8
|
+
category: sales
|
|
9
|
+
icon: repeat-line
|
|
10
|
+
# Businesses that bill the same client every period: a digital agency's retainers, an RT/RW net, a reseller of a POS
|
|
11
|
+
# app. Plans with a monthly price; one subscription per client with its own cycle (monthly, 3 months, yearly or N
|
|
12
|
+
# months paid in advance), start date and anchor (every start date, or the 1st with the first period pro-rated);
|
|
13
|
+
# extra lines per period; bills made every day by a scheduled flow, each a draft sales invoice, so payment, reminders,
|
|
14
|
+
# aging, tax and bank matching are the money rail's; the service status (active, late, suspended, stopped) moved by a
|
|
15
|
+
# dunning ladder; areas and collectors, the cash they collect in the field and their deposits into the till; a monthly
|
|
16
|
+
# recap for the collection rate. Kernel: contract 0031 (add_months, days_between, for_each). Research and plan:
|
|
17
|
+
# rangka reports/Peta kebutuhan lima bisnis UMKM.md (langganan), lima-bisnis-plan.md §2.5, plans/layar-kerja.md A3.
|
|
18
|
+
requires: {rangka: '>=0.5', users: ^1.0, contacts: ^1.0, catalogue: ^1.0, invoicing: ^1.0, payments: ^1.0, procurement: ^1.0}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/role.json
|
|
2
|
+
name: collector
|
|
3
|
+
label: {id: Penagih}
|
|
4
|
+
description: {id: 'Melihat langganan di area yang dia pegang dan mencatat uang tunai yang dia tagih di lapangan'}
|
|
5
|
+
# Contract 0010 §5: areas, subscriptions and field collections whose collector is the member's own user record (rangka
|
|
6
|
+
# user add --record). A collector reads no invoice: what a subscription still owes is on the subscription.
|
|
7
|
+
scope: {field: collector, from: '[user.name]'}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: catat_tagih
|
|
3
|
+
type: entry
|
|
4
|
+
label: {id: Catat uang tertagih, en: Record cash collected}
|
|
5
|
+
description: {id: 'Catat uang yang kamu terima dari pelanggan saat menagih.'}
|
|
6
|
+
icon: wallet
|
|
7
|
+
# Cash taken at the subscriber's place (contract 0030 §2 entry): one field_collection. Opened from rute_tagih the
|
|
8
|
+
# subscription is filled (stop); opened alone the collector picks it. The flows field_collection_cap_* refuse more
|
|
9
|
+
# than what the subscription still owes and a subscriber of another area; the cash reaches the books through the
|
|
10
|
+
# collector's deposit (collector_deposit), checked by finance.
|
|
11
|
+
roles: [collector]
|
|
12
|
+
device: phone
|
|
13
|
+
offline: queue
|
|
14
|
+
entry:
|
|
15
|
+
model: field_collection
|
|
16
|
+
fields: [subscription, amount, notes]
|
|
17
|
+
set: {subscription: stop.name, collector: user.name}
|
|
18
|
+
submit: false
|
|
19
|
+
again: false
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: rute_tagih
|
|
3
|
+
type: route
|
|
4
|
+
label: {id: Rute tagih, en: Collection route}
|
|
5
|
+
description: {id: 'Pelanggan yang perlu ditagih hari ini; check in di rumahnya, lalu catat uang tertagih.'}
|
|
6
|
+
icon: map
|
|
7
|
+
# The collector's day (plans/layar-kerja.md §3 #3, contract 0030 §2 route): subscribers of their area (row scope)
|
|
8
|
+
# who still owe more than what is already deposited and waiting, with the distance from the phone; check in at the
|
|
9
|
+
# place (collection_visit with position and photo), then record the cash taken (catat_tagih, prefilled with the
|
|
10
|
+
# subscription). Money moves only through field_collection and the deposit, as before; the screen writes nothing else.
|
|
11
|
+
# A stop stays on the list until its cash is deposited (unpaid_amount and deposit_waiting change at the deposit).
|
|
12
|
+
roles: [collector]
|
|
13
|
+
device: phone
|
|
14
|
+
needs: [location, photo]
|
|
15
|
+
route:
|
|
16
|
+
stops:
|
|
17
|
+
model: subscription
|
|
18
|
+
filter: "unpaid_amount > deposit_waiting"
|
|
19
|
+
sort: area
|
|
20
|
+
title: customer_name
|
|
21
|
+
subtitle: unpaid_amount
|
|
22
|
+
address: address
|
|
23
|
+
location: location
|
|
24
|
+
visit: {model: collection_visit, link: subscription, set: {collector: user.name}, location: pos, photo: photo}
|
|
25
|
+
actions:
|
|
26
|
+
- {label: {id: Catat uang tertagih, en: Record cash}, screen: catat_tagih}
|
|
@@ -11,6 +11,7 @@ permissions:
|
|
|
11
11
|
- {role: project_admin, read: true, create: true, write: true, print: true}
|
|
12
12
|
- {role: head_office, read: true, create: true, write: true, print: true}
|
|
13
13
|
- {role: outlet_staff, read: true}
|
|
14
|
+
- {role: warehouse_staff, read: true}
|
|
14
15
|
fields:
|
|
15
16
|
- name: code
|
|
16
17
|
type: data
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
name: tax_id
|
|
3
3
|
version: 1.0.0
|
|
4
4
|
title: {id: Pajak Indonesia, en: Indonesian taxes}
|
|
5
|
+
summary:
|
|
6
|
+
id: Kode pajak Indonesia seperti PPN dan PPh untuk dokumen penjualan dan pembelian.
|
|
7
|
+
en: Indonesian tax codes such as PPN and PPh for sales and purchase documents.
|
|
8
|
+
category: tax
|
|
9
|
+
icon: percent-line
|
|
5
10
|
requires: {rangka: '>=0.5', users: ^1.0}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# Daily summary for the owner: 0 7 * * * (scheduler.timezone), and by the owner from the flow list. One business_summary record per
|
|
3
|
+
# period (summary_key is unique: a second run for the same period makes and tells nothing), then one notice to the
|
|
4
|
+
# owner (daily_summary, contract 0066) that links to it. The record keeps the exact figures; the notice text is the
|
|
5
|
+
# record's `message` (short amounts), so the same text works for mail now and WhatsApp later.
|
|
6
|
+
# - period: the day before the run day
|
|
7
|
+
# - sales: submitted sales invoices (grand total, before sales returns), cashier receipts and daily outlet sales of the period. An outlet
|
|
8
|
+
# and day has one sales source (outlets/outlet_day), so receipts and daily sales never count the same sale twice.
|
|
9
|
+
# - money in: submitted customer payments (not "Potong retur", method sales_return: no money moves), cashier receipts (cash, QRIS or card, all taken at the counter) and daily
|
|
10
|
+
# takings of the period.
|
|
11
|
+
# - invoices: submitted, money still owed, due within 7 days from the run day, or already overdue.
|
|
12
|
+
# - low stock: open stock_reorder rows (stock/stock_low_alert).
|
|
13
|
+
# Each source is read only when its module is installed (app_installed is checked first, so the variable of a skipped
|
|
14
|
+
# step is never read). The owner switches a summary off in the one summary_setting record (made on the first run with
|
|
15
|
+
# every summary on), and its mail in Pengaturan › Notifikasi. Digest mails are not a kernel feature (0066 "Not in this
|
|
16
|
+
# contract"), so this is an app flow.
|
|
17
|
+
# The run day is today, or event.as_of (YYYY-MM-DD) when the owner runs the flow by hand for another day (and in tests).
|
|
18
|
+
name: summary_daily
|
|
19
|
+
label: {id: Ringkasan harian untuk pemilik, en: Daily summary for the owner}
|
|
20
|
+
description: {id: 'Tiap pagi jam 07.00, pemilik menerima ringkasan kemarin: penjualan, uang masuk, faktur yang jatuh tempo dan stok yang menipis.'}
|
|
21
|
+
schedule: '0 7 * * *'
|
|
22
|
+
steps:
|
|
23
|
+
- {find: summary_setting, as: cfg}
|
|
24
|
+
- create: summary_setting
|
|
25
|
+
if: cfg == null
|
|
26
|
+
set: {key: "'usaha'"}
|
|
27
|
+
as: cfg
|
|
28
|
+
- find: business_summary
|
|
29
|
+
where: "summary_key == 'daily|' + string(('as_of' in event ? event.as_of : today()) - duration(1))"
|
|
30
|
+
as: old
|
|
31
|
+
- find_all: sales_invoice
|
|
32
|
+
if: "cfg.daily && old == null && app_installed('invoicing')"
|
|
33
|
+
where: "docstatus == 1 && posting_date == ('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
34
|
+
as: inv
|
|
35
|
+
- find_all: pos_sale
|
|
36
|
+
if: "cfg.daily && old == null && app_installed('pos')"
|
|
37
|
+
where: "docstatus == 1 && date == ('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
38
|
+
as: receipts
|
|
39
|
+
- find_all: outlet_sales
|
|
40
|
+
if: "cfg.daily && old == null && app_installed('outlet_sales')"
|
|
41
|
+
where: "docstatus == 1 && date == ('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
42
|
+
as: daily
|
|
43
|
+
- find_all: outlet_takings
|
|
44
|
+
if: "cfg.daily && old == null && app_installed('outlet_sales')"
|
|
45
|
+
where: "docstatus == 1 && date == ('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
46
|
+
as: takings
|
|
47
|
+
- find_all: payment
|
|
48
|
+
if: "cfg.daily && old == null && app_installed('payments')"
|
|
49
|
+
where: "docstatus == 1 && direction == 'receive' && method != 'sales_return' && payment_date == ('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
50
|
+
as: paid
|
|
51
|
+
- find_all: sales_invoice
|
|
52
|
+
if: "cfg.daily && old == null && app_installed('invoicing')"
|
|
53
|
+
where: "docstatus == 1 && due_date <= ('as_of' in event ? event.as_of : today()) + duration(6) && due_date != '' && outstanding > 0"
|
|
54
|
+
as: owed
|
|
55
|
+
- find_all: stock_reorder
|
|
56
|
+
if: "cfg.daily && old == null && app_installed('stock')"
|
|
57
|
+
where: open
|
|
58
|
+
as: low
|
|
59
|
+
- create: business_summary
|
|
60
|
+
if: "cfg.daily && old == null"
|
|
61
|
+
set:
|
|
62
|
+
period: "'daily'"
|
|
63
|
+
date_from: "('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
64
|
+
date_to: "('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
65
|
+
summary_key: "'daily|' + string(('as_of' in event ? event.as_of : today()) - duration(1))"
|
|
66
|
+
setting: cfg.name
|
|
67
|
+
sales_total: "(app_installed('invoicing') ? inv.map(i, i.grand_total).sum() : 0) + (app_installed('pos') ? receipts.map(i, i.grand_total).sum() : 0) + (app_installed('outlet_sales') ? daily.map(i, i.net_total).sum() : 0)"
|
|
68
|
+
sales_count: "(app_installed('invoicing') ? size(inv) : 0) + (app_installed('pos') ? size(receipts) : 0) + (app_installed('outlet_sales') ? size(daily) : 0)"
|
|
69
|
+
cash_in: "(app_installed('payments') ? paid.map(i, i.amount).sum() : 0) + (app_installed('pos') ? receipts.map(i, i.grand_total).sum() : 0) + (app_installed('outlet_sales') ? takings.map(i, i.received_total).sum() : 0)"
|
|
70
|
+
due_count: "app_installed('invoicing') ? owed.filter(i, i.due_date >= ('as_of' in event ? event.as_of : today())).size() : 0"
|
|
71
|
+
due_total: "app_installed('invoicing') ? owed.filter(i, i.due_date >= ('as_of' in event ? event.as_of : today())).map(i, i.outstanding).sum() : 0"
|
|
72
|
+
overdue_count: "app_installed('invoicing') ? owed.filter(i, i.due_date < ('as_of' in event ? event.as_of : today())).size() : 0"
|
|
73
|
+
overdue_total: "app_installed('invoicing') ? owed.filter(i, i.due_date < ('as_of' in event ? event.as_of : today())).map(i, i.outstanding).sum() : 0"
|
|
74
|
+
low_stock_count: "app_installed('stock') ? size(low) : 0"
|
|
75
|
+
as: s
|
|
76
|
+
- notify: owner
|
|
77
|
+
if: "cfg.daily && old == null"
|
|
78
|
+
notice: daily_summary
|
|
79
|
+
channel: email
|
|
80
|
+
record: s
|
|
81
|
+
id: "'daily:' + string(s.date_to)"
|
|
82
|
+
title: '{s.title}'
|
|
83
|
+
template: '{s.message}'
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# Monthly summary for the owner: 10 7 1 * * (scheduler.timezone), and by the owner from the flow list. One business_summary record per
|
|
3
|
+
# period (summary_key is unique: a second run for the same period makes and tells nothing), then one notice to the
|
|
4
|
+
# owner (monthly_summary, contract 0066) that links to it. The record keeps the exact figures; the notice text is the
|
|
5
|
+
# record's `message` (short amounts), so the same text works for mail now and WhatsApp later.
|
|
6
|
+
# - period: one month back from the run day (run on the 1st: the whole previous month)
|
|
7
|
+
# - sales: submitted sales invoices (grand total, before sales returns), cashier receipts and daily outlet sales of the period. An outlet
|
|
8
|
+
# and day has one sales source (outlets/outlet_day), so receipts and daily sales never count the same sale twice.
|
|
9
|
+
# - money in: submitted customer payments (not "Potong retur", method sales_return: no money moves), cashier receipts (cash, QRIS or card, all taken at the counter) and daily
|
|
10
|
+
# takings of the period.
|
|
11
|
+
# - invoices: submitted, money still owed, due within 7 days from the run day, or already overdue.
|
|
12
|
+
# - low stock: open stock_reorder rows (stock/stock_low_alert).
|
|
13
|
+
# Each source is read only when its module is installed (app_installed is checked first, so the variable of a skipped
|
|
14
|
+
# step is never read). The owner switches a summary off in the one summary_setting record (made on the first run with
|
|
15
|
+
# every summary on), and its mail in Pengaturan › Notifikasi. Digest mails are not a kernel feature (0066 "Not in this
|
|
16
|
+
# contract"), so this is an app flow.
|
|
17
|
+
# The run day is today, or event.as_of (YYYY-MM-DD) when the owner runs the flow by hand for another day (and in tests).
|
|
18
|
+
name: summary_monthly
|
|
19
|
+
label: {id: Ringkasan bulanan untuk pemilik, en: Monthly summary for the owner}
|
|
20
|
+
description: {id: 'Tiap tanggal 1, pemilik menerima ringkasan sebulan terakhir: penjualan, uang masuk, faktur yang jatuh tempo dan stok yang menipis.'}
|
|
21
|
+
schedule: '10 7 1 * *'
|
|
22
|
+
steps:
|
|
23
|
+
- {find: summary_setting, as: cfg}
|
|
24
|
+
- create: summary_setting
|
|
25
|
+
if: cfg == null
|
|
26
|
+
set: {key: "'usaha'"}
|
|
27
|
+
as: cfg
|
|
28
|
+
- find: business_summary
|
|
29
|
+
where: "summary_key == 'monthly|' + string(('as_of' in event ? event.as_of : today()) - duration(1))"
|
|
30
|
+
as: old
|
|
31
|
+
- find_all: sales_invoice
|
|
32
|
+
if: "cfg.monthly && old == null && app_installed('invoicing')"
|
|
33
|
+
where: "docstatus == 1 && posting_date >= add_months(('as_of' in event ? event.as_of : today()), -1) && posting_date < ('as_of' in event ? event.as_of : today())"
|
|
34
|
+
as: inv
|
|
35
|
+
- find_all: pos_sale
|
|
36
|
+
if: "cfg.monthly && old == null && app_installed('pos')"
|
|
37
|
+
where: "docstatus == 1 && date >= add_months(('as_of' in event ? event.as_of : today()), -1) && date < ('as_of' in event ? event.as_of : today())"
|
|
38
|
+
as: receipts
|
|
39
|
+
- find_all: outlet_sales
|
|
40
|
+
if: "cfg.monthly && old == null && app_installed('outlet_sales')"
|
|
41
|
+
where: "docstatus == 1 && date >= add_months(('as_of' in event ? event.as_of : today()), -1) && date < ('as_of' in event ? event.as_of : today())"
|
|
42
|
+
as: daily
|
|
43
|
+
- find_all: outlet_takings
|
|
44
|
+
if: "cfg.monthly && old == null && app_installed('outlet_sales')"
|
|
45
|
+
where: "docstatus == 1 && date >= add_months(('as_of' in event ? event.as_of : today()), -1) && date < ('as_of' in event ? event.as_of : today())"
|
|
46
|
+
as: takings
|
|
47
|
+
- find_all: payment
|
|
48
|
+
if: "cfg.monthly && old == null && app_installed('payments')"
|
|
49
|
+
where: "docstatus == 1 && direction == 'receive' && method != 'sales_return' && payment_date >= add_months(('as_of' in event ? event.as_of : today()), -1) && payment_date < ('as_of' in event ? event.as_of : today())"
|
|
50
|
+
as: paid
|
|
51
|
+
- find_all: sales_invoice
|
|
52
|
+
if: "cfg.monthly && old == null && app_installed('invoicing')"
|
|
53
|
+
where: "docstatus == 1 && due_date <= ('as_of' in event ? event.as_of : today()) + duration(6) && due_date != '' && outstanding > 0"
|
|
54
|
+
as: owed
|
|
55
|
+
- find_all: stock_reorder
|
|
56
|
+
if: "cfg.monthly && old == null && app_installed('stock')"
|
|
57
|
+
where: open
|
|
58
|
+
as: low
|
|
59
|
+
- create: business_summary
|
|
60
|
+
if: "cfg.monthly && old == null"
|
|
61
|
+
set:
|
|
62
|
+
period: "'monthly'"
|
|
63
|
+
date_from: "add_months(('as_of' in event ? event.as_of : today()), -1)"
|
|
64
|
+
date_to: "('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
65
|
+
summary_key: "'monthly|' + string(('as_of' in event ? event.as_of : today()) - duration(1))"
|
|
66
|
+
setting: cfg.name
|
|
67
|
+
sales_total: "(app_installed('invoicing') ? inv.map(i, i.grand_total).sum() : 0) + (app_installed('pos') ? receipts.map(i, i.grand_total).sum() : 0) + (app_installed('outlet_sales') ? daily.map(i, i.net_total).sum() : 0)"
|
|
68
|
+
sales_count: "(app_installed('invoicing') ? size(inv) : 0) + (app_installed('pos') ? size(receipts) : 0) + (app_installed('outlet_sales') ? size(daily) : 0)"
|
|
69
|
+
cash_in: "(app_installed('payments') ? paid.map(i, i.amount).sum() : 0) + (app_installed('pos') ? receipts.map(i, i.grand_total).sum() : 0) + (app_installed('outlet_sales') ? takings.map(i, i.received_total).sum() : 0)"
|
|
70
|
+
due_count: "app_installed('invoicing') ? owed.filter(i, i.due_date >= ('as_of' in event ? event.as_of : today())).size() : 0"
|
|
71
|
+
due_total: "app_installed('invoicing') ? owed.filter(i, i.due_date >= ('as_of' in event ? event.as_of : today())).map(i, i.outstanding).sum() : 0"
|
|
72
|
+
overdue_count: "app_installed('invoicing') ? owed.filter(i, i.due_date < ('as_of' in event ? event.as_of : today())).size() : 0"
|
|
73
|
+
overdue_total: "app_installed('invoicing') ? owed.filter(i, i.due_date < ('as_of' in event ? event.as_of : today())).map(i, i.outstanding).sum() : 0"
|
|
74
|
+
low_stock_count: "app_installed('stock') ? size(low) : 0"
|
|
75
|
+
as: s
|
|
76
|
+
- notify: owner
|
|
77
|
+
if: "cfg.monthly && old == null"
|
|
78
|
+
notice: monthly_summary
|
|
79
|
+
channel: email
|
|
80
|
+
record: s
|
|
81
|
+
id: "'monthly:' + string(s.date_to)"
|
|
82
|
+
title: '{s.title}'
|
|
83
|
+
template: '{s.message}'
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# Weekly summary for the owner: 5 7 * * 1 (scheduler.timezone), and by the owner from the flow list. One business_summary record per
|
|
3
|
+
# period (summary_key is unique: a second run for the same period makes and tells nothing), then one notice to the
|
|
4
|
+
# owner (weekly_summary, contract 0066) that links to it. The record keeps the exact figures; the notice text is the
|
|
5
|
+
# record's `message` (short amounts), so the same text works for mail now and WhatsApp later.
|
|
6
|
+
# - period: the 7 days before the run day (run on Monday: Monday to Sunday of last week)
|
|
7
|
+
# - sales: submitted sales invoices (grand total, before sales returns), cashier receipts and daily outlet sales of the period. An outlet
|
|
8
|
+
# and day has one sales source (outlets/outlet_day), so receipts and daily sales never count the same sale twice.
|
|
9
|
+
# - money in: submitted customer payments (not "Potong retur", method sales_return: no money moves), cashier receipts (cash, QRIS or card, all taken at the counter) and daily
|
|
10
|
+
# takings of the period.
|
|
11
|
+
# - invoices: submitted, money still owed, due within 7 days from the run day, or already overdue.
|
|
12
|
+
# - low stock: open stock_reorder rows (stock/stock_low_alert).
|
|
13
|
+
# Each source is read only when its module is installed (app_installed is checked first, so the variable of a skipped
|
|
14
|
+
# step is never read). The owner switches a summary off in the one summary_setting record (made on the first run with
|
|
15
|
+
# every summary on), and its mail in Pengaturan › Notifikasi. Digest mails are not a kernel feature (0066 "Not in this
|
|
16
|
+
# contract"), so this is an app flow.
|
|
17
|
+
# The run day is today, or event.as_of (YYYY-MM-DD) when the owner runs the flow by hand for another day (and in tests).
|
|
18
|
+
name: summary_weekly
|
|
19
|
+
label: {id: Ringkasan mingguan untuk pemilik, en: Weekly summary for the owner}
|
|
20
|
+
description: {id: 'Tiap Senin pagi, pemilik menerima ringkasan 7 hari terakhir: penjualan, uang masuk, faktur yang jatuh tempo dan stok yang menipis.'}
|
|
21
|
+
schedule: '5 7 * * 1'
|
|
22
|
+
steps:
|
|
23
|
+
- {find: summary_setting, as: cfg}
|
|
24
|
+
- create: summary_setting
|
|
25
|
+
if: cfg == null
|
|
26
|
+
set: {key: "'usaha'"}
|
|
27
|
+
as: cfg
|
|
28
|
+
- find: business_summary
|
|
29
|
+
where: "summary_key == 'weekly|' + string(('as_of' in event ? event.as_of : today()) - duration(1))"
|
|
30
|
+
as: old
|
|
31
|
+
- find_all: sales_invoice
|
|
32
|
+
if: "cfg.weekly && old == null && app_installed('invoicing')"
|
|
33
|
+
where: "docstatus == 1 && posting_date >= ('as_of' in event ? event.as_of : today()) - duration(7) && posting_date < ('as_of' in event ? event.as_of : today())"
|
|
34
|
+
as: inv
|
|
35
|
+
- find_all: pos_sale
|
|
36
|
+
if: "cfg.weekly && old == null && app_installed('pos')"
|
|
37
|
+
where: "docstatus == 1 && date >= ('as_of' in event ? event.as_of : today()) - duration(7) && date < ('as_of' in event ? event.as_of : today())"
|
|
38
|
+
as: receipts
|
|
39
|
+
- find_all: outlet_sales
|
|
40
|
+
if: "cfg.weekly && old == null && app_installed('outlet_sales')"
|
|
41
|
+
where: "docstatus == 1 && date >= ('as_of' in event ? event.as_of : today()) - duration(7) && date < ('as_of' in event ? event.as_of : today())"
|
|
42
|
+
as: daily
|
|
43
|
+
- find_all: outlet_takings
|
|
44
|
+
if: "cfg.weekly && old == null && app_installed('outlet_sales')"
|
|
45
|
+
where: "docstatus == 1 && date >= ('as_of' in event ? event.as_of : today()) - duration(7) && date < ('as_of' in event ? event.as_of : today())"
|
|
46
|
+
as: takings
|
|
47
|
+
- find_all: payment
|
|
48
|
+
if: "cfg.weekly && old == null && app_installed('payments')"
|
|
49
|
+
where: "docstatus == 1 && direction == 'receive' && method != 'sales_return' && payment_date >= ('as_of' in event ? event.as_of : today()) - duration(7) && payment_date < ('as_of' in event ? event.as_of : today())"
|
|
50
|
+
as: paid
|
|
51
|
+
- find_all: sales_invoice
|
|
52
|
+
if: "cfg.weekly && old == null && app_installed('invoicing')"
|
|
53
|
+
where: "docstatus == 1 && due_date <= ('as_of' in event ? event.as_of : today()) + duration(6) && due_date != '' && outstanding > 0"
|
|
54
|
+
as: owed
|
|
55
|
+
- find_all: stock_reorder
|
|
56
|
+
if: "cfg.weekly && old == null && app_installed('stock')"
|
|
57
|
+
where: open
|
|
58
|
+
as: low
|
|
59
|
+
- create: business_summary
|
|
60
|
+
if: "cfg.weekly && old == null"
|
|
61
|
+
set:
|
|
62
|
+
period: "'weekly'"
|
|
63
|
+
date_from: "('as_of' in event ? event.as_of : today()) - duration(7)"
|
|
64
|
+
date_to: "('as_of' in event ? event.as_of : today()) - duration(1)"
|
|
65
|
+
summary_key: "'weekly|' + string(('as_of' in event ? event.as_of : today()) - duration(1))"
|
|
66
|
+
setting: cfg.name
|
|
67
|
+
sales_total: "(app_installed('invoicing') ? inv.map(i, i.grand_total).sum() : 0) + (app_installed('pos') ? receipts.map(i, i.grand_total).sum() : 0) + (app_installed('outlet_sales') ? daily.map(i, i.net_total).sum() : 0)"
|
|
68
|
+
sales_count: "(app_installed('invoicing') ? size(inv) : 0) + (app_installed('pos') ? size(receipts) : 0) + (app_installed('outlet_sales') ? size(daily) : 0)"
|
|
69
|
+
cash_in: "(app_installed('payments') ? paid.map(i, i.amount).sum() : 0) + (app_installed('pos') ? receipts.map(i, i.grand_total).sum() : 0) + (app_installed('outlet_sales') ? takings.map(i, i.received_total).sum() : 0)"
|
|
70
|
+
due_count: "app_installed('invoicing') ? owed.filter(i, i.due_date >= ('as_of' in event ? event.as_of : today())).size() : 0"
|
|
71
|
+
due_total: "app_installed('invoicing') ? owed.filter(i, i.due_date >= ('as_of' in event ? event.as_of : today())).map(i, i.outstanding).sum() : 0"
|
|
72
|
+
overdue_count: "app_installed('invoicing') ? owed.filter(i, i.due_date < ('as_of' in event ? event.as_of : today())).size() : 0"
|
|
73
|
+
overdue_total: "app_installed('invoicing') ? owed.filter(i, i.due_date < ('as_of' in event ? event.as_of : today())).map(i, i.outstanding).sum() : 0"
|
|
74
|
+
low_stock_count: "app_installed('stock') ? size(low) : 0"
|
|
75
|
+
as: s
|
|
76
|
+
- notify: owner
|
|
77
|
+
if: "cfg.weekly && old == null"
|
|
78
|
+
notice: weekly_summary
|
|
79
|
+
channel: email
|
|
80
|
+
record: s
|
|
81
|
+
id: "'weekly:' + string(s.date_to)"
|
|
82
|
+
title: '{s.title}'
|
|
83
|
+
template: '{s.message}'
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
# One record per summary sent to the owner (flows summary_daily, summary_weekly, summary_monthly): the figures of the
|
|
3
|
+
# period as they were on the morning of the run, kept so the notice can link to them and the owner can look back.
|
|
4
|
+
# Written only by those flows; every field is read_only and no role but the owner reads it (the figures are the whole
|
|
5
|
+
# business's sales and money). summary_key (period|date_to) is unique: one summary per period.
|
|
6
|
+
# `message` is the text of the notice: amounts shortened (12,5 juta; 850 ribu) so it stays a short message for mail
|
|
7
|
+
# now and WhatsApp later; the currency fields hold the exact figures.
|
|
8
|
+
name: business_summary
|
|
9
|
+
label: {id: Ringkasan usaha, en: Business summary}
|
|
10
|
+
icon: bar-chart-box-line
|
|
11
|
+
naming: RKS-{YYYY}-{#####}
|
|
12
|
+
title_field: title
|
|
13
|
+
# An empty list: the model is closed to every role, so only the owner (and the flows the kernel starts) reads it.
|
|
14
|
+
permissions: []
|
|
15
|
+
fields:
|
|
16
|
+
- name: period
|
|
17
|
+
type: select
|
|
18
|
+
label: {id: Jenis ringkasan}
|
|
19
|
+
required: true
|
|
20
|
+
read_only: true
|
|
21
|
+
in_list: true
|
|
22
|
+
options:
|
|
23
|
+
- {value: daily, label: {id: Harian}}
|
|
24
|
+
- {value: weekly, label: {id: Mingguan}}
|
|
25
|
+
- {value: monthly, label: {id: Bulanan}}
|
|
26
|
+
- {name: date_from, type: date, label: {id: Dari tanggal}, read_only: true, in_list: true}
|
|
27
|
+
- {name: date_to, type: date, label: {id: Sampai tanggal}, read_only: true, in_list: true}
|
|
28
|
+
- {name: summary_key, type: data, label: {id: Kunci}, required: true, unique: true, read_only: true}
|
|
29
|
+
- {name: title, type: data, label: {id: Judul}, compute: "(period == 'daily' ? 'Ringkasan harian ' : (period == 'weekly' ? 'Ringkasan mingguan sampai ' : 'Ringkasan bulanan sampai ')) + string(date_to)"}
|
|
30
|
+
- {name: sales_total, type: currency, label: {id: Penjualan}, read_only: true, in_list: true}
|
|
31
|
+
- {name: sales_count, type: int, label: {id: Transaksi tercatat}, read_only: true, in_list: true}
|
|
32
|
+
- {name: cash_in, type: currency, label: {id: Uang masuk}, read_only: true, in_list: true}
|
|
33
|
+
- {name: due_count, type: int, label: {id: Faktur jatuh tempo 7 hari ke depan}, read_only: true, depends_on: app_installed('invoicing')}
|
|
34
|
+
- {name: due_total, type: currency, label: {id: Sisa tagihan jatuh tempo 7 hari ke depan}, read_only: true, depends_on: app_installed('invoicing')}
|
|
35
|
+
- {name: overdue_count, type: int, label: {id: Faktur lewat jatuh tempo}, read_only: true, depends_on: app_installed('invoicing')}
|
|
36
|
+
- {name: overdue_total, type: currency, label: {id: Sisa tagihan lewat jatuh tempo}, read_only: true, depends_on: app_installed('invoicing')}
|
|
37
|
+
- {name: low_stock_count, type: int, label: {id: Barang di bawah batas stok minimum}, read_only: true, depends_on: app_installed('stock')}
|
|
38
|
+
- name: message
|
|
39
|
+
type: text
|
|
40
|
+
label: {id: Ringkasan}
|
|
41
|
+
compute: >-
|
|
42
|
+
(period == 'daily' ? 'Kemarin' : (period == 'weekly' ? '7 hari terakhir' : 'Sebulan terakhir')) + ': penjualan Rp ' + (int(sales_total) >= 1000000000 ? string(int(sales_total) / 1000000000) + ',' + string(int(sales_total) / 100000000 % 10) + ' miliar' : (int(sales_total) >= 1000000 ? string(int(sales_total) / 1000000) + ',' + string(int(sales_total) / 100000 % 10) + ' juta' : (int(sales_total) >= 1000 ? string(int(sales_total) / 1000) + ' ribu' : string(int(sales_total))))) + ' dari ' + string(sales_count) + ' transaksi, uang masuk Rp ' + (int(cash_in) >= 1000000000 ? string(int(cash_in) / 1000000000) + ',' + string(int(cash_in) / 100000000 % 10) + ' miliar' : (int(cash_in) >= 1000000 ? string(int(cash_in) / 1000000) + ',' + string(int(cash_in) / 100000 % 10) + ' juta' : (int(cash_in) >= 1000 ? string(int(cash_in) / 1000) + ' ribu' : string(int(cash_in))))) + '.' + (app_installed('invoicing') ? ' Jatuh tempo 7 hari ke depan: ' + string(due_count) + ' faktur (Rp ' + (int(due_total) >= 1000000000 ? string(int(due_total) / 1000000000) + ',' + string(int(due_total) / 100000000 % 10) + ' miliar' : (int(due_total) >= 1000000 ? string(int(due_total) / 1000000) + ',' + string(int(due_total) / 100000 % 10) + ' juta' : (int(due_total) >= 1000 ? string(int(due_total) / 1000) + ' ribu' : string(int(due_total))))) + '). Lewat jatuh tempo: ' + string(overdue_count) + ' faktur (Rp ' + (int(overdue_total) >= 1000000000 ? string(int(overdue_total) / 1000000000) + ',' + string(int(overdue_total) / 100000000 % 10) + ' miliar' : (int(overdue_total) >= 1000000 ? string(int(overdue_total) / 1000000) + ',' + string(int(overdue_total) / 100000 % 10) + ' juta' : (int(overdue_total) >= 1000 ? string(int(overdue_total) / 1000) + ' ribu' : string(int(overdue_total))))) + ').' : '') + (app_installed('stock') ? ' Stok di bawah batas minimum: ' + string(low_stock_count) + ' barang.' : '')
|
|
43
|
+
- name: setting
|
|
44
|
+
type: link
|
|
45
|
+
to: summary_setting
|
|
46
|
+
label: {id: Pengaturan ringkasan}
|
|
47
|
+
help: {id: 'Buka untuk mematikan ringkasan harian, mingguan atau bulanan'}
|
|
48
|
+
read_only: true
|
|
49
|
+
views:
|
|
50
|
+
list:
|
|
51
|
+
columns: [title, period, date_to, sales_total, sales_count, cash_in]
|
|
52
|
+
filters: [period]
|
|
53
|
+
sort: -date_to
|
|
54
|
+
form:
|
|
55
|
+
layout:
|
|
56
|
+
- section: {id: Ringkasan}
|
|
57
|
+
fields: [message]
|
|
58
|
+
- section: {id: Penjualan dan uang masuk}
|
|
59
|
+
columns:
|
|
60
|
+
- [period, date_from, date_to]
|
|
61
|
+
- [sales_total, sales_count, cash_in]
|
|
62
|
+
- section: {id: Tagihan dan stok}
|
|
63
|
+
columns:
|
|
64
|
+
- [due_count, due_total]
|
|
65
|
+
- [overdue_count, overdue_total, low_stock_count]
|
|
66
|
+
- section: {id: Pengaturan}
|
|
67
|
+
fields: [setting]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
# The owner's switches for the summaries (flows summary_daily, summary_weekly, summary_monthly). One record per
|
|
3
|
+
# business: `key` is unique and always 'usaha', and the first run of a summary flow makes the record with every
|
|
4
|
+
# summary on. Unticking a summary stops its record, its notice and its mail; the mail alone is switched off per
|
|
5
|
+
# person in Pengaturan › Notifikasi. No role but the owner reads or changes it.
|
|
6
|
+
name: summary_setting
|
|
7
|
+
label: {id: Pengaturan ringkasan, en: Summary settings}
|
|
8
|
+
icon: settings-3-line
|
|
9
|
+
naming: RKP-{##}
|
|
10
|
+
title_field: title
|
|
11
|
+
# An empty list: the model is closed to every role, so only the owner reads and changes it.
|
|
12
|
+
permissions: []
|
|
13
|
+
fields:
|
|
14
|
+
- {name: key, type: data, label: {id: Kunci}, default: "'usaha'", required: true, unique: true, read_only: true}
|
|
15
|
+
- {name: title, type: data, label: {id: Nama}, compute: "'Pengaturan ringkasan'"}
|
|
16
|
+
- name: daily
|
|
17
|
+
type: check
|
|
18
|
+
label: {id: Kirim ringkasan harian}
|
|
19
|
+
help: {id: 'Tiap pagi jam 07.00: penjualan dan uang masuk kemarin, faktur yang jatuh tempo, stok yang menipis'}
|
|
20
|
+
default: 'true'
|
|
21
|
+
- name: weekly
|
|
22
|
+
type: check
|
|
23
|
+
label: {id: Kirim ringkasan mingguan}
|
|
24
|
+
help: {id: 'Tiap Senin pagi: 7 hari terakhir'}
|
|
25
|
+
default: 'true'
|
|
26
|
+
- name: monthly
|
|
27
|
+
type: check
|
|
28
|
+
label: {id: Kirim ringkasan bulanan}
|
|
29
|
+
help: {id: 'Tiap tanggal 1: sebulan terakhir'}
|
|
30
|
+
default: 'true'
|
|
31
|
+
views:
|
|
32
|
+
form:
|
|
33
|
+
layout:
|
|
34
|
+
- section: {id: Ringkasan yang dikirim ke kamu}
|
|
35
|
+
fields: [daily, weekly, monthly]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
2
|
name: user
|
|
3
|
-
label: {id:
|
|
3
|
+
label: {id: Karyawan, en: Employee}
|
|
4
4
|
icon: user
|
|
5
5
|
title_field: full_name
|
|
6
6
|
naming: USR-{###}
|
|
@@ -11,17 +11,57 @@ permissions:
|
|
|
11
11
|
- {role: project_admin, read: true}
|
|
12
12
|
- {role: head_office, read: true}
|
|
13
13
|
- {role: outlet_staff, read: true}
|
|
14
|
+
- {role: warehouse_staff, read: true}
|
|
14
15
|
- {role: sales_rep, read: true}
|
|
16
|
+
- {role: field_sales, read: true}
|
|
17
|
+
- {role: course_admin, read: true}
|
|
18
|
+
# module attendance: the outlet supervisor reads the names of the staff whose clock-ins they decide
|
|
19
|
+
- {role: outlet_supervisor, read: true}
|
|
15
20
|
fields:
|
|
16
21
|
- name: full_name
|
|
17
22
|
type: data
|
|
18
23
|
label: {id: Nama}
|
|
19
24
|
required: true
|
|
20
25
|
in_list: true
|
|
21
|
-
- name:
|
|
26
|
+
- name: employee_no
|
|
22
27
|
type: data
|
|
23
|
-
label: {id:
|
|
24
|
-
|
|
28
|
+
label: {id: Nomor karyawan}
|
|
29
|
+
- name: phone
|
|
30
|
+
type: phone
|
|
31
|
+
label: {id: Nomor telepon}
|
|
32
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, finance_manager, instructor, kitchen, outlet_staff, outlet_supervisor, project_admin, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
25
33
|
- name: email
|
|
26
34
|
type: data
|
|
27
35
|
label: {id: Email}
|
|
36
|
+
read_only: true
|
|
37
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, finance_manager, instructor, kitchen, outlet_staff, outlet_supervisor, project_admin, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
38
|
+
- name: role
|
|
39
|
+
type: data
|
|
40
|
+
label: {id: Peran}
|
|
41
|
+
read_only: true
|
|
42
|
+
in_list: true
|
|
43
|
+
- {name: outlets, type: table, of: user_outlet, label: {id: Outlet}, read_only: true, depends_on: app_installed('outlets')}
|
|
44
|
+
- name: access
|
|
45
|
+
type: select
|
|
46
|
+
label: {id: Akses}
|
|
47
|
+
help: {id: Akses diatur di Tim.}
|
|
48
|
+
default: "'none'"
|
|
49
|
+
read_only: true
|
|
50
|
+
in_list: true
|
|
51
|
+
chip: true
|
|
52
|
+
options:
|
|
53
|
+
- {value: active, label: {id: Aktif}}
|
|
54
|
+
- {value: pending, label: {id: Menunggu}}
|
|
55
|
+
- {value: removed, label: {id: Dicabut}}
|
|
56
|
+
- {value: none, label: {id: Tanpa akses}}
|
|
57
|
+
- name: account_id
|
|
58
|
+
type: int
|
|
59
|
+
label: {id: ID akun}
|
|
60
|
+
read_only: true
|
|
61
|
+
hidden_for: [cashier, collector, course_admin, employee, field_sales, field_worker, finance_manager, head_office, instructor, kitchen, outlet_staff, outlet_supervisor, project_admin, purchasing_manager, rental_staff, sales_manager, sales_rep, service_staff, site_supervisor, warehouse_staff]
|
|
62
|
+
# module attendance: owner, office manager or anyone not expected to clock in. Left out of the monthly attendance
|
|
63
|
+
# summary (attendance_period_on_submit). Set by the owner on the employee record.
|
|
64
|
+
- name: attendance_exempt
|
|
65
|
+
type: check
|
|
66
|
+
label: {id: Tidak wajib absen}
|
|
67
|
+
depends_on: app_installed('attendance')
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
# One outlet a member works at. Rows are written from Tim (contract 0056), not edited on the record.
|
|
3
|
+
name: user_outlet
|
|
4
|
+
is_child: true
|
|
5
|
+
fields:
|
|
6
|
+
- {name: outlet, type: link, to: outlet, label: {id: Outlet}, read_only: true, in_list: true}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
2
|
name: users
|
|
3
|
-
version: 1.
|
|
4
|
-
title: {id:
|
|
3
|
+
version: 1.5.1
|
|
4
|
+
title: {id: Karyawan, en: Employees}
|
|
5
|
+
summary:
|
|
6
|
+
id: Orang yang memakai Rangka di usaha kamu.
|
|
7
|
+
en: The people who use Rangka in your business.
|
|
8
|
+
category: people
|
|
9
|
+
icon: user-line
|
|
5
10
|
requires: {rangka: '>=0.5'}
|
|
11
|
+
optional: {outlets: ^1.5, invoicing: ^1.0, payments: ^1.0, outlet_sales: ^1.0, pos: ^1.0, stock: ^1.4}
|
|
12
|
+
# The owner's summaries (flows summary_daily, summary_weekly, summary_monthly; models business_summary and
|
|
13
|
+
# summary_setting) live here because users is the one module every installation has: the flows read the sales, money
|
|
14
|
+
# and stock modules only when they are installed (optional above). Notices of contract 0066 §1.1, to the owner only.
|
|
15
|
+
notices:
|
|
16
|
+
- name: daily_summary
|
|
17
|
+
label: {id: Ringkasan harian, en: Daily summary}
|
|
18
|
+
description: {id: 'Tiap pagi: penjualan dan uang masuk kemarin, faktur yang jatuh tempo, stok yang menipis.'}
|
|
19
|
+
severity: info
|
|
20
|
+
to: [owner]
|
|
21
|
+
- name: weekly_summary
|
|
22
|
+
label: {id: Ringkasan mingguan, en: Weekly summary}
|
|
23
|
+
description: {id: 'Tiap Senin pagi: ringkasan 7 hari terakhir.'}
|
|
24
|
+
severity: info
|
|
25
|
+
to: [owner]
|
|
26
|
+
- name: monthly_summary
|
|
27
|
+
label: {id: Ringkasan bulanan, en: Monthly summary}
|
|
28
|
+
description: {id: 'Tiap tanggal 1: ringkasan sebulan terakhir.'}
|
|
29
|
+
severity: info
|
|
30
|
+
to: [owner]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/role.json
|
|
2
|
+
name: cashier
|
|
3
|
+
label: {id: Kasir}
|
|
4
|
+
# contract 0030 §3: a cashier works in the work shell (the cashier screen, lists under Lainnya), not the desk
|
|
5
|
+
desk: false
|
|
6
|
+
description: {id: 'Membuka sesi kasir dan mencatat penjualan di outlet tempatnya bekerja'}
|
|
7
|
+
# Contract 0010 §5: only records of the member's outlets (shifts, sales, their stock moves and journal lines).
|
|
8
|
+
scope: {field: outlet, from: user.outlets}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/role.json
|
|
2
|
+
name: employee
|
|
3
|
+
label: {id: Karyawan}
|
|
4
|
+
description: {id: 'Karyawan yang hanya absen dari HP dan melihat absennya sendiri (staf dapur, gudang, kantor)'}
|
|
5
|
+
# Works from the phone: the clock screen full screen (work shell, contract 0030 §3), no sidebar. No row scope: every
|
|
6
|
+
# model that grants this role reads only the member's own rows through its permission if: (employee == user.name).
|
|
7
|
+
# Kept as a role once the member grant of the employee app (rangka-os#261) lands.
|
|
8
|
+
desk: false
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/role.json
|
|
2
|
+
name: field_sales
|
|
3
|
+
label: {id: Salesman}
|
|
4
|
+
description: {id: Mengambil pesanan dan melihat piutang pelanggan yang dia pegang}
|
|
5
|
+
# Contract 0010 §5: records whose salesman is the member's own user record (customers, orders, invoices, payments,
|
|
6
|
+
# giro, delivery notes). user.name is the member's user record (rangka user add --record).
|
|
7
|
+
scope: {field: salesman, from: '[user.name]'}
|