public string EditPurchaseInvoice(string purchaseInvoice)
        {
            var pl = BL_Common.Deserialize <BO_PurchaseInvoice>(purchaseInvoice);

            pl.empID = UserAprosysAccounting.id;
            return(BL_Common.Serialize(BL_PurchaseInvoice.EditPurchases(pl)));
        }
        public string EditSubscriptionCustomer(string paramcustomer)
        {
            //try catch
            var _customer = BL_Common.Deserialize <BO_SubCustomer>(paramcustomer);

            return(BL_Common.Serialize((BL_Subscription.EditSubscriptionCustomer(_customer, UserAprosysAccounting.id))));
        }
Пример #3
0
        public string EditReceiptVoucher(string rvoucher)
        {
            var _rvoucher = BL_Common.Deserialize <BO_ReceiptVoucher>(rvoucher);

            _rvoucher.empID = UserAprosysAccounting.id;
            return(BL_Common.Serialize((BL_ReceiptVoucher.EditReceiptVoucher(_rvoucher))));
        }
        public string EditPaymentVoucher(string pvoucher)
        {
            var Pvoucher = BL_Common.Deserialize <BO_PaymentVoucher>(pvoucher);

            Pvoucher.empID = UserAprosysAccounting.id;
            return(BL_Common.Serialize((BL_PaymentVoucher.EditPaymentVoucher(Pvoucher))));
        }
        public string EditSaleInvoice(string paramSales)
        {
            var pl = BL_Common.Deserialize <BO_SaleInvoice>(paramSales);

            pl.empID = UserAprosysAccounting.id;

            return(BL_Common.Serialize(BL_SaleInvoice.UpdateSaleInvoice(pl)));
        }
        public string SaveSuspendedDuesofCustomer(int SubCustomerId)
        {
            //try catch
            BL_Subscription obj = new BussinessLogics.BL_Subscription();

            return(BL_Common.Serialize(obj.ClearSuspendedDuesofCustomer(SubCustomerId)));
            //return BL_Common.Serialize(BL_ReceiptVoucher.SaveSuspendedDuesofCustomer(customerId,UserAprosysAccounting.id));
        }
Пример #7
0
        public string UpdateUnPaidCreditSales(string paramcustomer)
        {
            var obj = BL_Common.Deserialize <BO_CreditSalesUpdate>(paramcustomer);

            if (!Config.AllowEditDate)
            {
                obj.creditPaidDate = DateTime.Now;
            }
            return(BL_Common.Serialize((BL_CreditSales.UpdateUnPaidCreditSales(obj, UserAprosysAccounting.id))));
        }
        public string SavePurchaseInvoice(string purchaseInvoice)
        {
            var pl = BL_Common.Deserialize <BO_PurchaseInvoice>(purchaseInvoice);

            pl.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                pl.purchaseDate = DateTime.Now;
            }
            return(BL_Common.Serialize(BL_PurchaseInvoice.SavePurchase(pl)));
        }
Пример #9
0
        public string SaveReceiptVoucher(string rvoucher)
        {
            var _rvoucher = BL_Common.Deserialize <BO_ReceiptVoucher>(rvoucher);

            _rvoucher.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                _rvoucher.rActivityDate = DateTime.Now;
            }
            return(BL_Common.Serialize((BL_ReceiptVoucher.SaveReceiptVoucher(_rvoucher))));
        }
        public string SaveSaleInvoice(string paramSales)
        {
            var pl = BL_Common.Deserialize <BO_SaleInvoice>(paramSales);

            pl.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                pl.saleDate = DateTime.Now;
            }
            return(BL_Common.Serialize(BL_SaleInvoice.SaveSales(pl)));
        }
        public string InsertBankTransfer(string param)
        {
            var obj = BL_Common.Deserialize <BO_Banks>(param);

            obj.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                obj.transDate = DateTime.Now;
            }
            return(BL_Common.Serialize(BL_Banks.InsertBankTransfer(obj)));
        }
        public string SavePaymentVoucher(string pvoucher)
        {
            var Pvoucher = BL_Common.Deserialize <BO_PaymentVoucher>(pvoucher);

            Pvoucher.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                Pvoucher.activityDate = DateTime.Now;
            }
            return(BL_Common.Serialize((BL_PaymentVoucher.SavePaymentVoucher(Pvoucher))));
        }
        public string InsertEquityInfo(string param)
        {
            var obj = BL_Common.Deserialize <BO_Equity>(param);

            obj.userId = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                obj.activityTime = DateTime.Now;
            }

            return(BL_Common.Serialize(BL_Equity.InsertEquityInfo(obj)));
        }
 public string SaveAdministrativeExpense(string name)
 {
     //  var Pvoucher = BL_Common.Deserialize<BO_COA>(pvoucher);
     return(BL_Common.Serialize(BL_Expense.SaveAdministrativeExpense(name)));
 }
