public void Remove(OutputInvoice factura, OutputDeliveryInfo albaran) { foreach (AlbaranFactura item in this) { if (item.OidFactura == factura.Oid && item.OidAlbaran == albaran.Oid) { this.Remove(item.Oid); factura.SetAlbaranes(); break; } } }
public AlbaranFactura NewItem(OutputInvoice factura, OutputDeliveryInfo albaran) { this.AddItem(AlbaranFactura.NewChild(factura, albaran)); factura.SetAlbaranes(); return(this[Count - 1]); }