Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process Deferred Accounting pymysql.err.ProgrammingError #43998

Closed
albertfns opened this issue Nov 6, 2024 · 1 comment
Closed

Process Deferred Accounting pymysql.err.ProgrammingError #43998

albertfns opened this issue Nov 6, 2024 · 1 comment
Labels

Comments

@albertfns
Copy link

Information about bug

pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1203-01-02-01 - LICENCIAS Y SOFTWARE - PTK''' at line 6")
Possible source of error: erpnext (app)

image

Module

assets

Version

  • ERPNext: v15.41.0
  • Frappe Framework: v15.47.0
  • Helpdesk: v1.0.0
  • Frappe HR: v15.34.0
  • Frappe Lending: v0.0.1
  • Print Designer: v1.4.3

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

Syntax error in query:
select distinct item.parent
		from `tabPurchase Invoice Item` item, `tabPurchase Invoice` p
		where item.service_start_date<=%s and item.service_end_date>=%s
		and item.enable_deferred_expense = 1 and item.parent=p.name
		and item.docstatus = 1 and coalesce(item.amount, 0) > 0
		AND item.deferred_expense_account=''1203-01-02-01 - LICENCIAS Y SOFTWARE - PTK'' ('2024-10-30', '2024-09-30')

{
    "doc": "{\"name\":\"ACC-PDA-00051\",\"owner\":\"[email protected]\",\"creation\":\"2024-11-06 08:03:32.072493\",\"modified\":\"2024-11-06 08:16:11.207052\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":0,\"company\":\"PROTELCA\",\"type\":\"Expense\",\"account\":\"1203-01-02-01 - LICENCIAS Y SOFTWARE - PTK\",\"posting_date\":\"2024-10-30\",\"start_date\":\"2024-09-30\",\"end_date\":\"2024-10-30\",\"doctype\":\"Process Deferred Accounting\",\"__last_sync_on\":\"2024-11-06T14:32:04.920Z\"}",
    "action": "Submit"
}

pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1203-01-02-01 - LICENCIAS Y SOFTWARE - PTK''' at line 6")
@albertfns albertfns added the bug label Nov 6, 2024
@Nihantra-Patel
Copy link
Contributor

Issue has been fixed: #43985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants