create_stock_journal
Create a Stock Journal voucher in TallyPrime to transfer stock between items, consuming sources and producing destinations, with optional production costs and no ledger entries.
Instructions
Create a Stock Journal voucher in TallyPrime, moving inventory from one or more source stock items to one or more destination stock items (transfer, manufacturing-style conversion with multiple raw materials consumed and/or multiple finished/by-products produced, etc). Inventory-only — no ledger entries. Every source/destination line's godown is auto-filled only when this company has exactly one godown; if it has more than one (e.g. Dubai/Sharjah/Ajman), godown is required on each line and the call fails naming the available godowns rather than guessing (previously an omitted godown was silently dropped — blank EXCEPTIONS:1, no error text — this is now caught explicitly instead of guessing wrong).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>",
"sources": "<sources>",
"destinations": "<destinations>"
},
"name": "create_stock_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Voucher date in DD-MM-YYYY format | |
| sources | Yes | One or more stock items being consumed/issued. | |
| narration | No | Narration / description for the voucher | |
| voucherType | No | Voucher type to post against. Defaults to 'Stock Journal'. Pass the name of a voucher type created via create_voucher_type with useAsManufacturingJournal to post as a real Manufacturing Journal instead — same underlying voucher shape either way. | |
| destinations | Yes | One or more stock items being produced/received. | |
| voucherNumber | No | Explicit voucher number. Normally omit and let Tally auto-number — but some Tally configurations stop auto-numbering certain voucher types via the XML gateway (confirmed live for item-invoice types; unconfirmed either way for Stock Journal). If creation fails with a blank EXCEPTIONS:1, check get_vouchers for the highest existing number of this voucher type and retry with voucherNumber set to the next one. | |
| additionalCosts | No | Optional additional costs (labour, freight, overhead, etc) incurred in production, posted through an expense ledger and folded into the value of the destination item(s) rather than left as a separate P&L line. |