Hi there, I’m looking for some support if anyone can provide it. I’m apart of a small company and we currently can’t update our sales invoices tied in from healthcare.
what is the error you are facing??
AttributeError: ‘PosnextSalesInvoice’ object has no attribute ‘service_unit’
Possible source of error: healthcare (app) - this is the error code i keep getting. Im creating a patient in healthcare & then using the dashboard to add an invoice for that patient.
Looks like the Sales Invoice doesn’t have the custom field service unit - on migrate, this patch should have executed.
Please migrate or add the missing custom fields manually?
How do i manually migrate them?
Here is the documentation for your reference. Its better be sure about what you do, hope it is your test site and has no important data.
We don’t have a test site, is there anyway for someone to help us migrate it over? We recently updated our system (long overdue) and have had this issue since.
Is there a way to remove service unit from invoices entirely? It was never included previously & is now the only error message we receive.
Can you try to add the custom field manually.
-
Goto
Custom Fielddoctype > add new -
Choose
Doctype asSales Invoice,
Label asService Unit,
Field Type asLink,
Options asHealthcare Service Unit
Insert After as you can choose any field likeCustomer Name -
Then Save it.
it will save the field ascustom_service_unit, so rename it using the buttonRename Fieldname(right top) toservice_unit
Just tried it, still getting same error code
Could you please raise a ticket here with all the necessary details so that we can replicate the issue?
and can you share the apps versions?