{
  "module": "sales",
  "schemas": [
    "schema.ncl",
    "../treasury/schema.ncl",
    "../inventory/schema.ncl"
  ],
  "morphisms": [
    {
      "name": "vender",
      "inputs": [
        { "role": "stock", "entity": "Stock" },
        { "role": "caja",  "entity": "Caja"  }
      ],
      "reads":  ["stock.cantidad", "stock.sku_id", "caja.saldo", "caja.currency"],
      "writes": ["stock.cantidad", "caja.saldo", "Venta"],
      "depends_on": [],
      "script": "morphisms/vender.rhai"
    }
  ]
}
