Skip to content

Commit

Permalink
Fix. handling null value for outward number
Browse files Browse the repository at this point in the history
Co-authored-by: deeptirawat1510 <[email protected]>
  • Loading branch information
yenugukeerthana and deeptirawat1510 committed Oct 9, 2023
1 parent ae74a97 commit 1b8509b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/inventory/aushada/aushada.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,16 @@ const Aushada = (props) => {
for (const result of itemStock) {
for (const stockOperation of result.details) {
const formattedDate = convertToDateTimeFormat(selectedDate);
if (stockOperation.batchOperation.inwardDate === formattedDate) {
inwardNumberMatch = true;
break;
}
if (stockOperation.batchOperation.outwardId === outwardNumber) {
outwardMatch = true;
break;
}
if (enableEaushadhaInwardApi && (stockOperation.batchOperation.inwardDate === formattedDate)) {
inwardNumberMatch = true;
break;
}
else{
if ( outwardNumber && stockOperation.batchOperation.outwardId === outwardNumber) {
outwardMatch = true;
break;
}
}
}
if (inwardNumberMatch || outwardMatch) break;
}
Expand Down

0 comments on commit 1b8509b

Please sign in to comment.