Added Service Tax and CIN Information to the bill printout
Added Nc Option in settlement Merged Vouchers and SaleVoucher table. Need to update the Sql Schema
This commit is contained in:
@ -6,19 +6,12 @@ namespace Tanshu.Accounts.Contracts
|
||||
|
||||
public class CustomerBO
|
||||
{
|
||||
|
||||
public Guid CustomerID { get; set; }
|
||||
|
||||
public int Code { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Address { get; set; }
|
||||
|
||||
public bool Important { get; set; }
|
||||
|
||||
public string Phone { get; set; }
|
||||
|
||||
public string Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,73 +6,66 @@ namespace Tanshu.Accounts.Contracts
|
||||
|
||||
public class InventoryBO
|
||||
{
|
||||
|
||||
public Guid InventoryID { get; set; }
|
||||
|
||||
public Guid VoucherID { get; set; }
|
||||
|
||||
public Guid ProductID { get; set; }
|
||||
public string ProductName { get; set; }
|
||||
private decimal quantity;
|
||||
|
||||
public decimal Quantity
|
||||
{
|
||||
get { return quantity; }
|
||||
set
|
||||
{
|
||||
quantity = value;
|
||||
if (amount != null)
|
||||
CalculateAmount();
|
||||
amount = null;
|
||||
}
|
||||
}
|
||||
private decimal rate;
|
||||
|
||||
private decimal rate;
|
||||
public decimal Rate
|
||||
{
|
||||
get { return rate; }
|
||||
set
|
||||
{
|
||||
rate = value;
|
||||
if (amount != null)
|
||||
CalculateAmount();
|
||||
amount = null;
|
||||
}
|
||||
}
|
||||
decimal vat;
|
||||
|
||||
decimal vat;
|
||||
public decimal Vat
|
||||
{
|
||||
get { return vat; }
|
||||
set
|
||||
{
|
||||
vat = value; if (amount != null)
|
||||
CalculateAmount();
|
||||
vat = value;
|
||||
amount = null;
|
||||
}
|
||||
}
|
||||
decimal serviceTax;
|
||||
|
||||
decimal serviceTax;
|
||||
public decimal ServiceTax
|
||||
{
|
||||
get { return serviceTax; }
|
||||
set
|
||||
{
|
||||
serviceTax = value; if (amount != null)
|
||||
CalculateAmount();
|
||||
serviceTax = value;
|
||||
amount = null;
|
||||
}
|
||||
}
|
||||
|
||||
decimal discount;
|
||||
|
||||
|
||||
public decimal Discount
|
||||
{
|
||||
get { return discount; }
|
||||
set
|
||||
{
|
||||
discount = value; if (amount != null)
|
||||
CalculateAmount();
|
||||
discount = value;
|
||||
amount = null;
|
||||
}
|
||||
}
|
||||
decimal? amount;
|
||||
|
||||
|
||||
decimal? amount;
|
||||
public decimal Amount
|
||||
{
|
||||
get
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
|
||||
public class InventoryDisplayBO : InventoryBO
|
||||
{
|
||||
|
||||
public string ProductName { get; set; }
|
||||
}
|
||||
}
|
||||
@ -7,6 +7,7 @@
|
||||
CreditCard = 3,
|
||||
Credit = 4,
|
||||
Staff = 5,
|
||||
Void = 6
|
||||
Void = 6,
|
||||
Nc = 7
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,8 +11,8 @@ namespace Tanshu.Accounts.Contracts
|
||||
public string Units { get; set; }
|
||||
public Guid ProductGroupID { get; set; }
|
||||
public Guid VatID { get; set; }
|
||||
public decimal SalePrice { get; set; }
|
||||
public Guid ServiceTaxID { get; set; }
|
||||
public decimal SalePrice { get; set; }
|
||||
public bool Discontinued { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
}
|
||||
|
||||
@ -5,12 +5,12 @@ namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class ProductDisplaySmallBO
|
||||
{
|
||||
public Guid ProductID { get; set; }
|
||||
public int Code { get; set; }
|
||||
public string Name { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
public string ProuctGroup { get; set; }
|
||||
public string Vat { get; set; }
|
||||
public string ServiceTax { get; set; }
|
||||
public Guid ProductID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,5 @@ namespace Tanshu.Accounts.Contracts
|
||||
public Guid ProductGroupID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public decimal DiscountLimit { get; set; }
|
||||
public bool IsForSale { get; set; }
|
||||
public bool IsForPurchae { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,20 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class SaleVoucherBO : VoucherBO
|
||||
{
|
||||
public int Floor { get; set; }
|
||||
public string BillID { get; set; }
|
||||
public string TableID { get; set; }
|
||||
public Guid WaiterID { get; set; }
|
||||
public Guid CustomerID { get; set; }
|
||||
public Guid? AdvanceID { get; set; }
|
||||
public PaidStatus PaidStatus { get; set; }
|
||||
public string VoidReason { get; set; }
|
||||
public bool Printed { get; set; }
|
||||
public DateTime? Alarm { get; set; }
|
||||
public string KotID { get; set; }
|
||||
}
|
||||
}
|
||||
@ -6,13 +6,10 @@ namespace Tanshu.Accounts.Contracts
|
||||
|
||||
public class SalesBillItemBO
|
||||
{
|
||||
|
||||
public Guid productID;
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
private decimal price;
|
||||
|
||||
public decimal Price
|
||||
{
|
||||
get { return price; }
|
||||
@ -26,7 +23,6 @@ namespace Tanshu.Accounts.Contracts
|
||||
}
|
||||
|
||||
private decimal quantity = 1;
|
||||
|
||||
public decimal Quantity
|
||||
{
|
||||
get { return quantity; }
|
||||
@ -40,7 +36,6 @@ namespace Tanshu.Accounts.Contracts
|
||||
}
|
||||
|
||||
private decimal discount = 0;
|
||||
|
||||
public decimal Discount
|
||||
{
|
||||
get { return discount; }
|
||||
@ -57,22 +52,20 @@ namespace Tanshu.Accounts.Contracts
|
||||
|
||||
|
||||
public decimal Vat { get; set; }
|
||||
|
||||
public decimal VatAmount
|
||||
{
|
||||
get
|
||||
{
|
||||
return quantity * price * Vat * (1 - discount);
|
||||
return quantity * price * (1 - discount) * Vat;
|
||||
}
|
||||
}
|
||||
|
||||
public decimal ServiceTax { get; set; }
|
||||
|
||||
public decimal ServiceTaxAmount
|
||||
{
|
||||
get
|
||||
{
|
||||
return quantity * price * ServiceTax * (1 - discount);
|
||||
return quantity * price * (1 - discount) * ServiceTax;
|
||||
}
|
||||
}
|
||||
public decimal TotalTax
|
||||
@ -100,7 +93,6 @@ namespace Tanshu.Accounts.Contracts
|
||||
}
|
||||
|
||||
private decimal printed = 0;
|
||||
|
||||
public decimal Printed
|
||||
{
|
||||
get { return printed; }
|
||||
@ -113,13 +105,11 @@ namespace Tanshu.Accounts.Contracts
|
||||
}
|
||||
}
|
||||
|
||||
public string location;
|
||||
|
||||
public decimal Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return price * quantity * (1 - discount) * (1 + Vat + ServiceTax );
|
||||
return price * quantity * (1 - discount) * (1 + Vat + ServiceTax);
|
||||
}
|
||||
}
|
||||
public decimal Additional
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class VerificationBO
|
||||
{
|
||||
public Guid VerificationID { get; set; }
|
||||
public Guid VoucherID { get; set; }
|
||||
public Guid ProductID { get; set; }
|
||||
public decimal ActualQuantity { get; set; }
|
||||
public decimal ComputedQuantity { get; set; }
|
||||
public decimal LostQuantity
|
||||
{
|
||||
get { return ComputedQuantity - ActualQuantity; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class VerificationDisplayBO : VerificationBO
|
||||
{
|
||||
public string ProductName { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,24 +1,51 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
|
||||
public class VoucherBO
|
||||
{
|
||||
|
||||
public Guid VoucherID { get; set; }
|
||||
|
||||
public int Code { get; set; }
|
||||
|
||||
public DateTime? Date { get; set; }
|
||||
|
||||
public string Narration { get; set; }
|
||||
|
||||
public Guid UserID { get; set; }
|
||||
|
||||
public DateTime CreationDate { get; set; }
|
||||
|
||||
public DateTime LastEditDate { get; set; }
|
||||
|
||||
public int Floor { get; set; }
|
||||
public string BillID { get; set; }
|
||||
public string TableID { get; set; }
|
||||
public Guid WaiterID { get; set; }
|
||||
public Guid CustomerID { get; set; }
|
||||
public Guid? AdvanceID { get; set; }
|
||||
public PaidStatus PaidStatus { get; set; }
|
||||
public string VoidReason { get; set; }
|
||||
public bool Printed { get; set; }
|
||||
public DateTime? Alarm { get; set; }
|
||||
public string KotID { get; set; }
|
||||
|
||||
public IList<InventoryBO> Inventories { get; set; }
|
||||
public AdvanceBO Advance { get; set; }
|
||||
public WaiterBO Waiter { get; set; }
|
||||
public UserBO User { get; set; }
|
||||
public CustomerBO Customer { get; set; }
|
||||
public decimal Amount
|
||||
{
|
||||
get
|
||||
{
|
||||
decimal amount = 0;
|
||||
foreach (var inv in Inventories)
|
||||
{
|
||||
amount += inv.Amount;
|
||||
}
|
||||
if (AdvanceID.HasValue)
|
||||
{
|
||||
amount -= Advance.Amount;
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -59,12 +59,9 @@
|
||||
<Compile Include="Data Contracts\BillItemKey.cs" />
|
||||
<Compile Include="Data Contracts\PaidStatusBO.cs" />
|
||||
<Compile Include="Data Contracts\TaxBO.cs" />
|
||||
<Compile Include="Data Contracts\VerificationBO.cs" />
|
||||
<Compile Include="Data Contracts\VerificationDisplayBO.cs" />
|
||||
<Compile Include="Data Contracts\CustomerBO.cs" />
|
||||
<Compile Include="Data Contracts\WaiterBO.cs" />
|
||||
<Compile Include="Data Contracts\InventoryBO.cs" />
|
||||
<Compile Include="Data Contracts\InventoryDisplayBO.cs" />
|
||||
<Compile Include="Data Contracts\PaymentBO.cs" />
|
||||
<Compile Include="Data Contracts\PaymentDisplayBO.cs" />
|
||||
<Compile Include="Data Contracts\PendingBillsBO.cs" />
|
||||
@ -75,7 +72,6 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Data Contracts\SalesAnalysisBO.cs" />
|
||||
<Compile Include="Data Contracts\SalesBillItemBO.cs" />
|
||||
<Compile Include="Data Contracts\SaleVoucherBO.cs" />
|
||||
<Compile Include="Data Contracts\UserBO.cs" />
|
||||
<Compile Include="Data Contracts\VoucherBO.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user