only drop one of the leading zeroes if the length is > 5.  There are some provider numbers that actually start with 00.  00729, MI 48195 zip
This commit is contained in:
CarlNation 2024-09-17 13:32:21 -04:00
parent 8d73880b3f
commit 5852e3980e

View file

@ -2423,7 +2423,7 @@ export const actions = {
const order = context.getters.order;
var providerNumber = order.serviceLocation?.provider?.providerNumber ?? order.serviceLocation?.zipCodeCtu;
if (providerNumber.startsWith("00")) {
if (providerNumber.startsWith("00") && providerNumber.length > 5) {
providerNumber = providerNumber.substring(1);
}