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

feat(RFQ): special properties in print preview #38725

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Dec 13, 2023

In RFQ print format, we can use special properties like doc.vendor and doc.items[i].supplier_part_no.

However, these were only defined while using "Tools > Download PDF". The print preview would crash or show None, if the print format was not carefully designed to handle undefined values.

With this PR, we use the first supplier in an RFQ to provide data for the print preview. This way, the special properties are always available while printing. The generation via "Tools > Download PDF" works just as before.

Docs: https://docs.erpnext.com/docs/user/manual/en/request-for-quotation#special-properties

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Dec 13, 2023
@barredterra barredterra added backport version-14-hotfix backport to version 14 backport version-15-hotfix and removed needs-tests This PR needs automated unit-tests. labels Dec 13, 2023
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Merging #38725 (27f0514) into develop (e7984b3) will increase coverage by 0.00%.
Report is 2 commits behind head on develop.
The diff coverage is 71.42%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #38725   +/-   ##
========================================
  Coverage    60.07%   60.07%           
========================================
  Files          759      759           
  Lines        69540    69547    +7     
========================================
+ Hits         41775    41781    +6     
- Misses       27765    27766    +1     
Files Coverage Δ
...ype/request_for_quotation/request_for_quotation.py 50.00% <75.00%> (+0.39%) ⬆️
erpnext/stock/get_item_details.py 83.04% <66.66%> (-0.08%) ⬇️

... and 1 file with indirect coverage changes

@barredterra barredterra merged commit da96578 into frappe:develop Dec 13, 2023
14 of 16 checks passed
@barredterra barredterra deleted the preview-rfq branch December 13, 2023 16:31
@barredterra barredterra changed the title feat: RFQ print preview feat: special properties in RFQ print preview Dec 13, 2023
@barredterra barredterra changed the title feat: special properties in RFQ print preview feat(RFQ): special properties in print preview Dec 13, 2023
s-aga-r pushed a commit that referenced this pull request Dec 13, 2023
)

feat: RFQ print preview

(cherry picked from commit 27f0514)

Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
frappe-pr-bot pushed a commit that referenced this pull request Dec 20, 2023
# [14.55.0](v14.54.2...v14.55.0) (2023-12-20)

### Bug Fixes

* close PO on SCO close (backport [#38667](#38667)) ([#38680](#38680)) ([22b442d](22b442d))
* **customer:** contact creation for companies ([#38055](#38055)) ([ed9b38b](ed9b38b))
* **customer:** quick form and integration fixes ([#37386](#37386)) ([6ed7c66](6ed7c66))
* error while filtering on name on reconciliation tool ([30b6321](30b6321))
* fetch exc rate of multi currency journals ([bf585de](bf585de))
* fetch item_tax_template values if fields with fetch_from exisit ([24ae45c](24ae45c))
* get customers for leaderboard ([9dfe342](9dfe342))
* get items for leaderboard ([812b301](812b301))
* get sales partner for leaderboard ([c63f873](c63f873))
* get sales person for leaderboard ([df93447](df93447))
* get suppliers for leaderboard ([7477ff3](7477ff3))
* if not budget then don't validate ([#38861](#38861)) ([d375164](d375164))
* incoming rate for sales return with Moving Average valuation method ([#38849](#38849)) ([7fdac62](7fdac62))
* incorrect limit ([#38818](#38818)) ([e18dc5c](e18dc5c))
* Init internal child table values ([d593f81](d593f81))
* item variant with manufacturer ([#38845](#38845)) ([e0c8ff1](e0c8ff1))
* not able to cancel SCR with Batch ([#38817](#38817)) ([fb5090f](fb5090f))
* not able to make inter-company po from so ([#38826](#38826)) ([23042df](23042df))
* on closed unreserved the production plan qty ([#38848](#38848)) ([2184e8e](2184e8e))
* Reset SLA on issue doesn't work (backport [#38789](#38789)) ([#38790](#38790)) ([942f34a](942f34a))
* supplier removed on selection of item (backport [#38712](#38712)) ([#38732](#38732)) ([dda95ea](dda95ea))
* timezone aware SLA banner (backport [#38745](#38745)) ([#38746](#38746)) ([73d525e](73d525e))
* **ux:** don't override Item Name and Description in MR (backport [#38720](#38720)) ([#38762](#38762)) ([f7bfbd8](f7bfbd8))
* validation error on reconciling PE to Journals as Invoice ([9836205](9836205))
* wrong currency in Stock Balance report (backport [#38778](#38778)) ([#38779](#38779)) ([e05b23c](e05b23c))
* wrong paid and cn amount on pos invoice ([77da0da](77da0da))

### Features

* **RFQ:** special properties in print preview (backport [#38725](#38725)) ([#38726](#38726)) ([2290750](2290750))
* set lead name from email ([1469ca7](1469ca7))

### Performance Improvements

* index `return_against` on delivery note (backport [#38827](#38827)) ([#38831](#38831)) ([4114760](4114760))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2023
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