Vendors Subroutines

Vendor master data and inquiry

Subroutine count: 2

Table of Contents


VB_VENDINQ.REV1

Signature: SUBROUTINE VB_VENDINQ(CO,REQTYPE,VNO,LIMIT,NUMBER,OUTDATA,MSG)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_VENDINQ.REV1

PropertyValue
Status[+] analyzed
Safety[SAFE] safe
PatternInquiry
Args7
DescriptionVendor AP history inquiry. Retrieves voucher/payment history by vendor, invoice number, or PO number with configurable row limit.
Safe REQTYPEVENDOR, INVOICE, PO

Arguments:

IndexNameDirectionDescription
0COinCompany number
1REQTYPEinQuery type: ‘VENDOR’ (by vendor), ‘INVOICE’ (by invoice number), ‘PO’ (by purchase order)
2VNOinVendor number
3LIMITinMaximum number of rows to return
4NUMBERinInvoice or PO number (used when REQTYPE is ‘INVOICE’ or ‘PO’)
5OUTDATAoutMulti-valued result: <1>=voucher#, <2>=invoice#, <3>=PO#, <4>=invoice date, <5>=due date, <6>=net amount, <7>=check#, <8>=check date, <9>=check amount, <10>=entry date
6MSGoutError/status message (empty on success)

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_VENDINQ.REV1",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  "",
                 "4":  ""
             }
}

VB_VIM.REV1

Signature: SUBROUTINE VB_VIM.REV1(CO,REQTYPE,VNO,VREC,V1287REC,ADDFLAG,MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_VIM.REV1

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args7
DescriptionSave or soft-delete vendor master records in VENDOR and VENDOR.1287 based on REQTYPE. Supports add, update, and delete operations with audit trail logging.
Dangerous REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number
1REQTYPEinRequest type: ‘DELETE’ to soft-delete (sets VENDOR.1287 field 18 to ‘Y’), any other value to add/update
2VNOinVendor number (record key within company)
3VRECinVendor master record data as dynamic array (written to VENDOR on save)
4V1287RECinVendor 1287 record data as dynamic array (written to VENDOR.1287 on save)
5ADDFLAGinAdd flag: true if adding a new record, false if updating existing
6MESSAGEoutResult message: ‘WRITE SUCCEEDED’ or ‘DELETE SUCCEEDED’

Tables Written: VENDOR, VENDOR.1287

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_VIM.REV1",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  "",
                 "4":  "",
                 "5":  ""
             }
}


Last updated: 2026-02-05 11:29 PM