Major refactor of the Sales Form and Bill controller to make code more readable and less error prone.

The functions now only do one thing.
This commit is contained in:
tanshu
2016-03-31 12:27:39 +05:30
parent bb2db24837
commit 51d518d2a0
17 changed files with 615 additions and 396 deletions

View File

@ -15,17 +15,17 @@ namespace Tanshu.Accounts.Entities
Settlements = new List<VoucherSettlement>();
}
public Voucher(User user)
public Voucher(User user, Customer customer)
: this()
{
this.User = user;
VoucherType = VoucherType.Regular;
Customer = customer;
}
public Voucher(User user, Customer customer, FoodTable table, bool printed, bool isVoid, string narration)
: this(user)
: this(user, customer)
{
Customer = customer;
Table = table;
Printed = printed;
Void = isVoid;