@davoodmehraban89 / Factor-easy / commits / f9cf28e
Fork 0

سامانه صدور فاکتور و حسابداری

Clear legal-only counterparty fields for natural persons

davoodmehraban89 committed Sep 30, 2026 at 01:40 UTC f9cf28e4ca8464f2834472e9a027d536e76f7714
1 file changed +2
js/ui.js
+2
@@ -52,6 +52,8 @@ function applyEntityTypeToForm(entity,opts){
52 if(nameBox)nameBox.style.gridColumn='span 2';
53 if(econBox)econBox.style.display='none';
54 if(regBox)regBox.style.display='none';
55 + if(econBox){const input=econBox.querySelector('input,select,textarea');if(input)input.value='';}
56 + if(regBox){const input=regBox.querySelector('input,select,textarea');if(input)input.value='';}
57 if(natLabel)natLabel.innerText='کد ملی';
58 }
59 }