fix: stock availability not showing (#38382)

fix: stock availability now showing
This commit is contained in:
rohitwaghchaure
2023-11-28 15:16:35 +05:30
committed by GitHub
parent 25f67923ea
commit 3929cc30ca
2 changed files with 7 additions and 1 deletions

View File

@@ -139,6 +139,12 @@ erpnext.ProductList = class {
<br>
<span class="out-of-stock mt-2">${ __("Out of stock") }</span>
`;
} else if (item.is_stock) {
return `
<br>
<span class="in-stock in-green has-stock mt-2"
style="font-size: 14px;">${ __("In stock") }</span>
`;
}
}
return ``;