After generating invoice bill ( healthcare) how to configure discount the price. could you please help on this issue

After generating the invoice bill ( healthcare) how to configure discount price in sales invoice. could you please help on this issue.

Here is the documentation on how to apply discounts while Invoicing -
https://erpnext.org/docs/user/manual/en/selling/articles/applying-discount

also please check Pricing Rule to apply discounts
https://erpnext.org/docs/user/manual/en/accounts/pricing-rule

hope this helps, thanks.

Thank you so much Akurungadam…:slight_smile:)

please one more help…

by mistakenly we have generated two invoice copies. we want to delete the one invoice copy. while try to deleting we got this error message. can you please how to deleted the invoice which attached medical pmr.

Please support me…

Try deleting the linked document (Lab Test) first

i have tried first unlinked in sales invoice. after that try to deleting sale invoice its linked with lab test.

trying to deleting lab test showing error message like user not allowed to delete patient medical record :PMR-00022
did not cancel. Please support me this issue.

Your user does not have permission to cancel this document. Check Role Permissions Manager and allot yourself a role that lets you cancel it. If you are the admin then use administrator account.

1 Like

i have changed roles permission still i had same issue. Please help me on this issue. i will share you my computer team viewer details.

i have login administrator account. when i cancel the lab test its getting one something went wrong did not cancel this .

error message:

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 45, in cancel
doc.cancel()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 836, in cancel
self._cancel()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 826, in _cancel
self.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 307, in _save
self.run_post_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 892, in run_post_save_methods
self.run_method(“on_cancel”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 749, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/doctype/lab_test/lab_test.py”, line 20, in on_cancel
delete_lab_test_from_medical_record(self)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/doctype/lab_test/lab_test.py”, line 247, in delete_lab_test_from_medical_record
if(medical_record_id[0][0]):
IndexError: tuple index out of range

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 939, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 45, in cancel
doc.cancel()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 836, in cancel
self._cancel()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 826, in _cancel
self.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 307, in _save
self.run_post_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 892, in run_post_save_methods
self.run_method(“on_cancel”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 749, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/doctype/lab_test/lab_test.py”, line 20, in on_cancel
delete_lab_test_from_medical_record(self)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/doctype/lab_test/lab_test.py”, line 247, in delete_lab_test_from_medical_record
if(medical_record_id[0][0]):
IndexError: tuple index out of range