@rangka-os/create 0.0.0-stage → 0.5.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +137 -0
- package/package.json +29 -4
- package/template/base/README.md +32 -0
- package/template/base/_gitignore +3 -0
- package/template/base/_vscode/settings.json +4 -0
- package/template/base/apps/crm/app.rk +44 -0
- package/template/base/apps/crm/dashboards/crm_overview.rk +88 -0
- package/template/base/apps/crm/dashboards/sales_overview.rk +66 -0
- package/template/base/apps/crm/processes/lead_to_cash.rk +8 -0
- package/template/base/apps/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 +46 -0
- package/template/base/apps/fnb_cabang/dashboards/fnb_overview.rk +104 -0
- package/template/base/apps/fnb_cabang/dashboards/outlet_harian.rk +36 -0
- package/template/base/apps/fnb_cabang/dashboards/stock_recap.rk +132 -0
- package/template/base/apps/grosir_distribusi/app.rk +56 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_ar.rk +62 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_overview.rk +87 -0
- package/template/base/apps/jasa_proyek/app.rk +64 -0
- package/template/base/apps/jasa_proyek/dashboards/absen_saya.rk +15 -0
- package/template/base/apps/jasa_proyek/dashboards/ar_aging.rk +88 -0
- package/template/base/apps/jasa_proyek/dashboards/jasa_overview.rk +148 -0
- package/template/base/apps/jasa_proyek/dashboards/project_margin.rk +94 -0
- package/template/base/apps/jasa_proyek/dashboards/rekap_absen.rk +18 -0
- package/template/base/apps/jasa_proyek/processes/quote_to_cash.rk +10 -0
- package/template/base/apps/kasir/app.rk +38 -0
- package/template/base/apps/kasir/dashboards/kasir_ringkas.rk +20 -0
- package/template/base/apps/kasir/skills/rangka-app-kasir/SKILL.md +64 -0
- package/template/base/apps/kelas_kursus/app.rk +29 -0
- package/template/base/apps/kelas_kursus/dashboards/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 +32 -0
- package/template/base/apps/langganan_jasa/dashboards/langganan_ringkas.rk +167 -0
- package/template/base/apps/langganan_jasa/dashboards/penagihan_saya.rk +54 -0
- package/template/base/apps/mutasi_bank/app.rk +22 -0
- package/template/base/apps/pajak/app.rk +25 -0
- package/template/base/apps/pembelian_pemasok/app.rk +23 -0
- package/template/base/apps/pembukuan/app.rk +19 -0
- package/template/base/apps/penjualan_harian/app.rk +34 -0
- package/template/base/apps/penjualan_harian/dashboards/penjualan_ringkas.rk +87 -0
- package/template/base/apps/produksi_pabrik/app.rk +54 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_overview.rk +101 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_upah.rk +39 -0
- package/template/base/apps/ritel_cabang/app.rk +58 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_overview.rk +137 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_stock.rk +147 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_tax.rk +76 -0
- package/template/base/apps/sewa_alat/app.rk +31 -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/stok_outlet/app.rk +34 -0
- package/template/base/apps/stok_outlet/dashboards/outlet_hari_ini.rk +33 -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 +206 -0
- package/template/base/connectors/loyverse/connector.rk +98 -0
- package/template/base/connectors/moka/connector.rk +120 -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/whatsapp_business/connector.rk +89 -0
- package/template/base/connectors/whatsapp_business/templates.md +32 -0
- package/template/base/connectors/xendit/connector.rk +184 -0
- package/template/base/docker-compose.yml +16 -0
- package/template/base/env.example +12 -0
- package/template/base/modules/accounting/flows/financial_report_compute.rk +47 -0
- package/template/base/modules/accounting/flows/financial_report_recompute.rk +47 -0
- package/template/base/modules/accounting/flows/gl_delivery_note_post.rk +37 -0
- package/template/base/modules/accounting/flows/gl_delivery_note_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_goods_receipt_post.rk +41 -0
- package/template/base/modules/accounting/flows/gl_goods_receipt_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_opening_balance_post.rk +132 -0
- package/template/base/modules/accounting/flows/gl_opening_balance_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_return_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_outlet_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_sales_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_outlet_sales_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_takings_post.rk +71 -0
- package/template/base/modules/accounting/flows/gl_outlet_takings_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_payment_post.rk +63 -0
- package/template/base/modules/accounting/flows/gl_payment_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_payroll_close_post.rk +89 -0
- package/template/base/modules/accounting/flows/gl_payroll_close_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_pos_sale_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_pos_sale_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_pos_shift_close_post.rk +59 -0
- package/template/base/modules/accounting/flows/gl_pos_shift_close_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_production_batch_post.rk +62 -0
- package/template/base/modules/accounting/flows/gl_production_batch_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_project_expense_post.rk +64 -0
- package/template/base/modules/accounting/flows/gl_project_expense_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_rental_booking_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_rental_booking_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_rental_return_post.rk +47 -0
- package/template/base/modules/accounting/flows/gl_rental_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_sales_invoice_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_sales_invoice_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_sales_return_post.rk +40 -0
- package/template/base/modules/accounting/flows/gl_sales_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_adjustment_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_adjustment_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_count_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_count_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_receipt_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_receipt_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_timesheet_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_timesheet_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_vendor_bill_post.rk +63 -0
- package/template/base/modules/accounting/flows/gl_vendor_bill_reverse.rk +194 -0
- package/template/base/modules/accounting/imports/opening_balance_sheet.rk +22 -0
- package/template/base/modules/accounting/models/financial_report.rk +85 -0
- package/template/base/modules/accounting/models/gl_entry.rk +161 -0
- package/template/base/modules/accounting/models/opening_balance.rk +48 -0
- package/template/base/modules/accounting/models/period_close.rk +33 -0
- package/template/base/modules/accounting/module.rk +16 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_claim.rk +19 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_confirm.rk +43 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_link_locked.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_matched.rk +13 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_release.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_suggest.rk +31 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_unmatched.rk +11 -0
- package/template/base/modules/bank_statement/imports/bank_statement_csv.rk +25 -0
- package/template/base/modules/bank_statement/models/bank_transaction.rk +124 -0
- package/template/base/modules/bank_statement/models/bank_transaction_claim.rk +49 -0
- package/template/base/modules/bank_statement/module.rk +12 -0
- package/template/base/modules/catalogue/imports/item_list.rk +20 -0
- package/template/base/modules/catalogue/imports/item_master.rk +25 -0
- package/template/base/modules/catalogue/models/item.rk +129 -0
- package/template/base/modules/catalogue/models/item_category.rk +27 -0
- package/template/base/modules/catalogue/models/price_list.rk +34 -0
- package/template/base/modules/catalogue/models/price_list_item.rk +21 -0
- package/template/base/modules/catalogue/models/uom.rk +34 -0
- package/template/base/modules/catalogue/models/uom_conversion.rk +44 -0
- package/template/base/modules/catalogue/module.rk +11 -0
- package/template/base/modules/consignment/flows/consignment_bill.rk +39 -0
- package/template/base/modules/consignment/flows/consignment_bill_cancelled.rk +14 -0
- package/template/base/modules/consignment/models/consignment_settlement.rk +111 -0
- package/template/base/modules/consignment/models/consignment_settlement_item.rk +37 -0
- package/template/base/modules/consignment/module.rk +15 -0
- package/template/base/modules/contacts/imports/customer_list.rk +17 -0
- package/template/base/modules/contacts/imports/vendor_list.rk +16 -0
- package/template/base/modules/contacts/models/contact_person.rk +21 -0
- package/template/base/modules/contacts/models/credit_guard.rk +40 -0
- package/template/base/modules/contacts/models/customer.rk +180 -0
- package/template/base/modules/contacts/models/vendor.rk +104 -0
- package/template/base/modules/contacts/module.rk +10 -0
- package/template/base/modules/coretax/models/tax_period.rk +89 -0
- package/template/base/modules/coretax/module.rk +13 -0
- package/template/base/modules/coretax/print/coretax_bupot.rk +26 -0
- package/template/base/modules/coretax/print/coretax_bupot.xml +28 -0
- package/template/base/modules/coretax/print/coretax_faktur.rk +34 -0
- package/template/base/modules/coretax/print/coretax_faktur.xml +58 -0
- package/template/base/modules/courses/flows/charge_cancel_guard.rk +23 -0
- package/template/base/modules/courses/flows/charge_invoice_on_submit.rk +56 -0
- package/template/base/modules/courses/flows/enrollment_seats_on_create.rk +15 -0
- package/template/base/modules/courses/flows/enrollment_seats_on_update.rk +35 -0
- package/template/base/modules/courses/flows/invoice_course_once.rk +22 -0
- package/template/base/modules/courses/flows/invoice_course_tag_lock.rk +16 -0
- package/template/base/modules/courses/flows/session_fill_attendance.rk +16 -0
- package/template/base/modules/courses/flows/student_billing_on_create.rk +25 -0
- package/template/base/modules/courses/models/course_attendance.rk +22 -0
- package/template/base/modules/courses/models/course_batch.rk +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 +93 -0
- package/template/base/modules/courses/models/enrollment.rk +136 -0
- package/template/base/modules/courses/models/student.rk +68 -0
- package/template/base/modules/courses/module.rk +14 -0
- package/template/base/modules/courses/roles/instructor.rk +7 -0
- package/template/base/modules/currency/models/currency.rk +34 -0
- package/template/base/modules/currency/models/exchange_rate.rk +39 -0
- package/template/base/modules/currency/module.rk +10 -0
- package/template/base/modules/delivery/flows/delivery_cancel_guard.rk +18 -0
- package/template/base/modules/delivery/flows/fulfilment_on_delivery_cancelled.rk +21 -0
- package/template/base/modules/delivery/flows/fulfilment_on_delivery_submitted.rk +28 -0
- package/template/base/modules/delivery/flows/fulfilment_on_invoice_cancelled.rk +22 -0
- package/template/base/modules/delivery/flows/fulfilment_on_invoice_submitted.rk +22 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_created.rk +18 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_submitted.rk +16 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_updated.rk +19 -0
- package/template/base/modules/delivery/flows/fulfilment_on_return_cancelled.rk +16 -0
- package/template/base/modules/delivery/flows/fulfilment_on_return_submitted.rk +16 -0
- package/template/base/modules/delivery/flows/invoice_qty_from_deliveries.rk +20 -0
- package/template/base/modules/delivery/flows/order_cancel_guard.rk +10 -0
- package/template/base/modules/delivery/flows/return_cancel_guard.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_payment_cancelled.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_payment_submitted.rk +21 -0
- package/template/base/modules/delivery/flows/return_credit_on_return_cancelled.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_return_submitted.rk +10 -0
- package/template/base/modules/delivery/models/delivery_guard.rk +48 -0
- package/template/base/modules/delivery/models/delivery_note.rk +101 -0
- package/template/base/modules/delivery/models/delivery_note_item.rk +11 -0
- package/template/base/modules/delivery/models/order_fulfilment.rk +27 -0
- package/template/base/modules/delivery/models/order_fulfilment_item.rk +10 -0
- package/template/base/modules/delivery/models/return_credit.rk +23 -0
- package/template/base/modules/delivery/models/sales_return.rk +87 -0
- package/template/base/modules/delivery/models/sales_return_item.rk +16 -0
- package/template/base/modules/delivery/module.rk +16 -0
- package/template/base/modules/delivery/print/delivery_note.html +96 -0
- package/template/base/modules/delivery/print/delivery_note.rk +9 -0
- package/template/base/modules/distribution/flows/credit_on_invoice_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_invoice_submitted.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_order_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_order_submitted.rk +25 -0
- package/template/base/modules/distribution/flows/credit_on_payment_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_payment_submitted.rk +17 -0
- package/template/base/modules/distribution/flows/giro_bounced.rk +20 -0
- package/template/base/modules/distribution/flows/giro_from_payment.rk +21 -0
- package/template/base/modules/distribution/flows/order_tier_pricing_created.rk +17 -0
- package/template/base/modules/distribution/flows/order_tier_pricing_updated.rk +17 -0
- package/template/base/modules/distribution/models/giro.rk +79 -0
- package/template/base/modules/distribution/module.rk +14 -0
- package/template/base/modules/invoicing/flows/invoice_due_digest.rk +12 -0
- package/template/base/modules/invoicing/flows/milestone_invoiced.rk +23 -0
- package/template/base/modules/invoicing/flows/milestone_reopened.rk +19 -0
- package/template/base/modules/invoicing/flows/payment_instruction_on_submit.rk +25 -0
- package/template/base/modules/invoicing/flows/project_billed_on_cancel.rk +16 -0
- package/template/base/modules/invoicing/flows/project_billed_on_submit.rk +16 -0
- package/template/base/modules/invoicing/flows/project_revenue_on_cancel.rk +22 -0
- package/template/base/modules/invoicing/flows/project_revenue_on_submit.rk +17 -0
- package/template/base/modules/invoicing/flows/sales_invoice_credit_recheck.rk +18 -0
- package/template/base/modules/invoicing/models/bank_account.rk +134 -0
- package/template/base/modules/invoicing/models/invoice_reminder.rk +83 -0
- package/template/base/modules/invoicing/models/payment_instruction.rk +72 -0
- package/template/base/modules/invoicing/models/sales_invoice.rk +480 -0
- package/template/base/modules/invoicing/models/sales_invoice_item.rk +53 -0
- package/template/base/modules/invoicing/module.rk +14 -0
- package/template/base/modules/invoicing/print/sales_invoice.html +163 -0
- package/template/base/modules/invoicing/print/sales_invoice.rk +14 -0
- package/template/base/modules/invoicing/print/sales_invoice_nota.html +71 -0
- package/template/base/modules/invoicing/print/sales_invoice_nota.rk +13 -0
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.html +45 -0
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.rk +15 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_sale.rk +29 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_update.rk +26 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_void.rk +15 -0
- package/template/base/modules/kitchen/models/kitchen_guard.rk +35 -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 +78 -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 +22 -0
- package/template/base/modules/orders/models/customer_order.rk +186 -0
- package/template/base/modules/orders/models/customer_order_item.rk +49 -0
- package/template/base/modules/orders/module.rk +14 -0
- package/template/base/modules/outlet_sales/flows/moka_daily_sales.rk +57 -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 +14 -0
- package/template/base/modules/outlet_sales/flows/moka_transaction_staged.rk +90 -0
- package/template/base/modules/outlet_sales/flows/refund_on_return_cancelled.rk +15 -0
- package/template/base/modules/outlet_sales/flows/refund_on_return_submitted.rk +26 -0
- package/template/base/modules/outlet_sales/flows/refund_on_sales_submitted.rk +14 -0
- package/template/base/modules/outlet_sales/flows/sales_cancel_guard.rk +14 -0
- package/template/base/modules/outlet_sales/imports/daily_form.rk +22 -0
- package/template/base/modules/outlet_sales/imports/loyverse_receipts.rk +28 -0
- package/template/base/modules/outlet_sales/imports/moka_item_details.rk +34 -0
- package/template/base/modules/outlet_sales/imports/pos_sales_file.rk +28 -0
- package/template/base/modules/outlet_sales/imports/takings_file.rk +23 -0
- package/template/base/modules/outlet_sales/models/moka_sale_line.rk +53 -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 +176 -0
- package/template/base/modules/outlet_sales/models/outlet_sales_guard.rk +35 -0
- package/template/base/modules/outlet_sales/models/outlet_sales_line.rk +40 -0
- package/template/base/modules/outlet_sales/models/outlet_takings.rk +85 -0
- package/template/base/modules/outlet_sales/models/outlet_takings_line.rk +37 -0
- package/template/base/modules/outlet_sales/models/pos_refund.rk +33 -0
- package/template/base/modules/outlet_sales/models/pos_refund_item.rk +9 -0
- package/template/base/modules/outlet_sales/module.rk +12 -0
- package/template/base/modules/outlets/models/outlet.rk +84 -0
- package/template/base/modules/outlets/module.rk +10 -0
- package/template/base/modules/payments/flows/payment_from_doku.rk +73 -0
- package/template/base/modules/payments/flows/payment_from_xendit_invoice.rk +59 -0
- package/template/base/modules/payments/flows/payment_from_xendit_qr.rk +59 -0
- package/template/base/modules/payments/flows/payment_from_xendit_va.rk +59 -0
- package/template/base/modules/payments/flows/payment_gateway_claim_created.rk +19 -0
- package/template/base/modules/payments/flows/payment_gateway_claim_submitted.rk +19 -0
- package/template/base/modules/payments/flows/payment_gateway_release.rk +12 -0
- package/template/base/modules/payments/models/gateway_ref_claim.rk +42 -0
- package/template/base/modules/payments/models/payment.rk +215 -0
- package/template/base/modules/payments/models/payment_allocation.rk +35 -0
- package/template/base/modules/payments/models/withholding.rk +76 -0
- package/template/base/modules/payments/module.rk +13 -0
- package/template/base/modules/payments/print/statement.html +55 -0
- package/template/base/modules/payments/print/statement.rk +13 -0
- package/template/base/modules/payroll/flows/invoice_payroll_once.rk +20 -0
- package/template/base/modules/payroll/flows/invoice_payroll_tag_lock.rk +13 -0
- package/template/base/modules/payroll/flows/payroll_close_on_cancel.rk +35 -0
- package/template/base/modules/payroll/flows/payroll_close_on_submit.rk +66 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_created.rk +14 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_updated.rk +14 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_cancel.rk +29 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_submit.rk +29 -0
- package/template/base/modules/payroll/flows/payslip_cancel_guard.rk +14 -0
- package/template/base/modules/payroll/flows/payslip_from_recap.rk +47 -0
- package/template/base/modules/payroll/flows/payslip_month_guard_created.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_month_guard_submitted.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_order_guard_cancelled.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_order_guard_submitted.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_pay_overlap_guard.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_ytd_guard.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_ytd_on_create.rk +20 -0
- package/template/base/modules/payroll/flows/recap_cancel_guard.rk +15 -0
- package/template/base/modules/payroll/models/payroll_close.rk +80 -0
- package/template/base/modules/payroll/models/payroll_guard.rk +74 -0
- package/template/base/modules/payroll/models/payroll_profile.rk +136 -0
- package/template/base/modules/payroll/models/payroll_run.rk +220 -0
- package/template/base/modules/payroll/models/payslip.rk +293 -0
- package/template/base/modules/payroll/module.rk +13 -0
- package/template/base/modules/payroll/print/payslip.html +53 -0
- package/template/base/modules/payroll/print/payslip.rk +7 -0
- package/template/base/modules/pipeline/flows/morning_follow_up.rk +10 -0
- package/template/base/modules/pipeline/flows/whatsapp_to_lead.rk +24 -0
- package/template/base/modules/pipeline/models/activity.rk +83 -0
- package/template/base/modules/pipeline/models/deal.rk +139 -0
- package/template/base/modules/pipeline/models/lead.rk +119 -0
- package/template/base/modules/pipeline/module.rk +12 -0
- package/template/base/modules/pos/flows/pos_daily_form_guard.rk +18 -0
- package/template/base/modules/pos/flows/pos_sale_on_cancel.rk +33 -0
- package/template/base/modules/pos/flows/pos_sale_on_submit.rk +46 -0
- package/template/base/modules/pos/flows/pos_shift_close_on_cancel.rk +26 -0
- package/template/base/modules/pos/flows/pos_shift_close_on_submit.rk +23 -0
- package/template/base/modules/pos/flows/pos_shift_on_create.rk +21 -0
- package/template/base/modules/pos/flows/pos_shift_on_update.rk +10 -0
- package/template/base/modules/pos/flows/pos_takings_guard.rk +28 -0
- package/template/base/modules/pos/models/pos_guard.rk +76 -0
- package/template/base/modules/pos/models/pos_payment.rk +17 -0
- package/template/base/modules/pos/models/pos_sale.rk +222 -0
- package/template/base/modules/pos/models/pos_sale_item.rk +43 -0
- package/template/base/modules/pos/models/pos_shift.rk +92 -0
- package/template/base/modules/pos/models/pos_shift_close.rk +77 -0
- package/template/base/modules/pos/module.rk +22 -0
- package/template/base/modules/pos/print/pos_receipt.html +50 -0
- package/template/base/modules/pos/print/pos_receipt.rk +9 -0
- package/template/base/modules/pos/screens/kasir.rk +41 -0
- package/template/base/modules/procurement/flows/project_vendor_cost_on_cancel.rk +22 -0
- package/template/base/modules/procurement/flows/project_vendor_cost_on_submit.rk +17 -0
- package/template/base/modules/procurement/imports/opening_stock.rk +25 -0
- package/template/base/modules/procurement/models/goods_receipt.rk +85 -0
- package/template/base/modules/procurement/models/goods_receipt_item.rk +42 -0
- package/template/base/modules/procurement/models/purchase_order.rk +156 -0
- package/template/base/modules/procurement/models/purchase_order_item.rk +46 -0
- package/template/base/modules/procurement/models/purchase_request.rk +91 -0
- package/template/base/modules/procurement/models/purchase_request_item.rk +35 -0
- package/template/base/modules/procurement/models/vendor_bill.rk +272 -0
- package/template/base/modules/procurement/models/vendor_bill_item.rk +33 -0
- package/template/base/modules/procurement/module.rk +14 -0
- package/template/base/modules/procurement/print/purchase_order.html +120 -0
- package/template/base/modules/procurement/print/purchase_order.rk +7 -0
- package/template/base/modules/production/flows/batch_cancel_guard.rk +12 -0
- package/template/base/modules/production/flows/batch_from_bom.rk +19 -0
- package/template/base/modules/production/flows/wage_sheet_on_batch_cancelled.rk +14 -0
- package/template/base/modules/production/flows/wage_sheet_on_batch_submitted.rk +12 -0
- package/template/base/modules/production/flows/work_order_materials_created.rk +20 -0
- package/template/base/modules/production/flows/work_order_materials_updated.rk +20 -0
- package/template/base/modules/production/models/bom.rk +67 -0
- package/template/base/modules/production/models/bom_byproduct.rk +7 -0
- package/template/base/modules/production/models/bom_line.rk +11 -0
- package/template/base/modules/production/models/production_batch.rk +149 -0
- package/template/base/modules/production/models/production_guard.rk +23 -0
- package/template/base/modules/production/models/production_labour.rk +10 -0
- package/template/base/modules/production/models/production_material.rk +8 -0
- package/template/base/modules/production/models/production_output.rk +8 -0
- package/template/base/modules/production/models/production_stage.rk +19 -0
- package/template/base/modules/production/models/wage_line.rk +15 -0
- package/template/base/modules/production/models/wage_sheet.rk +28 -0
- package/template/base/modules/production/models/work_order.rk +63 -0
- package/template/base/modules/production/models/work_order_material.rk +8 -0
- package/template/base/modules/production/module.rk +17 -0
- package/template/base/modules/production/print/wage_sheet.html +75 -0
- package/template/base/modules/production/print/wage_sheet.rk +9 -0
- package/template/base/modules/projects/flows/attendance_close_cancel_guard.rk +15 -0
- package/template/base/modules/projects/flows/attendance_close_on_submit.rk +64 -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 +15 -0
- package/template/base/modules/projects/flows/attendance_log_guard_submitted.rk +34 -0
- package/template/base/modules/projects/flows/attendance_log_guard_updated.rk +14 -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/imports/attendance_recap.rk +23 -0
- package/template/base/modules/projects/imports/billing_milestone.rk +20 -0
- package/template/base/modules/projects/models/acceptance.rk +68 -0
- package/template/base/modules/projects/models/assignment.rk +116 -0
- package/template/base/modules/projects/models/attendance_close.rk +63 -0
- package/template/base/modules/projects/models/attendance_guard.rk +57 -0
- package/template/base/modules/projects/models/attendance_log.rk +266 -0
- package/template/base/modules/projects/models/billing_milestone.rk +217 -0
- package/template/base/modules/projects/models/project.rk +155 -0
- package/template/base/modules/projects/models/project_expense.rk +121 -0
- package/template/base/modules/projects/models/project_guard.rk +27 -0
- package/template/base/modules/projects/models/project_ledger.rk +146 -0
- package/template/base/modules/projects/models/timesheet.rk +167 -0
- package/template/base/modules/projects/models/work_site.rk +73 -0
- package/template/base/modules/projects/module.rk +11 -0
- package/template/base/modules/projects/roles/field_worker.rk +7 -0
- package/template/base/modules/projects/roles/site_supervisor.rk +7 -0
- package/template/base/modules/quotation/models/quotation.rk +201 -0
- package/template/base/modules/quotation/models/quotation_item.rk +37 -0
- package/template/base/modules/quotation/module.rk +14 -0
- package/template/base/modules/quotation/print/quotation.html +65 -0
- package/template/base/modules/quotation/print/quotation.rk +7 -0
- package/template/base/modules/rental/flows/rental_booking_on_cancel.rk +19 -0
- package/template/base/modules/rental/flows/rental_booking_on_submit.rk +45 -0
- package/template/base/modules/rental/flows/rental_checkout_on_cancel.rk +24 -0
- package/template/base/modules/rental/flows/rental_checkout_on_submit.rk +33 -0
- package/template/base/modules/rental/flows/rental_invoice_once.rk +20 -0
- package/template/base/modules/rental/flows/rental_invoice_tag_lock.rk +12 -0
- package/template/base/modules/rental/flows/rental_return_on_cancel.rk +26 -0
- package/template/base/modules/rental/flows/rental_return_on_submit.rk +45 -0
- package/template/base/modules/rental/models/rental_booking.rk +124 -0
- package/template/base/modules/rental/models/rental_checkout.rk +96 -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 +142 -0
- package/template/base/modules/rental/models/rental_return_unit.rk +29 -0
- package/template/base/modules/rental/models/rental_schedule.rk +51 -0
- package/template/base/modules/rental/models/rental_unit.rk +73 -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/stock/flows/adjustment_value_backfill.rk +95 -0
- package/template/base/modules/stock/flows/adjustment_value_on_cancel.rk +19 -0
- package/template/base/modules/stock/flows/adjustment_value_on_submit.rk +17 -0
- package/template/base/modules/stock/flows/stock_negative_alert.rk +15 -0
- package/template/base/modules/stock/models/recipe.rk +68 -0
- package/template/base/modules/stock/models/recipe_line.rk +24 -0
- package/template/base/modules/stock/models/stock_adjustment.rk +62 -0
- package/template/base/modules/stock/models/stock_adjustment_item.rk +32 -0
- package/template/base/modules/stock/models/stock_adjustment_value.rk +79 -0
- package/template/base/modules/stock/models/stock_balance.rk +27 -0
- package/template/base/modules/stock/models/stock_count.rk +54 -0
- package/template/base/modules/stock/models/stock_count_item.rk +33 -0
- package/template/base/modules/stock/models/stock_move.rk +53 -0
- package/template/base/modules/stock/models/stock_transfer.rk +70 -0
- package/template/base/modules/stock/models/stock_transfer_item.rk +34 -0
- package/template/base/modules/stock/models/stock_transfer_receipt.rk +57 -0
- package/template/base/modules/stock/models/stock_transfer_receipt_item.rk +18 -0
- package/template/base/modules/stock/module.rk +13 -0
- package/template/base/modules/subscriptions/flows/collector_deposit_on_submit.rk +57 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_kept.rk +17 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_not_cancelled.rk +14 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_not_deleted.rk +14 -0
- package/template/base/modules/subscriptions/flows/field_collection_cap_created.rk +24 -0
- package/template/base/modules/subscriptions/flows/field_collection_cap_updated.rk +24 -0
- package/template/base/modules/subscriptions/flows/field_collection_locked.rk +12 -0
- package/template/base/modules/subscriptions/flows/field_collection_not_deleted.rk +10 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_kept.rk +19 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_once.rk +34 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_tag_lock.rk +13 -0
- package/template/base/modules/subscriptions/flows/service_area_collector.rk +14 -0
- package/template/base/modules/subscriptions/flows/subscription_billing.rk +79 -0
- package/template/base/modules/subscriptions/flows/subscription_dunning.rk +81 -0
- package/template/base/modules/subscriptions/flows/subscription_extra_locked.rk +14 -0
- package/template/base/modules/subscriptions/flows/subscription_status_on_payment.rk +48 -0
- package/template/base/modules/subscriptions/models/collector_deposit.rk +36 -0
- package/template/base/modules/subscriptions/models/field_collection.rk +42 -0
- package/template/base/modules/subscriptions/models/service_area.rk +19 -0
- package/template/base/modules/subscriptions/models/subscription.rk +233 -0
- package/template/base/modules/subscriptions/models/subscription_bill.rk +48 -0
- package/template/base/modules/subscriptions/models/subscription_extra.rk +50 -0
- package/template/base/modules/subscriptions/models/subscription_guard.rk +65 -0
- package/template/base/modules/subscriptions/models/subscription_month.rk +29 -0
- package/template/base/modules/subscriptions/models/subscription_plan.rk +75 -0
- package/template/base/modules/subscriptions/models/subscription_status_log.rk +27 -0
- package/template/base/modules/subscriptions/module.rk +18 -0
- package/template/base/modules/subscriptions/roles/collector.rk +7 -0
- package/template/base/modules/tax_id/models/tax_code.rk +49 -0
- package/template/base/modules/tax_id/module.rk +10 -0
- package/template/base/modules/users/models/user.rk +29 -0
- package/template/base/modules/users/module.rk +10 -0
- package/template/base/modules/users/roles/cashier.rk +8 -0
- package/template/base/modules/users/roles/course_admin.rk +4 -0
- package/template/base/modules/users/roles/field_sales.rk +7 -0
- package/template/base/modules/users/roles/finance_manager.rk +4 -0
- package/template/base/modules/users/roles/head_office.rk +4 -0
- package/template/base/modules/users/roles/outlet_staff.rk +6 -0
- package/template/base/modules/users/roles/project_admin.rk +4 -0
- package/template/base/modules/users/roles/purchasing_manager.rk +4 -0
- package/template/base/modules/users/roles/sales_manager.rk +4 -0
- package/template/base/modules/users/roles/sales_rep.rk +4 -0
- package/template/base/modules/workforce/imports/worker_list.rk +21 -0
- package/template/base/modules/workforce/models/certification.rk +25 -0
- package/template/base/modules/workforce/models/worker.rk +94 -0
- package/template/base/modules/workforce/module.rk +10 -0
- package/template/base/package.json +17 -0
- package/template/blank/fixtures/start.rk +5 -0
- package/template/blank/site/config.rk +13 -0
- package/template/blank/site/custom/README.md +2 -0
- package/template/blank/site/features.rk +13 -0
- package/template/blank/site/layouts/main.rk +14 -0
- package/template/blank/site/system.rk +20 -0
- package/template/blank/site/themes/main.rk +8 -0
- package/template/demo/fixtures/crm_demo.rk +168 -0
- package/template/demo/fixtures/demo.rk +417 -0
- package/template/demo/site/config.rk +13 -0
- package/template/demo/site/features.rk +13 -0
- package/template/demo/site/layouts/crm_first.rk +23 -0
- package/template/demo/site/system.rk +26 -0
- package/template/demo/site/themes/kopi_senja.rk +10 -0
- package/README.md +0 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# The owner sets a line to "Dikonfirmasi": draft a payment from the customer of the chosen invoice, for the line's
|
|
3
|
+
# amount, allocated to that invoice (up to what it still owes; any rest stays unallocated on the payment), naming the
|
|
4
|
+
# line in payment.bank_transaction. The draft is submitted by a person (finance), which settles the invoice.
|
|
5
|
+
# A draft of this line that is still open (an earlier draft, or the amend of a cancelled one) is pointed at the
|
|
6
|
+
# invoice chosen last instead of drafting another. Extra drafts are harmless anyway: bank_transaction_claim lets only
|
|
7
|
+
# one live payment per line be submitted.
|
|
8
|
+
name: bank_transaction_confirm
|
|
9
|
+
label: {id: Mutasi dikonfirmasi jadi pembayaran}
|
|
10
|
+
on: bank_transaction.updated
|
|
11
|
+
if: event.status == 'confirmed' && event.payment == '' && event.suggested_invoice != ''
|
|
12
|
+
steps:
|
|
13
|
+
- {find: payment, where: "docstatus == 0 && bank_transaction == event.name", as: draft}
|
|
14
|
+
# a live payment already names the line (it is matched then, or a payment typed by hand carries the line in its
|
|
15
|
+
# reference): no new draft, so the same transfer is never drafted twice
|
|
16
|
+
- {find: payment, where: "docstatus == 1 && direction == 'receive' && (bank_transaction == event.name || reference == event.name)", as: paid}
|
|
17
|
+
- {find: sales_invoice, where: name == event.suggested_invoice, as: inv}
|
|
18
|
+
- {find: bank_transaction, where: name == event.name, as: line}
|
|
19
|
+
- update: draft
|
|
20
|
+
if: inv != null && draft != null
|
|
21
|
+
set:
|
|
22
|
+
customer: inv.customer
|
|
23
|
+
amount: event.amount
|
|
24
|
+
allocations: "[{'sales_invoice': inv.name, 'amount': min(event.amount, inv.outstanding)}]"
|
|
25
|
+
- create: payment
|
|
26
|
+
if: inv != null && draft == null && paid == null
|
|
27
|
+
set:
|
|
28
|
+
direction: "'receive'"
|
|
29
|
+
customer: inv.customer
|
|
30
|
+
payment_date: event.date
|
|
31
|
+
method: "'transfer'"
|
|
32
|
+
reference: event.name
|
|
33
|
+
bank_transaction: event.name
|
|
34
|
+
amount: event.amount
|
|
35
|
+
allocations: "[{'sales_invoice': inv.name, 'amount': min(event.amount, inv.outstanding)}]"
|
|
36
|
+
notes: "'Dari mutasi ' + event.name + ': ' + event.description"
|
|
37
|
+
as: pay
|
|
38
|
+
- update: line
|
|
39
|
+
if: inv != null && draft != null && draft.name != event.draft_payment
|
|
40
|
+
set: {draft_payment: draft.name}
|
|
41
|
+
- update: line
|
|
42
|
+
if: inv != null && draft == null && paid == null
|
|
43
|
+
set: {draft_payment: pay.name}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# payment.bank_transaction is set when the payment is made (the line's draft, or by hand) and never changed after:
|
|
3
|
+
# clearing it would let the draft be submitted without claiming the line, moving it would let it claim another line.
|
|
4
|
+
# A change is refused by creating an invalid claim, whose rule rolls the whole save back.
|
|
5
|
+
name: bank_transaction_link_locked
|
|
6
|
+
label: {id: Mutasi bank di pembayaran tidak bisa diubah}
|
|
7
|
+
on: payment.updated
|
|
8
|
+
if: event.before != null && event.before.bank_transaction != event.bank_transaction
|
|
9
|
+
steps:
|
|
10
|
+
- create: bank_transaction_claim
|
|
11
|
+
set: {bank_transaction: "''", payment: event.name, valid: 'false'}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# A payment that names a statement line (payment.bank_transaction) is submitted: the line is matched to it. By then
|
|
3
|
+
# bank_transaction_claim (same event, earlier in name order) has made sure no other live payment holds the line.
|
|
4
|
+
# reference is free text and never picks the line.
|
|
5
|
+
name: bank_transaction_matched
|
|
6
|
+
label: {id: Mutasi cocok saat pembayaran diajukan}
|
|
7
|
+
on: payment.submitted
|
|
8
|
+
if: event.direction == 'receive' && event.bank_transaction != ''
|
|
9
|
+
steps:
|
|
10
|
+
- {find: bank_transaction, where: name == event.bank_transaction, as: line}
|
|
11
|
+
- update: line
|
|
12
|
+
if: line != null
|
|
13
|
+
set: {status: "'matched'", payment: event.name, draft_payment: "''"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# A payment that held a statement line is cancelled: its claim gives the line back.
|
|
3
|
+
name: bank_transaction_release
|
|
4
|
+
label: {id: Lepas klaim mutasi saat pembayaran dibatalkan}
|
|
5
|
+
on: payment.cancelled
|
|
6
|
+
if: event.direction == 'receive' && event.bank_transaction != ''
|
|
7
|
+
steps:
|
|
8
|
+
- {find: bank_transaction_claim, where: bank_transaction == event.bank_transaction && payment == event.name, as: held}
|
|
9
|
+
- update: held
|
|
10
|
+
if: held != null
|
|
11
|
+
set: {bank_transaction: "''", released_line: event.bank_transaction}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# A new statement line with money in looks for the invoice it pays. First choice: an open invoice whose number is in
|
|
3
|
+
# the transfer note (written loosely, see below). Otherwise: exactly one open invoice whose remaining amount equals
|
|
4
|
+
# the line. Two candidates of the same amount -> no suggestion (the owner picks). It only suggests; the payment comes after the owner confirms.
|
|
5
|
+
# outstanding is already net of PPh 23, so a customer who withheld tax still matches.
|
|
6
|
+
name: bank_transaction_suggest
|
|
7
|
+
label: {id: Usulan cocok mutasi ke faktur}
|
|
8
|
+
on: bank_transaction.created
|
|
9
|
+
if: event.amount > 0 && event.status == 'unmatched'
|
|
10
|
+
steps:
|
|
11
|
+
# The invoice number is the payment reference (payment_instruction.reference). Customers type it as they like:
|
|
12
|
+
# "INV-2026-00012", "inv 2026 00012", "INV202600012", "INV/2026/00012" all match, compared without case, spaces,
|
|
13
|
+
# dashes, slashes and dots on both sides. The number decides only when the line fits what the invoice still owes
|
|
14
|
+
# (a part payment fits, an overpayment does not): "0004 2" typed for invoice 00042 must not pull a larger line
|
|
15
|
+
# to invoice 0004; such a line falls back to the amount match.
|
|
16
|
+
- find_all: sales_invoice
|
|
17
|
+
where: >-
|
|
18
|
+
docstatus == 1 && outstanding >= event.amount && (event.description.contains(name) ||
|
|
19
|
+
event.description.upperAscii().replace(' ', '').replace('-', '').replace('/', '').replace('.', '')
|
|
20
|
+
.contains(name.upperAscii().replace(' ', '').replace('-', '').replace('/', '').replace('.', '')))
|
|
21
|
+
as: by_number
|
|
22
|
+
- {find_all: sales_invoice, where: "docstatus == 1 && outstanding == event.amount", as: by_amount}
|
|
23
|
+
- {find: bank_transaction, where: name == event.name, as: line}
|
|
24
|
+
- if: size(by_number) == 1
|
|
25
|
+
then:
|
|
26
|
+
- update: line
|
|
27
|
+
set: {suggested_invoice: "by_number[0].name", status: "'suggested'"}
|
|
28
|
+
else:
|
|
29
|
+
- update: line
|
|
30
|
+
if: size(by_amount) == 1
|
|
31
|
+
set: {suggested_invoice: "by_amount[0].name", status: "'suggested'"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
|
|
2
|
+
# The payment of a matched line is cancelled: the line goes back to unmatched and can be matched again (by the amend
|
|
3
|
+
# of that payment, which keeps bank_transaction, or by a new confirmation; only one of them can be submitted).
|
|
4
|
+
name: bank_transaction_unmatched
|
|
5
|
+
label: {id: Mutasi kembali belum cocok saat pembayaran dibatalkan}
|
|
6
|
+
on: payment.cancelled
|
|
7
|
+
steps:
|
|
8
|
+
- {find: bank_transaction, where: payment == event.name && status == 'matched', as: line}
|
|
9
|
+
- update: line
|
|
10
|
+
if: line != null
|
|
11
|
+
set: {status: "'unmatched'", payment: "''"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/import.json
|
|
2
|
+
# Bank statement in a fixed layout: Tanggal (dd/mm/yyyy), Urutan, Keterangan, Masuk, Keluar, Saldo, Rekening.
|
|
3
|
+
# Bank exports differ by bank and channel (KlikBCA, Livin, BRImo), so each gets its own import once a real export
|
|
4
|
+
# is in hand; until then the owner pastes the bank's rows into this layout (template in the module docs).
|
|
5
|
+
# Same file twice -> duplicate (file hash). Overlapping exports -> only rows whose key is new. Urutan (the number of
|
|
6
|
+
# the line within its day in the bank's export: 1, 2, 3, ...) is in the key, so two equal transfers on one day
|
|
7
|
+
# differ whether or not the export has a running balance. Saldo is in the key too when it is filled: it tells lines
|
|
8
|
+
# apart even if a pasted part of a day is numbered from 1 again, so a column more in the key can only add a line
|
|
9
|
+
# (visible, can be ignored), never drop one. Without Saldo, Urutan must be the line's place in the whole day.
|
|
10
|
+
# A file without Urutan is refused (missing column), never deduplicated by content alone.
|
|
11
|
+
name: bank_statement_csv
|
|
12
|
+
label: {id: Mutasi rekening (CSV), en: Bank statement (CSV)}
|
|
13
|
+
model: bank_transaction
|
|
14
|
+
source: csv
|
|
15
|
+
header_row: 1
|
|
16
|
+
per: org
|
|
17
|
+
key: [Rekening, Tanggal, Urutan, Keterangan, Masuk, Keluar, Saldo]
|
|
18
|
+
map:
|
|
19
|
+
account: Rekening
|
|
20
|
+
date: Tanggal
|
|
21
|
+
seq: Urutan
|
|
22
|
+
description: Keterangan
|
|
23
|
+
credit: Masuk
|
|
24
|
+
debit: Keluar
|
|
25
|
+
balance: Saldo
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
# One line of the bank statement. Money in is positive, money out negative. Status:
|
|
3
|
+
# unmatched -> suggested (flow bank_transaction_suggest found exactly one invoice) -> confirmed (the owner agrees,
|
|
4
|
+
# flow bank_transaction_confirm drafts the payment into draft_payment) -> matched (that very draft is submitted;
|
|
5
|
+
# flow bank_transaction_matched sets payment). ignored = not a sale.
|
|
6
|
+
# payment is only ever a submitted payment and only flows write it, so "Cocok" cannot be set by hand. The payment
|
|
7
|
+
# names the line in payment.bank_transaction, and bank_transaction_claim allows one live payment per line, whatever
|
|
8
|
+
# path made it. draft_payment points at the line's open draft, which confirming again reuses; a deleted draft is
|
|
9
|
+
# drafted again by saving the line as "Dikonfirmasi". Cancelling the payment sends the line back to unmatched.
|
|
10
|
+
name: bank_transaction
|
|
11
|
+
label: {id: Mutasi bank, en: Bank transaction}
|
|
12
|
+
icon: bank
|
|
13
|
+
naming: MUT-{YYYY}-{#####}
|
|
14
|
+
title_field: description
|
|
15
|
+
permissions:
|
|
16
|
+
- {role: finance_manager, read: true, create: true, write: true, export: true, import: true}
|
|
17
|
+
# a line that is paid (payment set) is never deleted: its payment and claim would point at nothing
|
|
18
|
+
- {role: finance_manager, delete: true, if: payment == ''}
|
|
19
|
+
- {role: sales_manager, read: true, create: true, write: true, export: true, import: true}
|
|
20
|
+
- {role: head_office, read: true, create: true, write: true, export: true, import: true}
|
|
21
|
+
fields:
|
|
22
|
+
- name: account
|
|
23
|
+
type: data
|
|
24
|
+
label: {id: Rekening}
|
|
25
|
+
in_list: true
|
|
26
|
+
- name: date
|
|
27
|
+
type: date
|
|
28
|
+
label: {id: Tanggal}
|
|
29
|
+
required: true
|
|
30
|
+
in_list: true
|
|
31
|
+
- name: seq
|
|
32
|
+
type: int
|
|
33
|
+
label: {id: Urutan}
|
|
34
|
+
help: {id: 'Nomor baris transaksi di hari itu sesuai mutasi bank (1, 2, 3, ...). Membedakan dua transfer yang sama di hari yang sama.'}
|
|
35
|
+
required: true
|
|
36
|
+
- name: description
|
|
37
|
+
type: data
|
|
38
|
+
label: {id: Keterangan}
|
|
39
|
+
required: true
|
|
40
|
+
in_list: true
|
|
41
|
+
- name: credit
|
|
42
|
+
type: currency
|
|
43
|
+
label: {id: Masuk}
|
|
44
|
+
default: '0'
|
|
45
|
+
- name: debit
|
|
46
|
+
type: currency
|
|
47
|
+
label: {id: Keluar}
|
|
48
|
+
default: '0'
|
|
49
|
+
- name: amount
|
|
50
|
+
type: currency
|
|
51
|
+
label: {id: Jumlah}
|
|
52
|
+
compute: credit - debit
|
|
53
|
+
in_list: true
|
|
54
|
+
- name: balance
|
|
55
|
+
type: currency
|
|
56
|
+
label: {id: Saldo}
|
|
57
|
+
help: {id: 'Salin dari mutasi bank kalau ada. Kalau kosong, Urutan harus nomor baris di seluruh hari itu, bukan nomor di potongan yang ditempel.'}
|
|
58
|
+
- name: status
|
|
59
|
+
type: select
|
|
60
|
+
label: {id: Status cocok}
|
|
61
|
+
default: "'unmatched'"
|
|
62
|
+
required: true
|
|
63
|
+
chip: true
|
|
64
|
+
in_list: true
|
|
65
|
+
in_filter: true
|
|
66
|
+
options:
|
|
67
|
+
- {value: unmatched, label: {id: Belum cocok}}
|
|
68
|
+
- {value: suggested, label: {id: Ada usulan}}
|
|
69
|
+
- {value: confirmed, label: {id: Dikonfirmasi}}
|
|
70
|
+
- {value: matched, label: {id: Cocok, en: Matched}}
|
|
71
|
+
- {value: ignored, label: {id: Abaikan}}
|
|
72
|
+
- name: suggested_invoice
|
|
73
|
+
type: link
|
|
74
|
+
to: sales_invoice
|
|
75
|
+
label: {id: Faktur}
|
|
76
|
+
help: {id: 'Diisi otomatis kalau tepat satu faktur cocok; boleh diganti sebelum konfirmasi.'}
|
|
77
|
+
peek: [customer, outstanding, due_date]
|
|
78
|
+
in_list: true
|
|
79
|
+
# data, not link: the draft may be deleted (and is renamed on submit); a link to a missing record would make the
|
|
80
|
+
# line unsavable.
|
|
81
|
+
- name: draft_payment
|
|
82
|
+
type: data
|
|
83
|
+
label: {id: Draf pembayaran}
|
|
84
|
+
read_only: true
|
|
85
|
+
- name: payment
|
|
86
|
+
type: link
|
|
87
|
+
to: payment
|
|
88
|
+
label: {id: Pembayaran}
|
|
89
|
+
read_only: true
|
|
90
|
+
rules:
|
|
91
|
+
- name: one_side_only
|
|
92
|
+
on: save
|
|
93
|
+
check: credit >= 0 && debit >= 0 && (credit == 0 || debit == 0)
|
|
94
|
+
message: {id: 'Isi Masuk atau Keluar saja, tidak boleh negatif'}
|
|
95
|
+
- name: confirm_needs_invoice
|
|
96
|
+
on: save
|
|
97
|
+
check: status != 'confirmed' || suggested_invoice != ''
|
|
98
|
+
message: {id: Pilih faktur sebelum konfirmasi}
|
|
99
|
+
- name: confirm_only_money_in
|
|
100
|
+
on: save
|
|
101
|
+
check: status != 'confirmed' || amount > 0
|
|
102
|
+
message: {id: Hanya uang masuk yang bisa dicocokkan ke faktur penjualan}
|
|
103
|
+
- name: matched_needs_payment
|
|
104
|
+
on: save
|
|
105
|
+
check: (status == 'matched') == (payment != '')
|
|
106
|
+
message: {id: Status Cocok diisi otomatis saat pembayarannya diajukan dan hanya lepas saat pembayaran itu dibatalkan}
|
|
107
|
+
- name: seq_positive
|
|
108
|
+
on: save
|
|
109
|
+
check: seq > 0
|
|
110
|
+
message: {id: Urutan mulai dari 1}
|
|
111
|
+
views:
|
|
112
|
+
list:
|
|
113
|
+
columns: [date, description, amount, status, suggested_invoice, payment]
|
|
114
|
+
sort: -date
|
|
115
|
+
form:
|
|
116
|
+
layout:
|
|
117
|
+
- section: {id: Mutasi}
|
|
118
|
+
columns:
|
|
119
|
+
- [date, seq, account, description]
|
|
120
|
+
- [credit, debit, amount, balance]
|
|
121
|
+
- section: {id: Pencocokan}
|
|
122
|
+
columns:
|
|
123
|
+
- [status, suggested_invoice]
|
|
124
|
+
- [draft_payment, payment]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
# The invariant of the money rail: one statement line is paid by at most one live (submitted) payment. A payment
|
|
3
|
+
# names its line in payment.bank_transaction (set when the line is confirmed; amend copies it). When such a payment
|
|
4
|
+
# is submitted, flow bank_transaction_claim creates the claim for the line in the same transaction, and the unique
|
|
5
|
+
# index on bank_transaction refuses the submit (422) when another live payment holds the line, whatever path made the
|
|
6
|
+
# payment (a new draft, an amend, an old draft left behind, two submits at once). Cancelling the payment releases the
|
|
7
|
+
# claim (bank_transaction emptied, the name kept in released_line). Only flows write it.
|
|
8
|
+
# A claim is also only valid for the line's own payment: the draft the line made (line.draft_payment) or the amend of
|
|
9
|
+
# a payment of that line, for the line's amount. The flows set `valid` and the rule refuses the save otherwise; the
|
|
10
|
+
# same rule refuses a change of payment.bank_transaction (flow bank_transaction_link_locked).
|
|
11
|
+
name: bank_transaction_claim
|
|
12
|
+
label: {id: Klaim mutasi bank, en: Bank transaction claim}
|
|
13
|
+
icon: bank
|
|
14
|
+
naming: MTC-{YYYY}-{#####}
|
|
15
|
+
title_field: bank_transaction
|
|
16
|
+
permissions:
|
|
17
|
+
- {role: finance_manager, read: true, create: true, write: true, export: true}
|
|
18
|
+
- {role: sales_manager, read: true, create: true, write: true, export: true}
|
|
19
|
+
- {role: head_office, read: true, create: true, write: true}
|
|
20
|
+
fields:
|
|
21
|
+
- name: bank_transaction
|
|
22
|
+
type: data
|
|
23
|
+
label: {id: Mutasi bank yang sudah dibayar}
|
|
24
|
+
unique: true
|
|
25
|
+
read_only: true
|
|
26
|
+
in_list: true
|
|
27
|
+
- name: payment
|
|
28
|
+
type: data
|
|
29
|
+
label: {id: Pembayaran}
|
|
30
|
+
read_only: true
|
|
31
|
+
in_list: true
|
|
32
|
+
- name: released_line
|
|
33
|
+
type: data
|
|
34
|
+
label: {id: Mutasi yang dilepas}
|
|
35
|
+
read_only: true
|
|
36
|
+
in_list: true
|
|
37
|
+
- name: valid
|
|
38
|
+
type: check
|
|
39
|
+
label: {id: Sah}
|
|
40
|
+
default: 'true'
|
|
41
|
+
read_only: true
|
|
42
|
+
rules:
|
|
43
|
+
- name: own_payment_only
|
|
44
|
+
on: save
|
|
45
|
+
check: valid
|
|
46
|
+
message: {id: 'Mutasi bank hanya bisa dibayar oleh draf dari mutasi itu (atau amend-nya) sebesar nilai mutasi, dan tidak bisa diubah'}
|
|
47
|
+
views:
|
|
48
|
+
list:
|
|
49
|
+
columns: [bank_transaction, payment, released_line]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
|
|
2
|
+
# Bank statement lines (mutasi rekening) imported from the bank's export, matched to sales invoices and turned into
|
|
3
|
+
# payments. A payment stays the only thing that settles an invoice: a statement line never pays one by itself.
|
|
4
|
+
name: bank_statement
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
title: {id: Mutasi bank, en: Bank statement}
|
|
7
|
+
summary:
|
|
8
|
+
id: Impor mutasi rekening bank dan cocokkan uang masuk dengan tagihan.
|
|
9
|
+
en: Import bank statements and match money in with invoices.
|
|
10
|
+
category: finance
|
|
11
|
+
icon: bank-line
|
|
12
|
+
requires: {rangka: '>=0.5', users: ^1.0, contacts: ^1.0, invoicing: ^1.0, payments: ^1.0}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/import.json
|
|
2
|
+
# The opening item list of a new installation: one row per item, the same file for F&B materials and products and for
|
|
3
|
+
# services. SKU is required (it is the duplicate key and what the sales imports match on). Jenis is read without regard
|
|
4
|
+
# to case (Bahan baku, Produk jadi, Jasa; anything else is Barang). Units are matched by name (Kg, Liter, Pcs,
|
|
5
|
+
# Orang-hari...), so the units must exist first. Imports only create: a SKU already imported is skipped, prices are
|
|
6
|
+
# changed on the item itself.
|
|
7
|
+
name: item_list
|
|
8
|
+
label: {id: Daftar barang & harga, en: Item list}
|
|
9
|
+
model: item
|
|
10
|
+
source: csv
|
|
11
|
+
header_row: 1
|
|
12
|
+
key: [SKU]
|
|
13
|
+
map:
|
|
14
|
+
item_name: Nama barang
|
|
15
|
+
sku: SKU
|
|
16
|
+
kind: "=row['Jenis'].lowerAscii().trim() == 'bahan baku' ? 'material' : row['Jenis'].lowerAscii().trim() == 'produk jadi' ? 'product' : row['Jenis'].lowerAscii().trim() == 'jasa' ? 'service' : 'good'"
|
|
17
|
+
stock_uom: {value: Satuan, match: uom_name}
|
|
18
|
+
sales_uom: {value: Satuan, match: uom_name}
|
|
19
|
+
rate: Harga jual
|
|
20
|
+
standard_cost: Harga pokok
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/import.json
|
|
2
|
+
# Juragan's item list template (one row per item or variant), the way a shop moves its POS item list or its Excel in.
|
|
3
|
+
# Headers: SKU, Barcode, Nama barang, Kategori, Grup varian, Varian, Satuan, Harga jual, Harga pokok, Penitip, Harga
|
|
4
|
+
# setor. Satuan, Kategori and Penitip (a vendor) must already exist, by name; empty cells leave the field empty. Imports only create: an SKU already imported is skipped (key), so an updated
|
|
5
|
+
# list adds the new items and leaves the old ones as they are. Columns are matched by name, so the order is free.
|
|
6
|
+
# Not checked against a real POS item export yet: Moka, Loyverse and majoo each name these columns differently.
|
|
7
|
+
name: item_master
|
|
8
|
+
label: {id: Daftar barang, en: Item list}
|
|
9
|
+
model: item
|
|
10
|
+
source: csv
|
|
11
|
+
header_row: 1
|
|
12
|
+
key: [SKU]
|
|
13
|
+
map:
|
|
14
|
+
sku: SKU
|
|
15
|
+
barcode: Barcode
|
|
16
|
+
item_name: Nama barang
|
|
17
|
+
kind: "='good'"
|
|
18
|
+
category: {value: Kategori, match: category_name}
|
|
19
|
+
variant_group: Grup varian
|
|
20
|
+
variant_label: Varian
|
|
21
|
+
stock_uom: {value: Satuan, match: uom_name}
|
|
22
|
+
rate: Harga jual
|
|
23
|
+
standard_cost: Harga pokok
|
|
24
|
+
consignor: {value: Penitip, match: vendor_name}
|
|
25
|
+
consignment_cost: Harga setor
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: item
|
|
3
|
+
label: {id: Barang}
|
|
4
|
+
icon: stock
|
|
5
|
+
naming: BRG-{####}
|
|
6
|
+
title_field: item_name
|
|
7
|
+
permissions:
|
|
8
|
+
- {role: sales_manager, read: true, create: true, write: true, print: true}
|
|
9
|
+
- {role: finance_manager, read: true, create: true, write: true, print: true}
|
|
10
|
+
- {role: purchasing_manager, read: true, create: true, write: true, print: true}
|
|
11
|
+
- {role: project_admin, read: true, create: true, write: true, print: true}
|
|
12
|
+
- {role: head_office, read: true, create: true, write: true, import: true, print: true}
|
|
13
|
+
- {role: outlet_staff, read: true}
|
|
14
|
+
- {role: sales_rep, read: true}
|
|
15
|
+
- {role: field_sales, read: true}
|
|
16
|
+
# course schools: the program's line on the invoice
|
|
17
|
+
- {role: course_admin, read: true}
|
|
18
|
+
- {role: cashier, read: true}
|
|
19
|
+
fields:
|
|
20
|
+
- name: item_name
|
|
21
|
+
type: data
|
|
22
|
+
label: {id: Nama barang}
|
|
23
|
+
required: true
|
|
24
|
+
in_list: true
|
|
25
|
+
- name: sku
|
|
26
|
+
type: data
|
|
27
|
+
label: {id: SKU}
|
|
28
|
+
in_list: true
|
|
29
|
+
unique: true
|
|
30
|
+
# A shop scans or types the barcode (EAN-13 / PLU) printed on the pack; a POS export usually carries it as the SKU.
|
|
31
|
+
- name: barcode
|
|
32
|
+
type: data
|
|
33
|
+
label: {id: Barcode}
|
|
34
|
+
unique: true
|
|
35
|
+
- name: category
|
|
36
|
+
type: link
|
|
37
|
+
to: item_category
|
|
38
|
+
label: {id: Kategori}
|
|
39
|
+
in_list: true
|
|
40
|
+
# Variants are separate items (every Indonesian POS exports a variant as its own SKU). Items of one product share
|
|
41
|
+
# variant_group (e.g. KAOS-POLOS) and differ in variant_label (e.g. "M / Hitam"); no size x colour generator.
|
|
42
|
+
- name: variant_group
|
|
43
|
+
type: data
|
|
44
|
+
label: {id: Grup varian}
|
|
45
|
+
help: {id: 'Kode yang sama untuk semua varian satu produk, misalnya KAOS-POLOS'}
|
|
46
|
+
- name: variant_label
|
|
47
|
+
type: data
|
|
48
|
+
label: {id: Varian}
|
|
49
|
+
help: {id: 'Misalnya "M / Hitam" atau "600 ml"'}
|
|
50
|
+
- name: kind
|
|
51
|
+
type: select
|
|
52
|
+
label: {id: Jenis}
|
|
53
|
+
required: true
|
|
54
|
+
in_list: true
|
|
55
|
+
default: "'good'"
|
|
56
|
+
options:
|
|
57
|
+
- {value: service, label: {id: Jasa}}
|
|
58
|
+
- {value: good, label: {id: Barang}}
|
|
59
|
+
- {value: material, label: {id: Bahan baku}}
|
|
60
|
+
- {value: product, label: {id: Produk jadi}}
|
|
61
|
+
- name: stock_uom
|
|
62
|
+
type: link
|
|
63
|
+
to: uom
|
|
64
|
+
label: {id: Satuan stok}
|
|
65
|
+
required: true
|
|
66
|
+
in_list: true
|
|
67
|
+
- name: sales_uom
|
|
68
|
+
type: link
|
|
69
|
+
to: uom
|
|
70
|
+
label: {id: Satuan jual}
|
|
71
|
+
- name: rate
|
|
72
|
+
type: currency
|
|
73
|
+
label: {id: Harga jual}
|
|
74
|
+
in_list: true
|
|
75
|
+
# Tier prices of a distributor (module distribution): a customer's price_tier picks rate, rate_wholesale or
|
|
76
|
+
# rate_agent on its orders. Empty (0) falls back to rate.
|
|
77
|
+
- name: rate_wholesale
|
|
78
|
+
type: currency
|
|
79
|
+
label: {id: Harga grosir}
|
|
80
|
+
depends_on: app_installed('distribution')
|
|
81
|
+
- name: rate_agent
|
|
82
|
+
type: currency
|
|
83
|
+
label: {id: Harga agen}
|
|
84
|
+
depends_on: app_installed('distribution')
|
|
85
|
+
# Production (module production): the BOM this item is made with (also how a semi-finished line costs in a
|
|
86
|
+
# multi-level BOM) and its shelf life, which sets the expiry date of a batch.
|
|
87
|
+
- name: default_bom
|
|
88
|
+
type: link
|
|
89
|
+
to: bom
|
|
90
|
+
label: {id: Resep produksi}
|
|
91
|
+
depends_on: app_installed('production')
|
|
92
|
+
- name: shelf_life_days
|
|
93
|
+
type: int
|
|
94
|
+
label: {id: Umur simpan (hari)}
|
|
95
|
+
depends_on: app_installed('production')
|
|
96
|
+
- name: standard_cost
|
|
97
|
+
type: currency
|
|
98
|
+
label: {id: Harga pokok standar}
|
|
99
|
+
- name: stock
|
|
100
|
+
type: float
|
|
101
|
+
label: {id: Stok}
|
|
102
|
+
in_list: true
|
|
103
|
+
# Consignment in (barang titipan): the consignor still owns the goods; the shop pays consignment_cost per unit sold
|
|
104
|
+
# in the monthly settlement (module consignment). Empty consignor = the shop's own goods.
|
|
105
|
+
- name: consignor
|
|
106
|
+
type: link
|
|
107
|
+
to: vendor
|
|
108
|
+
label: {id: Penitip}
|
|
109
|
+
help: {id: 'Isi kalau barang ini titipan. Kosongkan untuk barang milik sendiri'}
|
|
110
|
+
depends_on: app_installed('consignment')
|
|
111
|
+
- name: consignment_cost
|
|
112
|
+
type: currency
|
|
113
|
+
label: {id: Harga setor titipan}
|
|
114
|
+
help: {id: 'Yang dibayar ke penitip per barang terjual'}
|
|
115
|
+
depends_on: app_installed('consignment') && consignor != ''
|
|
116
|
+
- name: notes
|
|
117
|
+
type: text
|
|
118
|
+
label: {id: Catatan}
|
|
119
|
+
# e-Faktur (module coretax): the 6-digit Coretax goods/services code; empty = 000000 (no specific code).
|
|
120
|
+
- name: coretax_code
|
|
121
|
+
type: data
|
|
122
|
+
label: {id: Kode barang/jasa Coretax}
|
|
123
|
+
help: {id: '6 angka dari referensi kode barang/jasa Coretax. Kosongkan bila tidak tahu (000000)'}
|
|
124
|
+
depends_on: app_installed('coretax')
|
|
125
|
+
rules:
|
|
126
|
+
- name: coretax_code_6
|
|
127
|
+
on: save
|
|
128
|
+
check: "coretax_code == '' || coretax_code.matches('^[0-9]{6}$')"
|
|
129
|
+
message: {id: Kode barang/jasa Coretax harus 6 angka}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: item_category
|
|
3
|
+
label: {id: Kategori barang, en: Item category}
|
|
4
|
+
icon: stock
|
|
5
|
+
naming: KTG-{###}
|
|
6
|
+
title_field: category_name
|
|
7
|
+
# Flat list (no tree): shops group items as "Minuman", "Sembako", "Rokok". Margin and sales per category are read
|
|
8
|
+
# from the item's category.
|
|
9
|
+
permissions:
|
|
10
|
+
- {role: sales_manager, read: true, create: true, write: true, print: true}
|
|
11
|
+
- {role: finance_manager, read: true, create: true, write: true, print: true}
|
|
12
|
+
- {role: purchasing_manager, read: true, create: true, write: true, print: true}
|
|
13
|
+
- {role: project_admin, read: true, create: true, write: true, print: true}
|
|
14
|
+
- {role: head_office, read: true, create: true, write: true, delete: true, print: true}
|
|
15
|
+
- {role: outlet_staff, read: true}
|
|
16
|
+
- {role: sales_rep, read: true}
|
|
17
|
+
- {role: field_sales, read: true}
|
|
18
|
+
fields:
|
|
19
|
+
- name: category_name
|
|
20
|
+
type: data
|
|
21
|
+
label: {id: Nama kategori}
|
|
22
|
+
required: true
|
|
23
|
+
in_list: true
|
|
24
|
+
unique: true
|
|
25
|
+
- name: notes
|
|
26
|
+
type: text
|
|
27
|
+
label: {id: Catatan}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: price_list
|
|
3
|
+
label: {id: Daftar harga}
|
|
4
|
+
icon: stock
|
|
5
|
+
naming: HRG-{###}
|
|
6
|
+
title_field: list_name
|
|
7
|
+
permissions:
|
|
8
|
+
- {role: sales_manager, read: true, create: true, write: true, print: true}
|
|
9
|
+
- {role: finance_manager, read: true, create: true, write: true, print: true}
|
|
10
|
+
- {role: purchasing_manager, read: true, create: true, write: true, print: true}
|
|
11
|
+
- {role: project_admin, read: true, create: true, write: true, print: true}
|
|
12
|
+
- {role: head_office, read: true, create: true, write: true, print: true}
|
|
13
|
+
- {role: outlet_staff, read: true}
|
|
14
|
+
fields:
|
|
15
|
+
- name: list_name
|
|
16
|
+
type: data
|
|
17
|
+
label: {id: Nama daftar harga}
|
|
18
|
+
required: true
|
|
19
|
+
in_list: true
|
|
20
|
+
- name: customer
|
|
21
|
+
type: link
|
|
22
|
+
to: customer
|
|
23
|
+
label: {id: Pelanggan}
|
|
24
|
+
help: {id: Kosongkan kalau berlaku untuk semua pelanggan}
|
|
25
|
+
- name: valid_from
|
|
26
|
+
type: date
|
|
27
|
+
label: {id: Berlaku dari}
|
|
28
|
+
- name: valid_until
|
|
29
|
+
type: date
|
|
30
|
+
label: {id: Berlaku sampai}
|
|
31
|
+
- name: items
|
|
32
|
+
type: table
|
|
33
|
+
of: price_list_item
|
|
34
|
+
label: {id: Harga}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: price_list_item
|
|
3
|
+
is_child: true
|
|
4
|
+
fields:
|
|
5
|
+
- name: item
|
|
6
|
+
type: link
|
|
7
|
+
to: item
|
|
8
|
+
label: {id: Barang}
|
|
9
|
+
required: true
|
|
10
|
+
- name: description
|
|
11
|
+
type: text
|
|
12
|
+
label: {id: Uraian}
|
|
13
|
+
default: item.item_name
|
|
14
|
+
- name: uom
|
|
15
|
+
type: link
|
|
16
|
+
to: uom
|
|
17
|
+
label: {id: Satuan}
|
|
18
|
+
- name: rate
|
|
19
|
+
type: currency
|
|
20
|
+
label: {id: Harga}
|
|
21
|
+
required: true
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/model.json
|
|
2
|
+
name: uom
|
|
3
|
+
label: {id: Satuan}
|
|
4
|
+
icon: stock
|
|
5
|
+
naming: UOM-{###}
|
|
6
|
+
title_field: uom_name
|
|
7
|
+
permissions:
|
|
8
|
+
- {role: field_sales, read: true}
|
|
9
|
+
- {role: sales_manager, read: true, create: true, write: true, print: true}
|
|
10
|
+
- {role: finance_manager, read: true, create: true, write: true, print: true}
|
|
11
|
+
- {role: purchasing_manager, read: true, create: true, write: true, print: true}
|
|
12
|
+
- {role: project_admin, read: true, create: true, write: true, print: true}
|
|
13
|
+
- {role: head_office, read: true, create: true, write: true, print: true}
|
|
14
|
+
- {role: outlet_staff, read: true}
|
|
15
|
+
- {role: cashier, read: true}
|
|
16
|
+
fields:
|
|
17
|
+
- name: uom_name
|
|
18
|
+
type: data
|
|
19
|
+
label: {id: Nama satuan}
|
|
20
|
+
required: true
|
|
21
|
+
in_list: true
|
|
22
|
+
unique: true
|
|
23
|
+
# e-Faktur (module coretax): the Coretax unit code (UM.0018 Unit, UM.0026 Hari, UM.0030 Kegiatan, ...); empty = UM.0033 Lainnya.
|
|
24
|
+
- name: coretax_unit
|
|
25
|
+
type: data
|
|
26
|
+
label: {id: Kode satuan Coretax}
|
|
27
|
+
help: {id: 'Misalnya UM.0018 Unit, UM.0003 Kilogram, UM.0026 Hari, UM.0027 Jam, UM.0024 Bulan, UM.0030 Kegiatan. Kosongkan = UM.0033 Lainnya'}
|
|
28
|
+
in_list: true
|
|
29
|
+
depends_on: app_installed('coretax')
|
|
30
|
+
rules:
|
|
31
|
+
- name: coretax_unit_format
|
|
32
|
+
on: save
|
|
33
|
+
check: "coretax_unit == '' || coretax_unit.matches('^UM[.][0-9]{4}$')"
|
|
34
|
+
message: {id: 'Kode satuan Coretax berbentuk UM.0000'}
|