addedInput schema / properties / additionalCosts
Added value: +{
+ "description": "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.",
+ "items": {
+ "properties": {
+ "allocationType": {
+ "description": "How to apportion this cost across multiple destination items. Default: 'Appropriate by Value'.",
+ "enum": [
+ "Appropriate by Value",
+ "Appropriate by Quantity",
+ "Not Applicable"
+ ],
+ "type": "string"
+ },
+ "amount": {
+ "description": "Cost amount",
+ "type": "number"
+ },
+ "ledgerName": {
+ "description": "Exact name of the expense ledger to post this cost to",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ledgerName",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
removedInput schema / properties / destItem
Removed value: -{
- "description": "Exact name of the stock item being produced/received",
- "type": "string"
-}
removedInput schema / properties / destQty
Removed value: -{
- "description": "Quantity of destItem produced",
- "type": "number"
-}
removedInput schema / properties / destRate
Removed value: -{
- "description": "Rate per unit of destItem",
- "type": "number"
-}
addedInput schema / properties / destinations
Added value: +{
+ "description": "One or more stock items being produced/received.",
+ "items": {
+ "properties": {
+ "batchName": {
+ "description": "Batch name (optional, defaults to 'Primary Batch')",
+ "type": "string"
+ },
+ "godown": {
+ "description": "Godown this line is received into. Auto-fills only if this company has exactly one godown; required if it has more than one.",
+ "type": "string"
+ },
+ "qty": {
+ "description": "Quantity produced",
+ "type": "number"
+ },
+ "rate": {
+ "description": "Rate per unit",
+ "type": "number"
+ },
+ "stockItem": {
+ "description": "Exact name of the stock item being produced",
+ "type": "string"
+ },
+ "unit": {
+ "description": "Unit of measure, e.g. 'Nos'",
+ "type": "string"
+ }
+ },
+ "required": [
+ "stockItem",
+ "qty",
+ "rate",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
removedInput schema / properties / godown
Removed value: -{
- "description": "Godown for both legs (optional — only needed if the items have godown/location tracking enabled).",
- "type": "string"
-}
removedInput schema / properties / sourceItem
Removed value: -{
- "description": "Exact name of the stock item being consumed/issued",
- "type": "string"
-}
removedInput schema / properties / sourceQty
Removed value: -{
- "description": "Quantity of sourceItem consumed",
- "type": "number"
-}
removedInput schema / properties / sourceRate
Removed value: -{
- "description": "Rate per unit of sourceItem",
- "type": "number"
-}
addedInput schema / properties / sources
Added value: +{
+ "description": "One or more stock items being consumed/issued.",
+ "items": {
+ "properties": {
+ "batchName": {
+ "description": "Batch name (optional, defaults to 'Primary Batch')",
+ "type": "string"
+ },
+ "godown": {
+ "description": "Godown this line is issued from. Auto-fills only if this company has exactly one godown; required if it has more than one.",
+ "type": "string"
+ },
+ "qty": {
+ "description": "Quantity consumed",
+ "type": "number"
+ },
+ "rate": {
+ "description": "Rate per unit",
+ "type": "number"
+ },
+ "stockItem": {
+ "description": "Exact name of the stock item being consumed",
+ "type": "string"
+ },
+ "unit": {
+ "description": "Unit of measure, e.g. 'Nos'",
+ "type": "string"
+ }
+ },
+ "required": [
+ "stockItem",
+ "qty",
+ "rate",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
removedInput schema / properties / unit
Removed value: -{
- "description": "Unit of measure shared by both items, e.g. 'Nos'",
- "type": "string"
-}
addedInput schema / properties / voucherNumber
Added value: +{
+ "description": "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.",
+ "type": "string"
+}
addedInput schema / properties / voucherType
Added value: +{
+ "description": "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.",
+ "type": "string"
+}
changedInput schema / required
Previous value: -[
- "date",
- "sourceItem",
- "sourceQty",
- "sourceRate",
- "destItem",
- "destQty",
- "destRate",
- "unit"
-]New value: +[
+ "date",
+ "sources",
+ "destinations"
+]