OSB enhancements to date
This commit is contained in:
@@ -33,7 +33,7 @@ class receipt_print extends FPDF
|
||||
var $active=false;
|
||||
var $save_path = '';
|
||||
|
||||
function add(&$invoiceRs, $payment_amt, $paid_amt) {
|
||||
function add($invoice, $payment_amt, $paid_amt) {
|
||||
|
||||
if(!$this->active) return false;
|
||||
|
||||
@@ -46,16 +46,16 @@ class receipt_print extends FPDF
|
||||
$this->drawCompanyAddress();
|
||||
|
||||
$this->SetXY(0,50);
|
||||
$this->Cell(50,10,"*** INVOICE# {$invoiceRs->fields['id']} ***");
|
||||
$this->Cell(50,10,"*** INVOICE# {$invoice['id']} ***");
|
||||
|
||||
$this->SetXY(0,60);
|
||||
$this->Cell(50,10,"DATE ".date("d/m/Y D H:i"));
|
||||
|
||||
$this->SetXY(0,70); $this->Cell(50,5,"INVOICE TOTAL: ");
|
||||
$this->SetXY(45,70); $this->Cell(50,5, number_format($invoiceRs->fields['total_amt'],2));
|
||||
$this->SetXY(45,70); $this->Cell(50,5, number_format($invoice['total_amt'],2));
|
||||
|
||||
$this->SetXY(0,75); $this->Cell(50,5,"PREV AMT DUE: " );
|
||||
$this->SetXY(45,75); $this->Cell(50,5, number_format($invoiceRs->fields['total_amt']-$invoiceRs->fields['billed_amt'],2));
|
||||
$this->SetXY(45,75); $this->Cell(50,5, number_format($invoice['total_amt']-$invoice['billed_amt'],2));
|
||||
|
||||
$this->SetXY(0,80); $this->Cell(50,5,"CURRENT PAYMENT: " );
|
||||
$this->SetXY(45,80); $this->Cell(50,5, $payment_amt);
|
||||
@@ -64,7 +64,7 @@ class receipt_print extends FPDF
|
||||
$this->SetXY(45,85); $this->Cell(50,5, number_format($paid_amt,2));
|
||||
|
||||
$this->SetXY(0,90); $this->Cell(50,5,"CURRENY AMT DUE: " );
|
||||
$this->SetXY(45,90); $this->Cell(50,5, number_format($invoiceRs->fields['total_amt']-$paid_amt,2));
|
||||
$this->SetXY(45,90); $this->Cell(50,5, number_format($invoice['total_amt']-$paid_amt,2));
|
||||
|
||||
$this->SetXY(0,100); $this->Cell(50,5,"Thank You!" );
|
||||
|
||||
|
Reference in New Issue
Block a user