Overview
The list page that contains the Receipt Agreement Lines in Wisefish.
|
Endpoint name |
|
|
Source table |
|
|
Fixed view |
Only shows unposted purchases, i.e. where invoice has not been posted. |
|
Requests allowed |
GET, POST, PATCH, DELETE |
|
Primary key |
|
|
Record ID |
|
|
Procedures |
|
Data
Field List
|
Property |
Type |
Format |
Description |
|
|
|---|---|---|---|---|---|
|
1 |
|
string |
uuid |
The unique id of the record. |
RECORD ID |
|
2 |
|
string |
|
Same document type as for the header, i.e. Receipt or Blanket. If not given when adding a new line, the default is Receipt |
Primary key |
|
3 |
|
string |
max 20 |
The number of agreement |
Primary key |
|
4 |
|
integer |
|
Line number is usually set automatically. |
Primary key |
|
5 |
|
string |
|
This is usally Item, but it is possible to create lines with blank if they are only text lines. |
optional |
|
6 |
|
string |
max 20 |
The item number. |
Mandatory |
|
7 |
|
string |
max 100 |
Description of the item, or the text, if it is a text line. |
|
|
8 |
|
number |
|
The number of trade items. This one is marked as mandatory because that is the recommended usage. Possib |
optional |
|
9 |
|
string |
max 10 |
The unit that belongs to |
optional |
|
10 |
|
number |
|
Quantity, will in calculated automatically if |
optional |
|
11 |
|
string |
max 10 |
This is the unit of measure that belongs to the |
optional |
|
12 |
|
number |
|
Quantity in the base unit of the item. |
NON-EDITABLE |
|
13 |
|
string |
max 10 |
The base unit of the item. |
NON-EDITABLE |
|
14 |
|
number |
|
Direct unit cost. |
optional |
|
15 |
|
number |
|
Unit cost. |
optional |
|
16 |
|
number |
|
Line Amount, is the amount before discount is subtracted. |
NON-EDITABLE |
|
17 |
|
number |
|
This is the discount percentage (%). |
optional |
|
18 |
|
number |
|
Line Discount is the total discount amount. |
NON-EDITABLE |
|
19 |
|
number |
|
The amount when discount has been subtracted. |
NON-EDITABLE |
|
20 |
|
number |
|
The VAT amount. |
NON-EDITABLE |
|
21 |
|
number |
|
Amount + VAT amount. |
NON-EDITABLE |
|
22 |
|
string |
|
The purchase will not post if it does not have a production date. |
Mandatory |
|
23 |
|
string |
max 20 |
Original producer. |
optional |
|
24 |
Added |
string |
max 20 |
If the lot for this line has already been decided, it shall be put into this field. The value must already exist in BC, in the Lot list. To create it the If left empty, the origin lot will be created at the time of posting. |
optional |
|
25 |
|
number |
|
Net Weight of these trade items in base weight unit. |
NON-EDITABLE |
|
26 |
|
number |
|
Gross Weight of these trade items in base weight unit. |
NON-EDITABLE |
|
27 |
|
string |
date |
Landing date |
optional |
|
28 |
|
string |
max 20 |
The code of the landing harbour |
optional |
|
29 |
Added |
string |
max 80 |
Can be used with POST and PATCH to create one comment line for this agreement line. |
optional |
|
30 |
|
string |
date-time |
Time stamp of last modification. |
NON-EDITABLE |
Example Object
In the following example the system is in KG, but this item is sold in LBS. Therefore:
-
User has typed in the number of trade items: 100 LB which can be seen in fields
noOfTradeItemsandtradeItemUnitOfMeasure -
Fields
quantityandunitOfMeasureshow that this is roughly 45 KG. When this line is posted, this will go into the Item Ledger as “quantity”. -
Fields
quantityBaseandbaseUnitOfMeasureshow that this will be posted in the Item Ledger Entry as “base quantity” 100 LB. -
Fields
netWeightandgrossWeightwill show how much weight this is in the general weight unit of the system which is in this case KG.
{
"systemId": "b2fece31-c408-f111-b02e-e6f9cc72e785",
"documentType": "Receipt",
"documentNo": "PR-048",
"lineNo": 10000,
"type": "Item",
"itemNo": "70080",
"description": "Some item in LBS",
"noOfTradeItems": 100,
"tradeItemUnitOfMeasure": "LB",
"quantity": 45.35924,
"unitOfMeasure": "KG",
"quantityBase": 100.00000,
"baseUnitOfMeasure": "LB",
"directUnitCost": 0,
"unitCost": 0,
"lineAmount": 0,
"lineDiscount": 0,
"lineDiscountAmount": 0,
"amount": 0,
"vat": 25,
"amountIncludingVAT": 0,
"productionDate": "0001-01-01",
"originalProducer": "",
"netWeight": 45.359,
"grossWeight": 45.813,
"lastModified": "2026-02-13T10:18:43.637Z"
}
Procedures
Line Comments
For each Agreement Line there is a table for adding comment. Looks like this in BC:
Instead of handling this with APIs on the comment table itself, there are shortcut methods on this API:
-
addCommentLine -
UpdateCommentLine
AddCommentLine
POST
.../purchaseAgreementLines([systemId])/Microsoft.NAV.addCommentLine
Body:
{
"comment": "This will be delivered on pallets"
}
Response:
"value": "Comment line 3 added for the purchase line."
|
Parameters |
|
|---|---|
|
|
The comment text to add on the line |
UpdateCommentLine
POST
.../purchaseAgreementLines([systemId])/Microsoft.NAV.UpdateCommentLine
Body:
{
"commentLineNo": 3
"comment": "This will be delivered on BARCODED pallets"
}
Response:
"value": "Comment line 3 updated for the purchase line."
|
Parameters |
|
|---|---|
|
|
The line no. of the comment to update. The comments made with the API are numbered with 1, 2, 3 … |
|
|
The comment text to update into that comment line |