@atomsolution/sdk-merchant 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29234,14 +29234,12 @@ const CreateProductConfirmModal = ({
29234
29234
  open,
29235
29235
  onClose,
29236
29236
  onSuccess,
29237
- taxDeductionMethod,
29238
- directTax
29237
+ taxDeductionMethod
29239
29238
  }) => {
29240
29239
  const [loading, setLoading] = useState(false);
29241
29240
  const { translate: translate2 } = useTranslation("batch-create-product");
29242
29241
  const handleCreateProducts = () => __async(void 0, null, function* () {
29243
29242
  setLoading(true);
29244
- console.log(checkedProducts);
29245
29243
  const formattedProducts = checkedProducts.map((product) => ({
29246
29244
  code: product.code,
29247
29245
  name: product.name,
@@ -29249,7 +29247,7 @@ const CreateProductConfirmModal = ({
29249
29247
  img: product.img || "",
29250
29248
  unit: product.unit,
29251
29249
  cost: 0,
29252
- tax: taxDeductionMethod == "direct" ? directTax != null ? directTax : 0 : product.tax,
29250
+ tax: taxDeductionMethod == "direct" ? 0 : product.tax,
29253
29251
  status: 0,
29254
29252
  category_names: product.category
29255
29253
  }));
@@ -57907,7 +57905,7 @@ const ProductPreviewTable = ({
57907
57905
  )
57908
57906
  ] });
57909
57907
  };
57910
- const ProductInfoPreview = ({ taxDeductionMethod, directTax }) => {
57908
+ const ProductInfoPreview = ({ taxDeductionMethod }) => {
57911
57909
  const [showCreateProductConfirmModal, setShowCreateProductConfirmModal] = useState(false);
57912
57910
  const [showCreateSuccessModal, setShowSuccessModal] = useState(false);
57913
57911
  const [checkedProducts, setCheckedProducts] = useState([]);
@@ -57968,8 +57966,7 @@ const ProductInfoPreview = ({ taxDeductionMethod, directTax }) => {
57968
57966
  },
57969
57967
  numCheckedProducts: `${checkedProducts.length}/${sheetMappingData.length}`,
57970
57968
  checkedProducts,
57971
- taxDeductionMethod,
57972
- directTax
57969
+ taxDeductionMethod
57973
57970
  }
57974
57971
  ),
57975
57972
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -57984,8 +57981,7 @@ const ProductInfoPreview = ({ taxDeductionMethod, directTax }) => {
57984
57981
  ] });
57985
57982
  };
57986
57983
  function FileUploadTab({
57987
- taxDeductionMethod,
57988
- directTax
57984
+ taxDeductionMethod
57989
57985
  }) {
57990
57986
  const { isCheckData, isMappingData, uploadedFile, setUploadedFile } = useUploadStore();
57991
57987
  const setIsDirty = useUnsavedChangesStore((state) => state.setIsDirty);
@@ -57993,13 +57989,7 @@ function FileUploadTab({
57993
57989
  const { translate: translate2 } = useTranslation("file");
57994
57990
  const formatSize = (size) => size < 1024 * 1024 ? `${(size / 1024).toFixed(1)} KB` : `${(size / (1024 * 1024)).toFixed(2)} MB`;
57995
57991
  if (isCheckData)
57996
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
57997
- ProductInfoPreview,
57998
- {
57999
- taxDeductionMethod,
58000
- directTax
58001
- }
58002
- );
57992
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ProductInfoPreview, { taxDeductionMethod });
58003
57993
  return !isMappingData ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-8", children: [
58004
57994
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-6", children: [
58005
57995
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[#0E121B] font-bold text-[24px] leading-[30px]", children: translate2("title") }),