fix query get cicilan dan insert supplier invoice
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
@host = accone.aplikasi.web.id/one-api/mockup
|
||||
@host = https://accone.aplikasi.web.id/one-api/
|
||||
|
||||
### Generate PI cicilan langsung
|
||||
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/GenerateMonthlyInvoices
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"startDate": "2026-07-01",
|
||||
"endDate": "2026-07-31",
|
||||
"dryRun": "Y"
|
||||
}
|
||||
|
||||
### List kontrak eligible yang belum diproses
|
||||
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/ListEligibleContracts
|
||||
POST {{host}}/mockup/scheduler/PurchaseInvoiceInstallment/GenerateMonthlyInvoices
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
@@ -19,38 +9,32 @@ Content-Type: application/json
|
||||
"endDate": "2026-07-31"
|
||||
}
|
||||
|
||||
### Generate PI cicilan untuk 1 kontrak
|
||||
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/GenerateMonthlyInvoices
|
||||
### List kontrak eligible yang belum diproses
|
||||
POST https://accone.aplikasi.web.id/one-api/mockup/scheduler/PurchaseInvoiceInstallment/ListEligibleContracts
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"startDate": "2026-07-01",
|
||||
"endDate": "2026-07-31",
|
||||
"contractID": 123,
|
||||
"dryRun": "Y"
|
||||
"endDate": "2026-07-31"
|
||||
}
|
||||
|
||||
### Panggil endpoint generate via cURL internal
|
||||
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/CurlGenerateMonthlyInvoices
|
||||
### Insert supplier_invoice lewat controller terpisah
|
||||
POST {{host}}/mockup/scheduler/PurchaseInvoiceInstallmentInsert/InsertSupplierInvoice
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"baseUrl": "https://accone.aplikasi.web.id/one-api/index.php",
|
||||
"startDate": "2026-07-01",
|
||||
"endDate": "2026-07-31",
|
||||
"userID": 1,
|
||||
"dryRun": "Y"
|
||||
}
|
||||
|
||||
### Panggil endpoint generate via cURL internal untuk kontrak tertentu
|
||||
POST https://{{host}}/scheduler/PurchaseInvoiceInstallment/CurlGenerateMonthlyInvoices
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"baseUrl": "https://accone.aplikasi.web.id/one-api/index.php",
|
||||
"startDate": "2026-07-01",
|
||||
"endDate": "2026-07-31",
|
||||
"userID": 1,
|
||||
"contractID": 123,
|
||||
"dryRun": "N"
|
||||
"nomorPI": "PI-INS-20260712120000-000123-00456-00000",
|
||||
"tanggalPI": "2026-07-31",
|
||||
"tanggalJatuhTempo": "2026-08-14",
|
||||
"jumlahCicilan": 15000000,
|
||||
"catatan": "PI Cicilan Otomatis",
|
||||
"deskripsi": "Cicilan Kontrak Aset",
|
||||
"userID": 0,
|
||||
"purchaseOrderAssetContractID": 123,
|
||||
"purchaseOrderID": 456,
|
||||
"receiveOrderPoID": 789,
|
||||
"supplierID": 12,
|
||||
"purchaseOrderSummaryID": 111,
|
||||
"purchaseOrderSummaryItemID": 222,
|
||||
"purchaseOrderSummaryItemUnitID": 333
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user