|
|
|
@ -85,7 +85,8 @@ func processFile(filePath string) (map[string]*summary, string) {
|
|
|
|
mCell, _ := f.GetCellValue(sheet, fmt.Sprintf("M%d", row))
|
|
|
|
mCell, _ := f.GetCellValue(sheet, fmt.Sprintf("M%d", row))
|
|
|
|
quantity := cast.ToFloat64(kCell)
|
|
|
|
quantity := cast.ToFloat64(kCell)
|
|
|
|
amount := cast.ToFloat64(mCell)
|
|
|
|
amount := cast.ToFloat64(mCell)
|
|
|
|
col := getMatType(eCell)
|
|
|
|
input := strings.Join(strings.Fields(eCell), " ")
|
|
|
|
|
|
|
|
col := getMatType(input)
|
|
|
|
if strings.Contains(col, "~") {
|
|
|
|
if strings.Contains(col, "~") {
|
|
|
|
quantity /= 1000
|
|
|
|
quantity /= 1000
|
|
|
|
col = strings.ReplaceAll(col, "~", "")
|
|
|
|
col = strings.ReplaceAll(col, "~", "")
|
|
|
|
|