Skip to content

Commit

Permalink
refacotr: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
gca-axelor committed Dec 9, 2024
1 parent aaca6c5 commit 5728901
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/apps/purchase/src/api/supplier-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export async function searchSupplier({page = 0, searchValue}) {
model: 'com.axelor.apps.base.db.Partner',
criteria: createSupplierCriteria(searchValue),
fieldKey: 'purchase_supplier',
sortKey: 'purchase_supplier',
page,
});
}
10 changes: 5 additions & 5 deletions packages/apps/purchase/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"Purchase_Purchase": "Achats",
"Purchase_InternalRequests": "Demandes internes",
"Purchase_Status_Draft": "Brouillon",
"Purchase_Status_Requested": "Demandé",
"Purchase_Status_Accepted": "Accepté",
"Purchase_Status_Purchased": "Acheté",
"Purchase_Status_Refused": "Refusé",
"Purchase_Status_Canceled": "Annulé",
"Purchase_Status_Requested": "Demandée",
"Purchase_Status_Accepted": "Acceptée",
"Purchase_Status_Purchased": "Achetée",
"Purchase_Status_Refused": "Refusée",
"Purchase_Status_Canceled": "Annulée",
"Purchase_Supplier": "Fournisseur",
"Purchase_SliceAction_SearchPurchaseRequest": "recherche sur les demandes d'achat",
"Purchase_SliceAction_SearchSupplier": "recherche sur les fournisseurs"
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/purchase/src/models/sortFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import {SortFields} from '@axelor/aos-mobile-core';

export const purchase_sortFields: SortFields = {
purchase_purchaseRequest: ['statusSelect'],
purchase_purchaseRequest: ['statusSelect', 'purchaseRequestSeq'],
};
4 changes: 2 additions & 2 deletions packages/apps/purchase/src/models/typeObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ export const purchase_typeObjects: ModuleSelections = [
key: 'Refused',
value: 5,
title: 'Purchase_Status_Refused',
color: 'cautionColor',
color: 'errorColor',
},
{
key: 'Canceled',
value: 6,
title: 'Purchase_Status_Canceled',
color: 'errorColor',
color: 'cautionColor',
},
],
},
Expand Down

0 comments on commit 5728901

Please sign in to comment.