display AmountCur totalAmountSales() { SalesTotals SalesTotals; if(this.SalesStatus == SalesStatus::Invoiced) { return this.amountInvoiced(); } else { SalesTotals = SalesTotals::construct(this,SalesUpdate::All); SalesTotals.calc(); return SalesTotals.totalAmount(); } } your method needs to be like above.
↧