Fix: Update settlements was broken and would remove the Amount and Roundoff settlements

Chore: SalesAnalysis report refactored
This commit is contained in:
tanshu
2014-11-11 15:53:54 +05:30
parent c52f382ec2
commit e3f92da5ad
13 changed files with 394 additions and 352 deletions

View File

@ -401,7 +401,6 @@ namespace Tanshu.Accounts.PointOfSale
return;
IDictionary<SettleOption, decimal> options;
var amount = -1 * _billInfo.Kots.Sum(x => x.Inventories.Sum(y => y.Amount));
VoucherSettlementBI.UpdateSettlements(_billInfo.Settlements, amount);
using (var frm = new SettleChoicesForm(Math.Round(amount) * -1, _billInfo.VoucherType))
{
frm.ShowDialog();