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

fix: UOM handling for transaction without item #31389

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

ankush
Copy link
Member

@ankush ankush commented Jun 17, 2022

If invoice is made without item code then UOM, Stock UOM and
conversion_factor all need to be manually added, this is confusing and
leads missing them out leads to errors.

Simplest solution:

  • if either UOM exists then set both to same uom conversion factor to
  • also set conversion factor based on UOM conversions (item agnostic)

If invoice is made without item code then UOM, Stock UOM and
conversion_factor all need to be manually added, this is confusing and
leads missing them out leads to errors.

Simplest solution:

- if either UOM exists then set both to same uom conversion factor to
- also set conversion factor based on UOM conversions
@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #31389 (d17db95) into develop (1a3997a) will increase coverage by 0.49%.
The diff coverage is 83.33%.

@@             Coverage Diff             @@
##           develop   #31389      +/-   ##
===========================================
+ Coverage    63.06%   63.56%   +0.49%     
===========================================
  Files          984      984              
  Lines        67556    67562       +6     
===========================================
+ Hits         42604    42944     +340     
+ Misses       24952    24618     -334     
Impacted Files Coverage Δ
erpnext/controllers/accounts_controller.py 85.80% <83.33%> (-0.02%) ⬇️
...eport/item_variant_details/item_variant_details.py 31.32% <0.00%> (-53.02%) ⬇️
...t/product_bundle_balance/product_bundle_balance.py 79.54% <0.00%> (-15.91%) ⬇️
...e/asset_value_adjustment/asset_value_adjustment.py 86.04% <0.00%> (-3.49%) ⬇️
.../report/bom_operations_time/bom_operations_time.py 89.13% <0.00%> (-2.18%) ⬇️
erpnext/stock/reorder_item.py 73.33% <0.00%> (-1.67%) ⬇️
...xt/e_commerce/doctype/website_item/website_item.py 47.52% <0.00%> (-0.42%) ⬇️
erpnext/selling/doctype/sales_order/sales_order.py 79.74% <0.00%> (-0.37%) ⬇️
erpnext/projects/doctype/project/project.py 53.24% <0.00%> (-0.33%) ⬇️
...ext/manufacturing/doctype/work_order/work_order.py 78.31% <0.00%> (+0.14%) ⬆️
... and 30 more

@ankush ankush merged commit 10583eb into frappe:develop Jun 17, 2022
@ankush ankush deleted the ux/uom_itemless branch June 17, 2022 06:43
mergify bot pushed a commit that referenced this pull request Jun 17, 2022
If invoice is made without item code then UOM, Stock UOM and
conversion_factor all need to be manually added, this is confusing and
leads missing them out leads to errors.

Simplest solution:

- if either UOM exists then set both to same uom conversion factor to
- also set conversion factor based on UOM conversions

(cherry picked from commit 10583eb)
ankush added a commit that referenced this pull request Jun 17, 2022
)

fix: UOM handling for transaction without item (#31389)

If invoice is made without item code then UOM, Stock UOM and
conversion_factor all need to be manually added, this is confusing and
leads missing them out leads to errors.

Simplest solution:

- if either UOM exists then set both to same uom conversion factor to
- also set conversion factor based on UOM conversions

(cherry picked from commit 10583eb)

Co-authored-by: Ankush Menat <ankush@frappe.io>
frappe-pr-bot pushed a commit that referenced this pull request Jun 21, 2022
## [13.34.1](v13.34.0...v13.34.1) (2022-06-21)

### Bug Fixes

* Conversion rate validation for multi-currency invoices ([4186aaf](4186aaf))
* **india:** e-invoice eligibility if company gstin is not configured ([#31247](#31247)) ([7696ae4](7696ae4))
* internal transfer GLE validation ([8a4cd2a](8a4cd2a))
* Merge Conflicts ([0f3a02d](0f3a02d))
* Pick Template BOM if variant BOM absent in WO popup from SO ([7c35887](7c35887))
* Quotation lost update ([3b9f943](3b9f943))
* Spelling mistake in quotation depend on (backport [#31362](#31362)) ([#31363](#31363)) ([ebcdaf7](ebcdaf7))
* transaction date gets unset in material request ([#31387](#31387)) ([4e2ed6f](4e2ed6f)), closes [#31327](#31327)
* UOM handling for transaction without item (backport [#31389](#31389)) ([#31391](#31391)) ([051e5cd](051e5cd))

### Performance Improvements

* GLE reposting with progress and chunking (backport [#31343](#31343)) ([#31373](#31373)) ([f19ed0b](f19ed0b))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant