For the complete documentation index, see llms.txt. This page is also available as Markdown.

Save a Delivery Note Against a Purchase Order

Meant to record a supplier's delivery note – the goods a supplier is sending against one or more purchase orders that are already in Logic ERP – so that the goods can later be received and billed against that delivery note. You send the supplier, the delivery note's own details and, per purchase order, the items and quantities being delivered.

Known issue – this endpoint does not save. In the current version the request is not passed on to the code that saves delivery notes. Every request is answered with "Status": false and nothing is saved. Message holds only a short internal code instead of a reason (on some installations: Unable to found Method_Name : …), and request_ID is empty. Until this is fixed, create delivery notes in Logic ERP. To receive goods against a purchase order through the API, use Save a Purchase Voucher Against a Purchase Order.

To read delivery notes, use Get Delivery Notes.

Endpoint

Name
Detail

Address

https://your-server/api/SaveDeliveryNoteAgaintsPO

Method

POST

Authorization

Basic Auth

The address is spelt Againts – send it exactly like this.

The response envelope, branches, dates, queueing and the common messages are explained in How Every API Call Works.

Request fields

The request has these fields. Because the endpoint does not save yet (see the known issue), none of them is checked today. Field names are not case-sensitive.

Field
Type
Meaning

PartyUserCode

text

The supplier, by the party code shown in Logic ERP (User_Code in Get Party Master).

Supplier_Code

number

Not used – the supplier is taken from PartyUserCode. Leave it out.

Branch_Code

number

The branch, as explained in How Every API Call Works.

BranchShortName

text

The branch's short name, used when Branch_Code is 0.

DNO_PreFix

text

Prefix of the delivery note number.

DNO_Number

number

The delivery note number. 0 = the next number for the prefix and branch.

DNO_Date

date

The delivery note date, yyyy-MM-dd.

Delivery_Date

date

The expected delivery date, yyyy-MM-dd.

Invoice_No, Invoice_Date

text, date

The supplier's invoice number and date.

Challan_No, Challan_Date, Challan_Value

text, date, number

The supplier's challan number, date and value.

Discount_Amt

number

Discount amount.

Payment_Amount, Payment_Due_Date, Payment_Due_Days

number, date, text

Payment amount, due date and due days.

Prod_Req_Date

date

Production requirement date, yyyy-MM-dd.

Remarks_1 to Remarks_5

text

Remarks 1 to 5.

ListPO

list

One entry per purchase order the goods are delivered against – see below.

DisplayError

text

"1" = when the request fails, Message holds the full technical detail. Use only while testing.

ListPO – one entry per purchase order

Field
Type
Meaning

PO_DocCode

number

Logic ERP's internal number of the purchase order (Vouch_Code in Get Purchase Orders).

PO_Prefix, PO_Number

text, number

The order's prefix and number, used to find the order in the branch when PO_DocCode is 0.

PartyOrderNo, Po_Order_Date

text, date

The supplier's order number and the order date.

ListPOItem

list

The items delivered: UserCode (the item code shown in Logic ERP) and Quantity. ItemCode is accepted but not used.

Example request

Response

Field
Type
Meaning

Status

true / false

Always false today – see the known issue.

Message

text

Today a short internal code instead of a reason.

LastSavedCode

number

0.

request_ID

text

Empty today.

Example response

What the endpoint returns today (the text of Message varies by installation):