refactor(forcast): changes to consider a plants different addresses
This commit is contained in:
@@ -117,7 +117,9 @@ export const pNgForecast = async (data: any, user: any) => {
|
||||
const activeAV = article.filter(
|
||||
(c: any) =>
|
||||
c?.CustomerArticleNumber ===
|
||||
nForecast[i]?.customerArticleNo.toString()
|
||||
nForecast[i]?.customerArticleNo.toString() &&
|
||||
// validate it works via the default address
|
||||
c?.IdAdresse === parseInt(pNg[0].value)
|
||||
);
|
||||
|
||||
if (activeAV.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user