@axelor/aos-mobile-purchase 8.3.0
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.
- package/README.md +44 -0
- package/lib/api/index.d.ts +5 -0
- package/lib/api/index.js +23 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/product-api.d.ts +4 -0
- package/lib/api/product-api.js +69 -0
- package/lib/api/product-api.js.map +1 -0
- package/lib/api/purchase-request-api.d.ts +23 -0
- package/lib/api/purchase-request-api.js +104 -0
- package/lib/api/purchase-request-api.js.map +1 -0
- package/lib/api/purchase-request-line-api.d.ts +17 -0
- package/lib/api/purchase-request-line-api.js +100 -0
- package/lib/api/purchase-request-line-api.js.map +1 -0
- package/lib/api/supplier-api.d.ts +5 -0
- package/lib/api/supplier-api.js +47 -0
- package/lib/api/supplier-api.js.map +1 -0
- package/lib/api/unit-api.d.ts +4 -0
- package/lib/api/unit-api.js +29 -0
- package/lib/api/unit-api.js.map +1 -0
- package/lib/components/atoms/DropdownRequestCharacteristics/DropdownRequestCharacteristics.d.ts +3 -0
- package/lib/components/atoms/DropdownRequestCharacteristics/DropdownRequestCharacteristics.js +39 -0
- package/lib/components/atoms/DropdownRequestCharacteristics/DropdownRequestCharacteristics.js.map +1 -0
- package/lib/components/atoms/RequestCard/RequestCard.d.ts +11 -0
- package/lib/components/atoms/RequestCard/RequestCard.js +51 -0
- package/lib/components/atoms/RequestCard/RequestCard.js.map +1 -0
- package/lib/components/atoms/RequestHeader/RequestHeader.d.ts +3 -0
- package/lib/components/atoms/RequestHeader/RequestHeader.js +47 -0
- package/lib/components/atoms/RequestHeader/RequestHeader.js.map +1 -0
- package/lib/components/atoms/RequestLineCard/RequestLineCard.d.ts +11 -0
- package/lib/components/atoms/RequestLineCard/RequestLineCard.js +49 -0
- package/lib/components/atoms/RequestLineCard/RequestLineCard.js.map +1 -0
- package/lib/components/atoms/RequestSeeLinesButton/RequestSeeLinesButton.d.ts +3 -0
- package/lib/components/atoms/RequestSeeLinesButton/RequestSeeLinesButton.js +67 -0
- package/lib/components/atoms/RequestSeeLinesButton/RequestSeeLinesButton.js.map +1 -0
- package/lib/components/atoms/index.d.ts +5 -0
- package/lib/components/atoms/index.js +23 -0
- package/lib/components/atoms/index.js.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +22 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/RequestDropdownCards/RequestDropdownCards.d.ts +5 -0
- package/lib/components/molecules/RequestDropdownCards/RequestDropdownCards.js +33 -0
- package/lib/components/molecules/RequestDropdownCards/RequestDropdownCards.js.map +1 -0
- package/lib/components/molecules/index.d.ts +1 -0
- package/lib/components/molecules/index.js +19 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/RequestButtons/RequestButtons.d.ts +3 -0
- package/lib/components/organisms/RequestButtons/RequestButtons.js +136 -0
- package/lib/components/organisms/RequestButtons/RequestButtons.js.map +1 -0
- package/lib/components/organisms/index.d.ts +1 -0
- package/lib/components/organisms/index.js +19 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/components/templates/CompanyPicker/CompanyPicker.d.ts +9 -0
- package/lib/components/templates/CompanyPicker/CompanyPicker.js +30 -0
- package/lib/components/templates/CompanyPicker/CompanyPicker.js.map +1 -0
- package/lib/components/templates/HorizontalOrRuleText/HorizontalOrRuleText.d.ts +5 -0
- package/lib/components/templates/HorizontalOrRuleText/HorizontalOrRuleText.js +35 -0
- package/lib/components/templates/HorizontalOrRuleText/HorizontalOrRuleText.js.map +1 -0
- package/lib/components/templates/ProductSearchBar/ProductSearchBar.d.ts +13 -0
- package/lib/components/templates/ProductSearchBar/ProductSearchBar.js +35 -0
- package/lib/components/templates/ProductSearchBar/ProductSearchBar.js.map +1 -0
- package/lib/components/templates/RequestCreationButtons/RequestCreationButtons.d.ts +13 -0
- package/lib/components/templates/RequestCreationButtons/RequestCreationButtons.js +59 -0
- package/lib/components/templates/RequestCreationButtons/RequestCreationButtons.js.map +1 -0
- package/lib/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.d.ts +10 -0
- package/lib/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.js +29 -0
- package/lib/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.js.map +1 -0
- package/lib/components/templates/SupplierSearchBar/SupplierSearchBar.d.ts +11 -0
- package/lib/components/templates/SupplierSearchBar/SupplierSearchBar.js +38 -0
- package/lib/components/templates/SupplierSearchBar/SupplierSearchBar.js.map +1 -0
- package/lib/components/templates/UnitSearchBar/UnitSearchBar.d.ts +13 -0
- package/lib/components/templates/UnitSearchBar/UnitSearchBar.js +35 -0
- package/lib/components/templates/UnitSearchBar/UnitSearchBar.js.map +1 -0
- package/lib/components/templates/index.d.ts +7 -0
- package/lib/components/templates/index.js +25 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +5 -0
- package/lib/features/asyncFunctions-index.js +23 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/index.d.ts +5 -0
- package/lib/features/index.js +23 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/productSlice.d.ts +16 -0
- package/lib/features/productSlice.js +49 -0
- package/lib/features/productSlice.js.map +1 -0
- package/lib/features/purchaseRequestLineSlice.d.ts +49 -0
- package/lib/features/purchaseRequestLineSlice.js +96 -0
- package/lib/features/purchaseRequestLineSlice.js.map +1 -0
- package/lib/features/purchaseRequestSlice.d.ts +58 -0
- package/lib/features/purchaseRequestSlice.js +101 -0
- package/lib/features/purchaseRequestSlice.js.map +1 -0
- package/lib/features/supplierSlice.d.ts +16 -0
- package/lib/features/supplierSlice.js +49 -0
- package/lib/features/supplierSlice.js.map +1 -0
- package/lib/features/unitSlice.d.ts +16 -0
- package/lib/features/unitSlice.js +49 -0
- package/lib/features/unitSlice.js.map +1 -0
- package/lib/hooks/use-purchase-header-actions.d.ts +1 -0
- package/lib/hooks/use-purchase-header-actions.js +46 -0
- package/lib/hooks/use-purchase-header-actions.js.map +1 -0
- package/lib/i18n/en.json +45 -0
- package/lib/i18n/fr.json +45 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +69 -0
- package/lib/index.js.map +1 -0
- package/lib/models/forms.d.ts +2 -0
- package/lib/models/forms.js +61 -0
- package/lib/models/forms.js.map +1 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/index.js +23 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +49 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +23 -0
- package/lib/models/searchFields.js.map +1 -0
- package/lib/models/sortFields.d.ts +2 -0
- package/lib/models/sortFields.js +21 -0
- package/lib/models/sortFields.js.map +1 -0
- package/lib/models/typeObjects.d.ts +2 -0
- package/lib/models/typeObjects.js +86 -0
- package/lib/models/typeObjects.js.map +1 -0
- package/lib/screens/RequestCreationScreen.d.ts +3 -0
- package/lib/screens/RequestCreationScreen.js +139 -0
- package/lib/screens/RequestCreationScreen.js.map +1 -0
- package/lib/screens/RequestDetailsScreen.d.ts +5 -0
- package/lib/screens/RequestDetailsScreen.js +67 -0
- package/lib/screens/RequestDetailsScreen.js.map +1 -0
- package/lib/screens/RequestLineFormScreen.d.ts +6 -0
- package/lib/screens/RequestLineFormScreen.js +71 -0
- package/lib/screens/RequestLineFormScreen.js.map +1 -0
- package/lib/screens/RequestLineListScreen.d.ts +5 -0
- package/lib/screens/RequestLineListScreen.js +51 -0
- package/lib/screens/RequestLineListScreen.js.map +1 -0
- package/lib/screens/RequestListScreen.d.ts +5 -0
- package/lib/screens/RequestListScreen.js +47 -0
- package/lib/screens/RequestListScreen.js.map +1 -0
- package/lib/screens/index.d.ts +59 -0
- package/lib/screens/index.js +66 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +19 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/request-creation.d.ts +7 -0
- package/lib/types/request-creation.js +25 -0
- package/lib/types/request-creation.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
|
+
import { displayItemName, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { searchProduct } from '../../../features/productSlice';
|
|
22
|
+
const ProductSearchBar = ({ style = null, title = 'Purchase_Product', showTitle = false, defaultValue = null, onChange = () => { }, readonly = false, required = false, isScrollViewContainer = false, }) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const { loadingProducts, moreLoadingProduct, isListEndProduct, productList } = useSelector((state) => state.purchase_product);
|
|
26
|
+
const searchProductAPI = useCallback(({ page = 0, searchValue }) => {
|
|
27
|
+
dispatch(searchProduct({
|
|
28
|
+
page,
|
|
29
|
+
searchValue,
|
|
30
|
+
}));
|
|
31
|
+
}, [dispatch]);
|
|
32
|
+
return (<AutoCompleteSearch style={style} title={showTitle && I18n.t(title)} objectList={productList} value={defaultValue} required={required} readonly={readonly} onChangeValue={onChange} fetchData={searchProductAPI} displayValue={displayItemName} placeholder={I18n.t(title)} showDetailsPopup={true} loadingList={loadingProducts} moreLoading={moreLoadingProduct} isListEnd={isListEndProduct} navigate={false} oneFilter={false} isScrollViewContainer={isScrollViewContainer}/>);
|
|
33
|
+
};
|
|
34
|
+
export default ProductSearchBar;
|
|
35
|
+
//# sourceMappingURL=ProductSearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/ProductSearchBar/ProductSearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,eAAe,EACf,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAa7D,MAAM,gBAAgB,GAAG,CAAC,EACxB,KAAK,GAAG,IAAI,EACZ,KAAK,GAAG,kBAAkB,EAC1B,SAAS,GAAG,KAAK,EACjB,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,qBAAqB,GAAG,KAAK,GACP,EAAE,EAAE;IAC1B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAC,GACxE,WAAW,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAG,WAAW,CAClC,CAAC,EAAC,IAAI,GAAG,CAAC,EAAE,WAAW,EAAC,EAAE,EAAE;QAC1B,QAAQ,CACL,aAAqB,CAAC;YACrB,IAAI;YACJ,WAAW;SACZ,CAAC,CACH,CAAC;IACJ,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,CAAC,kBAAkB,CACjB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAClC,UAAU,CAAC,CAAC,WAAW,CAAC,CACxB,KAAK,CAAC,CAAC,YAAY,CAAC,CACpB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,YAAY,CAAC,CAAC,eAAe,CAAC,CAC9B,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAC3B,gBAAgB,CAAC,CAAC,IAAI,CAAC,CACvB,WAAW,CAAC,CAAC,eAAe,CAAC,CAC7B,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAChC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,QAAQ,CAAC,CAAC,KAAK,CAAC,CAChB,SAAS,CAAC,CAAC,KAAK,CAAC,CACjB,qBAAqB,CAAC,CAAC,qBAAqB,CAAC,EAC7C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RequestCreationButtonsProps {
|
|
3
|
+
step: number;
|
|
4
|
+
lines: any[];
|
|
5
|
+
isEditionMode?: boolean;
|
|
6
|
+
isValidateButtonDisabled?: boolean;
|
|
7
|
+
addLine: () => void;
|
|
8
|
+
companyId: number;
|
|
9
|
+
description: string;
|
|
10
|
+
resetDefaultStates: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const RequestCreationButtons: ({ step, lines, isEditionMode, isValidateButtonDisabled, addLine, companyId, description, resetDefaultStates, }: RequestCreationButtonsProps) => React.JSX.Element;
|
|
13
|
+
export default RequestCreationButtons;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
|
+
import { useDispatch, useTranslator, useTypes } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { Button, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { createPurchaseRequest } from '../../../features/purchaseRequestSlice';
|
|
22
|
+
import { RequestCreation } from '../../../types';
|
|
23
|
+
const RequestCreationButtons = ({ step, lines, isEditionMode = false, isValidateButtonDisabled = false, addLine, companyId, description, resetDefaultStates, }) => {
|
|
24
|
+
const Colors = useThemeColor();
|
|
25
|
+
const I18n = useTranslator();
|
|
26
|
+
const { PurchaseRequest } = useTypes();
|
|
27
|
+
const dispatch = useDispatch();
|
|
28
|
+
const handleRealizePress = useCallback(() => {
|
|
29
|
+
const purchaseRequestLineList = lines.map(line => ({
|
|
30
|
+
productId: line.product?.id,
|
|
31
|
+
productTitle: line.productTitle,
|
|
32
|
+
unitId: line.unit?.id,
|
|
33
|
+
quantity: line.quantity,
|
|
34
|
+
}));
|
|
35
|
+
dispatch(createPurchaseRequest({
|
|
36
|
+
companyId,
|
|
37
|
+
status: PurchaseRequest?.statusSelect.Requested,
|
|
38
|
+
description,
|
|
39
|
+
purchaseRequestLineList,
|
|
40
|
+
}));
|
|
41
|
+
resetDefaultStates();
|
|
42
|
+
}, [
|
|
43
|
+
companyId,
|
|
44
|
+
description,
|
|
45
|
+
dispatch,
|
|
46
|
+
lines,
|
|
47
|
+
PurchaseRequest?.statusSelect.Requested,
|
|
48
|
+
resetDefaultStates,
|
|
49
|
+
]);
|
|
50
|
+
if (step === RequestCreation.step.addLine && lines.length >= 1) {
|
|
51
|
+
return (<Button title={I18n.t('Base_Realize')} iconName="check-lg" width="90%" onPress={handleRealizePress}/>);
|
|
52
|
+
}
|
|
53
|
+
if (step === RequestCreation.step.validateLine) {
|
|
54
|
+
return (<Button title={I18n.t(isEditionMode ? 'Base_Save' : 'Base_Add')} iconName={isEditionMode ? 'floppy-fill' : 'plus-lg'} color={Colors.progressColor} width="90%" disabled={isValidateButtonDisabled} onPress={addLine}/>);
|
|
55
|
+
}
|
|
56
|
+
return null;
|
|
57
|
+
};
|
|
58
|
+
export default RequestCreationButtons;
|
|
59
|
+
//# sourceMappingURL=RequestCreationButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestCreationButtons.js","sourceRoot":"","sources":["../../../../src/components/templates/RequestCreationButtons/RequestCreationButtons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAC,MAA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C9D,OAAO,CACL,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAC9B,QAAQ,CAAC,UAAU,CACnB,KAAK,CAAC,KAAK,CACX,OAAO,CAAC,CAAC,kBAAkB,CAAC,EAC5B,CACH,CAAC;KACH;IAED,IAAI,IAAI,KAAK,eAAe,CAAC,IAAI,CAAC,YAAY,EAAE;QAC9C,OAAO,CACL,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CACxD,QAAQ,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CACpD,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAC5B,KAAK,CAAC,KAAK,CACX,QAAQ,CAAC,CAAC,wBAAwB,CAAC,CACnC,OAAO,CAAC,CAAC,OAAO,CAAC,EACjB,CACH,CAAC;KACH;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RequestCreationQuantityCardProps {
|
|
3
|
+
quantity: number;
|
|
4
|
+
setQuantity: (state: any) => void;
|
|
5
|
+
cancelLine: () => void;
|
|
6
|
+
productName: string;
|
|
7
|
+
productUnit: string;
|
|
8
|
+
}
|
|
9
|
+
declare const RequestCreationQuantityCard: ({ quantity, setQuantity, cancelLine, productName, }: RequestCreationQuantityCardProps) => React.JSX.Element;
|
|
10
|
+
export default RequestCreationQuantityCard;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useMemo } from 'react';
|
|
19
|
+
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { checkNullString, QuantityCard, Text } from '@axelor/aos-mobile-ui';
|
|
21
|
+
const RequestCreationQuantityCard = ({ quantity, setQuantity, cancelLine, productName, }) => {
|
|
22
|
+
const I18n = useTranslator();
|
|
23
|
+
const isProductName = useMemo(() => !checkNullString(productName), [productName]);
|
|
24
|
+
return (<QuantityCard labelQty={I18n.t('Purchase_Quantity')} defaultValue={quantity} onValueChange={setQuantity} editable={true} actionQty={isProductName} iconName="x-lg" onPressActionQty={cancelLine} isBigButton={true} translator={I18n.t}>
|
|
25
|
+
{isProductName && <Text fontSize={16}>{productName}</Text>}
|
|
26
|
+
</QuantityCard>);
|
|
27
|
+
};
|
|
28
|
+
export default RequestCreationQuantityCard;
|
|
29
|
+
//# sourceMappingURL=RequestCreationQuantityCard.js.map
|
package/lib/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestCreationQuantityCard.js","sourceRoot":"","sources":["../../../../src/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,eAAe,EAAE,YAAY,EAAE,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAU1E,MAAM,2BAA2B,GAAG,CAAC,EACnC,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,GACsB,EAAE,EAAE;IACrC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,MAAM,aAAa,GAAG,OAAO,CAC3B,GAAG,EAAE,CAAC,CAAC,eAAe,CAAC,WAAW,CAAC,EACnC,CAAC,WAAW,CAAC,CACd,CAAC;IAEF,OAAO,CACL,CAAC,YAAY,CACX,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CACtC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACvB,aAAa,CAAC,CAAC,WAAW,CAAC,CAC3B,QAAQ,CAAC,CAAC,IAAI,CAAC,CACf,SAAS,CAAC,CAAC,aAAa,CAAC,CACzB,QAAQ,CAAC,MAAM,CACf,gBAAgB,CAAC,CAAC,UAAU,CAAC,CAC7B,WAAW,CAAC,CAAC,IAAI,CAAC,CAClB,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACnB;MAAA,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CAC5D;IAAA,EAAE,YAAY,CAAC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SupplierSearchBarProps {
|
|
3
|
+
placeholderKey?: string;
|
|
4
|
+
defaultValue: any;
|
|
5
|
+
showDetailsPopup?: boolean;
|
|
6
|
+
navigate?: boolean;
|
|
7
|
+
oneFilter?: boolean;
|
|
8
|
+
onChange: (value: any) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const SupplierSearchBar: ({ placeholderKey, defaultValue, onChange, showDetailsPopup, navigate, oneFilter, }: SupplierSearchBarProps) => React.JSX.Element;
|
|
11
|
+
export default SupplierSearchBar;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
|
+
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { searchSupplier } from '../../../features/supplierSlice';
|
|
22
|
+
const displaySimpleFullName = item => item.simpleFullName;
|
|
23
|
+
const SupplierSearchBar = ({ placeholderKey = 'Purchase_Supplier', defaultValue = '', onChange = () => { }, showDetailsPopup = true, navigate = false, oneFilter = false, }) => {
|
|
24
|
+
const I18n = useTranslator();
|
|
25
|
+
const dispatch = useDispatch();
|
|
26
|
+
const { supplierList, loadingSuppliers, moreLoadingSupplier, isListEndSupplier, } = useSelector(state => state.purchase_supplier);
|
|
27
|
+
const { user } = useSelector(state => state.user);
|
|
28
|
+
const fetchSupplierAPI = useCallback(({ page = 0, searchValue }) => {
|
|
29
|
+
dispatch(searchSupplier({
|
|
30
|
+
page,
|
|
31
|
+
searchValue,
|
|
32
|
+
companyId: user.activeCompany?.id,
|
|
33
|
+
}));
|
|
34
|
+
}, [dispatch, user.activeCompany?.id]);
|
|
35
|
+
return (<AutoCompleteSearch objectList={supplierList} value={defaultValue} onChangeValue={onChange} fetchData={fetchSupplierAPI} displayValue={displaySimpleFullName} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={loadingSuppliers} moreLoading={moreLoadingSupplier} isListEnd={isListEndSupplier} navigate={navigate} oneFilter={oneFilter}/>);
|
|
36
|
+
};
|
|
37
|
+
export default SupplierSearchBar;
|
|
38
|
+
//# sourceMappingURL=SupplierSearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupplierSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/SupplierSearchBar/SupplierSearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAE/D,MAAM,qBAAqB,GAAG,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC;AAW1D,MAAM,iBAAiB,GAAG,CAAC,EACzB,cAAc,GAAG,mBAAmB,EACpC,YAAY,GAAG,EAAE,EACjB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,GACM,EAAE,EAAE;IAC3B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,W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arProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
showTitle?: boolean;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
onChange?: (any: any) => void;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
isScrollViewContainer?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const UnitSearchBar: ({ style, title, showTitle, defaultValue, onChange, readonly, required, isScrollViewContainer, }: UnitSearchBarProps) => React.JSX.Element;
|
|
13
|
+
export default UnitSearchBar;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
|
+
import { displayItemName, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { searchUnit } from '../../../features/unitSlice';
|
|
22
|
+
const UnitSearchBar = ({ style = null, title = 'Purchase_Unit', showTitle = false, defaultValue = null, onChange = () => { }, readonly = false, required = false, isScrollViewContainer = false, }) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const { loadingUnits, moreLoadingUnit, isListEndUnit, unitList } = useSelector((state) => state.purchase_unit);
|
|
26
|
+
const searchUnitAPI = useCallback(({ page = 0, searchValue }) => {
|
|
27
|
+
dispatch(searchUnit({
|
|
28
|
+
page,
|
|
29
|
+
searchValue,
|
|
30
|
+
}));
|
|
31
|
+
}, [dispatch]);
|
|
32
|
+
return (<AutoCompleteSearch style={style} title={showTitle && I18n.t(title)} objectList={unitList} value={defaultValue} required={required} readonly={readonly} onChangeValue={onChange} fetchData={searchUnitAPI} displayValue={displayItemName} placeholder={I18n.t(title)} showDetailsPopup={true} loadingList={loadingUnits} moreLoading={moreLoadingUnit} isListEnd={isListEndUnit} navigate={false} oneFilter={false} isScrollViewContainer={isScrollViewContainer}/>);
|
|
33
|
+
};
|
|
34
|
+
export default UnitSearchBar;
|
|
35
|
+
//# sourceMappingURL=UnitSearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnitSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/UnitSearchBar/UnitSearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,eAAe,EACf,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AAavD,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,GAAG,IAAI,EACZ,KAAK,GAAG,eAAe,EACvB,SAAS,GAAG,KAAK,EACjB,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,qBAAqB,GAAG,KAAK,GACV,EAAE,EAAE;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AEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as CompanyPicker } from './CompanyPicker/CompanyPicker';
|
|
2
|
+
export { default as HorizontalOrRuleText } from './HorizontalOrRuleText/HorizontalOrRuleText';
|
|
3
|
+
export { default as ProductSearchBar } from './ProductSearchBar/ProductSearchBar';
|
|
4
|
+
export { default as RequestCreationButtons } from './RequestCreationButtons/RequestCreationButtons';
|
|
5
|
+
export { default as RequestCreationQuantityCard } from './RequestCreationQuantityCard/RequestCreationQuantityCard';
|
|
6
|
+
export { default as SupplierSearchBar } from './SupplierSearchBar/SupplierSearchBar';
|
|
7
|
+
export { default as UnitSearchBar } from './UnitSearchBar/UnitSearchBar';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export { default as CompanyPicker } from './CompanyPicker/CompanyPicker';
|
|
19
|
+
export { default as HorizontalOrRuleText } from './HorizontalOrRuleText/HorizontalOrRuleText';
|
|
20
|
+
export { default as ProductSearchBar } from './ProductSearchBar/ProductSearchBar';
|
|
21
|
+
export { default as RequestCreationButtons } from './RequestCreationButtons/RequestCreationButtons';
|
|
22
|
+
export { default as RequestCreationQuantityCard } from './RequestCreationQuantityCard/RequestCreationQuantityCard';
|
|
23
|
+
export { default as SupplierSearchBar } from './SupplierSearchBar/SupplierSearchBar';
|
|
24
|
+
export { default as UnitSearchBar } from './UnitSearchBar/UnitSearchBar';
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/templates/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,2DAA2D,CAAC;AACjH,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { searchProduct } from './productSlice';
|
|
2
|
+
export { createPurchaseRequestLine, fetchPurchaseRequestLine, searchPurchaseRequestLine, updatePurchaseRequestLine, } from './purchaseRequestLineSlice';
|
|
3
|
+
export { createPurchaseRequest, getPurchaseRequest, searchPurchaseRequest, updatePurchaseRequest, updatePurchaseRequestStatus, } from './purchaseRequestSlice';
|
|
4
|
+
export { searchSupplier } from './supplierSlice';
|
|
5
|
+
export { searchUnit } from './unitSlice';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export { searchProduct } from './productSlice';
|
|
19
|
+
export { createPurchaseRequestLine, fetchPurchaseRequestLine, searchPurchaseRequestLine, updatePurchaseRequestLine, } from './purchaseRequestLineSlice';
|
|
20
|
+
export { createPurchaseRequest, getPurchaseRequest, searchPurchaseRequest, updatePurchaseRequest, updatePurchaseRequestStatus, } from './purchaseRequestSlice';
|
|
21
|
+
export { searchSupplier } from './supplierSlice';
|
|
22
|
+
export { searchUnit } from './unitSlice';
|
|
23
|
+
//# sourceMappingURL=asyncFunctions-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncFunctions-index.js","sourceRoot":"","sources":["../../src/features/asyncFunctions-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { productReducer as purchase_product } from "./productSlice";
|
|
2
|
+
export { purchaseRequestLineReducer as purchase_purchaseRequestLine } from "./purchaseRequestLineSlice";
|
|
3
|
+
export { purchaseRequestReducer as purchase_purchaseRequest } from "./purchaseRequestSlice";
|
|
4
|
+
export { supplierReducer as purchase_supplier } from "./supplierSlice";
|
|
5
|
+
export { unitReducer as purchase_unit } from "./unitSlice";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export { productReducer as purchase_product } from './productSlice';
|
|
19
|
+
export { purchaseRequestLineReducer as purchase_purchaseRequestLine } from './purchaseRequestLineSlice';
|
|
20
|
+
export { purchaseRequestReducer as purchase_purchaseRequest } from './purchaseRequestSlice';
|
|
21
|
+
export { supplierReducer as purchase_supplier } from './supplierSlice';
|
|
22
|
+
export { unitReducer as purchase_unit } from './unitSlice';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,cAAc,IAAI,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAC,0BAA0B,IAAI,4BAA4B,EAAC,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAC,sBAAsB,IAAI,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAC,eAAe,IAAI,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,WAAW,IAAI,aAAa,EAAC,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const searchProduct: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
2
|
+
state?: unknown;
|
|
3
|
+
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
|
|
4
|
+
extra?: unknown;
|
|
5
|
+
rejectValue?: unknown;
|
|
6
|
+
serializedErrorType?: unknown;
|
|
7
|
+
pendingMeta?: unknown;
|
|
8
|
+
fulfilledMeta?: unknown;
|
|
9
|
+
rejectedMeta?: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
export const productReducer: import("redux").Reducer<{
|
|
12
|
+
loadingProducts: boolean;
|
|
13
|
+
moreLoadingProduct: boolean;
|
|
14
|
+
isListEndProduct: boolean;
|
|
15
|
+
productList: any[];
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
19
|
+
import { generateInifiniteScrollCases, handlerApiCall, } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { searchProduct as _searchProduct } from '../api/product-api';
|
|
21
|
+
export const searchProduct = createAsyncThunk('purchase_product/searchProduct', async function (data, { getState }) {
|
|
22
|
+
return handlerApiCall({
|
|
23
|
+
fetchFunction: _searchProduct,
|
|
24
|
+
data,
|
|
25
|
+
action: 'Purchase_SliceAction_SearchProduct',
|
|
26
|
+
getState,
|
|
27
|
+
responseOptions: { isArrayResponse: true },
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
const initialState = {
|
|
31
|
+
loadingProducts: false,
|
|
32
|
+
moreLoadingProduct: false,
|
|
33
|
+
isListEndProduct: false,
|
|
34
|
+
productList: [],
|
|
35
|
+
};
|
|
36
|
+
const productSlice = createSlice({
|
|
37
|
+
name: 'purchase_product',
|
|
38
|
+
initialState,
|
|
39
|
+
extraReducers: builder => {
|
|
40
|
+
generateInifiniteScrollCases(builder, searchProduct, {
|
|
41
|
+
loading: 'loadingProducts',
|
|
42
|
+
moreLoading: 'moreLoadingProduct',
|
|
43
|
+
isListEnd: 'isListEndProduct',
|
|
44
|
+
list: 'productList',
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
export const productReducer = productSlice.reducer;
|
|
49
|
+
//# sourceMappingURL=productSlice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productSlice.js","sourceRoot":"","sources":["../../src/features/productSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,aAAa,IAAI,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAEnE,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAC3C,gCAAgC,EAChC,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,cAAc;QAC7B,IAAI;QACJ,MAAM,EAAE,oCAAoC;QAC5C,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,eAAe,EAAE,KAAK;IACtB,kBAAkB,EAAE,KAAK;IACzB,gBAAgB,EAAE,KAAK;IACvB,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,YAAY,GAAG,WAAW,CAAC;IAC/B,IAAI,EAAE,kBAAkB;IACxB,YAAY;IACZ,aAAa,EAAE,OAAO,CAAC,EAAE;QACvB,4BAA4B,CAAC,OAAO,EAAE,aAAa,EAAE;YACnD,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,oBAAoB;YACjC,SAAS,EAAE,kBAAkB;YAC7B,IAAI,EAAE,aAAa;SACpB,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const searchPurchaseRequestLine: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
2
|
+
state?: unknown;
|
|
3
|
+
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
|
|
4
|
+
extra?: unknown;
|
|
5
|
+
rejectValue?: unknown;
|
|
6
|
+
serializedErrorType?: unknown;
|
|
7
|
+
pendingMeta?: unknown;
|
|
8
|
+
fulfilledMeta?: unknown;
|
|
9
|
+
rejectedMeta?: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
export const fetchPurchaseRequestLine: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
12
|
+
state?: unknown;
|
|
13
|
+
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
|
|
14
|
+
extra?: unknown;
|
|
15
|
+
rejectValue?: unknown;
|
|
16
|
+
serializedErrorType?: unknown;
|
|
17
|
+
pendingMeta?: unknown;
|
|
18
|
+
fulfilledMeta?: unknown;
|
|
19
|
+
rejectedMeta?: unknown;
|
|
20
|
+
}>;
|
|
21
|
+
export const createPurchaseRequestLine: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
22
|
+
state?: unknown;
|
|
23
|
+
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
|
|
24
|
+
extra?: unknown;
|
|
25
|
+
rejectValue?: unknown;
|
|
26
|
+
serializedErrorType?: unknown;
|
|
27
|
+
pendingMeta?: unknown;
|
|
28
|
+
fulfilledMeta?: unknown;
|
|
29
|
+
rejectedMeta?: unknown;
|
|
30
|
+
}>;
|
|
31
|
+
export const updatePurchaseRequestLine: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
32
|
+
state?: unknown;
|
|
33
|
+
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
|
|
34
|
+
extra?: unknown;
|
|
35
|
+
rejectValue?: unknown;
|
|
36
|
+
serializedErrorType?: unknown;
|
|
37
|
+
pendingMeta?: unknown;
|
|
38
|
+
fulfilledMeta?: unknown;
|
|
39
|
+
rejectedMeta?: unknown;
|
|
40
|
+
}>;
|
|
41
|
+
export const purchaseRequestLineReducer: import("redux").Reducer<{
|
|
42
|
+
loadingPurchaseRequestLine: boolean;
|
|
43
|
+
purchaseRequestLine: {};
|
|
44
|
+
loadingPurchaseRequestLines: boolean;
|
|
45
|
+
moreLoadingPurchaseRequestLine: boolean;
|
|
46
|
+
isListEndPurchaseRequestLine: boolean;
|
|
47
|
+
purchaseRequestLineList: any[];
|
|
48
|
+
totalPurchaseRequestLine: number;
|
|
49
|
+
}>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
19
|
+
import { generateInifiniteScrollCases, handlerApiCall, } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { createPurchaseRequestLine as _createPurchaseRequestLine, fetchPurchaseRequestLine as _fetchPurchaseRequestLine, searchPurchaseRequestLine as _searchPurchaseRequestLine, updatePurchaseRequestLine as _updatePurchaseRequestLine, } from '../api/purchase-request-line-api';
|
|
21
|
+
export const searchPurchaseRequestLine = createAsyncThunk('purchase_purchaseRequestLine/searchPurchaseRequestLine', async function (data, { getState }) {
|
|
22
|
+
return handlerApiCall({
|
|
23
|
+
fetchFunction: _searchPurchaseRequestLine,
|
|
24
|
+
data,
|
|
25
|
+
action: 'Purchase_SliceAction_SearchPurchaseRequestLine',
|
|
26
|
+
getState,
|
|
27
|
+
responseOptions: { isArrayResponse: true, resturnTotalWithData: true },
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
export const fetchPurchaseRequestLine = createAsyncThunk('purchase_purchaseRequestLine/fetchPurchaseRequestLine', async function (data, { getState }) {
|
|
31
|
+
return handlerApiCall({
|
|
32
|
+
fetchFunction: _fetchPurchaseRequestLine,
|
|
33
|
+
data,
|
|
34
|
+
action: 'Purchase_SliceAction_FetchPurchaseRequestLine',
|
|
35
|
+
getState,
|
|
36
|
+
responseOptions: { isArrayResponse: false },
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
export const createPurchaseRequestLine = createAsyncThunk('purchase_purchaseRequestLine/createPurchaseRequestLine', async function (data, { getState, dispatch }) {
|
|
40
|
+
return handlerApiCall({
|
|
41
|
+
fetchFunction: _createPurchaseRequestLine,
|
|
42
|
+
data,
|
|
43
|
+
action: 'Purchase_SliceAction_CreatePurchaseRequestLine',
|
|
44
|
+
getState,
|
|
45
|
+
responseOptions: { isArrayResponse: false },
|
|
46
|
+
}).then(() => {
|
|
47
|
+
dispatch(searchPurchaseRequestLine({ purchaseRequestId: data.purchaseRequestId }));
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
export const updatePurchaseRequestLine = createAsyncThunk('purchase_purchaseRequestLine/updatePurchaseRequestLine', async function (data, { getState, dispatch }) {
|
|
51
|
+
return handlerApiCall({
|
|
52
|
+
fetchFunction: _updatePurchaseRequestLine,
|
|
53
|
+
data,
|
|
54
|
+
action: 'Purchase_SliceAction_UpdatePurchaseRequestLine',
|
|
55
|
+
getState,
|
|
56
|
+
responseOptions: { isArrayResponse: false },
|
|
57
|
+
}).then(() => {
|
|
58
|
+
dispatch(searchPurchaseRequestLine({ purchaseRequestId: data.purchaseRequestId }));
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
const initialState = {
|
|
62
|
+
loadingPurchaseRequestLine: false,
|
|
63
|
+
purchaseRequestLine: {},
|
|
64
|
+
loadingPurchaseRequestLines: false,
|
|
65
|
+
moreLoadingPurchaseRequestLine: false,
|
|
66
|
+
isListEndPurchaseRequestLine: false,
|
|
67
|
+
purchaseRequestLineList: [],
|
|
68
|
+
totalPurchaseRequestLine: 0,
|
|
69
|
+
};
|
|
70
|
+
const purchaseRequestLineSlice = createSlice({
|
|
71
|
+
name: 'purchase_purchaseRequestLine',
|
|
72
|
+
initialState,
|
|
73
|
+
extraReducers: builder => {
|
|
74
|
+
generateInifiniteScrollCases(builder, searchPurchaseRequestLine, {
|
|
75
|
+
loading: 'loadingPurchaseRequestLines',
|
|
76
|
+
moreLoading: 'moreLoadingPurchaseRequestLine',
|
|
77
|
+
isListEnd: 'isListEndPurchaseRequestLine',
|
|
78
|
+
list: 'purchaseRequestLineList',
|
|
79
|
+
total: 'totalPurchaseRequestLine',
|
|
80
|
+
}, {
|
|
81
|
+
manageTotal: true,
|
|
82
|
+
});
|
|
83
|
+
builder.addCase(fetchPurchaseRequestLine.pending, state => {
|
|
84
|
+
state.loadingPurchaseRequestLine = true;
|
|
85
|
+
});
|
|
86
|
+
builder.addCase(fetchPurchaseRequestLine.rejected, state => {
|
|
87
|
+
state.loadingPurchaseRequestLine = false;
|
|
88
|
+
});
|
|
89
|
+
builder.addCase(fetchPurchaseRequestLine.fulfilled, (state, action) => {
|
|
90
|
+
state.loadingPurchaseRequestLine = false;
|
|
91
|
+
state.purchaseRequestLine = action.payload;
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
export const purchaseRequestLineReducer = purchaseRequestLineSlice.reducer;
|
|
96
|
+
//# sourceMappingURL=purchaseRequestLineSlice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchaseRequestLineSlice.js","sourceRoot":"","sources":["../../src/features/purchaseRequestLineSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAA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