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: add total_billing_hours to Sales Invoice #26783

Merged

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Aug 2, 2021

Port of #26652

Additional changes

  • refactor to keep only one way of adding timesheets to the sales invoice.

    (Previously one function was fetching timesheets from the backend and adding them to the table in the frontend. Another one was calling a backend method that adds timesheets to the table and then refreshes the frontend. Now we use the first approach only.)

  • add from_time and to_time to Sales Invoice Timesheet. This is useful for printing timesheets on the Sales Invoice for the customer to check.

  • order timesheets by start_time. Useful for the same reason.

  • add some section and column breaks to Sales Invoice Timesheet

    Sales Invoice Timesheet

no-docs

@barredterra barredterra added the backport develop instructs mergify to frontport PR to develop branch label Aug 2, 2021
@ruchamahabal ruchamahabal self-assigned this Aug 26, 2021
@ruchamahabal
Copy link
Member

@barredterra Can you fix the conflict and sider issues? I don't have edit access to this branch. Or you can give Edit Access to maintainers.

@nabinhait nabinhait merged commit 8547cb5 into frappe:version-13-hotfix Aug 27, 2021
@frappe-pr-bot
Copy link
Collaborator

The backport to develop failed.
Please backport the PR manually. 🤖

The process '/usr/bin/git' failed with exit code 1

@barredterra
Copy link
Collaborator Author

Hi @nabinhait, @ruchamahabal mentioned some remaining issues that need to be addressed. Did you fix them yourself?

@nabinhait
Copy link
Member

Hi @nabinhait, @ruchamahabal mentioned some remaining issues that need to be addressed. Did you fix them yourself?

Yes

@barredterra barredterra deleted the si_total_billing_hours_v13 branch August 27, 2021 13:50
sagarvora added a commit that referenced this pull request Oct 4, 2021
* feat: add `total_billing_hours` to Sales Invoice

* fix: re-save doctypes

* fix: indentation

* fix: replace reference to old function
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Oct 4, 2021
…rappe#27742)

* feat: add `total_billing_hours` to Sales Invoice

* fix: re-save doctypes

* fix: indentation

* fix: replace reference to old function

(cherry picked from commit 09ccdee)

# Conflicts:
#	erpnext/accounts/doctype/sales_invoice/sales_invoice.js
#	erpnext/accounts/doctype/sales_invoice_timesheet/sales_invoice_timesheet.json
#	erpnext/projects/doctype/timesheet/timesheet.py
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
…rappe#27742)

* feat: add `total_billing_hours` to Sales Invoice

* fix: re-save doctypes

* fix: indentation

* fix: replace reference to old function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport develop instructs mergify to frontport PR to develop branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants