|
@@ 510-515 (lines=6) @@
|
| 507 |
|
protected function moduleEleven($number, $type) |
| 508 |
|
{ |
| 509 |
|
switch ($type) { |
| 510 |
|
case self::PrivateCompany: |
| 511 |
|
$coefficients = config('laravel-ecuador-identification.private-ruc.coefficients'); |
| 512 |
|
$check_digit_position = config('laravel-ecuador-identification.private-ruc.check-digit-position'); |
| 513 |
|
$check_digit_value = $number[$check_digit_position - 1]; |
| 514 |
|
$numbers = str_split(substr($number, 0, 9)); |
| 515 |
|
break; |
| 516 |
|
case self::PublicCompany: |
| 517 |
|
$coefficients = config('laravel-ecuador-identification.public-ruc.coefficients'); |
| 518 |
|
$check_digit_position = config('laravel-ecuador-identification.public-ruc.check-digit-position'); |
|
@@ 516-521 (lines=6) @@
|
| 513 |
|
$check_digit_value = $number[$check_digit_position - 1]; |
| 514 |
|
$numbers = str_split(substr($number, 0, 9)); |
| 515 |
|
break; |
| 516 |
|
case self::PublicCompany: |
| 517 |
|
$coefficients = config('laravel-ecuador-identification.public-ruc.coefficients'); |
| 518 |
|
$check_digit_position = config('laravel-ecuador-identification.public-ruc.check-digit-position'); |
| 519 |
|
$check_digit_value = $number[$check_digit_position - 1]; |
| 520 |
|
$numbers = str_split(substr($number, 0, 8)); |
| 521 |
|
break; |
| 522 |
|
default: |
| 523 |
|
throw new EcuadorIdentificationException('Field does not have this type of identification.'); |
| 524 |
|
break; |