Jump to content

Blesta V3 Invoices


sashglt

Recommended Posts

 

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...