Scripts to transition database to new version.
Changed inventory and product entities to split Vat and Service Tax and IsScTaxable. Added MessageBox on startup to inform about Debug Mode. Updated ProductForm for the change. Work still needs to be done on Thermal Printing where the hack for VAT on Food and VAT on Liqour is still there. Now No Service Tax on Delivery Works as promised.
This commit is contained in:
@ -280,7 +280,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
|
||||
private void ShowAmount()
|
||||
{
|
||||
var taxAmount = _bill.Values.Sum(b => b.TaxAmount);
|
||||
var taxAmount = _bill.Values.Sum(b => b.ServiceTaxAmount + b.VatAmount);
|
||||
var discountAmount = _bill.Values.Sum(b => b.DiscountAmount);
|
||||
var grossAmount = _bill.Values.Sum(b => b.GrossAmount);
|
||||
var valueAmount = _bill.Values.Sum(b => b.Value);
|
||||
@ -394,7 +394,9 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
Price = inv.Price,
|
||||
Printed = true,
|
||||
Quantity = inv.Quantity,
|
||||
Tax = inv.Tax,
|
||||
IsScTaxable = inv.IsScTaxable,
|
||||
ServiceTax = inv.ServiceTax,
|
||||
Vat = inv.Vat,
|
||||
ServiceCharge = inv.ServiceCharge,
|
||||
};
|
||||
foreach (var mod in inv.InventoryModifier)
|
||||
@ -976,7 +978,9 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
FullPrice = item.Value.FullPrice,
|
||||
Discount = item.Value.Discount,
|
||||
ServiceCharge = item.Value.ServiceCharge,
|
||||
Tax = item.Value.Tax
|
||||
IsScTaxable = item.Value.IsScTaxable,
|
||||
ServiceTax = item.Value.ServiceTax,
|
||||
Vat = item.Value.Vat
|
||||
};
|
||||
foreach (var mod in item.Value.Modifiers)
|
||||
inv.InventoryModifier.Add(new InventoryModifier { Modifier = mod });
|
||||
|
||||
Reference in New Issue
Block a user