1234567891011121314151617181920212223242526272829 |
- using System;
- using Comal.Classes;
- namespace Comal.Stores
- {
- internal class InvoiceLineStore : BaseStore<InvoiceLine>
- {
- protected override void BeforeSave(InvoiceLine entity)
- {
- base.BeforeSave(entity);
- //UpdateAggregate<Invoice>(entity, entity.InvoiceLink,
- // Sum<Invoice>(il => il.ExTax, i => i.ExTax),
- // Sum<Invoice>(il => il.Tax, i => i.Tax),
- // Sum<Invoice>(il => il.IncTax, i => i.IncTax)
- //);
- }
- protected override void BeforeDelete(InvoiceLine entity)
- {
- base.BeforeDelete(entity);
- entity.InvoiceLink.ID = Guid.Empty;
- //UpdateAggregate<Invoice>(entity, entity.InvoiceLink,
- // Sum<Invoice>(il => il.ExTax, i => i.ExTax),
- // Sum<Invoice>(il => il.Tax, i => i.Tax),
- // Sum<Invoice>(il => il.IncTax, i => i.IncTax)
- //);
- }
- }
- }
|