Biskilog local server manager for the Biskilog POS desktop application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.9 KiB

2 years ago
using Biskilog_Cloud.Shared.CustomModels;
using Biskilog_Cloud.Shared.Models;
2 years ago
namespace Biskilog_Cloud.Shared.Interfaces
{
public interface IProduct
{
IEnumerable<UnitOfMeasure> GetUnitofmeasures();
2 years ago
IEnumerable<ProductItem> GetProducts(string a_productKey = "");
IEnumerable<TblBrand> GetBrands(string a_brandKey = "");
IEnumerable<TblCategory> GetCategories(string a_categoryKey = "");
2 years ago
IEnumerable<ProductItem> GetLowstockItems();
Task FetchProducts();
Task FetchLowStockProducts();
Task FetchUnits();
Task FetchBrands();
Task FetchCategories();
void RefreshList();
ProductItem GetProductById(string a_id);
ProductItem GetProductByName(string name);
string GetUnitName(string a_unitCode);
event EventHandler ProductsChanged;
event EventHandler UnitsChanged;
event EventHandler BrandsChanged;
event EventHandler CategoriesChanged;
Task<IEnumerable<TblProduct>> FetchProducts(DateTime a_lastSync, string a_branch);
Task<IEnumerable<TblInventory>> FetchInventory(DateTime a_lastSync, string a_branch);
Task<IEnumerable<TblInventoryEntry>> FetchInventoryEntries(DateTime a_lastSync, string a_branch);
Task<IEnumerable<TblPriceChange>> FetchPriceChanges(DateTime a_lastSync, string a_branch);
Task<IEnumerable<ProductAltUnit>> FetchProductAltUnit(DateTime a_lastSync, string a_branch);
Task<IEnumerable<RestockLevel>> FetchRestockAsync(DateTime a_lastSync, string a_branch);
Task<IEnumerable<UnitOfMeasure>> FetchUnitOfMeasureAsync(DateTime a_lastSync, string a_branch);
Task<IEnumerable<TbStock>> FetchStockAsync(DateTime a_lastSync, string a_branch);
Task<IEnumerable<TblBrand>> FetchBrandsAsync(DateTime a_lastSync, string a_branch);
Task<IEnumerable<TblCategory>> FetchCategoriesAsync(DateTime a_lastSync, string a_branch);
2 years ago
}
}