Cecha skryptowa – stany wybranego magazynu

wpis w: ... | 0

Akcja pokazuje w UP –> lista produktów stan konkretnego magazynu

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Worm;
using Unicore.Manufacture.Business;
using Hydra.Forte;


namespace FeatureScript {
	public class Script8563011465538098622 {
		public Decimal GetValue(object obj) {
			var product = obj as Product;
			if (product</a>  == null) return 0M;
			var article = product.Article;
			if (article == null) return 0M;			
			var store = Store.Get(); //tu wpisać nazwę magazynu
			if (store == null) return 0M;			
			return Convert.ToDecimal(article.GetStock(store).Available);
		}
	}
}