diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-08 11:39:54 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-08 11:39:54 +0700 |
| commit | e5474a12a7d3b0d8c1a73d5e072078e6be745196 (patch) | |
| tree | 8004a8b46204fec1bca21f45622145a28b1e58fd /indoteknik_custom/models/sale_order.py | |
| parent | 38b28cfb316a1abf62f192ce03f938c70f21f1fb (diff) | |
multiple-reklas
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index cb963122..95cbf8ce 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -379,7 +379,7 @@ class SaleOrder(models.Model): def _validate_npwp(self): num_digits = sum(c.isdigit() for c in self.npwp) - if num_digits <= 10: + if num_digits < 10: raise UserError("NPWP harus memiliki minimal 10 digit") # pattern = r'^\d{10,}$' |
