@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,473 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: payslip
|
|
3
|
+
label: {id: Slip gaji, en: Payslip}
|
|
4
|
+
icon: invoice
|
|
5
|
+
is_submittable: true
|
|
6
|
+
naming: SLIP-{YYYY}-{#####}
|
|
7
|
+
title_field: worker
|
|
8
|
+
# One worker in one payroll run. Made as a draft from the worker's submitted attendance recap (flow payslip_from_recap)
|
|
9
|
+
# or by hand for a monthly worker; submitted by finance while the run is open. Every amount is computed here from the
|
|
10
|
+
# inputs, the profile and the run, with the rules of docs/payroll.md (PP 58/2023 + PMK 168/2023 for PPh 21, PP 44/2015,
|
|
11
|
+
# 45/2015, 46/2015 and Perpres 82/2018 for BPJS, PP 35/2021 for overtime). The year-to-date fields are filled by
|
|
12
|
+
# payslip_ytd_on_create from this worker's earlier submitted slips of the tax year; the December (or last) slip
|
|
13
|
+
# recomputes the year with Pasal 17 and takes what January to November already withheld.
|
|
14
|
+
permissions:
|
|
15
|
+
- {role: finance_manager, read: true, create: true, write: true, delete: true, submit: true, cancel: true, amend: true, export: true, print: true}
|
|
16
|
+
# Recaps are submitted by the project admin; their flow makes the draft slip as that person (no submit).
|
|
17
|
+
- {role: project_admin, read: true, create: true}
|
|
18
|
+
fields:
|
|
19
|
+
- name: payroll_run
|
|
20
|
+
type: link
|
|
21
|
+
to: payroll_run
|
|
22
|
+
label: {id: Periode gaji}
|
|
23
|
+
required: true
|
|
24
|
+
in_list: true
|
|
25
|
+
- name: profile
|
|
26
|
+
type: link
|
|
27
|
+
to: payroll_profile
|
|
28
|
+
label: {id: Data gaji pekerja}
|
|
29
|
+
required: true
|
|
30
|
+
- {name: run_umk, type: currency, label: {id: UMK periode}, hidden: true, compute: payroll_run.umk}
|
|
31
|
+
- {name: run_jkk_rate, type: percent, label: {id: Tarif JKK periode}, hidden: true, compute: payroll_run.jkk_rate}
|
|
32
|
+
- {name: run_jp_cap, type: currency, label: {id: Batas JP periode}, hidden: true, compute: payroll_run.jp_wage_cap}
|
|
33
|
+
- {name: run_kes_cap, type: currency, label: {id: Batas Kesehatan periode}, hidden: true, compute: payroll_run.kes_wage_cap}
|
|
34
|
+
- {name: run_workdays, type: int, label: {id: Hari kerja per minggu periode}, hidden: true, compute: payroll_run.workdays_per_week}
|
|
35
|
+
- {name: run_period_from, type: date, label: {id: Periode dari}, hidden: true, compute: payroll_run.period_from}
|
|
36
|
+
- {name: run_period_to, type: date, label: {id: Periode sampai}, hidden: true, compute: payroll_run.period_to}
|
|
37
|
+
- {name: run_late_rate, type: currency, label: {id: Potongan telat per menit periode}, hidden: true, compute: payroll_run.late_rate_per_min}
|
|
38
|
+
- {name: run_outlet, type: data, label: {id: Outlet periode}, hidden: true, compute: payroll_run.outlet}
|
|
39
|
+
- name: worker
|
|
40
|
+
type: link
|
|
41
|
+
to: worker
|
|
42
|
+
label: {id: Tenaga kerja}
|
|
43
|
+
compute: profile.worker
|
|
44
|
+
in_list: true
|
|
45
|
+
# The worker's employee record (Karyawan in Tim, contract 0056), empty for a worker who never signs in. The employee
|
|
46
|
+
# app reads a person's own slips through it.
|
|
47
|
+
- name: employee
|
|
48
|
+
type: link
|
|
49
|
+
to: user
|
|
50
|
+
label: {id: Karyawan, en: Employee}
|
|
51
|
+
compute: profile.worker.employee
|
|
52
|
+
- name: project
|
|
53
|
+
type: link
|
|
54
|
+
to: project
|
|
55
|
+
label: {id: Proyek}
|
|
56
|
+
compute: payroll_run.project
|
|
57
|
+
- name: timesheet
|
|
58
|
+
type: link
|
|
59
|
+
to: timesheet
|
|
60
|
+
label: {id: Rekap absensi}
|
|
61
|
+
depends_on: app_installed('projects')
|
|
62
|
+
# The staff attendance summary (module attendance) the slip was filled from by payroll_run_fill or
|
|
63
|
+
# payslip_from_attendance: the last one of the run's period when there were several. Empty for a slip typed by hand.
|
|
64
|
+
- name: attendance_summary
|
|
65
|
+
type: link
|
|
66
|
+
to: attendance_summary
|
|
67
|
+
label: {id: Rekap absen karyawan, en: Staff attendance summary}
|
|
68
|
+
read_only: true
|
|
69
|
+
depends_on: app_installed('attendance')
|
|
70
|
+
# Made by an attendance fill (not typed): only such a draft is refreshed by a later fill when its summary is gone.
|
|
71
|
+
# Made by an attendance fill (not typed). The fill also stores what the summaries said (att_*), so finance may still
|
|
72
|
+
# edit days, lateness or overtime on the draft, and payslip_attendance_guard refuses the submit when the worker's
|
|
73
|
+
# current summaries in the run's period no longer add up to that snapshot (a period cancelled or resubmitted since);
|
|
74
|
+
# a later fill refreshes such a draft. Audit 101b RF2.
|
|
75
|
+
- {name: from_fill, type: check, label: {id: Dari isi absen, en: From an attendance fill}, default: 'false', read_only: true, hidden: true}
|
|
76
|
+
- {name: att_days, type: float, label: {id: Hari hadir menurut rekap}, default: '0', read_only: true, hidden: true}
|
|
77
|
+
- {name: att_late, type: int, label: {id: Menit telat menurut rekap}, default: '0', read_only: true, hidden: true}
|
|
78
|
+
- {name: att_ot, type: float, label: {id: Jam lembur menurut rekap}, default: '0', read_only: true, hidden: true}
|
|
79
|
+
- {name: tax_year, type: int, label: {id: Tahun pajak}, default: payroll_run.tax_year}
|
|
80
|
+
- {name: tax_month, type: int, label: {id: Bulan pajak}, default: payroll_run.tax_month}
|
|
81
|
+
# December, or the month the worker leaves: PPh 21 is recomputed for the year (Pasal 17).
|
|
82
|
+
- name: last_month
|
|
83
|
+
type: check
|
|
84
|
+
label: {id: Masa pajak terakhir (Desember atau keluar)}
|
|
85
|
+
default: payroll_run.tax_month == 12
|
|
86
|
+
# Inputs, copied when the slip is made so a later change of the profile or the worker does not change a slip.
|
|
87
|
+
- name: pay_basis
|
|
88
|
+
type: select
|
|
89
|
+
label: {id: Dasar gaji}
|
|
90
|
+
default: profile.pay_basis
|
|
91
|
+
options:
|
|
92
|
+
- {value: daily, label: {id: Harian}}
|
|
93
|
+
- {value: monthly, label: {id: Bulanan}}
|
|
94
|
+
- name: employment
|
|
95
|
+
type: select
|
|
96
|
+
label: {id: Status pegawai (PPh 21)}
|
|
97
|
+
default: profile.employment
|
|
98
|
+
options:
|
|
99
|
+
- {value: permanent, label: {id: Tetap atau dibayar bulanan}}
|
|
100
|
+
- {value: casual, label: {id: 'Tidak tetap, dibayar harian'}}
|
|
101
|
+
- {name: days, type: float, label: {id: Hari hadir}, default: '0', in_list: true}
|
|
102
|
+
# Days a monthly employee is not paid for (absent without leave, unpaid leave), typed by finance or filled from the
|
|
103
|
+
# attendance summary. Each costs one day of the monthly salary (salary / 25, or / 21 in a five-day week), taken off
|
|
104
|
+
# the base pay, so PPh 21 is withheld on what is paid. The BPJS base stays the contractual wage (salary + fixed
|
|
105
|
+
# allowance, never below the UMK): PP 44/2015, 46/2015, 45/2015 and Perpres 82/2018 take upah pokok + tunjangan
|
|
106
|
+
# tetap as reported, not the month's cut pay (audit 101a F1). A daily worker is paid for days present.
|
|
107
|
+
- {name: unpaid_days, type: float, label: {id: Hari tidak dibayar, en: Unpaid days}, default: '0'}
|
|
108
|
+
# Minutes late in the period (attendance summary, or typed). Deducted only when the run sets a rate per minute.
|
|
109
|
+
- {name: late_min_total, type: int, label: {id: Total menit telat, en: Minutes late}, default: '0'}
|
|
110
|
+
- {name: day_rate, type: currency, label: {id: Upah per hari}, default: profile.worker.cost_day_rate}
|
|
111
|
+
- {name: monthly_salary, type: currency, label: {id: Gaji pokok per bulan}, default: profile.monthly_salary}
|
|
112
|
+
- {name: fixed_allowance, type: currency, label: {id: Tunjangan tetap}, default: profile.fixed_allowance}
|
|
113
|
+
- {name: daily_allowance, type: currency, label: {id: Tunjangan per hari hadir}, default: profile.daily_allowance}
|
|
114
|
+
- {name: overtime_hours, type: float, label: {id: Jam lembur}, default: '0'}
|
|
115
|
+
# Days with overtime: the first hour of each is paid 1,5x, the rest 2x (PP 35/2021, working days), when no weighted
|
|
116
|
+
# overtime rate is set.
|
|
117
|
+
- {name: overtime_days, type: float, label: {id: Hari ada lembur}, default: '0'}
|
|
118
|
+
- {name: overtime_rate, type: currency, label: {id: Upah lembur per jam (sudah ditimbang)}, default: profile.worker.overtime_cost_rate}
|
|
119
|
+
# Work on a rest day or a public holiday (PP 35/2021 Pasal 31), always at the PP 35 multipliers of 1/173 of the monthly
|
|
120
|
+
# wage. The hours are entered per multiplier, summed over the days (the tiers count per day, so they cannot come from
|
|
121
|
+
# a total): 6-day week, hours 1-7 of each day 2x, the 8th 3x, the 9th-11th 4x; 5-day week, 1-8 2x, the 9th 3x, the
|
|
122
|
+
# 10th-12th 4x; a holiday on the shortest day of a 6-day week, 1-5 2x, the 6th 3x, the 7th-9th 4x. Audit gelombang 3 F3.
|
|
123
|
+
- {name: holiday_overtime_days, type: float, label: {id: Hari libur masuk kerja}, default: '0'}
|
|
124
|
+
- {name: holiday_hours_2x, type: float, label: {id: 'Jam hari libur dibayar 2x'}, default: '0'}
|
|
125
|
+
- {name: holiday_hours_3x, type: float, label: {id: 'Jam hari libur dibayar 3x'}, default: '0'}
|
|
126
|
+
- {name: holiday_hours_4x, type: float, label: {id: 'Jam hari libur dibayar 4x'}, default: '0'}
|
|
127
|
+
# THR: months of service (12 or more = one month's wage, fewer = pro rata; under 1 = none). 0 = no THR this month.
|
|
128
|
+
- {name: thr_tenure_months, type: float, label: {id: Masa kerja untuk THR (bulan)}, default: '0'}
|
|
129
|
+
- {name: other_income, type: currency, label: {id: Insentif lain}, default: '0'}
|
|
130
|
+
- {name: other_deduction, type: currency, label: {id: Potongan lain (kasbon)}, default: '0'}
|
|
131
|
+
# The kasbon this deduction repays (cash_advance of the same worker, submitted): its cancel is then refused, and the
|
|
132
|
+
# live slips linking it never deduct more than it (payslip_advance_guard, audit gelombang 3 F5).
|
|
133
|
+
- {name: cash_advance, type: link, to: cash_advance, label: {id: Kasbon yang dipotong}}
|
|
134
|
+
# A kasbon of this worker not yet repaid in full by the submitted slips linking it, found when the slip is made
|
|
135
|
+
# (payslip_ytd_on_create, payslip_from_recap). A deduction without a link while one is open is warned at submit
|
|
136
|
+
# (audit gelombang 3 r2 R1): linked, the kasbon cannot be cancelled after its repayment.
|
|
137
|
+
- {name: open_advance, type: link, to: cash_advance, label: {id: Kasbon belum lunas}, read_only: true}
|
|
138
|
+
# The slip-making flows (payslip_from_recap, payslip_from_attendance and the fills, payslip_ytd_on_create) put the
|
|
139
|
+
# open kasbon's monthly installment here: cash_advance = that kasbon, other_deduction = min(installment, what is left
|
|
140
|
+
# after the submitted slips), when the kasbon has an installment (rangka-apps#117). Editable while the slip is a draft.
|
|
141
|
+
#
|
|
142
|
+
# Expense claims of this employee approved to be paid with salary and not paid yet (module reimbursement,
|
|
143
|
+
# claim_settlement), summed when the slip is made. A company expense paid back, not income: it is outside cash_gross
|
|
144
|
+
# and gross_taxable, so PPh 21 and BPJS do not change, and only net_pay grows (a cost of the business paid back
|
|
145
|
+
# against its receipt is not a reward for work). At submit it must still equal the claims due (claim_settlement_on_payslip_submit),
|
|
146
|
+
# which are then marked paid by this slip; a cancel releases them.
|
|
147
|
+
- {name: reimbursement, type: currency, label: {id: Penggantian biaya (tidak kena pajak), en: Expense reimbursement (untaxed)}, default: '0'}
|
|
148
|
+
- name: ptkp_status
|
|
149
|
+
type: select
|
|
150
|
+
label: {id: Status PTKP}
|
|
151
|
+
default: profile.ptkp_status
|
|
152
|
+
options:
|
|
153
|
+
- {value: tk0, label: {id: TK/0}}
|
|
154
|
+
- {value: tk1, label: {id: TK/1}}
|
|
155
|
+
- {value: tk2, label: {id: TK/2}}
|
|
156
|
+
- {value: tk3, label: {id: TK/3}}
|
|
157
|
+
- {value: k0, label: {id: K/0}}
|
|
158
|
+
- {value: k1, label: {id: K/1}}
|
|
159
|
+
- {value: k2, label: {id: K/2}}
|
|
160
|
+
- {value: k3, label: {id: K/3}}
|
|
161
|
+
- {name: has_tax_id, type: check, label: {id: Punya NIK/NPWP valid}, default: profile.has_tax_id}
|
|
162
|
+
- {name: bpjs_tk, type: check, label: {id: BPJS Ketenagakerjaan}, default: profile.bpjs_tk}
|
|
163
|
+
- {name: bpjs_jp, type: check, label: {id: Jaminan Pensiun}, default: profile.bpjs_jp}
|
|
164
|
+
- {name: bpjs_kes, type: check, label: {id: BPJS Kesehatan}, default: profile.bpjs_kes}
|
|
165
|
+
# The recap's own labour cost, already on the project ledger (project_labor_on_submit): the run books only the rest.
|
|
166
|
+
- {name: timesheet_cost, type: currency, label: {id: Biaya sudah dibukukan absensi}, compute: "timesheet != '' ? timesheet.cost_amount : 0"}
|
|
167
|
+
# Year to date (earlier submitted slips of this worker and tax year), filled by payslip_ytd_on_create.
|
|
168
|
+
- {name: ytd_gross, type: currency, label: {id: Bruto sebelumnya tahun ini}, default: '0', read_only: true}
|
|
169
|
+
- {name: ytd_pph21, type: currency, label: {id: PPh 21 sebelumnya tahun ini}, default: '0', read_only: true}
|
|
170
|
+
- {name: ytd_pension, type: currency, label: {id: JHT + JP pekerja sebelumnya}, default: '0', read_only: true}
|
|
171
|
+
- {name: ytd_months, type: int, label: {id: Bulan sebelumnya tahun ini}, default: '0', read_only: true}
|
|
172
|
+
# Pay.
|
|
173
|
+
- name: unpaid_deduction
|
|
174
|
+
type: currency
|
|
175
|
+
label: {id: Potongan hari tidak dibayar, en: Unpaid days deduction}
|
|
176
|
+
compute: "pay_basis == 'monthly' ? round(monthly_salary * unpaid_days * 1.0 / (payroll_run.workdays_per_week == 5 ? 21 : 25)) : 0"
|
|
177
|
+
- name: base_pay
|
|
178
|
+
type: currency
|
|
179
|
+
label: {id: Gaji pokok}
|
|
180
|
+
compute: "pay_basis == 'monthly' ? monthly_salary - unpaid_deduction : round(days * day_rate)"
|
|
181
|
+
# A pay cut, so it lowers the gross PPh 21 is withheld from; the BPJS base stays the contractual wage.
|
|
182
|
+
- name: late_deduction
|
|
183
|
+
type: currency
|
|
184
|
+
label: {id: Potongan telat, en: Lateness deduction}
|
|
185
|
+
compute: "round(late_min_total * run_late_rate)"
|
|
186
|
+
# Upah sebulan (pokok + tunjangan tetap) for the hourly overtime wage and THR; a daily worker's month is 25 days
|
|
187
|
+
# (6-day week) or 21 (5-day week).
|
|
188
|
+
- name: month_wage
|
|
189
|
+
type: currency
|
|
190
|
+
label: {id: Upah sebulan}
|
|
191
|
+
hidden: true
|
|
192
|
+
compute: "(pay_basis == 'monthly' ? monthly_salary : day_rate * (payroll_run.workdays_per_week == 5 ? 21 : 25)) + fixed_allowance"
|
|
193
|
+
- name: overtime_pay
|
|
194
|
+
type: currency
|
|
195
|
+
label: {id: Lembur}
|
|
196
|
+
compute: "overtime_rate > 0 ? round(overtime_hours * overtime_rate) : round(month_wage * 1.0 / 173 * (1.5 * (overtime_days < overtime_hours ? overtime_days : overtime_hours) + 2.0 * (overtime_hours - (overtime_days < overtime_hours ? overtime_days : overtime_hours))))"
|
|
197
|
+
- name: holiday_overtime_pay
|
|
198
|
+
type: currency
|
|
199
|
+
label: {id: Lembur hari libur}
|
|
200
|
+
compute: "round(month_wage * 1.0 / 173 * (2.0 * holiday_hours_2x + 3.0 * holiday_hours_3x + 4.0 * holiday_hours_4x))"
|
|
201
|
+
- name: allowance_pay
|
|
202
|
+
type: currency
|
|
203
|
+
label: {id: Tunjangan}
|
|
204
|
+
compute: "fixed_allowance + round(days * daily_allowance)"
|
|
205
|
+
- name: thr_pay
|
|
206
|
+
type: currency
|
|
207
|
+
label: {id: THR}
|
|
208
|
+
compute: "thr_tenure_months >= 1 ? round(month_wage * 1.0 * (thr_tenure_months < 12 ? thr_tenure_months : 12) / 12) : 0"
|
|
209
|
+
- name: cash_gross
|
|
210
|
+
type: currency
|
|
211
|
+
label: {id: 'Penghasilan (gaji, tunjangan, lembur, THR)'}
|
|
212
|
+
compute: base_pay + overtime_pay + holiday_overtime_pay + allowance_pay + thr_pay + other_income - late_deduction
|
|
213
|
+
in_list: true
|
|
214
|
+
# BPJS wage: pokok + tunjangan tetap, never below the UMK of the site. A monthly salary counts whole: unpaid days and
|
|
215
|
+
# lateness cut the pay, not the reported wage (audit 101a F1).
|
|
216
|
+
- name: bpjs_base
|
|
217
|
+
type: currency
|
|
218
|
+
label: {id: Dasar upah BPJS}
|
|
219
|
+
compute: "(pay_basis == 'monthly' ? monthly_salary : base_pay) + fixed_allowance > payroll_run.umk ? (pay_basis == 'monthly' ? monthly_salary : base_pay) + fixed_allowance : payroll_run.umk"
|
|
220
|
+
- name: below_umk
|
|
221
|
+
type: check
|
|
222
|
+
label: {id: Upah di bawah UMK}
|
|
223
|
+
compute: "(pay_basis == 'monthly' ? monthly_salary : day_rate * (payroll_run.workdays_per_week == 5 ? 21 : 25)) < payroll_run.umk"
|
|
224
|
+
- {name: jkk, type: currency, label: {id: JKK (perusahaan)}, compute: "bpjs_tk ? round(bpjs_base * payroll_run.jkk_rate / 100) : 0"}
|
|
225
|
+
- {name: jkm, type: currency, label: {id: JKM (perusahaan)}, compute: "bpjs_tk ? round(bpjs_base * 0.3 / 100) : 0"}
|
|
226
|
+
- {name: jht_employer, type: currency, label: {id: 'JHT 3,7% (perusahaan)'}, compute: "bpjs_tk ? round(bpjs_base * 3.7 / 100) : 0"}
|
|
227
|
+
- {name: jht_employee, type: currency, label: {id: JHT 2% (pekerja)}, compute: "bpjs_tk ? round(bpjs_base * 2.0 / 100) : 0"}
|
|
228
|
+
- {name: jp_employer, type: currency, label: {id: JP 2% (perusahaan)}, compute: "bpjs_tk && bpjs_jp ? round((bpjs_base < payroll_run.jp_wage_cap ? bpjs_base : payroll_run.jp_wage_cap) * 2.0 / 100) : 0"}
|
|
229
|
+
- {name: jp_employee, type: currency, label: {id: JP 1% (pekerja)}, compute: "bpjs_tk && bpjs_jp ? round((bpjs_base < payroll_run.jp_wage_cap ? bpjs_base : payroll_run.jp_wage_cap) * 1.0 / 100) : 0"}
|
|
230
|
+
- {name: kes_employer, type: currency, label: {id: BPJS Kesehatan 4% (perusahaan)}, compute: "bpjs_kes ? round((bpjs_base < payroll_run.kes_wage_cap ? bpjs_base : payroll_run.kes_wage_cap) * 4.0 / 100) : 0"}
|
|
231
|
+
- {name: kes_employee, type: currency, label: {id: BPJS Kesehatan 1% (pekerja)}, compute: "bpjs_kes ? round((bpjs_base < payroll_run.kes_wage_cap ? bpjs_base : payroll_run.kes_wage_cap) * 1.0 / 100) : 0"}
|
|
232
|
+
# PPh 21. Gross includes the premiums the employer pays for the worker: JKK, JKM, BPJS Kesehatan 4% (not JHT, JP).
|
|
233
|
+
- name: gross_taxable
|
|
234
|
+
type: currency
|
|
235
|
+
label: {id: Bruto PPh 21}
|
|
236
|
+
compute: cash_gross + jkk + jkm + kes_employer
|
|
237
|
+
- name: ter_category
|
|
238
|
+
type: data
|
|
239
|
+
label: {id: Kategori TER}
|
|
240
|
+
compute: "ptkp_status == 'k3' ? 'C' : (ptkp_status in ['tk2', 'tk3', 'k1', 'k2'] ? 'B' : 'A')"
|
|
241
|
+
# TER in basis points of a percent (25 = 0,25%): the PP 58/2023 tables as [upper bound, step to the next rate], summed
|
|
242
|
+
# over the bounds the gross is above. Replace the three lists when the table changes.
|
|
243
|
+
- name: ter_bp
|
|
244
|
+
type: int
|
|
245
|
+
label: {id: TER (per sepuluh ribu)}
|
|
246
|
+
compute: >-
|
|
247
|
+
ter_category == 'A' ? [[5400000, 25], [5650000, 25], [5950000, 25], [6300000, 25], [6750000, 25], [7500000, 25], [8550000, 25], [9650000, 25], [10050000, 25], [10350000, 25], [10700000, 50], [11050000, 50], [11600000, 50], [12500000, 100], [13750000, 100], [15100000, 100], [16950000, 100], [19750000, 100], [24150000, 100], [26450000, 100], [28000000, 100], [30050000, 100], [32400000, 100], [35400000, 100], [39100000, 100], [43850000, 100], [47800000, 100], [51400000, 100], [56300000, 100], [62200000, 100], [68600000, 100], [77500000, 100], [89000000, 100], [103000000, 100], [125000000, 100], [157000000, 100], [206000000, 100], [337000000, 100], [454000000, 100], [550000000, 100], [695000000, 100], [910000000, 100], [1400000000, 100]].map(b, gross_taxable > b[0] ? b[1] : 0).sum()
|
|
248
|
+
: (ter_category == 'B' ? [[6200000, 25], [6500000, 25], [6850000, 25], [7300000, 25], [9200000, 50], [10750000, 50], [11250000, 50], [11600000, 50], [12600000, 100], [13600000, 100], [14950000, 100], [16400000, 100], [18450000, 100], [21850000, 100], [26000000, 100], [27700000, 100], [29350000, 100], [31450000, 100], [33950000, 100], [37100000, 100], [41100000, 100], [45800000, 100], [49500000, 100], [53800000, 100], [58500000, 100], [64000000, 100], [71000000, 100], [80000000, 100], [93000000, 100], [109000000, 100], [129000000, 100], [163000000, 100], [211000000, 100], [374000000, 100], [459000000, 100], [555000000, 100], [704000000, 100], [957000000, 100], [1405000000, 100]].map(b, gross_taxable > b[0] ? b[1] : 0).sum()
|
|
249
|
+
: [[6600000, 25], [6950000, 25], [7350000, 25], [7800000, 25], [8850000, 25], [9800000, 25], [10950000, 25], [11200000, 25], [12050000, 100], [12950000, 100], [14150000, 100], [15550000, 100], [17050000, 100], [19500000, 100], [22700000, 100], [26600000, 100], [28100000, 100], [30100000, 100], [32600000, 100], [35400000, 100], [38900000, 100], [43000000, 100], [47400000, 100], [51200000, 100], [55800000, 100], [60400000, 100], [66700000, 100], [74500000, 100], [83200000, 100], [95600000, 100], [110000000, 100], [134000000, 100], [169000000, 100], [221000000, 100], [390000000, 100], [463000000, 100], [561000000, 100], [709000000, 100], [965000000, 100], [1419000000, 100]].map(b, gross_taxable > b[0] ? b[1] : 0).sum())
|
|
250
|
+
# Truncated to the rupiah: round(x - 0.5) is the floor of a non-negative x made by one division of whole numbers
|
|
251
|
+
# (the validators know no floor or int).
|
|
252
|
+
- name: ter_pph21
|
|
253
|
+
type: currency
|
|
254
|
+
label: {id: PPh 21 TER bulan ini}
|
|
255
|
+
hidden: true
|
|
256
|
+
compute: "round(gross_taxable * ter_bp * (has_tax_id ? 100 : 120) / 1000000.0 - 0.5)"
|
|
257
|
+
# Daily TER (PP 58/2023, PMK 168/2023 Pasal 16 ayat 2) for a pegawai tidak tetap paid per day: bruto sehari = this
|
|
258
|
+
# slip's gross over the days worked (present + rest days worked, audit F2); up to 450.000 0%, up to 2.500.000 0,5%;
|
|
259
|
+
# above that the Pasal 17 layers on 50% of the gross paid (per payment, not cumulative, audit F7). x 120% without a
|
|
260
|
+
# tax number; truncated to the rupiah.
|
|
261
|
+
- name: ter_daily
|
|
262
|
+
type: check
|
|
263
|
+
label: {id: PPh 21 TER harian}
|
|
264
|
+
hidden: true
|
|
265
|
+
compute: "employment == 'casual' && pay_basis == 'daily'"
|
|
266
|
+
- name: daily_gross
|
|
267
|
+
type: currency
|
|
268
|
+
label: {id: Bruto sehari (TER harian)}
|
|
269
|
+
depends_on: ter_daily
|
|
270
|
+
compute: "days + holiday_overtime_days > 0 ? round(gross_taxable * 1.0 / (days + holiday_overtime_days)) : 0"
|
|
271
|
+
- name: daily_pph21
|
|
272
|
+
type: currency
|
|
273
|
+
label: {id: PPh 21 TER harian}
|
|
274
|
+
hidden: true
|
|
275
|
+
compute: >-
|
|
276
|
+
days + holiday_overtime_days <= 0 || gross_taxable * 1.0 / (days + holiday_overtime_days) <= 450000 ? 0
|
|
277
|
+
: (gross_taxable * 1.0 / (days + holiday_overtime_days) <= 2500000 ? round(gross_taxable * 0.5 * (has_tax_id ? 100 : 120) / 10000.0 - 0.5)
|
|
278
|
+
: round(((gross_taxable * 0.5 > 60000000 ? 60000000 : gross_taxable * 0.5) * 5
|
|
279
|
+
+ (gross_taxable * 0.5 > 250000000 ? 190000000 : (gross_taxable * 0.5 > 60000000 ? gross_taxable * 0.5 - 60000000 : 0)) * 15
|
|
280
|
+
+ (gross_taxable * 0.5 > 500000000 ? 250000000 : (gross_taxable * 0.5 > 250000000 ? gross_taxable * 0.5 - 250000000 : 0)) * 25
|
|
281
|
+
+ (gross_taxable * 0.5 > 5000000000 ? 4500000000 : (gross_taxable * 0.5 > 500000000 ? gross_taxable * 0.5 - 500000000 : 0)) * 30
|
|
282
|
+
+ (gross_taxable * 0.5 > 5000000000 ? gross_taxable * 0.5 - 5000000000 : 0) * 35) * (has_tax_id ? 100 : 120) / 10000.0 - 0.5))
|
|
283
|
+
# Annual recomputation (last_month).
|
|
284
|
+
- name: ptkp
|
|
285
|
+
type: currency
|
|
286
|
+
label: {id: PTKP setahun}
|
|
287
|
+
compute: "54000000 + (ptkp_status.startsWith('k') ? 4500000 : 0) + (ptkp_status.endsWith('1') ? 4500000 : (ptkp_status.endsWith('2') ? 9000000 : (ptkp_status.endsWith('3') ? 13500000 : 0)))"
|
|
288
|
+
- {name: year_gross, type: currency, label: {id: Bruto setahun}, compute: ytd_gross + gross_taxable}
|
|
289
|
+
# Biaya jabatan 5%, at most 500.000 per month worked (6.000.000 a year).
|
|
290
|
+
- name: job_cost
|
|
291
|
+
type: currency
|
|
292
|
+
label: {id: Biaya jabatan setahun}
|
|
293
|
+
compute: "round(year_gross * 5 / 100.0 - 0.5) < 500000 * (ytd_months + 1) ? round(year_gross * 5 / 100.0 - 0.5) : 500000 * (ytd_months + 1)"
|
|
294
|
+
- name: year_net
|
|
295
|
+
type: currency
|
|
296
|
+
label: {id: Neto setahun}
|
|
297
|
+
compute: year_gross - job_cost - ytd_pension - jht_employee - jp_employee
|
|
298
|
+
# Rounded down to thousands.
|
|
299
|
+
- name: year_pkp
|
|
300
|
+
type: currency
|
|
301
|
+
label: {id: PKP setahun}
|
|
302
|
+
compute: "year_net > ptkp ? round((year_net - ptkp) / 1000.0 - 0.5) * 1000 : 0"
|
|
303
|
+
# Pasal 17 layers 5/15/25/30/35% on PKP (a multiple of 1.000, so every layer is whole rupiah), x 120% without a tax
|
|
304
|
+
# number, truncated to the rupiah.
|
|
305
|
+
- name: year_pph21
|
|
306
|
+
type: currency
|
|
307
|
+
label: {id: PPh 21 setahun (Pasal 17)}
|
|
308
|
+
compute: >-
|
|
309
|
+
round(((year_pkp > 60000000 ? 60000000 : year_pkp) * 5
|
|
310
|
+
+ (year_pkp > 250000000 ? 190000000 : (year_pkp > 60000000 ? year_pkp - 60000000 : 0)) * 15
|
|
311
|
+
+ (year_pkp > 500000000 ? 250000000 : (year_pkp > 250000000 ? year_pkp - 250000000 : 0)) * 25
|
|
312
|
+
+ (year_pkp > 5000000000 ? 4500000000 : (year_pkp > 500000000 ? year_pkp - 500000000 : 0)) * 30
|
|
313
|
+
+ (year_pkp > 5000000000 ? year_pkp - 5000000000 : 0) * 35) * (has_tax_id ? 100 : 120) / 10000.0 - 0.5)
|
|
314
|
+
# Negative on a last slip = over-withheld this year, paid back to the worker on this slip.
|
|
315
|
+
- name: pph21
|
|
316
|
+
type: currency
|
|
317
|
+
label: {id: PPh 21 dipotong}
|
|
318
|
+
compute: "ter_daily ? daily_pph21 : (last_month ? year_pph21 - ytd_pph21 : ter_pph21)"
|
|
319
|
+
- name: employee_bpjs
|
|
320
|
+
type: currency
|
|
321
|
+
label: {id: BPJS dipotong dari pekerja}
|
|
322
|
+
compute: jht_employee + jp_employee + kes_employee
|
|
323
|
+
- name: employer_bpjs
|
|
324
|
+
type: currency
|
|
325
|
+
label: {id: BPJS dibayar perusahaan}
|
|
326
|
+
compute: jkk + jkm + jht_employer + jp_employer + kes_employer
|
|
327
|
+
- name: total_deduction
|
|
328
|
+
type: currency
|
|
329
|
+
label: {id: Jumlah potongan, en: Total deductions}
|
|
330
|
+
compute: employee_bpjs + pph21 + other_deduction
|
|
331
|
+
# The reimbursement is added after the deductions: it is paid with the salary, never taxed (rangka-apps#117). This is
|
|
332
|
+
# the one amount the employee receives and the salary transfer list pays: after BPJS, PPh 21 and the kasbon
|
|
333
|
+
# installment, with the reimbursement included.
|
|
334
|
+
- name: net_pay
|
|
335
|
+
type: currency
|
|
336
|
+
label: {id: Gaji bersih diterima, en: Net pay received}
|
|
337
|
+
help: {id: 'Yang ditransfer ke karyawan: sudah dipotong BPJS, PPh 21 dan kasbon, sudah ditambah penggantian biaya'}
|
|
338
|
+
compute: cash_gross - employee_bpjs - pph21 - other_deduction + reimbursement
|
|
339
|
+
in_list: true
|
|
340
|
+
- name: employer_cost
|
|
341
|
+
type: currency
|
|
342
|
+
label: {id: Biaya perusahaan}
|
|
343
|
+
compute: cash_gross + employer_bpjs
|
|
344
|
+
- {name: deposit_bpjs_tk, type: currency, label: {id: Setoran BPJS TK}, compute: jkk + jkm + jht_employer + jht_employee + jp_employer + jp_employee}
|
|
345
|
+
- {name: deposit_bpjs_kes, type: currency, label: {id: Setoran BPJS Kesehatan}, compute: kes_employer + kes_employee}
|
|
346
|
+
# Salary transfer (bank_transfer_csv, docs/payroll.md): the account the net pay goes to, from the pay data, frozen with
|
|
347
|
+
# the slip at submit. The holder is the worker's name (the pay data has no separate holder). Exported as a file by the
|
|
348
|
+
# list export (contract 0024) or the dashboard transfer_gaji; no bank API.
|
|
349
|
+
- {name: bank_name, type: data, label: {id: Bank, en: Bank}, compute: profile.bank_name}
|
|
350
|
+
- {name: bank_account, type: data, label: {id: No. rekening, en: Account number}, compute: profile.bank_account}
|
|
351
|
+
- {name: account_holder, type: data, label: {id: Nama pemilik rekening, en: Account holder}, compute: profile.worker.worker_name}
|
|
352
|
+
- {name: pay_date, type: date, label: {id: Tanggal bayar, en: Pay date}, compute: payroll_run.pay_date}
|
|
353
|
+
- {name: transfer_note, type: data, label: {id: Berita transfer, en: Transfer note}, compute: "'Gaji ' + payroll_run.tax_ym"}
|
|
354
|
+
rules:
|
|
355
|
+
# The attendance period the slip was filled from was cancelled: tick "Isi slip dari absen" again (a slip the fill made is
|
|
356
|
+
# refreshed from the corrected attendance) or clear the days by hand. Audit 101b F2.
|
|
357
|
+
- name: attendance_still_valid
|
|
358
|
+
on: submit
|
|
359
|
+
check: "attendance_summary == '' || !attendance_summary.cancelled"
|
|
360
|
+
message: {id: 'Rekap absen slip ini sudah dibatalkan: isi ulang slip dari absen sebelum diajukan'}
|
|
361
|
+
- name: run_open
|
|
362
|
+
on: submit
|
|
363
|
+
check: "!payroll_run.closed"
|
|
364
|
+
message: {id: 'Periode gaji sudah ditutup; slip baru masuk periode yang masih terbuka'}
|
|
365
|
+
- name: inputs_not_negative
|
|
366
|
+
on: save
|
|
367
|
+
check: >-
|
|
368
|
+
days >= 0 && days <= 31 && day_rate >= 0 && monthly_salary >= 0 && fixed_allowance >= 0 && daily_allowance >= 0
|
|
369
|
+
&& overtime_hours >= 0 && overtime_hours <= 744 && overtime_days >= 0 && overtime_days <= days + 0.0001 && overtime_rate >= 0
|
|
370
|
+
&& thr_tenure_months >= 0 && other_income >= 0 && other_deduction >= 0 && late_min_total >= 0
|
|
371
|
+
&& holiday_overtime_days >= 0 && holiday_overtime_days <= 31 && holiday_hours_2x >= 0 && holiday_hours_3x >= 0 && holiday_hours_4x >= 0
|
|
372
|
+
&& holiday_hours_2x <= holiday_overtime_days * (payroll_run.workdays_per_week == 5 ? 8 : 7)
|
|
373
|
+
&& holiday_hours_3x <= holiday_overtime_days && holiday_hours_4x <= holiday_overtime_days * 3
|
|
374
|
+
message: {id: 'Hari 0 sampai 31, jam hari libur per tarif tidak melebihi batas per hari (2x: 7 atau 8, 3x: 1, 4x: 3), tidak negatif'}
|
|
375
|
+
# A monthly salary is cut by at most the whole month; a daily worker is paid for the days present only.
|
|
376
|
+
- name: unpaid_days_range
|
|
377
|
+
on: save
|
|
378
|
+
check: "unpaid_days >= 0 && unpaid_days <= (payroll_run.workdays_per_week == 5 ? 21 : 25) && (pay_basis == 'monthly' || unpaid_days == 0)"
|
|
379
|
+
message: {id: 'Hari tidak dibayar hanya untuk gaji bulanan, 0 sampai 25 hari (21 untuk 5 hari kerja)'}
|
|
380
|
+
# Rest-day hours climb the tiers in order (PP 35/2021 Pasal 31; audit gelombang 3 r2 R4): an hour at 3x only after a
|
|
381
|
+
# full day at 2x (at least 5 hours, the shortest day of a six-day week; 8 hours in a five-day week), hours at 4x only
|
|
382
|
+
# after the hour at 3x (at most 3 per day that had one).
|
|
383
|
+
- name: holiday_tiers_in_order
|
|
384
|
+
on: save
|
|
385
|
+
check: >-
|
|
386
|
+
holiday_hours_2x >= holiday_hours_3x * (payroll_run.workdays_per_week == 5 ? 8 : 5)
|
|
387
|
+
&& holiday_hours_4x <= holiday_hours_3x * 3
|
|
388
|
+
message: {id: 'Jam hari libur 3x baru setelah jam 2x penuh, dan 4x baru setelah jam 3x'}
|
|
389
|
+
- name: pay_entered
|
|
390
|
+
on: submit
|
|
391
|
+
check: "pay_basis == 'monthly' ? monthly_salary > 0 : (days > 0 && day_rate > 0)"
|
|
392
|
+
message: {id: 'Slip butuh hari hadir dan upah per hari (harian) atau gaji pokok (bulanan)'}
|
|
393
|
+
- name: same_project
|
|
394
|
+
on: save
|
|
395
|
+
check: timesheet == '' || (timesheet.project == payroll_run.project && timesheet.worker == profile.worker && timesheet.docstatus == 1)
|
|
396
|
+
message: {id: 'Rekap absensi harus milik pekerja dan proyek periode ini, dan sudah diajukan'}
|
|
397
|
+
- name: advance_of_worker
|
|
398
|
+
on: save
|
|
399
|
+
check: cash_advance == '' || (cash_advance.worker == profile.worker && cash_advance.docstatus == 1 && other_deduction > 0)
|
|
400
|
+
message: {id: 'Kasbon yang dipotong harus milik pekerja ini, sudah diajukan, dan potongannya diisi'}
|
|
401
|
+
- name: same_tax_month
|
|
402
|
+
on: save
|
|
403
|
+
check: tax_year == payroll_run.tax_year && tax_month == payroll_run.tax_month
|
|
404
|
+
message: {id: 'Tahun dan bulan pajak slip harus sama dengan periode gajinya'}
|
|
405
|
+
# Only approved claims are paid back here, and only module reimbursement checks the amount against them at submit:
|
|
406
|
+
# without it the field stays 0, so no untaxed money is paid through the slip (audit #117 F3).
|
|
407
|
+
- name: reimbursement_needs_claims
|
|
408
|
+
on: save
|
|
409
|
+
check: reimbursement == 0 || app_installed('reimbursement')
|
|
410
|
+
message: {id: 'Penggantian biaya hanya untuk klaim biaya yang disetujui (modul klaim biaya belum terpasang)'}
|
|
411
|
+
- name: reimbursement_whole
|
|
412
|
+
on: save
|
|
413
|
+
check: reimbursement >= 0 && reimbursement == round(reimbursement)
|
|
414
|
+
message: {id: 'Penggantian biaya rupiah bulat, tidak negatif'}
|
|
415
|
+
- name: net_not_negative
|
|
416
|
+
on: submit
|
|
417
|
+
check: net_pay >= 0
|
|
418
|
+
message: {id: 'Gaji bersih minus: kurangi potongan lain'}
|
|
419
|
+
- name: deduction_not_linked
|
|
420
|
+
on: submit
|
|
421
|
+
level: warn
|
|
422
|
+
check: other_deduction == 0 || cash_advance != '' || open_advance == ''
|
|
423
|
+
message: {id: 'Pekerja ini punya kasbon belum lunas, tapi potongannya tidak ditautkan ke kasbon itu'}
|
|
424
|
+
# PP 36/2021 Pasal 65: deductions treated as fines stay within 50% of the pay of the period (audit 101a F6).
|
|
425
|
+
- name: late_within_half
|
|
426
|
+
on: submit
|
|
427
|
+
level: warn
|
|
428
|
+
check: late_deduction * 2 <= base_pay
|
|
429
|
+
message: {id: 'Potongan telat lebih dari separuh gaji pokok periode ini'}
|
|
430
|
+
- name: umk_warning
|
|
431
|
+
on: submit
|
|
432
|
+
level: warn
|
|
433
|
+
check: "!below_umk"
|
|
434
|
+
message: {id: 'Upah di bawah UMK lokasi kerja'}
|
|
435
|
+
views:
|
|
436
|
+
list:
|
|
437
|
+
columns: [name, payroll_run, worker, days, cash_gross, pph21, net_pay, status]
|
|
438
|
+
filters: [payroll_run, worker]
|
|
439
|
+
form:
|
|
440
|
+
layout:
|
|
441
|
+
- section: {id: Slip}
|
|
442
|
+
columns:
|
|
443
|
+
# worker and employee name the same person as the pay data: kept on the record and the list, not repeated here
|
|
444
|
+
- [payroll_run, profile, timesheet]
|
|
445
|
+
- [tax_year, tax_month, last_month, ptkp_status, has_tax_id]
|
|
446
|
+
- section: {id: Kehadiran dan upah}
|
|
447
|
+
columns:
|
|
448
|
+
- [pay_basis, employment, days, unpaid_days, late_min_total, day_rate, monthly_salary, fixed_allowance, daily_allowance]
|
|
449
|
+
- [overtime_hours, overtime_days, overtime_rate, thr_tenure_months, other_income, other_deduction, cash_advance, open_advance]
|
|
450
|
+
- section: {id: Hari libur masuk kerja}
|
|
451
|
+
columns:
|
|
452
|
+
- [holiday_overtime_days]
|
|
453
|
+
- [holiday_hours_2x, holiday_hours_3x, holiday_hours_4x]
|
|
454
|
+
- section: {id: Penghasilan}
|
|
455
|
+
columns:
|
|
456
|
+
- [unpaid_deduction, base_pay, overtime_pay, holiday_overtime_pay, allowance_pay]
|
|
457
|
+
- [thr_pay, late_deduction, cash_gross]
|
|
458
|
+
- section: {id: BPJS}
|
|
459
|
+
columns:
|
|
460
|
+
- [bpjs_base, jkk, jkm, jht_employer, jp_employer, kes_employer, employer_bpjs]
|
|
461
|
+
- [bpjs_tk, bpjs_jp, bpjs_kes, jht_employee, jp_employee, kes_employee, employee_bpjs]
|
|
462
|
+
- section: {id: PPh 21}
|
|
463
|
+
columns:
|
|
464
|
+
- [gross_taxable, ter_category, ter_bp, daily_gross, pph21]
|
|
465
|
+
- [ytd_gross, ytd_pph21, year_gross, job_cost, year_net, year_pkp, year_pph21]
|
|
466
|
+
- section: {id: Bersih}
|
|
467
|
+
columns:
|
|
468
|
+
- [total_deduction, reimbursement, net_pay, employer_cost]
|
|
469
|
+
- [below_umk, timesheet_cost]
|
|
470
|
+
- section: {id: Transfer gaji}
|
|
471
|
+
columns:
|
|
472
|
+
- [account_holder, bank_name, bank_account]
|
|
473
|
+
- [pay_date, transfer_note, attendance_summary]
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
|
+
name: payroll
|
|
3
|
+
version: 2.2.0
|
|
4
|
+
title: {id: Penggajian, en: Payroll}
|
|
5
|
+
summary:
|
|
6
|
+
id: Data gaji pekerja, periode gaji, slip gaji dan tutup periode.
|
|
7
|
+
en: Worker pay data, pay periods, payslips and period close.
|
|
8
|
+
category: people
|
|
9
|
+
icon: money-dollar-box-line
|
|
10
|
+
# Monthly pay with BPJS and PPh 21 TER and the deposits of the month, in two kinds of payroll run (2.0):
|
|
11
|
+
# - client: outsourced workers of one client contract, from the attendance recap (projects.timesheet with period_to);
|
|
12
|
+
# the close books the extra employer cost on the project margin and drafts the client invoice (wages + BPJS + fee, or
|
|
13
|
+
# fee only). Needs projects, invoicing, contacts and catalogue, which jasa_proyek installs.
|
|
14
|
+
# - internal: the firm's own staff, no project, no client invoice. Needs none of the optional modules.
|
|
15
|
+
# 2.0 moved projects, invoicing, contacts and catalogue from requires to optional (breaking only for what they pulled
|
|
16
|
+
# in). 2.2 (rangka-apps#117): staff request a kasbon, repaid by a monthly installment the slips fill in (one open kasbon
|
|
17
|
+
# per worker, cash_advance_balance), and slips pay approved expense claims (module reimbursement) untaxed. Rules and
|
|
18
|
+
# sources: docs/payroll.md.
|
|
19
|
+
requires: {rangka: '>=0.5', users: ^1.0, workforce: ^1.0}
|
|
20
|
+
optional: {projects: ^1.0, invoicing: ^1.7, contacts: ^1.0, catalogue: ^1.0, outlets: ^1.0, attendance: ^1.0, reimbursement: ^1.0}
|
|
21
|
+
# What this module tells people (contract 0066 §1.1), both from flow payroll_reminder. Nothing here runs payroll.
|
|
22
|
+
notices:
|
|
23
|
+
- name: payroll_ready
|
|
24
|
+
label: {id: Periode gaji siap diproses, en: Payroll period ready}
|
|
25
|
+
description: {id: 'Periode gaji sudah lewat dan rekap absennya lengkap. Slip gaji menunggu diperiksa.'}
|
|
26
|
+
severity: info
|
|
27
|
+
to: [owner, finance_manager]
|
|
28
|
+
- name: payroll_due
|
|
29
|
+
label: {id: Tanggal bayar gaji sudah dekat, en: Pay date is near}
|
|
30
|
+
description: {id: 'Tanggal bayar gaji tinggal tiga hari atau kurang dan periode gajinya belum ditutup.'}
|
|
31
|
+
severity: warn
|
|
32
|
+
to: [owner, finance_manager]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{{define "style"}}
|
|
2
|
+
.meta { width: 100%; margin: 8px 0 12px; border-collapse: collapse; font-size: 0.92em; }
|
|
3
|
+
.meta td { padding: 2px 6px 2px 0; vertical-align: top; }
|
|
4
|
+
.cols { display: flex; gap: 16px; }
|
|
5
|
+
.cols > div { flex: 1; }
|
|
6
|
+
.items { width: 100%; border-collapse: collapse; font-size: 0.92em; }
|
|
7
|
+
.items th, .items td { padding: 4px 6px; text-align: left; border-bottom: 1px solid #e7e5e4; }
|
|
8
|
+
.items th { font-weight: 600; }
|
|
9
|
+
.items tr.total td { border-top: 2px solid #1c1917; border-bottom: 0; font-weight: 700; }
|
|
10
|
+
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
|
|
11
|
+
.net { margin-top: 14px; padding: 10px 12px; background: #f5f5f4; display: flex; justify-content: space-between; font-size: 1.1em; font-weight: 700; }
|
|
12
|
+
.note { margin-top: 10px; font-size: 0.82em; color: #57534e; }
|
|
13
|
+
{{end}}
|
|
14
|
+
{{template "letterhead" .}}
|
|
15
|
+
<h1>Slip gaji</h1>
|
|
16
|
+
<table class="meta">
|
|
17
|
+
<tr><td>Nama</td><td>: {{.Links.worker.worker_name}}</td><td>No. slip</td><td>: {{.Doc.name}}</td></tr>
|
|
18
|
+
<tr><td>No. pegawai</td><td>: {{.Links.worker.employee_no}}</td><td>Masa pajak</td><td>: {{.Doc.tax_month}}/{{.Doc.tax_year}}</td></tr>
|
|
19
|
+
<tr><td>Jabatan</td><td>: {{.Links.worker.role_title}}</td><td>Periode</td><td>: {{date .Links.payroll_run.period_from}} s.d. {{date .Links.payroll_run.period_to}}</td></tr>
|
|
20
|
+
<tr><td>Hari hadir</td><td>: {{.Doc.days}}</td><td>Lembur</td><td>: {{.Doc.overtime_hours}} jam</td></tr>
|
|
21
|
+
</table>
|
|
22
|
+
<div class="cols">
|
|
23
|
+
<div>
|
|
24
|
+
<table class="items">
|
|
25
|
+
<thead><tr><th>Penghasilan</th><th class="num">Rp</th></tr></thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
{{if .Doc.unpaid_deduction}}<tr><td>Gaji pokok sebulan</td><td class="num">{{rupiah .Doc.monthly_salary}}</td></tr>
|
|
28
|
+
<tr><td>Tidak dibayar {{.Doc.unpaid_days}} hari</td><td class="num">-{{rupiah .Doc.unpaid_deduction}}</td></tr>
|
|
29
|
+
{{else}}<tr><td>Gaji pokok</td><td class="num">{{rupiah .Doc.base_pay}}</td></tr>{{end}}
|
|
30
|
+
{{if .Doc.allowance_pay}}<tr><td>Tunjangan</td><td class="num">{{rupiah .Doc.allowance_pay}}</td></tr>{{end}}
|
|
31
|
+
{{if .Doc.overtime_pay}}<tr><td>Lembur</td><td class="num">{{rupiah .Doc.overtime_pay}}</td></tr>{{end}}
|
|
32
|
+
{{if .Doc.holiday_overtime_pay}}<tr><td>Lembur hari libur ({{.Doc.holiday_overtime_days}} hari)</td><td class="num">{{rupiah .Doc.holiday_overtime_pay}}</td></tr>{{end}}
|
|
33
|
+
{{if .Doc.thr_pay}}<tr><td>THR</td><td class="num">{{rupiah .Doc.thr_pay}}</td></tr>{{end}}
|
|
34
|
+
{{if .Doc.other_income}}<tr><td>Insentif</td><td class="num">{{rupiah .Doc.other_income}}</td></tr>{{end}}
|
|
35
|
+
{{if .Doc.late_deduction}}<tr><td>Potongan telat {{.Doc.late_min_total}} menit</td><td class="num">-{{rupiah .Doc.late_deduction}}</td></tr>{{end}}
|
|
36
|
+
<tr class="total"><td>Jumlah penghasilan</td><td class="num">{{rupiah .Doc.cash_gross}}</td></tr>
|
|
37
|
+
</tbody>
|
|
38
|
+
</table>
|
|
39
|
+
</div>
|
|
40
|
+
<div>
|
|
41
|
+
<table class="items">
|
|
42
|
+
<thead><tr><th>Potongan</th><th class="num">Rp</th></tr></thead>
|
|
43
|
+
<tbody>
|
|
44
|
+
<tr><td>JHT 2%</td><td class="num">{{rupiah .Doc.jht_employee}}</td></tr>
|
|
45
|
+
{{if .Doc.jp_employee}}<tr><td>Jaminan Pensiun 1%</td><td class="num">{{rupiah .Doc.jp_employee}}</td></tr>{{end}}
|
|
46
|
+
{{if .Doc.kes_employee}}<tr><td>BPJS Kesehatan 1%</td><td class="num">{{rupiah .Doc.kes_employee}}</td></tr>{{end}}
|
|
47
|
+
<tr><td>PPh 21{{if .Doc.ter_daily}} (TER harian){{else if .Doc.last_month}} (hitung tahunan){{end}}</td><td class="num">{{rupiah .Doc.pph21}}</td></tr>
|
|
48
|
+
{{if .Doc.other_deduction}}<tr><td>Potongan lain{{if .Doc.cash_advance}} (kasbon {{.Doc.cash_advance}}){{end}}</td><td class="num">{{rupiah .Doc.other_deduction}}</td></tr>{{end}}
|
|
49
|
+
<tr class="total"><td>Jumlah potongan</td><td class="num">{{rupiah .Doc.total_deduction}}</td></tr>
|
|
50
|
+
</tbody>
|
|
51
|
+
</table>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
{{if .Doc.reimbursement}}<p class="note">Sudah termasuk penggantian biaya (klaim, tidak kena pajak): {{rupiah .Doc.reimbursement}}.</p>{{end}}
|
|
55
|
+
<div class="net"><span>Gaji bersih diterima</span><span>{{rupiah .Doc.net_pay}}</span></div>
|
|
56
|
+
<p class="note">Ditanggung perusahaan, tidak dipotong dari gaji: JKK {{rupiah .Doc.jkk}}, JKM {{rupiah .Doc.jkm}}, JHT 3,7% {{rupiah .Doc.jht_employer}}, JP 2% {{rupiah .Doc.jp_employer}}, BPJS Kesehatan 4% {{rupiah .Doc.kes_employer}}.
|
|
57
|
+
Dasar upah BPJS {{rupiah .Doc.bpjs_base}}. {{if .Doc.ter_daily}}PPh 21 TER harian, bruto sehari {{rupiah .Doc.daily_gross}}{{else}}PPh 21 kategori TER {{.Doc.ter_category}}{{end}}, bruto {{rupiah .Doc.gross_taxable}}.</p>
|
|
58
|
+
{{if .Links.profile.bank_account}}<p class="note">Ditransfer ke {{.Links.profile.bank_name}} {{.Links.profile.bank_account}}.</p>{{end}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/screen.json
|
|
2
|
+
name: ajukan_kasbon
|
|
3
|
+
type: entry
|
|
4
|
+
label: {id: Ajukan kasbon, en: Request a cash advance}
|
|
5
|
+
description: {id: 'Minta kasbon tanpa bunga, dipotong dari gaji tiap bulan sebesar yang kamu pilih.'}
|
|
6
|
+
icon: wallet
|
|
7
|
+
# A staff member asks for a kasbon from their phone (contract 0030 §2 entry, rangka-apps#117): a draft cash_advance is
|
|
8
|
+
# the request. Finance picks the worker, checks it and submits it, which pays the money out; staff never submit it.
|
|
9
|
+
roles: [employee, cashier, outlet_staff, outlet_supervisor]
|
|
10
|
+
device: phone
|
|
11
|
+
entry:
|
|
12
|
+
model: cash_advance
|
|
13
|
+
fields: [amount, installment, notes]
|
|
14
|
+
submit: false
|
|
15
|
+
again: false
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
name: pipeline
|
|
3
3
|
version: 1.0.0
|
|
4
4
|
title: {id: Pipeline penjualan, en: Sales pipeline}
|
|
5
|
+
summary:
|
|
6
|
+
id: Lead, peluang dan aktivitas penjualan sampai closing.
|
|
7
|
+
en: Leads, deals and sales activities through to closing.
|
|
8
|
+
category: sales
|
|
9
|
+
icon: funnel-line
|
|
5
10
|
requires: {rangka: '>=0.5', contacts: ^1.0, users: ^1.0}
|
|
6
11
|
optional: {invoicing: ^1.0}
|
|
7
12
|
hooks: [crm.convert_lead, crm.mark_won]
|