Removed Code and BaseCode from Products

Management form almost fixed. Error testing now.
This commit is contained in:
tanshu
2014-12-03 12:43:35 +05:30
parent b1a9d2daae
commit 0456135497
10 changed files with 885 additions and 825 deletions

View File

@ -9,7 +9,6 @@ namespace Tanshu.Accounts.Entities
public class Product
{
public virtual Guid ProductID { get; set; }
public virtual int Code { get; set; }
public virtual string Name { get; set; }
public virtual string Units { get; set; }
public virtual ProductGroup ProductGroup { get; set; }
@ -22,7 +21,6 @@ namespace Tanshu.Accounts.Entities
public virtual bool IsActive { get; set; }
public virtual bool IsNotAvailable { get; set; }
public virtual int SortOrder { get; set; }
public virtual int BaseCode { get; set; }
public virtual decimal Quantity { get; set; }
public virtual IList<Inventory> Inventories { get; set; }
@ -36,7 +34,6 @@ namespace Tanshu.Accounts.Entities
Schema("dbo");
Lazy(true);
Id(x => x.ProductID, map => map.Generator(Generators.GuidComb));
Property(x => x.Code);
Property(x => x.Name, map => { map.NotNullable(true); map.UniqueKey("UQ_NameUnits"); });
Property(x => x.Units, map => { map.NotNullable(true); map.UniqueKey("UQ_NameUnits"); });
Property(x => x.ServiceCharge, map => map.NotNullable(true));
@ -46,7 +43,6 @@ namespace Tanshu.Accounts.Entities
Property(x => x.IsActive, map => map.NotNullable(true));
Property(x => x.IsNotAvailable, map => map.NotNullable(true));
Property(x => x.SortOrder, map => map.NotNullable(true));
Property(x => x.BaseCode, map => map.NotNullable(true));
Property(x => x.Quantity, map => map.NotNullable(true));
ManyToOne(x => x.ProductGroup, map => { map.Column("ProductGroupID"); map.Cascade(Cascade.None); });

View File

@ -9,7 +9,7 @@ namespace Tanshu.Accounts.Entities
{
public class Voucher
{
protected Voucher()
public Voucher()
{
Kots = new List<Kot>();
Settlements = new List<VoucherSettlement>();