public decimal GetSupplierOutstandingAmt([FromBody] TblPurchasepayment purreceipt)
 {
     try
     {
         decimal oustanding = this._repoWrapper.Purchasepayment.GetSupplierOutstandingAmt(purreceipt);
         return(oustanding);
     }
     catch (Exception e)
     {
         return(0);
     }
 }
        public bool Update([FromBody] TblPurchasepayment purchasepayment)
        {
            try
            {
                this._repoWrapper.Purchasepayment.Update(purchasepayment);
                this._repoWrapper.Purchasepayment.Save();
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }
        public bool Add([FromBody] TblPurchasepayment purchasepayment)
        {
            try
            {
                this._repoWrapper.Purchasepayment.Create(purchasepayment);
                this._repoWrapper.Purchasepayment.Save();
                this._repoWrapper.Purchasepayment.SaveSupplierTransaction(purchasepayment);
                this._repoWrapper.Purchasepayment.Save();
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }
예제 #4
0
        public IEnumerable <ViewStockDetails> GetSupplierLedger([FromBody] TblPurchasepayment purchase)
        {
            var Product = this._repoWrapper.Product.GetSupplierLedger(Convert.ToInt32(purchase.SupplierId));

            return(Product);
        }