Changeset 391
- Timestamp:
- 05/13/08 16:51:49
- Files:
-
- trunk/phpbms/modules/bms/report/receipts_pdf.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/phpbms/modules/bms/report/receipts_pdf.php
r369 r391 136 136 clients.lastname, 137 137 clients.company, 138 clients.address1,139 clients.address2,140 clients.city,141 clients.state,142 clients.postalcode,143 clients.country,138 addresses.address1, 139 addresses.address2, 140 addresses.city, 141 addresses.state, 142 addresses.postalcode, 143 addresses.country, 144 144 clients.homephone, 145 145 clients.workphone, … … 154 154 FROM 155 155 receipts INNER JOIN clients ON receipts.clientid = clients.id 156 INNER JOIN users ON receipts.modifiedby = users.id 156 INNER JOIN users ON receipts.modifiedby = users.id INNER JOIN 157 addresstorecord ON addresstorecord.tabledefid = 2 AND addresstorecord.primary = 1 158 AND addresstorecord.recordid = clients.id INNER JOIN addresses 159 ON addresstorecord.addressid = addresses.id 157 160 LEFT JOIN paymentmethods ON receipts.paymentmethodid = paymentmethods.id"; 158 161 … … 561 564 $size = $pdf->paperwidth - $pdf->leftmargin - $pdf->rightmargin; 562 565 566 $tempTotalsinfo = $this->totalsinfo; 567 563 568 if($this->receiptrecord["remaining"]){ 564 569 565 570 $this->totalsinfo[1]->size = 1; 566 571 $size -= 1; … … 577 582 578 583 $pdf->setStyle("header"); 584 579 585 foreach($this->totalsinfo as $column) 580 586 $pdf->Cell($column->size, 0.18, $column->title, 1, 0, $column->align, 1); … … 595 601 }//end foreach 596 602 597 $this->totalsinfo[1]->size = 0; 598 603 if(isset($this->totalsinfo[1])) 604 $this->totalsinfo[1]->size = 0; 605 599 606 $pdf->SetXY($pdf->leftmargin, $nextPos); 607 608 $this->totalsinfo = $tempTotalsinfo; 600 609 601 610 }//end method