Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indian tax regime #440

Merged
merged 11 commits into from
Dec 12, 2024
Prev Previous commit
Next Next commit
add Indian tax regime
  • Loading branch information
richifernandez authored and samlown committed Dec 5, 2024
commit 22e46be4a42a181ed9d0926aa6511c6bc4380b8c
2 changes: 0 additions & 2 deletions regimes/in/identities_test.go
Original file line number Diff line number Diff line change
@@ -62,8 +62,6 @@ func TestValidatePAN(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
id := &org.Identity{Key: in.IdentityKeyPAN, Code: tt.code}

// Validar el PAN
err := in.Validate(id)

if tt.err == "" {
2 changes: 1 addition & 1 deletion regimes/in/item_test.go
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ func TestItemValidation(t *testing.T) {
item: &org.Item{
Identities: []*org.Identity{},
},
err: "", // No error expected since it's not mandatory
err: "", // No error expected since it's not mandatory in some specific cases
},
}

1 change: 0 additions & 1 deletion regimes/in/tax_identity.go
Original file line number Diff line number Diff line change
@@ -79,7 +79,6 @@ func hasValidChecksum(gstin string) bool {

remainder := sum % 36
calculatedChecksum := (36 - remainder) % 36

checksumChar := findCharByValue(calculatedChecksum)

return checksumChar == rune(gstin[14])