Go to file
MohsinAli c21fd45883
fix: Ambiguous column error while submitting stock entry
Stock Entry Type=Manufacture

request.js:457 Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 94, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 47, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1610, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/save.py", line 28, in savedocs
    doc.save()
  File "apps/frappe/frappe/model/document.py", line 305, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 327, in _save
    return self.insert()
  File "apps/frappe/frappe/model/document.py", line 259, in insert
    self.run_before_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1045, in run_before_save_methods
    self.run_method("validate")
  File "apps/frappe/frappe/model/document.py", line 914, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1264, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1246, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 911, in fn
    return method_object(*args, **kwargs)
  File "apps/erpnext/erpnext/stock/doctype/stock_entry/stock_entry.py", line 122, in validate
    self.validate_qty()
  File "apps/erpnext/erpnext/stock/doctype/stock_entry/stock_entry.py", line 433, in validate_qty
    transferred_materials = frappe.db.sql(
  File "apps/frappe/frappe/database/database.py", line 220, in sql
    self._cursor.execute(query, values)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 158, in execute
    result = self._query(query)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 325, in _query
    conn.query(q)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 549, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 779, in _read_query_result
    result.read()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1157, in read
    first_packet = self.connection._read_packet()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 729, in _read_packet
    packet.raise_for_error()
  File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (1052, "Column 'qty' in field list is ambiguous")
2023-07-20 13:51:17 +05:30
.github ci: dont run tests on branch 2023-07-19 12:17:32 +05:30
erpnext fix: Ambiguous column error while submitting stock entry 2023-07-20 13:51:17 +05:30
.editorconfig feat: Introducing telephony module (#24032) 2020-12-01 13:04:53 +05:30
.eslintrc chore: remove html2canvas from dependencies 2023-06-15 13:56:05 +05:30
.flake8 chore: skip style checks in sider 2022-03-30 12:36:09 +05:30
.git-blame-ignore-revs chore: ignore formatting changes in blame 2022-03-30 15:24:55 +05:30
.gitignore chore: add .backportrc to gitignore (#26403) 2021-07-09 21:55:37 +05:30
.mergify.yml chore: let frappe pr bot raise stable branch PRs 2022-09-13 15:14:53 +05:30
.pre-commit-config.yaml ci: bump isort to 5.12.0 (#33875) 2023-01-30 19:58:23 +05:30
.releaserc chore: do not publish any assets 2022-04-18 16:45:01 +05:30
.semgrepignore refactor: Use db.set_single_value (#35668) 2023-06-13 17:30:38 +05:30
attributions.md [minor] frappe 2018-07-19 17:47:04 +05:30
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-07-01 21:35:10 +05:30
codecov.yml ci: collate codecov reports before uploading 2022-04-10 17:50:57 +05:30
CODEOWNERS refactor!: removing loan management module (#35522) 2023-06-30 11:02:49 +05:30
commitlint.config.js ci: stripped down semantic commit check 2022-07-19 14:59:42 +05:30
license.txt chore: correct license text for GPLv3 (#32170) 2022-09-12 13:54:08 +05:30
package.json chore: remove html2canvas from dependencies 2023-06-15 13:56:05 +05:30
pyproject.toml feat: add local holidays 2023-07-13 13:29:07 +02:00
README.md Telegram Group link updated (#34149) 2023-02-21 13:05:03 +05:30
SECURITY.md chore(docs): Added contribution templates, SECURITY policy 2019-10-22 13:14:57 +05:30
sider.yml chore: add sider config (#24892) 2021-03-17 20:06:35 +05:30
sponsors.md chore: Sponsor credit for BOM Update Tool perf 2022-06-15 18:57:39 +05:30
TRADEMARK_POLICY.md chore: "refactor" readme (#30825) 2022-04-27 15:47:28 +05:30
yarn.lock chore: remove html2canvas from dependencies 2023-06-15 13:56:05 +05:30

ERPNext

ERP made simple

CI UI Open Source Helpers codecov docker pulls

https://erpnext.com

ERPNext as a monolith includes the following areas for managing businesses:

  1. Accounting
  2. Warehouse Management
  3. CRM
  4. Sales
  5. Purchase
  6. HRMS
  7. Project Management
  8. Support
  9. Asset Management
  10. Quality Management
  11. Manufacturing
  12. Website Management
  13. Customize ERPNext
  14. And More

ERPNext is built on the Frappe Framework, a full-stack web app framework built with Python & JavaScript.

Installation

Login for the PWD site: (username: Administrator, password: admin)

Containerized Installation

Use docker to deploy ERPNext in production or for development of Frappe apps. See https://github.com/frappe/frappe_docker for more details.

Manual Install

The Easy Way: our install script for bench will install all dependencies (e.g. MariaDB). See https://github.com/frappe/bench for more details.

New passwords will be created for the ERPNext "Administrator" user, the MariaDB root user, and the frappe user (the script displays the passwords and saves them to ~/frappe_passwords.txt).

Learning and community

  1. Frappe School - Learn Frappe Framework and ERPNext from the various courses by the maintainers or from the community.
  2. Official documentation - Extensive documentation for ERPNext.
  3. Discussion Forum - Engage with community of ERPNext users and service providers.
  4. Telegram Group - Get instant help from huge community of users.

Contributing

  1. Issue Guidelines
  2. Report Security Vulnerabilities
  3. Pull Request Requirements
  4. Translations

License

GNU/General Public License (see license.txt)

The ERPNext code is licensed as GNU General Public License (v3) and the Documentation is licensed as Creative Commons (CC-BY-SA-3.0) and the copyright is owned by Frappe Technologies Pvt Ltd (Frappe) and Contributors.

By contributing to ERPNext, you agree that your contributions will be licensed under its GNU General Public License (v3).

Logo and Trademark Policy

Please read our Logo and Trademark Policy.