benchmark stringclasses 1
value | task_name stringlengths 19 96 | task_seed int64 0 2 | task_config stringlengths 97 1.34k | goal stringlengths 23 1.12k | start_url stringclasses 1
value | validation stringclasses 1
value |
|---|---|---|---|---|---|---|
erpnext | erpnext.assign_role | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabHas Role` WHERE parent=\"Manufacturing\" AND role NOT IN (SELECT role FROM `tabUser` INNER JOIN `tabHas Role` ON `tabUser`.email=`tabHas Role`.parent WHERE `tabUser`.full_name=\"Post Malone\")", "count": 0} | Assign role profile Manufacturing to user Post Malone | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.assign_role | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabHas Role` WHERE parent=\"Sales\" AND role NOT IN (SELECT role FROM `tabUser` INNER JOIN `tabHas Role` ON `tabUser`.email=`tabHas Role`.parent WHERE `tabUser`.full_name=\"Jessica\")", "count": 0} | Assign role profile Sales to user Jessica | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_email_first_last | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM tabUser WHERE email=\"jacob.smith@servicenow.com\" AND first_name=\"Jacob\" AND last_name=\"Smith\"", "count": 1} | create user with email jacob.smith@servicenow.com and name Jacob Smith | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_email_first_last | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM tabUser WHERE email=\"jill.valentino@servicenow.com\" AND first_name=\"Jill\" AND last_name=\"Valentino\"", "count": 1} | create user with email jill.valentino@servicenow.com and name Jill Valentino | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_email_first_last_username_phone | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM tabUser WHERE username=\"EloGee\" AND first_name=\"Elodie\" AND last_name=\"Green\" AND phone=\"281-000-0000\" AND email=\"elo@service.com\"", "count": 1} | create user with Elodie as first name, Green as last name, EloGee as username, elo@service.com as email, and 281-000-0000 as phone number | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_email_first_last_username_phone | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM tabUser WHERE username=\"OrLMar\" AND first_name=\"Orlando\" AND last_name=\"Mar\" AND phone=\"713-000-0000\" AND email=\"orl@service.com\"", "count": 1} | create user with Orlando as first name, Mar as last name, OrLMar as username, orl@service.com as email, and 713-000-0000 as phone number | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_email_first_last_username_phone | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM tabUser WHERE username=\"AaronL\" AND first_name=\"Aaron\" AND last_name=\"Lieb\" AND phone=\"812-000-0000\" AND email=\"aaron@service.com\"", "count": 1} | create user with Aaron as first name, Lieb as last name, AaronL as username, aaron@service.com as email, and 812-000-0000 as phone number | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_group_with_new_users_HARD | 0 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM `tabUser Group Member` AS ugm INNER JOIN `tabUser` AS u ON ugm.user=u.email WHERE ugm.parent=\"The Powerpuff Girls\" AND u.first_name=\"Blossom\" AND u.last_name=\"Utonium\" AND u.email=\"blossom.utonium@ppg.com\" AND u.bio=\"Protects the c... | Create a user named Blossom Utonium whose email address is blossom.utonium@ppg.com and birthday is 1998-12-12. In their bio, enter the details "Protects the citizens of Townsville against villains like Mojo Jojo, HIM, and the Gangreen Gang alongside her two sisters". Once that user is created, create two more users nam... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_group_with_new_users_HARD | 1 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM `tabUser Group Member` AS ugm INNER JOIN `tabUser` AS u ON ugm.user=u.email WHERE ugm.parent=\"The Rowdyruff Boys\" AND u.first_name=\"Brick\" AND u.last_name=\"JoJo\" AND u.email=\"brick.jojo@ppg.com\" AND u.bio=\"Created by Mojo JoJo and ... | Create a user named Brick JoJo whose email address is brick.jojo@ppg.com and birthday is 1999-12-19. In their bio, enter the details "Created by Mojo JoJo and also used by HIM, direct villain counterparts to the PPG". Once that user is created, create two more users named Boomer JoJo and Butch JoJo. Their email address... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_group_with_new_users_HARD | 2 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM `tabUser Group Member` AS ugm INNER JOIN `tabUser` AS u ON ugm.user=u.email WHERE ugm.parent=\"PPG Villains\" AND u.first_name=\"Mojo\" AND u.last_name=\"JoJo\" AND u.email=\"mojo.jojo@ppg.com\" AND u.bio=\"Always causing trouble around Tow... | Create a user named Mojo JoJo whose email address is mojo.jojo@ppg.com and birthday is 1998-12-15. In their bio, enter the details "Always causing trouble around Townsville". Once that user is created, create two more users named HIM HIM and Princess Morbucks. Their email addresses should be him.him@ppg.com and princes... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_with_email_account_dependency_HARD | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabUser` AS u INNER JOIN `tabEmail Account` AS a ON u.email=a.email_id WHERE u.first_name=\"Walter\" AND u.last_name=\"White\" AND u.email=\"ww@gmail.com\" AND u.username=\"heisenberg\" AND u.phone=\"713-207-3984\" AND u.desk_theme=\"Light\" AND document_follow_notify=\"1... | Create a user named Walter White whose email is ww@gmail.com and username is heisenberg. Add their phone number 713-207-3984 to the record and set their desk theme to Light and document follow frequency to Hourly. Finally, set up their email account so it has ww@gmail.com as the email address, GMail as the service prov... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_with_email_account_dependency_HARD | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabUser` AS u INNER JOIN `tabEmail Account` AS a ON u.email=a.email_id WHERE u.first_name=\"Brandon\" AND u.last_name=\"Mayhew\" AND u.email=\"badger@yahoo.com\" AND u.username=\"badger\" AND u.phone=\"713-000-1111\" AND u.desk_theme=\"Dark\" AND document_follow_notify=\"... | Create a user named Brandon Mayhew whose email is badger@yahoo.com and username is badger. Add their phone number 713-000-1111 to the record and set their desk theme to Dark and document follow frequency to Daily. Finally, set up their email account so it has badger@yahoo.com as the email address, Yahoo Mail as the ser... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_with_email_account_dependency_HARD | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabUser` AS u INNER JOIN `tabEmail Account` AS a ON u.email=a.email_id WHERE u.first_name=\"Peter\" AND u.last_name=\"Baker\" AND u.email=\"sp@yandex.com\" AND u.username=\"skinny_pete\" AND u.phone=\"812-111-0000\" AND u.desk_theme=\"Automatic\" AND document_follow_notif... | Create a user named Peter Baker whose email is sp@yandex.com and username is skinny_pete. Add their phone number 812-111-0000 to the record and set their desk theme to Automatic and document follow frequency to Weekly. Finally, set up their email account so it has sp@yandex.com as the email address, Yandex.Mail as the ... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.disable_user_account | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM tabUser WHERE username=\"Mingi\" and enabled=0", "count": 1} | Disable account for username Mingi | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.disable_user_account | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM tabUser WHERE username=\"orlando\" and enabled=0", "count": 1} | Disable account for username orlando | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.assign_journal_entry_then_update_task_status | 0 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) as count FROM `tabJournal Entry` WHERE title=\"ACC-JV-2025-00005\" and _assign LIKE CONCAT(\"%\", (SELECT email FROM `tabUser` WHERE full_name=\"Eugene Krabs\"), \"%\") UNION ALL SELECT COUNT(*) as count FROM `tabTask` WHERE subject=\"Rescind employee pa... | Assign the journal entry titled ACC-JV-2025-00005 to the user Eugene Krabs and update the "Rescind employee paychecks" task to Pending Review status | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.assign_journal_entry_then_update_task_status | 1 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) as count FROM `tabJournal Entry` WHERE title=\"Office Equipments - SN\" and _assign LIKE CONCAT(\"%\", (SELECT email FROM `tabUser` WHERE full_name=\"Milton Waddams\"), \"%\") UNION ALL SELECT COUNT(*) as count FROM `tabTask` WHERE subject=\"Protect stap... | Assign the journal entry titled Office Equipments - SN to the user Milton Waddams and update the "Protect stapler at all costs" task to Cancelled status | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_then_create_sales_invoice | 0 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Holmes and Watson\" AND cu.customer_type=\"Partnership\" A... | Create a record for the customer named Holmes and Watson with type Partnership. Save their address as 221B Baker Street, London, United Kingdom, then create a sales invoice for Holmes and Watson for 1 unit(s) of the SKU0015 item at a rate of $20.0 per unit. | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_then_create_sales_invoice | 1 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Umbrella Corporation\" AND cu.customer_type=\"Company\" AN... | Create a record for the customer named Umbrella Corporation with type Company. Save their address as 1 Paraguas Street, Raccoon City, Canada, then create a sales invoice for Umbrella Corporation for 2 unit(s) of the SKU0015 item at a rate of $45.5 per unit. | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_then_create_sales_invoice | 2 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Gringotts Wizarding Bank\" AND cu.customer_type=\"Company\... | Create a record for the customer named Gringotts Wizarding Bank with type Company. Save their address as 99 Diagon Alley, London, United Kingdom, then create a sales invoice for Gringotts Wizarding Bank for 10 unit(s) of the SKU0016 item at a rate of $3.0 per unit. | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_then_create_sales_order | 0 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Lumon Industries\" AND cu.customer_type=\"Company\" AND a.... | Create a customer record for the customer Lumon Industries. Set their customer type to Company and address to 101 Crawfords Corner Road, Kier, Canada. Then create a sales order for them that orders 1.0 units of the item SKU0015 at a rate of $20.0 per unit. Items should be shipped from the Payback - SN warehouse and del... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_then_create_sales_order | 1 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Ollivander's Wand Shop\" AND cu.customer_type=\"Individual... | Create a customer record for the customer Ollivander's Wand Shop. Set their customer type to Individual and address to 42 Diagon Alley, London, United Kingdom. Then create a sales order for them that orders 2.0 units of the item SKU0016 at a rate of $45.5 per unit. Items should be shipped from the Teen Kick - SN wareho... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_then_create_sales_order | 2 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"United Liberty Paper\" AND cu.customer_type=\"Partnership\... | Create a customer record for the customer United Liberty Paper. Set their customer type to Partnership and address to 37 Columbus Avenue, Liberty City, Canada. Then create a sales order for them that orders 10.0 units of the item SKU0017 at a rate of $3.0 per unit. Items should be shipped from the Guardians - SN wareho... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_project_then_cancel_payment_entry | 0 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM `tabProject` WHERE project_name=\"Pasta\" AND company=\"ServiceNow\" UNION ALL SELECT COUNT(*) as count FROM `tabPayment Entry` WHERE title=\"Luigi's Pizza and Pasta\" AND status=\"Cancelled\") as counts_sum", "count": 2} | create a new project with Pasta for project name, and ServiceNow for company, then cancel payment entry named Luigi's Pizza and Pasta | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_project_then_cancel_payment_entry | 1 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM `tabProject` WHERE project_name=\"SmashBurger\" AND company=\"ServiceNow\" UNION ALL SELECT COUNT(*) as count FROM `tabPayment Entry` WHERE title=\"Smashburger\" AND status=\"Cancelled\") as counts_sum", "count": 2} | create a new project with SmashBurger for project name, and ServiceNow for company, then cancel payment entry named Smashburger | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_project_then_cancel_payment_entry | 2 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM `tabProject` WHERE project_name=\"Fresas con Crema\" AND company=\"ServiceNow\" UNION ALL SELECT COUNT(*) as count FROM `tabPayment Entry` WHERE title=\"Bueno Nacho\" AND status=\"Cancelled\") as counts_sum", "count": 2} | create a new project with Fresas con Crema for project name, and ServiceNow for company, then cancel payment entry named Bueno Nacho | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_purchase_order_then_manage_supplier | 0 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM tabSupplier WHERE supplier_name=\"Teen Titans\" AND LOCATE(\"Administrator\", _liked_by) > 0 UNION ALL SELECT COUNT(*) AS count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"... | Create a purchase order to send to supplier Teen Titans. Order 1 Unit of the item SKU0013 required by 2070-10-21 with an additional 10.0% discount. Send goods to the X-Men - SN warehouse and favorite this supplier | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_purchase_order_then_manage_supplier | 1 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM tabSupplier WHERE supplier_name=\"The Seven\" AND LOCATE(\"Administrator\", _liked_by) > 0 UNION ALL SELECT COUNT(*) AS count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"Th... | Create a purchase order to send to supplier The Seven. Order 5 Box of the item SKU0014 required by 2070-01-01 with an additional 15.0% discount. Send goods to the Thunderbolts - SN warehouse and favorite this supplier | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_then_assign_task | 0 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM `tabSales Invoice` AS s INNER JOIN `tabSales Invoice Item` AS si ON s.name=si.parent WHERE customer=\"Grant Stella Ltd.\" AND item_code=\"SKU0015\" AND qty=\"1.0\" AND rate=\"20.0\" UNION ALL SELECT COUNT(*) AS count FROM tabTask WHERE sub... | create a sales invoice for the customer Grant Stella Ltd. for the item SKU0015. The invoice should reflect 1.0 for quantity, and $20.0 for rate, then assign the 'discuss Gordon project' task to the user Dorothy Gale | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_then_assign_task | 1 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM `tabSales Invoice` AS s INNER JOIN `tabSales Invoice Item` AS si ON s.name=si.parent WHERE customer=\"DailyDose\" AND item_code=\"SKU0015\" AND qty=\"2.0\" AND rate=\"45.5\" UNION ALL SELECT COUNT(*) AS count FROM tabTask WHERE subject=\"c... | create a sales invoice for the customer DailyDose for the item SKU0015. The invoice should reflect 2.0 for quantity, and $45.5 for rate, then assign the 'clean up codebase' task to the user Billie | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_then_assign_task | 2 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM `tabSales Invoice` AS s INNER JOIN `tabSales Invoice Item` AS si ON s.name=si.parent WHERE customer=\"Palm Beach\" AND item_code=\"SKU0016\" AND qty=\"10.0\" AND rate=\"3.0\" UNION ALL SELECT COUNT(*) AS count FROM tabTask WHERE subject=\"... | create a sales invoice for the customer Palm Beach for the item SKU0016. The invoice should reflect 10.0 for quantity, and $3.0 for rate, then assign the 'remove PII' task to the user Thomas Anderson | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_stock_item_with_name_description_then_create_purchase_order | 0 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM tabItem WHERE item_code=\"SKU0027\" AND item_group=\"Products\" AND item_name=\"Sweater\" AND description LIKE \"%New Size Sweaters%\" AND delivered_by_supplier=1 UNION ALL SELECT COUNT(*) as count FROM `tabPurchase Order` AS o INNER JOIN `... | create stock item with SKU0027 for item code, Sweater for item name, Products for item group, New Size Sweaters for description, and check 'Delivered By Supplier', then create a purchase order for 100 Nos of the stock item SKU0027 to be fulfilled by the supplier Aperture Science. Fulfillment is required by 2036-01-23 a... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_stock_item_with_name_description_then_create_purchase_order | 1 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM tabItem WHERE item_code=\"SKU0028\" AND item_group=\"Consumable\" AND item_name=\"Remote Control\" AND description LIKE \"%battery-powered remote controls%\" AND delivered_by_supplier=1 UNION ALL SELECT COUNT(*) as count FROM `tabPurchase O... | create stock item with SKU0028 for item code, Remote Control for item name, Consumable for item group, battery-powered remote controls for description, and check 'Delivered By Supplier', then create a purchase order for 5000 Set of the stock item SKU0028 to be fulfilled by the supplier Wayne Enterprises. Fulfillment is... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_stock_item_without_name_description_then_create_purchase_order | 0 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM tabItem WHERE item_code=\"SKU0190\" AND item_group=\"Products\" AND stock_uom=\"Nos\" UNION ALL SELECT COUNT(*) as count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"Apertur... | Create a stock item with SKU0190 for item code, Products for item group, Nos for unit of measure. Then create a purchase order to send to supplier Aperture Science for 100 Nos of stock item SKU0190. Order is required by 2036-01-23 and stock should be sent to Hall of Justice - SN warehouse | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_stock_item_without_name_description_then_create_purchase_order | 1 | {"sql": "SELECT SUM(count) AS results_count FROM (SELECT COUNT(*) AS count FROM tabItem WHERE item_code=\"SKU0500\" AND item_group=\"Consumable\" AND stock_uom=\"Set\" UNION ALL SELECT COUNT(*) as count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"Wayne... | Create a stock item with SKU0500 for item code, Consumable for item group, Set for unit of measure. Then create a purchase order to send to supplier Wayne Enterprises for 5000 Set of stock item SKU0500. Order is required by 2026-09-17 and stock should be sent to Metro Tower - SN warehouse | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_task_then_assign_payment_entry | 0 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM `tabTask` AS t INNER JOIN `tabProject` AS p ON t.project=p.name WHERE t.subject=\"start new project\" AND p.project_name=\"Marvin\" UNION ALL SELECT COUNT(*) FROM `tabPayment Entry` WHERE title=\"Grant Stella Ltd. - 1\" AND _assign LIKE CON... | Create a new task for the project Marvin with the subject "start new project", then assign a payment entry named Grant Stella Ltd. - 1 to the user Hughie | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_task_then_assign_payment_entry | 1 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) AS count FROM `tabTask` AS t INNER JOIN `tabProject` AS p ON t.project=p.name WHERE t.subject=\"discuss deadline\" AND p.project_name=\"Monique\" UNION ALL SELECT COUNT(*) FROM `tabPayment Entry` WHERE title=\"Mesmer\" AND _assign LIKE CONCAT(\"%\", (SEL... | Create a new task for the project Monique with the subject "discuss deadline", then assign a payment entry named Mesmer to the user Ashleigh | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_then_cancel_journal_entry | 0 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) as count FROM `tabUser` WHERE email=\"mark.s@lumonindustries.com\" AND first_name=\"Mark\" AND last_name=\"S\" UNION ALL SELECT COUNT(*) as count FROM `tabJournal Entry` WHERE title=\"Queen Maeve - SN\" AND docstatus=2) as counts_sum", "count": 2} | create user with email mark.s@lumonindustries.com and name Mark S, then cancel journal entry named Queen Maeve - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_then_cancel_journal_entry | 1 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) as count FROM `tabUser` WHERE email=\"dylan.g@lumonindustries.com\" AND first_name=\"Dylan\" AND last_name=\"G\" UNION ALL SELECT COUNT(*) as count FROM `tabJournal Entry` WHERE title=\"Homelander - SN\" AND docstatus=2) as counts_sum", "count": 2} | create user with email dylan.g@lumonindustries.com and name Dylan G, then cancel journal entry named Homelander - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_user_then_cancel_journal_entry | 2 | {"sql": "SELECT SUM(count) as results_count FROM (SELECT COUNT(*) as count FROM `tabUser` WHERE email=\"helly.r@lumonindustries.com\" AND first_name=\"Helly\" AND last_name=\"R\" UNION ALL SELECT COUNT(*) as count FROM `tabJournal Entry` WHERE title=\"Starlight - SN\" AND docstatus=2) as counts_sum", "count": 2} | create user with email helly.r@lumonindustries.com and name Helly R, then cancel journal entry named Starlight - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_purchase_order_with_discount | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"MA Inc.\" AND i.qty=\"1\" AND i.item_code=\"SKU0013\" AND i.uom=\"Unit\" AND o.schedule_date=\"2070-10-21\" AND o.additional_discount_percentage=\"10.0\" AND i.wareho... | Create purchase order to supplier MA Inc. for 1 Unit of the item SKU0013 required by 2070-10-21 with 10.0% discount. Send items to the Stores - SN warehouse | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_purchase_order_with_discount | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"Zuckerman Security Ltd.\" AND i.qty=\"5\" AND i.item_code=\"SKU0014\" AND i.uom=\"Box\" AND o.schedule_date=\"2070-01-01\" AND o.additional_discount_percentage=\"15.0... | Create purchase order to supplier Zuckerman Security Ltd. for 5 Box of the item SKU0014 required by 2070-01-01 with 15.0% discount. Send items to the Work In Progress - SN warehouse | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_purchase_order_without_discount | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"Aperture Science\" AND i.qty=\"100\" AND i.item_code=\"SKU0015\" AND i.uom=\"Nos\" AND o.schedule_date=\"2060-01-23\" AND i.warehouse=\"Think Inside the Box - SN\"", ... | Create purchase order for supplier Aperture Science for 100 Nos of the item SKU0015 required by 2060-01-23. Send items to the Think Inside the Box - SN warehouse | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_purchase_order_without_discount | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` AS o INNER JOIN `tabPurchase Order Item` AS i ON o.name=i.parent AND o.supplier_name=\"Wayne Enterprises\" AND i.qty=\"5000\" AND i.item_code=\"SKU0018\" AND i.uom=\"Set\" AND o.schedule_date=\"2060-09-17\" AND i.warehouse=\"The Dream Vault - SN\"", "co... | Create purchase order for supplier Wayne Enterprises for 5000 Set of the item SKU0018 required by 2060-09-17. Send items to the The Dream Vault - SN warehouse | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_supplier_name_email_phone | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM tabSupplier AS s INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=s.name AND dl.link_doctype=\"Supplier\" INNER JOIN tabContact AS c ON c.name=dl.parent WHERE s.supplier_name=\"plant Ltd\" AND c.email_id=\"orlando1@servicenow.com\" AND c.mobile_no=\"000-000-0000\"", "cou... | create supplier record for supplier plant Ltd with email orlando1@servicenow.com and number 000-000-0000 | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_supplier_name_email_phone | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM tabSupplier AS s INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=s.name AND dl.link_doctype=\"Supplier\" INNER JOIN tabContact AS c ON c.name=dl.parent WHERE s.supplier_name=\"brick Ltd\" AND c.email_id=\"jordan1@servicenow.com\" AND c.mobile_no=\"111-111-1111\"", "coun... | create supplier record for supplier brick Ltd with email jordan1@servicenow.com and number 111-111-1111 | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_supplier_name_group_currency_tax_id | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier` WHERE supplier_name=\"Cup Ltd\" AND supplier_group=\"Distributor\" AND default_currency=\"EUR\" AND tax_id=\"33-3333333\" AND allow_purchase_invoice_creation_without_purchase_order=1 AND allow_purchase_invoice_creation_without_purchase_receipt=1", "count": 1} | Create a supplier named Cup Ltd and set its group to Distributor, billing currency to EUR, and tax id to 33-3333333. Allow the supplier to create purchase invoices without purchase orders or purchase receipts | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_supplier_name_group_currency_tax_id | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier` WHERE supplier_name=\"Flower Ltd\" AND supplier_group=\"Raw Material\" AND default_currency=\"GBP\" AND tax_id=\"44-4444444\" AND allow_purchase_invoice_creation_without_purchase_order=1 AND allow_purchase_invoice_creation_without_purchase_receipt=1", "count"... | Create a supplier named Flower Ltd and set its group to Raw Material, billing currency to GBP, and tax id to 44-4444444. Allow the supplier to create purchase invoices without purchase orders or purchase receipts | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.assign_purchase_order | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE name=\"PUR-ORD-2025-00003\" AND _assign LIKE CONCAT(\"%\", (SELECT email FROM `tabUser` WHERE full_name=\"Milton Waddams\"), \"%\", (SELECT email FROM `tabUser` WHERE full_name=\"Dorothy Gale\"), \"%\")", "count": 1} | find purchase order PUR-ORD-2025-00003 and assign it to the users Milton Waddams and Dorothy Gale | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.assign_purchase_order | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE name=\"PUR-ORD-2025-00004\" AND _assign LIKE CONCAT(\"%\", (SELECT email FROM `tabUser` WHERE full_name=\"Gus Fring\"), \"%\", (SELECT email FROM `tabUser` WHERE full_name=\"Thomas Anderson\"), \"%\")", "count": 1} | find purchase order PUR-ORD-2025-00004 and assign it to the users Gus Fring and Thomas Anderson | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.cancel_purchase_order | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE name=\"PUR-ORD-2025-00007\" AND docstatus=2", "count": 1} | cancel purchase order PUR-ORD-2025-00007 | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.cancel_purchase_order | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE name=\"PUR-ORD-2025-00008\" AND docstatus=2", "count": 1} | cancel purchase order PUR-ORD-2025-00008 | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.delete_supplier | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier` WHERE supplier_name=\"Punisher\"", "count": 0} | delete supplier Punisher | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.delete_supplier | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier` WHERE supplier_name=\"Spiderman\"", "count": 0} | delete supplier Spiderman | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.delete_supplier | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier` WHERE supplier_name=\"Captain America\"", "count": 0} | delete supplier Captain America | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.tag_supplier | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier Group` WHERE name=\"Trout\" AND _user_tags LIKE \"%,priority%\"", "count": 1} | add tag priority to supplier group Trout | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.tag_supplier | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier Group` WHERE name=\"Piranha\" AND _user_tags LIKE \"%,quarterly check%\"", "count": 1} | add tag quarterly check to supplier group Piranha | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.tag_supplier | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSupplier Group` WHERE name=\"Snakehead\" AND _user_tags LIKE \"%,urgent%\"", "count": 1} | add tag urgent to supplier group Snakehead | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.add_comment_to_draft_purchase_orders | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE status=\"Draft\" AND (_comments IS NULL OR _comments NOT LIKE \"%need to make this priority%\")", "count": 0} | Update draft purchase orders to include the comment "need to make this priority" | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.add_date_confirmation_number_to_purchase_order | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE name=\"PUR-ORD-2025-00001\" AND schedule_date=\"2026-01-30\" AND order_confirmation_no=\"12345\"", "count": 1} | update required by date to 2026-01-30 and add an order confirmation number 12345 to purchase order PUR-ORD-2025-00001 | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.add_date_confirmation_number_to_purchase_order | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE name=\"PUR-ORD-2025-00002\" AND schedule_date=\"2026-02-15\" AND order_confirmation_no=\"54321\"", "count": 1} | update required by date to 2026-02-15 and add an order confirmation number 54321 to purchase order PUR-ORD-2025-00002 | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.update_target_warehouse_on_suppliers_purchase_orders | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE supplier_name=\"Monsters, Inc.\" AND set_warehouse=\"Goods In Transit - SN\"", "count": 2} | update the target warehouse on all purchase orders for supplier Monsters, Inc. to the warehouse Goods In Transit - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.update_target_warehouse_on_suppliers_purchase_orders | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabPurchase Order` WHERE supplier_name=\"Buy N Large\" AND set_warehouse=\"All Warehouses - SN\"", "count": 2} | update the target warehouse on all purchase orders for supplier Buy N Large to the warehouse All Warehouses - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_name_account_manager_group | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM tabCustomer AS cu INNER JOIN tabComment AS co ON co.reference_doctype=\"Customer\" INNER JOIN tabUser AS u ON cu.account_manager=u.email WHERE cu.customer_name=\"Los Pollos Hermanos\" AND cu.customer_group=\"Commercial\" AND u.full_name=\"Gus Fring\" AND co.content LIKE \"... | create customer record with Los Pollos Hermanos for name, Gus Fring for account manager, Commercial for customer group, and "need to assign sales group here" for comments | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_name_account_manager_group | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM tabCustomer AS cu INNER JOIN tabComment AS co ON co.reference_doctype=\"Customer\" INNER JOIN tabUser AS u ON cu.account_manager=u.email WHERE cu.customer_name=\"Cyberdyne Systems\" AND cu.customer_group=\"Government\" AND u.full_name=\"Skynet\" AND co.content LIKE \"%need... | create customer record with Cyberdyne Systems for name, Skynet for account manager, Government for customer group, and "need to discuss during meeting" for comments | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_name_account_manager_group | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM tabCustomer AS cu INNER JOIN tabComment AS co ON co.reference_doctype=\"Customer\" INNER JOIN tabUser AS u ON cu.account_manager=u.email WHERE cu.customer_name=\"Wonka Industries\" AND cu.customer_group=\"Non Profit\" AND u.full_name=\"Willy Wonka\" AND co.content LIKE \"%... | create customer record with Wonka Industries for name, Willy Wonka for account manager, Non Profit for customer group, and "has anyone had any updates on this?" for comments | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_name_type_address | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Weasley's Wizard Wheezes\" AND cu.customer_type=\"Company\" AND a.address_line1=\"93 Diagon... | create customer record with the name Weasley's Wizard Wheezes, Company for type, 93 Diagon Alley, London, and United Kingdom for address | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_name_type_address | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Al's Toy Barn\" AND cu.customer_type=\"Individual\" AND a.address_line1=\"1111 Haddonfield\... | create customer record with the name Al's Toy Barn, Individual for type, 1111 Haddonfield, Queensland, and Australia for address | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_name_type_address | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM tabCustomer AS cu INNER JOIN `tabDynamic Link` AS dl ON dl.link_name=cu.name AND dl.link_doctype=\"Customer\" INNER JOIN tabAddress AS a ON a.name=dl.parent WHERE cu.customer_name=\"Goldmine\" AND cu.customer_type=\"Partnership\" AND a.address_line1=\"3567 St-Urbain\" AND ... | create customer record with the name Goldmine, Partnership for type, 3567 St-Urbain, Montreal, and Canada for address | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_with_account_manager_group_tax_dependencies_HARD | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabCustomer` AS c INNER JOIN `tabUser` AS u ON c.account_manager=u.name INNER JOIN `tabCustomer Group` AS cg ON c.customer_group=cg.customer_group_name INNER JOIN `tabCustomer Credit Limit` AS ccl ON cg.customer_group_name=ccl.parent WHERE c.customer_name=\"Chicken Place\... | Create a customer named Chicken Place and add Billy as their account manager. Set the customer group to Sopranos, add them to the Maybe Sales tax category, and allow them to create sales invoices without sales orders. Lastly, add a comment on their record, 'This is a good tv show'. - If there is no account manager name... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_with_account_manager_group_tax_dependencies_HARD | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabCustomer` AS c INNER JOIN `tabUser` AS u ON c.account_manager=u.name INNER JOIN `tabCustomer Group` AS cg ON c.customer_group=cg.customer_group_name INNER JOIN `tabCustomer Credit Limit` AS ccl ON cg.customer_group_name=ccl.parent WHERE c.customer_name=\"Duck Place\" A... | Create a customer named Duck Place and add Adiris as their account manager. Set the customer group to Game of Thrones, add them to the Maybe Buying tax category, and allow them to create sales invoices without sales orders. Lastly, add a comment on their record, 'I should order food'. - If there is no account manager n... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_with_account_manager_group_tax_dependencies_HARD | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabCustomer` AS c INNER JOIN `tabUser` AS u ON c.account_manager=u.name INNER JOIN `tabCustomer Group` AS cg ON c.customer_group=cg.customer_group_name INNER JOIN `tabCustomer Credit Limit` AS ccl ON cg.customer_group_name=ccl.parent WHERE c.customer_name=\"Turkey Place\"... | Create a customer named Turkey Place and add Jason as their account manager. Set the customer group to Mad Men, add them to the Maybe Tax tax category, and allow them to create sales invoices without sales orders. Lastly, add a comment on their record, 'What do we watch next?'. - If there is no account manager named Ja... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_with_account_manager_role_profile_group_tax_dependencies_HARD | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabCustomer` AS c INNER JOIN `tabUser` AS u ON c.account_manager=u.name INNER JOIN `tabHas Role` AS r ON u.role_profile_name=r.parent INNER JOIN `tabCustomer Group` as cg ON c.customer_group=cg.customer_group_name INNER JOIN `tabCustomer Credit Limit` as ccl ON cg.custome... | Create a customer record using 'Bobert' for the customer name, 'Breadman' for the account manager, 'Teen Wolf' for the customer group, and 'A big tax' for the tax category. Allow the customer to create sales invoices without sales orders and add a comment that says 'This is a good tv show' on the record. - If there is ... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_with_account_manager_role_profile_group_tax_dependencies_HARD | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabCustomer` AS c INNER JOIN `tabUser` AS u ON c.account_manager=u.name INNER JOIN `tabHas Role` AS r ON u.role_profile_name=r.parent INNER JOIN `tabCustomer Group` as cg ON c.customer_group=cg.customer_group_name INNER JOIN `tabCustomer Credit Limit` as ccl ON cg.custome... | Create a customer record using 'Robert' for the customer name, 'Rollman' for the account manager, 'H2O' for the customer group, and 'Lots of taxes' for the tax category. Allow the customer to create sales invoices without sales orders and add a comment that says 'I should order food' on the record. - If there is no acc... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_customer_with_account_manager_role_profile_group_tax_dependencies_HARD | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabCustomer` AS c INNER JOIN `tabUser` AS u ON c.account_manager=u.name INNER JOIN `tabHas Role` AS r ON u.role_profile_name=r.parent INNER JOIN `tabCustomer Group` as cg ON c.customer_group=cg.customer_group_name INNER JOIN `tabCustomer Credit Limit` as ccl ON cg.custome... | Create a customer record using 'Lobert' for the customer name, 'Biscuitman' for the account manager, 'Arrow' for the customer group, and 'A ton of taxes' for the tax category. Allow the customer to create sales invoices without sales orders and add a comment that says 'What do we watch next?' on the record. - If there ... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent WHERE i.customer=\"Grant Stella Ltd.\" AND ii.item_name=\"SKU0014\" AND ii.qty=\"1.0\" AND ii.rate=\"20.0\" AND ii.parenttype=\"Sales Invoice\"", "count": 1} | create a sales invoice with Grant Stella Ltd. for customer, including SKU0014 for item, 1.0 for quantity, and 20.0 for rate | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent WHERE i.customer=\"DailyDose\" AND ii.item_name=\"SKU0015\" AND ii.qty=\"50.0\" AND ii.rate=\"45.5\" AND ii.parenttype=\"Sales Invoice\"", "count": 1} | create a sales invoice with DailyDose for customer, including SKU0015 for item, 50.0 for quantity, and 45.5 for rate | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent WHERE i.customer=\"Palm Beach\" AND ii.item_name=\"SKU0016\" AND ii.qty=\"11.0\" AND ii.rate=\"3.0\" AND ii.parenttype=\"Sales Invoice\"", "count": 1} | create a sales invoice with Palm Beach for customer, including SKU0016 for item, 11.0 for quantity, and 3.0 for rate | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_custom_tax_rate | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent INNER JOIN `tabSales Taxes and Charges` AS stc ON i.name=stc.parent WHERE i.customer=\"Malphite Ltd.\" AND ii.item_name=\"SKU0014\" AND ii.qty=1.0 AND ii.rate=20.0 AND i.posting_date=\"202... | create a sales invoice for the customer Malphite Ltd. with SKU0014 for item, 1.0 for quantity, 20.0 for rate, 2026-10-19 for date, delete current sales tax or charges, add new sales tax or charge with On Net Total for type, Marketing Expenses - SN for account head, and 6 for tax rate | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_custom_tax_rate | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent INNER JOIN `tabSales Taxes and Charges` AS stc ON i.name=stc.parent WHERE i.customer=\"Versace Ltd.\" AND ii.item_name=\"SKU0013\" AND ii.qty=2.0 AND ii.rate=45.5 AND i.posting_date=\"2026... | create a sales invoice for the customer Versace Ltd. with SKU0013 for item, 2.0 for quantity, 45.5 for rate, 2026-11-14 for date, delete current sales tax or charges, add new sales tax or charge with Actual for type, ST 6% - SN for account head, and 7 for tax rate | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_custom_tax_rate | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent INNER JOIN `tabSales Taxes and Charges` AS stc ON i.name=stc.parent WHERE i.customer=\"Dysync Productions Ltd.\" AND ii.item_name=\"SKU0017\" AND ii.qty=10.0 AND ii.rate=3.0 AND i.posting_... | create a sales invoice for the customer Dysync Productions Ltd. with SKU0017 for item, 10.0 for quantity, 3.0 for rate, 2026-11-11 for date, delete current sales tax or charges, add new sales tax or charge with On Item Quantity for type, Freight and Forwarding Charges - SN for account head, and 8 for tax rate | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_customer_item_account_dependencies_HARD | 0 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Invoice` AS si INNER JOIN `tabCustomer` AS c ON si.customer_name=c.customer_name INNER JOIN `tabSales Invoice Item` AS sii ON si.name=sii.parent INNER JOIN `tabAccount` AS a ON si.debit_to=a.name WHERE si.customer_name=\"Scott Summers\" AND c.customer_type=\"Comp... | Create a sales invoice for the customer Scott Summers for 10 Nos of the item 'Ruby-Quartz Visor' at a rate of 295 EUR per Nos. Debit it to the account 'Macaroni - SN'.
If the customer Scott Summers does not exist, create the customer record with 'Scott Summers' for customer name, 'Company' for customer type, 'EUR' for ... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_customer_item_account_dependencies_HARD | 1 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Invoice` AS si INNER JOIN `tabCustomer` AS c ON si.customer_name=c.customer_name INNER JOIN `tabSales Invoice Item` AS sii ON si.name=sii.parent INNER JOIN `tabAccount` AS a ON si.debit_to=a.name WHERE si.customer_name=\"Kitty Pryde\" AND c.customer_type=\"Indivi... | Create a sales invoice for the customer Kitty Pryde for 7 Pairs of the item 'Yellow Boots' at a rate of 120 USD per Pairs. Debit it to the account 'Penne - SN'.
If the customer Kitty Pryde does not exist, create the customer record with 'Kitty Pryde' for customer name, 'Individual' for customer type, 'USD' for billing ... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_customer_item_account_dependencies_HARD | 2 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Invoice` AS si INNER JOIN `tabCustomer` AS c ON si.customer_name=c.customer_name INNER JOIN `tabSales Invoice Item` AS sii ON si.name=sii.parent INNER JOIN `tabAccount` AS a ON si.debit_to=a.name WHERE si.customer_name=\"Charles Xavier\" AND c.customer_type=\"Par... | Create a sales invoice for the customer Charles Xavier for 1 Nos of the item 'Wheelchair' at a rate of 500000 JPY per Nos. Debit it to the account 'Linguine - SN'.
If the customer Charles Xavier does not exist, create the customer record with 'Charles Xavier' for customer name, 'Partnership' for customer type, 'JPY' fo... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_customer_item_territory_pricelist_account_dependencies_HARD | 0 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Invoice` AS si INNER JOIN `tabCustomer` AS c ON si.customer_name=c.customer_name INNER JOIN `tabSales Invoice Item` AS sii ON si.name=sii.parent INNER JOIN `tabAccount` AS a ON si.debit_to=a.name WHERE si.customer_name=\"Hank McCoy\" AND c.customer_type=\"Company... | Create a sales invoice for the customer Hank McCoy. The invoice is for 10 Unit of the item Spandex Shorts at a rate of 20 CHF per Unit. The sales territory should be set to Planet X and the account to debit to is the Peach - SN account.
If Hank McCoy is not yet a customer, add them, using 'Hank McCoy' as their name, 'C... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_customer_item_territory_pricelist_account_dependencies_HARD | 1 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Invoice` AS si INNER JOIN `tabCustomer` AS c ON si.customer_name=c.customer_name INNER JOIN `tabSales Invoice Item` AS sii ON si.name=sii.parent INNER JOIN `tabAccount` AS a ON si.debit_to=a.name WHERE si.customer_name=\"James Logan\" AND c.customer_type=\"Partne... | Create a sales invoice for the customer James Logan. The invoice is for 1 Meter of the item Adamantium at a rate of 10000 EUR per Meter. The sales territory should be set to Planet Z and the account to debit to is the Apple - SN account.
If James Logan is not yet a customer, add them, using 'James Logan' as their name,... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_customer_item_territory_pricelist_account_dependencies_HARD | 2 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Invoice` AS si INNER JOIN `tabCustomer` AS c ON si.customer_name=c.customer_name INNER JOIN `tabSales Invoice Item` AS sii ON si.name=sii.parent INNER JOIN `tabAccount` AS a ON si.debit_to=a.name WHERE si.customer_name=\"Meep\" AND c.customer_type=\"Individual\" ... | Create a sales invoice for the customer Meep. The invoice is for 100 Nos of the item Pink Meep Hat at a rate of 5 INR per Nos. The sales territory should be set to Planet J and the account to debit to is the Lime - SN account.
If Meep is not yet a customer, add them, using 'Meep' as their name, 'Individual' as their ty... | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_date_cost_center | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent WHERE i.customer=\"playful Ltd.\" AND ii.item_name=\"SKU0014\" AND ii.qty=1.0 AND ii.rate=20.0 AND i.posting_date=\"2050-09-18\" AND i.cost_center=\"Main - SN\"", "count": 1} | create a sales invoice for the customer playful Ltd. with SKU0014 for item, 1.0 for quantity, 20.0 for rate, 2050-09-18 for date, and Main - SN for cost center | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_date_cost_center | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent WHERE i.customer=\"independent ltd.\" AND ii.item_name=\"SKU0013\" AND ii.qty=2.0 AND ii.rate=45.5 AND i.posting_date=\"2060-01-14\" AND i.cost_center=\"Main - SN\"", "count": 1} | create a sales invoice for the customer independent ltd. with SKU0013 for item, 2.0 for quantity, 45.5 for rate, 2060-01-14 for date, and Main - SN for cost center | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_invoice_with_date_cost_center | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` AS i INNER JOIN `tabSales Invoice Item` AS ii ON i.name=ii.parent WHERE i.customer=\"Sivir ltd.\" AND ii.item_name=\"SKU0017\" AND ii.qty=10.0 AND ii.rate=3.0 AND i.posting_date=\"2070-11-11\" AND i.cost_center=\"Main - SN\"", "count": 1} | create a sales invoice for the customer Sivir ltd. with SKU0017 for item, 10.0 for quantity, 3.0 for rate, 2070-11-11 for date, and Main - SN for cost center | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_order | 0 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Order` AS so INNER JOIN `tabSales Order Item` AS soi ON so.name=soi.parent WHERE so.customer=\"James Canon Ltd.\" AND soi.item_code=\"SKU0015\" AND soi.qty=\"1.0\" AND soi.rate=\"20.0\" AND so.delivery_date=\"2026-01-31\" AND so.set_warehouse=\"Goods In Transit -... | create a sales order for the customer James Canon Ltd. with SKU0015 for item code, 2026-01-31 for delivery date, 1.0 for quantity, 20.0 for rate, and set source warehouse to Goods In Transit - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_order | 1 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Order` AS so INNER JOIN `tabSales Order Item` AS soi ON so.name=soi.parent WHERE so.customer=\"RE Ltd.\" AND soi.item_code=\"SKU0016\" AND soi.qty=\"2.0\" AND soi.rate=\"45.5\" AND so.delivery_date=\"2029-02-14\" AND so.set_warehouse=\"Stores - SN\"", "count": 1} | create a sales order for the customer RE Ltd. with SKU0016 for item code, 2029-02-14 for delivery date, 2.0 for quantity, 45.5 for rate, and set source warehouse to Stores - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_order | 2 | {"sql": "SELECT COUNT(*) as results_count FROM `tabSales Order` AS so INNER JOIN `tabSales Order Item` AS soi ON so.name=soi.parent WHERE so.customer=\"Payne Productions Ltd.\" AND soi.item_code=\"SKU0017\" AND soi.qty=\"10.0\" AND soi.rate=\"3.0\" AND so.delivery_date=\"2036-03-14\" AND so.set_warehouse=\"Work In Prog... | create a sales order for the customer Payne Productions Ltd. with SKU0017 for item code, 2036-03-14 for delivery date, 10.0 for quantity, 3.0 for rate, and set source warehouse to Work In Progress - SN | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_order_put_on_hold | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Order` AS so INNER JOIN `tabSales Order Item` AS soi ON so.name=soi.parent WHERE so.customer=\"Reina Ltd.\" AND soi.item_code=\"SKU0015\" AND soi.qty=\"1.0\" AND soi.rate=\"20.0\" AND so.delivery_date=\"2060-11-11\" AND so.set_warehouse=\"Goods In Transit - SN\" ... | create a sales order for the customer Reina Ltd. with SKU0015 for item code, 1.0 for quantity, Goods In Transit - SN for set source warehouse, 20.0 for rate, 2060-11-11 for delivery date. Put the sales order to status Hold and enter "need to check with PM first" as the reason for the hold | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_order_put_on_hold | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Order` AS so INNER JOIN `tabSales Order Item` AS soi ON so.name=soi.parent WHERE so.customer=\"Gwennie Ltd.\" AND soi.item_code=\"SKU0016\" AND soi.qty=\"2.0\" AND soi.rate=\"45.5\" AND so.delivery_date=\"2060-09-13\" AND so.set_warehouse=\"Stores - SN\" AND so.s... | create a sales order for the customer Gwennie Ltd. with SKU0016 for item code, 2.0 for quantity, Stores - SN for set source warehouse, 45.5 for rate, 2060-09-13 for delivery date. Put the sales order to status Hold and enter "overdue" as the reason for the hold | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.create_sales_order_put_on_hold | 2 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Order` AS so INNER JOIN `tabSales Order Item` AS soi ON so.name=soi.parent WHERE so.customer=\"Horchata Ltd.\" AND soi.item_code=\"SKU0017\" AND soi.qty=\"10.0\" AND soi.rate=\"3.0\" AND so.delivery_date=\"2060-06-16\" AND so.set_warehouse=\"Work In Progress - SN... | create a sales order for the customer Horchata Ltd. with SKU0017 for item code, 10.0 for quantity, Work In Progress - SN for set source warehouse, 3.0 for rate, 2060-06-16 for delivery date. Put the sales order to status Hold and enter "need to discuss" as the reason for the hold | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.assign_sales_invoice | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` WHERE status=\"Cancelled\" AND (_assign IS NULL OR _assign NOT LIKE CONCAT(\"%\", (SELECT email FROM tabUser WHERE full_name=\"Jessica\"), \"%\"))", "count": 0} | find all sales invoices with the status Cancelled and assign to the user Jessica | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.assign_sales_invoice | 1 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` WHERE status=\"Paid\" AND (_assign IS NULL OR _assign NOT LIKE CONCAT(\"%\", (SELECT email FROM tabUser WHERE full_name=\"Beyonce\"), \"%\"))", "count": 0} | find all sales invoices with the status Paid and assign to the user Beyonce | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.favorite_sales_invoice | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` WHERE grand_total > \"100000\" AND LOCATE(\"Administrator\", _liked_by) > 0", "count": 3} | find and favorite sales invoices with grand total above 100000 | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... | |
erpnext | erpnext.tag_sales_invoice | 0 | {"sql": "SELECT COUNT(*) AS results_count FROM `tabSales Invoice` WHERE name=\"ACC-SINV-2025-00011\" and _user_tags LIKE \"%,asap%,priority%\"", "count": 1} | Find a sales invoice ACC-SINV-2025-00011 and add the following tags to it: asap, priority | import json
import os
from typing import Any, Dict, List
import requests
def validate(messages: List[Dict[str, str]], config: Dict[str, Any]) -> int:
if not messages:
raise ValueError("Target must contain 'messages'")
# Check whether we have the necessary information to validate
if not "sql" in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.