gabungkan fungsi get data dengan create jurnal
This commit is contained in:
@@ -1,42 +1,92 @@
|
||||
@host = https://accone.aplikasi.web.id/one-api/
|
||||
@host = https://accone.aplikasi.web.id/one-api
|
||||
@date = 2026-07-14
|
||||
@coaBayarID = 1110100001
|
||||
@coaHutangID = 2110100030
|
||||
|
||||
### Create jurnal PI cicilan order aset
|
||||
POST {{host}}/mockup/scheduler/JurnalPiCicilanOrderAset/CreateJournal
|
||||
Content-Type: application/json
|
||||
# =============================================================================
|
||||
# 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
|
||||
# =============================================================================
|
||||
|
||||
{
|
||||
"date": "2026-07-14",
|
||||
"branchCode": "BA",
|
||||
"regionalID": 8,
|
||||
"branchCompanyID": 1,
|
||||
"jurnalTypeID": 11,
|
||||
"title": "Jurnal PI Cicilan Order Aset",
|
||||
"description": "Pembuatan jurnal PI cicilan order aset",
|
||||
"userID": 0,
|
||||
"details": [
|
||||
{
|
||||
"coaID": 2110100030,
|
||||
"description": "Hutang cicilan",
|
||||
"debit": 15000000,
|
||||
"credit": 0,
|
||||
"addonCode": "PICICIL",
|
||||
"addonValue": "PI-INS-202607140001",
|
||||
"mItemID": 123
|
||||
},
|
||||
{
|
||||
"coaID": 1110100001,
|
||||
"description": "Cicilan",
|
||||
"debit": 0,
|
||||
"credit": 15000000
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
### List eligible purchase order asset contracts
|
||||
POST {{host}}/mockup/scheduler/JurnalPiCicilanOrderAset/ListEligiblePurchaseOrderAssetContracts
|
||||
### 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}}",
|
||||
"coaBayarID" : {{coaBayarID}},
|
||||
"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}}",
|
||||
"coaBayarID" : {{coaBayarID}},
|
||||
"dryRun" : "N",
|
||||
"contractID" : 99
|
||||
}
|
||||
|
||||
|
||||
### 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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user