earthians/marley

New Healthcare Service Unit Type ; error message 'HSN/SAC Code is required. Please enter a valid HSN/SAC code.'

Opened this issue · 3 comments

Trying to create New Healthcare Service Unit Type but on saving the document type it gives the error 'HSN/SAC Code is required. Please enter a valid HSN/SAC code.' whereas there is no such field in the form and even have already added it in services item master form.
ss1

India compliance app has setting to validate HSN/SAC codes.

When this setting is enabled, during item creation it is checking for valid HSN/SAC code and it is failing.

This will cause problems at other places as well like lab test template etc. Need to find an alternate way to fix this.

@akurungadam

Hi @ChillarAnand one option is to add HSN/SAC field and enable it if app india_compliance is installed. But I feel this should best be triggered only if / when india_compliance app is installed. As you see, install hooks of apps may not be able deal with this completely considering that there's no mandated order of installing apps. Maybe a hook that can be triggered when a specific app is installed? I'm not aware of any standard mechanism that's already in place, any recommendations please share?

Till then one can try and set server script before insert on item and set default HSN code.