summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-01-06 09:11:00 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-01-06 09:11:00 +0700
commitf4217b5493477d8238165f9390dd6c6f8a597b33 (patch)
tree75ec08cbbb6b6f491d3f4f3bc37967fdb2d67478
parent4b89fcf620a93aab85c2eb81526afee1c355e14e (diff)
change regex on function validate_npwp
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index ad27c64c..d75c9fe9 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -378,7 +378,7 @@ class SaleOrder(models.Model):
raise UserError("Isi NPWP Dengan Benar!")
def _validate_npwp(self):
- pattern = r'^\d{2}\.\d{3}\.\d{3}\.\d{1}-\d{3}\.\d{3}$'
+ pattern = r'^\d{16,}$'
return re.match(pattern, self.npwp) is not None
def sale_order_approve(self):