iVendNextDevelopers Request a sandbox

Stock Ledger Entry

One line of stock history, written by iVendNext when a stock document is booked. Read it; never write it.

Area: Stock and stores · Why it is here: recipe restaurant_back_office; retail core · Fields: 31

Read and write it

Every call runs as your app's own user, with its key in one header, at the retailer's own address. The user reads and writes only what its role allows: your app's user, and the rights the retailer gives it.

Read a list (only name unless you ask for fields):

curl -s "https://⟨site⟩/api/resource/Stock%20Ledger%20Entry?fields=%5B%22*%22%5D&limit_page_length=20" \
  -H "Authorization: token ⟨api key⟩:⟨api secret⟩"

Read one:

curl -s "https://⟨site⟩/api/resource/Stock%20Ledger%20Entry/⟨name⟩" -H "Authorization: token ⟨api key⟩:⟨api secret⟩"

Your app reads it; it does not write it here: iVendNext writes it when a stock document is booked. All the record calls and their answers: the API reference.

Samples that use it

s45_restaurant_back_office

Fields

Read from the product at POS 2.1.0.667 (till app 60147699c): its own fields, the fields iVendNext adds to it, and iVendNext's changes to any of them. Read-only fields are set by iVendNext; a hidden one is not on the form but can be read. Every record also has name (its id, in the address), owner, creation, modified, modified_by and docstatus (0 a draft, 1 submitted, 2 cancelled), all read-only.

Field Field name Type Required Read-only Hidden Links to
Item Code item_code Link yes Item
Warehouse warehouse Link yes Warehouse
Posting Date posting_date Date yes
Posting Time posting_time Time yes
Posting Datetime posting_datetime Datetime
Is Adjustment Entry is_adjustment_entry Check
Auto Created Serial and Batch Bundle auto_created_serial_and_batch_bundle Check
Voucher Type voucher_type Link yes DocType
Voucher No voucher_no Dynamic Link yes
Voucher Detail No voucher_detail_no Data yes
Serial and Batch Bundle serial_and_batch_bundle Link Serial and Batch Bundle
Dependant SLE Voucher Detail No dependant_sle_voucher_detail_no Data
Recalculate Incoming/Outgoing Rate recalculate_rate Check yes
Qty Change actual_qty Float yes
Qty After Transaction qty_after_transaction Float yes
Incoming Rate incoming_rate Currency yes
Outgoing Rate outgoing_rate Currency yes
Valuation Rate valuation_rate Currency yes
Balance Stock Value stock_value Currency yes
Change in Stock Value stock_value_difference Currency yes
FIFO Stock Queue (qty, rate) stock_queue Long Text yes
Company company Link yes Company
Stock UOM stock_uom Link yes UOM
Project project Link Project
Fiscal Year fiscal_year Data yes
Has Batch No has_batch_no Check
Has Serial No has_serial_no Check
Is Cancelled is_cancelled Check
To Rename to_rename Check yes
Serial No serial_no Long Text yes
Batch No batch_no Data yes

All record types · What you can use

This record type in the kit