|
|
|
@@ -6,7 +6,7 @@ import React, { ChangeEvent, useCallback, useMemo, useState } from "react"; |
|
|
|
import { useTranslation } from "react-i18next"; |
|
|
|
import { errorDialogWithContent, submitDialog, successDialog, successDialogWithContent } from "../Swal/CustomAlerts"; |
|
|
|
import { importStockTake } from "@/app/api/stockTake/actions"; |
|
|
|
import { importWarehouse } from "@/app/api/warehouse/actions"; |
|
|
|
import { importWarehouse, importNewWarehouse } from "@/app/api/warehouse/actions"; |
|
|
|
|
|
|
|
interface Props { |
|
|
|
} |
|
|
|
@@ -41,7 +41,7 @@ const ExcelFileImport: React.FC<Props> = ({ }) => { |
|
|
|
response = await importStockTake(formData) |
|
|
|
break; |
|
|
|
case "Import Warehouse": |
|
|
|
response = await importWarehouse(formData) |
|
|
|
response = await importNewWarehouse(formData) |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
|