Feature: Sale analysis printout changed.

Feature: Sale analysis detail printing built
This commit is contained in:
Amritanshu
2013-11-16 11:31:58 +05:30
parent f834520db9
commit b6498a7b1c
59 changed files with 678 additions and 1388 deletions

View File

@ -1,15 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IAdvanceDAO : IDisposable
{
void Insert(AdvanceBO advance);
AdvanceBO Get(Guid advanceID);
List<AdvanceDisplayBO> GetAdvances(DateTime fromDate, DateTime toDate, bool all);
void Adjust(Guid advanceID, Guid userID);
}
}

View File

@ -1,27 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface ICheckoutDAO :IDisposable
{
decimal GetDetail(ref string info, PaidStatus paidStatus, string infoLine);
decimal GetOpenings();
decimal GetReceipts();
decimal GetPayments();
decimal GetAdditionalVoids();
decimal GetRetainedOvernight();
decimal GetAdvancesReceived();
decimal GetAdvancesAdjusted();
string GetPaymentString();
string GetActiveCashiers();
decimal GetNetSales();
decimal GetDiscountsBills(ref string info);
decimal GetOldPending();
decimal GetOldReceipts();
decimal GetOldVoided();
}
}

View File

@ -1,19 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface ICustomerDAO :IDisposable
{
void Insert(CustomerBO customer);
void Update(CustomerBO customer);
void Delete(Guid customerID);
CustomerBO GetCustomer(Guid customerID);
List<CustomerBO> GetFilteredCustomers(Dictionary<string, string> filter);
List<LedgerBO> GetCustomerLedgers();
List<CustomerBO> GetCustomers();
List<CustomerBO> GetCustomers(Guid customerID);
}
}

View File

@ -1,16 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IInventoryDAO : IDisposable
{
bool Insert(InventoryBO inventory);
bool Update(InventoryBO inventory);
bool Delete(Guid voucherID);
bool Delete(Guid voucherID, Guid productID);
List<InventoryDisplayBO> GetInventories(Guid voucherID);
}
}

View File

@ -1,18 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface ILedgerDAO : IDisposable
{
bool Insert(LedgerBO ledger);
LedgerBO GetLedger(Guid ledgerID);
LedgerBO GetLedger(string name);
List<LedgerDisplayBO> GetLedgers(char type);
bool Delete(Guid ledgerID);
bool Update(LedgerBO ledger);
List<LedgerDisplayBO> GetLedgers();
}
}

View File

@ -1,19 +0,0 @@
using System;
using Tanshu.Accounts.Contracts;
using System.Collections.Generic;
namespace Tanshu.Accounts.DAOFactory
{
public interface IManagementDAO : IDisposable
{
decimal GetBalance(decimal? tax);
List<Guid> GetUpdateBillList(decimal tax);
decimal Update(Guid voucherID, decimal tax);
List<PendingBillsBO> GetPaidBills();
void Reorder(ShowProgessDelegate showProgressDelegate);
bool MergeData(string sourceDB, string targetDB);
}
}

View File

@ -1,26 +0,0 @@
using System;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IMembershipDAO : IDisposable
{
bool ValidateUser(string name, string password);
bool IsUserInRole(string username, string roleName);
bool IsUserInRole(Guid userID, string roleName);
string[] GetRolesForUser(string username);
UserBO GetUserFromName(string name);
string[] GetAllRoles();
void AddUsersToRoles(string[] usernames, string[] roleNames);
void RemoveUsersFromRoles(string[] usernames, string[] roleNames);
bool RoleExists(string roleID);
}
}

View File

@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IPaymentDAO : IDisposable
{
void Insert(PaymentBO payment);
List<PaymentDisplayBO> GetPayments(Guid? userID, DateTime fromDate, DateTime toDate);
void Delete(Guid paymentID);
}
}

View File

@ -1,26 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IProductDAO : IDisposable
{
bool Insert(ProductBO product);
ProductBO GetProduct(Guid productID);
bool Delete(Guid productID);
bool Update(ProductBO product);
ProductBO GetProduct(string nameAndUnits);
decimal GetProductStock(DateTime date, Guid productID, Guid? voucherID);
List<ProductDisplayBO> GetProducts();
void UpdateShortName();
List<ProductDisplaySmallBO> GetFilteredProducts(Dictionary<string, string> filter);
List<ProductTypeBO> GetProductTypes();
List<ProductDisplayBO> GetProducts(string name, int skip, int count);
}
}

View File

@ -1,16 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface ISaleVoucherDAO : IDisposable
{
bool Insert(SaleVoucherBO saleVoucher);
bool Update(SaleVoucherBO saleVoucher);
void SetAlarm(Guid voucherID, DateTime? alarmTime);
void VoidBill(Guid voucherID, string reason);
SaleVoucherBO GetVoucherSale(Guid voucherID);
SaleVoucherBO GetVoucherSale(string billID);
}
}

