zhangqian
2024-07-30 34de248a46755b2309f5ac8e95261c25fe1e210d
service/inventory_report_forms.go
@@ -300,7 +300,9 @@
func getColumnAlphabet(index int) string {
   const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
   if index <= 26 {
      return string(alphabet[index])
      return string(alphabet[index-1])
   }
   return getColumnAlphabet((index)/26) + getColumnAlphabet((index)%26+1)
   quotient := (index - 1) / 26
   remainder := (index - 1) % 26
   return getColumnAlphabet(quotient) + getColumnAlphabet(remainder+1)
}