View UYDocValidations.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun getUyValDigit(externCi: String): Int{ | |
if(externCi.isEmpty() || externCi.length > 7) return 0 | |
var ci = externCi | |
val validationArray = arrayOf(2,9,8,7,6,3,4) | |
var resp = 0 | |
while (ci.length <= 6) { | |
ci = "0$ci" | |
} |
View SunatUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SunatUtils { | |
public static boolean isRUCValid(long ruc){ | |
return isRUCValid(String.valueOf(ruc)); | |
} | |
public static boolean isRUCValid(String ruc){ | |
if (ruc == null) { | |
return false; | |
} |
View 1MarkerAnimation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2013 Google Inc. | |
Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */ | |
package com.example.latlnginterpolation; | |
import android.animation.ObjectAnimator; | |
import android.animation.TypeEvaluator; | |
import android.animation.ValueAnimator; | |
import android.annotation.TargetApi; | |
import android.os.Build; |