// public override void AfterConstruction() { base.AfterConstruction(); this.Date = DateTime.Now; this.InvoiceIntType = fmCAVTInvoiceIntType.NORMAL; if (Current == null) { Current = new fmCAVTInvoiceVersion(this.Session); AVTInvoiceVersions.Add(Current); } this.Valuta = Session.FindObject <csValuta>(new BinaryOperator("Code", "RUB")); }
public void AVTInvoiceVersionsAdd(fmCAVTInvoiceVersion ver) { if (Current != ver) { UInt32 num = 0; if (UInt32.TryParse(Current.VersionNumber, out num)) { ver.VersionNumber = (num + 1).ToString(); } ver.VersionDate = DateTime.Now; ver.Source = Current; } else { ver.VersionNumber = String.Empty; ver.VersionDate = default(DateTime); } }
public void AVTInvoiceVersionsRemove(fmCAVTInvoiceVersion ver) { }