public Charge(MiscCharge misc) { this.Key = misc.MiscChargeKey; this.Type = ChargeType.Misc; this.Include = misc.Printed == null; this.Date = misc.Date; this.Description = misc.Description; this.Total = misc.Amount; }
public void GenerateRecipt() { output.Append($"Date: {DateTime.Now:MMMM dd, yyyy HH:mm}{Environment.NewLine}"); output.Append($"Stay Charge: ${DaysCharge.ToString()}{Environment.NewLine}"); output.Append($"Miscellaneous Charge: ${MiscCharge.ToString()}{Environment.NewLine}"); output.Append($"Tax: ${TotalTax.ToString()}{Environment.NewLine}"); output.Append($"Total: ${TotalWithTax.ToString()}{Environment.NewLine}"); output.AppendLine(); File.AppendAllText(fullName, output.ToString()); }
partial void DeleteMiscCharge(MiscCharge instance);
partial void UpdateMiscCharge(MiscCharge instance);
partial void InsertMiscCharge(MiscCharge instance);
private void detach_MiscCharge(MiscCharge entity) { this.SendPropertyChanging(); entity.Customer = null; }
public static MiscCharge Clone(MiscCharge oldMisc, MiscCharge newMisc) { newMisc.MiscChargeKey = oldMisc.MiscChargeKey; newMisc.CustomerID = oldMisc.CustomerID; newMisc.Date = oldMisc.Date; newMisc.Amount = oldMisc.Amount; newMisc.Description = oldMisc.Description; newMisc.IsTaxable = oldMisc.IsTaxable; newMisc.Printed = oldMisc.Printed; return newMisc; }
public static MiscCharge Clone(MiscCharge misc) { MiscCharge newMisc = new MiscCharge(); return Clone(misc, newMisc); }