Skip to content

Commit d6e5fe2

Browse files
committed
Check invoice tax_no and tax_name
1 parent 789faa2 commit d6e5fe2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

www/cart/order.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,14 @@ function submitInvoice() {
382382
element.focus();
383383
return false;
384384
}
385+
if ( name === 'tax_no' && element.value.length < 10 ) {
386+
element.focus();
387+
return false;
388+
}
389+
if ( name === 'tax_name' && element.value.length < 10 ) {
390+
element.focus();
391+
return false;
392+
}
385393
}
386394

387395
var url = server_url + '/product/invoices/' + (invoice_id ? invoice_id + '/' : '');

0 commit comments

Comments
 (0)