Skip to content

Commit

Permalink
refactor: remove stock locationName
Browse files Browse the repository at this point in the history
  • Loading branch information
gca-axelor committed Dec 17, 2024
1 parent 4e27c8b commit 5ad415c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ interface RequestCardProps {
style?: any;
companyName: string;
supplierPartnerName: string;
stockLocationName: string;
reference: string;
statusSelect: number;
onPress: () => void;
Expand All @@ -35,7 +34,6 @@ const RequestCard = ({
style,
companyName,
supplierPartnerName,
stockLocationName,
reference,
statusSelect,
onPress,
Expand Down Expand Up @@ -66,8 +64,8 @@ const RequestCard = ({
},
{
iconName: 'building',
indicatorText: `${companyName} - ${stockLocationName}`,
hideIf: companyName == null && stockLocationName == null,
indicatorText: companyName,
hideIfNull: true,
},
],
}}
Expand Down
1 change: 0 additions & 1 deletion packages/apps/purchase/src/models/objectFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const purchase_modelAPI: ObjectFields = {
supplierPartner: schemaContructor.subObject('fullName'),
company: schemaContructor.subObject('name'),
statusSelect: schemaContructor.number(),
stockLocation: schemaContructor.subObject('name'),
}),
purchase_supplier: schemaContructor.object({
simpleFullName: schemaContructor.string(),
Expand Down
1 change: 0 additions & 1 deletion packages/apps/purchase/src/screens/RequestListScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const RequestListScreen = ({}) => {
reference={item.purchaseRequestSeq}
companyName={item.company?.name}
supplierPartnerName={item.supplierPartner?.fullName}
stockLocationName={item.stockLocation?.name}
/>
)}
/>
Expand Down

0 comments on commit 5ad415c

Please sign in to comment.