View File

@ -1,21 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface ISaleVoucherMixDAO : IDisposable
{
SalesBillItemBO GetDefaultSaleBillItem(Guid productID);
decimal GetProductDiscountLimit(Guid productID);
bool IsBillPrinted(Guid voucherID);
List<PendingBillsBO> GetPendingBills(PendingType list, int floor);
Nullable<Guid> GetPendingVoucherID(string tableID, int floor);
List<InventoryBO> SaleInventory(Dictionary<BillItemKey, SalesBillItemBO>.ValueCollection list, Guid? voucherID);
void DeclareBillsPaid(Guid userID, List<Guid> billList, PaidStatus paidStatus);
decimal Amount(Guid voucherID);
}
}

View File

@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface ISalesAnalysisDAO : IDisposable
{
List<SalesAnalysisBO> GetSalesTaxReturn(DateTime startDate, DateTime finishDate, ref decimal freeSale, ref decimal voids, ref decimal pending, ref decimal net, ref decimal tax);
void GetAdditionalInfo(ref decimal freeSale, ref decimal voids, ref decimal pending, ref decimal net, ref decimal tax, DateTime startDate, DateTime finishDate);
List<SalesAnalysisDetailBO> GetSaleDetail(DateTime startDate, DateTime finishDate, Guid costCenterID);
List<SalesAnalysisBO> GetSale(DateTime startDate, DateTime finishDate);
}
}

View File

@ -1,11 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface ITaxDAO : IDisposable
{
List<TaxBO> GetTaxes();
}
}

View File

@ -1,21 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IUserDAO : IDisposable
{
UserBO GetUser(Guid userID);
List<UserBO> GetUsers();
List<UserBO> GetFilteredUsers(Dictionary<string, string> filter);
bool UserExists(string userName);
bool Insert(UserBO user);
bool ChangePassword(UserBO userData, string newPassword);
bool Update(UserBO user);
bool Delete(Guid userID);
}
}

View File

@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IVoucherDAO : IDisposable
{
bool Insert(VoucherBO voucher);
VoucherBO GetVoucher(Guid voucherID);
bool Delete(Guid voucherID);
bool Update(VoucherBO voucher);
}
}

View File

@ -1,19 +0,0 @@
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IWaiterDAO : IDisposable
{
bool Insert(WaiterBO waiter);
bool Update(WaiterBO waiter);
bool Delete(Guid waiterID);
WaiterBO GetWaiter(Guid waiterID);
WaiterBO GetWaiter(int code);
List<WaiterBO> GetWaiters();
List<WaiterBO> GetFilteredWaiters(Dictionary <string,string> filter);
}
}

View File

@ -30,4 +30,13 @@ namespace Tanshu.Accounts.Contracts
[DataMember]
public decimal Amount { get; set; }
}
[DataContract]
public class SettlementReportBO
{
[DataMember]
public PaidStatus Status { get; set; }
[DataMember]
public decimal Amount { get; set; }
}
}

View File

@ -30,7 +30,7 @@ namespace Tanshu.Accounts.Contracts
[OperationContract]
void SetAlarm(Guid voucherID, DateTime? alarmTime);
[OperationContract]
void VoidBill(Guid voucherID, string reason);
void VoidBill(Guid voucherID, string reason, Guid userID);
[OperationContract]
void DeclareBillsPaid(Guid userID, List<Guid> billList, PaidStatus paidStatus);
}

View File

@ -54,22 +54,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Communication\Delegates.cs" />
<Compile Include="DAOFactory\CheckoutDAO.cs" />
<Compile Include="DAOFactory\AdvanceDAO.cs" />
<Compile Include="DAOFactory\ManagementDAO.cs" />
<Compile Include="DAOFactory\PaymentDAO.cs" />
<Compile Include="DAOFactory\SalesAnalysisDAO.cs" />
<Compile Include="DAOFactory\SaleVoucherDAO.cs" />
<Compile Include="DAOFactory\SaleVoucherMixDAO.cs" />
<Compile Include="DAOFactory\WaiterDAO.cs" />
<Compile Include="DAOFactory\CustomerDAO.cs" />
<Compile Include="DAOFactory\InventoryDAO.cs" />
<Compile Include="DAOFactory\LedgerDAO.cs" />
<Compile Include="DAOFactory\MembershipDAO.cs" />
<Compile Include="DAOFactory\ProductDAO.cs" />
<Compile Include="DAOFactory\TaxDAO.cs" />
<Compile Include="DAOFactory\UserDAO.cs" />
<Compile Include="DAOFactory\VoucherDAO.cs" />
<Compile Include="Data Contracts\AdvanceBO.cs" />
<Compile Include="Data Contracts\AdvanceDisplayBO.cs" />
<Compile Include="Data Contracts\ComplexProductBO.cs" />