Jump to content

Recommended Posts

Posted
Could you please tell us how do we implement other fields in the invoice like

" previous balance", "credit" and "total due" - which includes previous balance + new charges - payments

 

Thank you for your cooperation

Posted

 

Could you please tell us how do we implement other fields in the invoice like

" previous balance", "credit" and "total due" - which includes previous balance + new charges - payments

 

take a look at the following values

$this->invoice->previous_due
$this->invoice->total
$this->invoice->paid
$this->invoice->subtotal

Some simple math will work out what you require..

echo $this->invoice->previous_due + $this->invoice->subtotal - $this->invoice->paid;

Not tested, and not 100% these are the results your looking for.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...