Set a price
prices_setState or end a price, or put a customer into a price group. what=set: item_code, unit_price, scope (standard, group or customer; round 1106: or supplier, the price that supplier sells at, filled on a purchase order line typed without a price), key (the group, the customer code or the supplier), min_quantity (a quantity break: the price holds from that quantity on, a line takes the highest break it reaches; left out: any quantity), valid_from (YYYY-MM-DD, today when left out) and note: where the price comes from (a quote, an email, a phone conversation); the same price again that day returns the row on file (already_on_file), another price that day replaces it. what=end: end a price of that scope from valid_from. what=group: put customer into a price group (group empty: none). what=product_group: put item_code into a product group (group, small letters; empty: none); a price with level=product_group names the group in item_code and holds for every product in it. A price group of customers is a price tier (a column on Prices): what=tier: key (the tier; a new key adds one), name, percent (the tier's basis: Standard less that percent, computed from the standard price where the tier has no price of its own; empty: Own prices; left out: kept), valid_from (the basis holds from that day); what=tier_end: key, valid_from: the tier's prices end and its column goes, refused while customers are in it. what=product: set a product's own defaults, tax_code (a sales tax code) and account (a revenue account), both optional (empty clears), and cost_basis (batch: the cost of the batch sold, posted with each sale; set: a dated set cost, the cost of sales at month end for invoice and shop sales; from valid_from, earlier sales keep theirs); with level=product_group item_code names a product group and tax_code and cost_basis are set for every product in it; name puts a new product on file, unit_price sets its standard price; then an invoice line with item_code and quantity alone is enough. Round 920, what the margins are worked out from: what=cost: item_code, unit_cost (one unit, net, in the company's currency), valid_from (today when left out), basis (stated, purchase_price or assumed) and note (the source); the same day again corrects it; with cost_basis=set the product goes on Set cost and unit_cost is its set cost from valid_from, the cost of sales at month end (a locked month, or one whose stock entry is posted, is refused). what=margin_threshold: percent for item_code (a product), or item_code with level=product_group (a group); empty percent switches it off (all products: the company's margin threshold in its invoice details); it is a settings change and waits for the owner's one tap where the owner's switch for settings changes asks for it. what=margin_rule: kind (freight, cost_of_goods or ignore), name, account (codes, comma separated), note (the reason); what=margin_rule_end: rule_id. what=freight: journal_line_id (a freight bill, as the freight list of the price table shows it) with freight=confirm (keep the proposed orders), change (orders: the order numbers it carried) or clear (the rule spreads it again); the margins are worked out again. freight=propose puts the bill's split forward for the owner's approval: orders (left out: the order, delivery note or shipment numbers the bill itself names) and split_by (weight, value or units; left out: weight where every product has one, else value); freight=withdraw with proposal_id takes back the AI's own proposal; freight=approve with proposal_id where the owner's switch lets the AI post (else it waits for the owner's one tap; declining is the owner's); approve makes it the orders the bill carried, change and propose take split_by too. what=check_in_done: the weekly price check in was gone through with the owner; note optional; the next is due seven days on. Writes only; reading is a separate tool. Nothing here books anything.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prices_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| kind | No | ||
| name | No | ||
| note | No | ||
| what | No | set | |
| basis | No | stated | |
| group | No | ||
| level | No | ||
| scope | No | standard | |
| orders | No | ||
| account | No | ||
| company | No | ||
| freight | No | ||
| percent | No | ||
| rule_id | No | ||
| customer | No | ||
| split_by | No | ||
| tax_code | No | ||
| item_code | No | ||
| unit_cost | No | ||
| cost_basis | No | ||
| unit_price | No | ||
| valid_from | No | ||
| proposal_id | No | ||
| min_quantity | No | ||
| journal_line_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||