Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Apr 9, 2025

Currently it is not possible to put Services as well as Medications on one invoice. This is because when ever items are loaded onto an invoice, there is a frm.clear_table instruction in the function set_primary_action in the file ..../public/js/sales_invoice.js.

I propose to move this clear_table to an onload_post_render trigger. This will allow for the items-table to be cleared when a new invoice is created but allows for services as well as medications to be added to the invoice without clearing the table first.

By doing it this way, the user has the choice of putting everything onto one invoice or to use more than one invoice.

closes #583


This is an automatic backport of pull request #642 done by Mergify.

@mergify mergify bot requested review from Sajinsr and akurungadam as code owners April 9, 2025 04:59
@akurungadam akurungadam merged commit 666b07d into version-15-hotfix Apr 9, 2025
5 checks passed
@Sajinsr Sajinsr deleted the mergify/bp/version-15-hotfix/pr-642 branch November 12, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants