@host = https://accone.aplikasi.web.id/one-api @date = 2026-07-14 @coaBayarID = 1110100001 @coaHutangID = 2110100030 # ============================================================================= # JurnalPiCicilanOrderAset — Contoh Pemanggilan Endpoint # ============================================================================= # Urutan penggunaan yang disarankan: # 1. ListEligiblePurchaseOrderAssetContracts → lihat kontrak yang akan diproses # 2. GenerateJournalsFromContracts (dryRun=Y) → simulasi tanpa simpan ke DB # 3. GenerateJournalsFromContracts (dryRun=N) → generate jurnal sesungguhnya # 4. CreateJournal → buat jurnal manual 1 per 1 # ============================================================================= ### 1. Lihat kontrak aset yang eligible untuk dibuatkan jurnal bulan ini GET {{host}}/index.php/mockup/scheduler/JurnalPiCicilanOrderAset/ListEligiblePurchaseOrderAssetContracts Content-Type: application/json { "startDate": "2026-07-01", "endDate": "2026-07-31" } ### 2. Simulasi generate jurnal (dryRun=Y) — tidak menyimpan ke database POST {{host}}/index.php/mockup/scheduler/JurnalPiCicilanOrderAset/GenerateJournalsFromContracts Content-Type: application/json { "date" : "{{date}}", "dryRun" : "Y" } ### 3. Generate jurnal untuk semua kontrak eligible bulan ini (sesungguhnya) POST {{host}}/index.php/mockup/scheduler/JurnalPiCicilanOrderAset/GenerateJournalsFromContracts Content-Type: application/json { "date" : "{{date}}", "dryRun" : "N" } ### 4. Generate jurnal untuk 1 kontrak tertentu saja (contractID=99) POST {{host}}/index.php/mockup/scheduler/JurnalPiCicilanOrderAset/GenerateJournalsFromContracts Content-Type: application/json { "date" : "{{date}}", "dryRun" : "Y", "contractID" : 00 } ### 5. Buat jurnal manual (1 jurnal, input detail sendiri) POST {{host}}/index.php/mockup/scheduler/JurnalPiCicilanOrderAset/CreateJournal Content-Type: application/json { "date" : "{{date}}", "branchCode" : "BA", "regionalID" : 8, "branchCompanyID": 1, "jurnalTypeID" : 11, "title" : "Jurnal PI Cicilan Order Aset", "description" : "Cicilan ke-1 dari 12 | Kontrak Kendaraan Operasional | Periode 2026-07", "details" : [ { "coaID" : {{coaHutangID}}, "description": "Hutang cicilan aset - Kendaraan Operasional", "debit" : 15000000, "credit" : 0, "addonCode" : "PIINSTALMENT", "addonValue" : "42", "mItemID" : 123 }, { "coaID" : {{coaBayarID}}, "description": "Pembayaran cicilan aset - Kendaraan Operasional", "debit" : 0, "credit" : 15000000, "addonCode" : "PIINSTALMENT", "addonValue" : "42", "mItemID" : 123 } ] }