Skip to content

Commit

Permalink
Merge branch 'version-15' into faceted_search
Browse files Browse the repository at this point in the history
  • Loading branch information
agritheory authored Jul 26, 2024
2 parents 6ec5867 + 12d5afa commit ecd9f49
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ repos:
- id: flake8
additional_dependencies: ['flake8-bugbear']


- repo: https://github.com/agritheory/test_utils
rev: v0.14.1

- repo: https://github.com/agritheory/test_utils
rev: v0.14.0
hooks:
- id: update_pre_commit_config
- id: mypy
Expand Down
1 change: 1 addition & 0 deletions inventory_tools/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
def load_customizations():
customizations_directory = (
Path().cwd().parent / "apps" / "inventory_tools" / "inventory_tools" / "inventory_tools" / "custom"

)
files = list(customizations_directory.glob("**/*.json"))
for file in files:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"faceted_search_tab",
"show_on_website",
"show_in_listview"

],
"fields": [
{
Expand Down
2 changes: 2 additions & 0 deletions inventory_tools/inventory_tools/overrides/production_plan.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2024, AgriTheory and contributors
# For license information, please see license.txt


import json

import frappe
Expand All @@ -9,6 +10,7 @@
from erpnext.manufacturing.doctype.work_order.work_order import get_default_warehouse



class InventoryToolsProductionPlan(ProductionPlan):
@frappe.whitelist()
def make_work_order(self):
Expand Down
38 changes: 15 additions & 23 deletions inventory_tools/inventory_tools/overrides/stock_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,14 @@ def check_if_operations_completed(self):

def validate_finished_goods(self):
"""
<<<<<<< HEAD
HASH: 153e0ba81b62acc170a951a289363fff5579edc7
=======
HASH: 54791e938bd56eb81f7d8d923381a006998919fe
>>>>>>> 12d5afa2ce39627719b130a5ed0e5ce879c818f6
REPO: https://github.com/frappe/erpnext/
PATH: erpnext/stock/doctype/stock_entry/stock_entry.py
METHOD: validate_finished_goods
1. Check if FG exists (mfg, repack)
2. Check if Multiple FG Items are present (mfg)
3. Check FG Item and Qty against WO if present (mfg)
HASH: 54791e938bd56eb81f7d8d923381a006998919fe
REPO: https://github.com/frappe/erpnext/
PATH: erpnext/stock/doctype/stock_entry/stock_entry.py
METHOD: validate_finished_goods
1. Check if FG exists (mfg, repack)
2. Check if Multiple FG Items are present (mfg)
3. Check FG Item and Qty against WO if present (mfg)
"""

production_item, wo_qty, finished_items = None, 0, []
Expand Down Expand Up @@ -124,17 +120,13 @@ def validate_finished_goods(self):

def get_pending_raw_materials(self, backflush_based_on=None):
"""
<<<<<<< HEAD
HASH: 153e0ba81b62acc170a951a289363fff5579edc7
=======
HASH: 54791e938bd56eb81f7d8d923381a006998919fe
>>>>>>> 12d5afa2ce39627719b130a5ed0e5ce879c818f6
REPO: https://github.com/frappe/erpnext/
PATH: erpnext/stock/doctype/stock_entry/stock_entry.py
METHOD: get_pending_raw_materials
issue (item quantity) that is pending to issue or desire to transfer,
whichever is less
HASH: 54791e938bd56eb81f7d8d923381a006998919fe
REPO: https://github.com/frappe/erpnext/
PATH: erpnext/stock/doctype/stock_entry/stock_entry.py
METHOD: get_pending_raw_materials
issue (item quantity) that is pending to issue or desire to transfer,
whichever is less
"""

item_dict = self.get_pro_order_required_items(backflush_based_on)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ mypy = "^1.10.0"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

# [tool.pytest.ini_options]
# addopts = "--cov=inventory_tools --cov-report term-missing"
[tool.pytest.ini_options]
addopts = "--cov=inventory_tools --cov-report term-missing"

[tool.black]
line-length = 99
Expand Down

0 comments on commit ecd9f49

Please sign in to comment.