Пример #15
0
 public string GetSaleInvoicesList()
 {
     return(BL_Common.Serialize(BL_SalesReturn.GetSaleInvoicesList()));
 }
        public string GetCurrentCash()
        {
            var banks = BL_Banks.GetBanksList().Find(x => x.bankID == 11);

            return(BL_Common.Serialize(banks));
        }
 public string GetBanksList()
 {
     return(BL_Common.Serialize(BL_Banks.GetBanksList()));
 }
 public string EDITAdministrativeExpense(int id, string name)
 {
     return(BL_Common.Serialize(BL_Expense.EditAdministrativeExpense(id, name)));
 }
 public string DeletePurchaseInvoice(string invoiceId)
 {
     return(BL_Common.Serialize(BL_PurchaseInvoice.DeletePurchaseInvoice(invoiceId, UserAprosysAccounting.id)));
 }
Пример #20
0
        public string SaveCustomer(string paramcustomer)
        {
            var _customer = BL_Common.Deserialize <BO_Customers>(paramcustomer);

            return(BL_Common.Serialize((BL_Customer.SaveCustomer(_customer, UserAprosysAccounting.id))));
        }
Пример #21
0
        public string GetCustomerBalance(int custId)
        {
            var pl = BL_Customer.GetCustomerBalance(custId);

            return(BL_Common.Serialize(pl));
        }
 public string GetSalesPersonList()
 {
     return(BL_Common.Serialize(BL_SaleInvoice.GetSalesPersonList()));
 }
 public string DeleteAdministrativeExpense(int id)
 {
     return(BL_Common.Serialize((BL_Expense.DeleteAdministrativeExpense(id))));
 }
Пример #24
0
        public string SaveBonus(BO_BonusRevenue br)
        {
            var empID = UserAprosysAccounting.id;

            return(BL_Common.Serialize(BL_BonusRevenue.SaveBonus(br, empID)));
        }
 public string GetExpenseByID(int id)
 {
     return(BL_Common.Serialize((BL_Expense.GetExpenseByID(id))));
 }
Пример #26
0
        public string DeleteUser(int id)
        {
            var pl = BL_Users.DeleteUser(id, UserAprosysAccounting.id);

            return(BL_Common.Serialize("success"));
        }
Пример #27
0
        public string SaveUser(string paramuser)
        {
            var _user = BL_Common.Deserialize <BO_Users>(paramuser);

            return(BL_Common.Serialize(BL_Users.SaveUser(_user, UserAprosysAccounting.id)));
        }
 // GET: Sales
 public ActionResult Index()
 {
     ViewBag.Taxes = BL_Common.Serialize(TaxesHelper.GetTaxes());
     return(View());
 }
Пример #29
0
        public string DeleteCustomer(int customerID)
        {
            var pl = BL_Customer.DeleteCustomer(customerID, UserAprosysAccounting.id);

            return(BL_Common.Serialize(pl));
        }
Пример #30
0
        public string DeletePaymentHistory(int tranId)
        {
            BL_PaymentHistory obj = new BussinessLogics.BL_PaymentHistory();

            return(BL_Common.Serialize(obj.DeletePaymentHistory(tranId, UserAprosysAccounting.id)));
        }