Skip to content

Commit

Permalink
O3-3071: Display expiry date on batch during issuing of stock in OWA …
Browse files Browse the repository at this point in the history
…project
  • Loading branch information
slubwama committed Apr 14, 2024
1 parent 3e2ccd6 commit b045d26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ const StockOperationItemsTable: React.FC<StockOperationItemTableProps> = ({
onToggleClick={(e => handleStockBatchSearch(row, ""))}
shouldFilterItem={(data) => true}
onInputChange={(q) => handleStockBatchSearch(row, q)}
itemToString={item => item?.batchNo ?? ''}
itemToString={item => `${item?.batchNo ? `${item.batchNo} ${item?.expiration ?` - ${formatForDatePicker(item?.expiration)}`: ""} ${item?.quantity ?` - ${item?.quantity}`: ""}` : ""}`}
placeholder={'Filter...'}
invalid={(row.uuid in errors) && ("stockBatchUuid" in errors[row.uuid]) && !errors[row.uuid]["stockBatchUuid"]} />
}
Expand Down

0 comments on commit b045d26

Please sign in to comment.