Skip to content

Instantly share code, notes, and snippets.

@skd1993
Created September 16, 2018 07:14
Show Gist options
  • Save skd1993/4f40fdf24162541155067f19bb8b9b41 to your computer and use it in GitHub Desktop.
Save skd1993/4f40fdf24162541155067f19bb8b9b41 to your computer and use it in GitHub Desktop.
rent-item.ts
import { RentStruct } from "./rent-struct";
export class RentItem {
extraCost: number;
meterCurr: number;
meterPrev: number;
month: number;
year: number;
paid: number;
totalSum: number;
constructor(meterCurr: number, meterPrev: number, month: number, year: number, paid: number, totalSum: number, extraCost?: number) {
this.meterCurr = meterCurr;
this.meterPrev = meterPrev;
this.month = month;
this.year = year;
this.paid = paid;
this.extraCost = extraCost;
this.totalSum = totalSum;
}
getTotalSum() {
return this.totalSum;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment