- Items Requested
-
-
a.id - b.id) || []}
- getOptionLabel={(option) =>
- `${option.equipment_name} (ID:${option.id})`
- }
- value={
- equipments.data?.filter((equipment) =>
- transaction.equipments.includes(equipment.id)
- ) || []
- }
- onChange={(_event, newValue) => {
- SetTransaction({
- ...transaction,
- equipments: newValue.map((item) => item.id),
- });
- }}
- renderInput={(params) => (
-
- )}
- />
-
+
+ Total equipment to borrow: {calculateTotalEquipmentCount()}
+
+
+
+