Changeset 67
- Timestamp:
- 11/28/05 10:34:40 (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 7 modified
-
changelog.txt (modified) (1 diff)
-
install/createtables.sql (modified) (1 diff)
-
install/updatev0.61.sql (modified) (1 diff)
-
install/updatev0.611.sql (added)
-
modules/bms/report/invoices_pdfinvoice.php (modified) (3 diffs)
-
modules/bms/report/invoices_pdfpackinglist.php (modified) (3 diffs)
-
modules/bms/report/invoices_pdfquote.php (modified) (2 diffs)
-
modules/bms/report/invoices_pdfworkorder.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/changelog.txt
r63 r67 1 phpBMS v0.603/ BMS module v0.603 1 phpBMS v0.611/ BMS module v0.611 2 ================================== 3 - Fixed tasks display problem. 4 - Adjusted widths/truncation onf invoice PDF reports for line items. 5 6 7 phpBMS v0.61/ BMS module v0.61 2 8 ================================== 3 9 - Fixed display errors with dateTime column format. -
trunk/install/createtables.sql
r63 r67 115 115 ) TYPE=MyISAM; 116 116 117 CREATE TABLE `tabledefs` ( 118 `editfile` varchar(128) default NULL, 119 `displayname` varchar(64) default NULL, 120 `id` int(11) NOT NULL auto_increment default '1000', 121 `maintable` varchar(64) NOT NULL default '', 122 `createdby` int(11) NOT NULL default '0', 123 `creationdate` datetime NOT NULL default '0000-00-00 00:00:00', 124 `modifiedby` int(11) default NULL, 125 `modifieddate` timestamp(14) NOT NULL, 126 `querytable` varchar(255) NOT NULL default '', 127 `addfile` varchar(100) default '', 128 `deletebutton` varchar(32) default '', 129 `defaultwhereclause` varchar(255) default NULL, 130 `defaultsortorder` varchar(255) default '', 131 `defaultsearchtype` varchar(64) default '', 132 `defaultcriteriafindoptions` varchar(128) default '', 133 `defaultcriteriaselection` varchar(128) default '', 134 `type` varchar(16) NOT NULL default 'table', 135 `moduleid` int(11) NOT NULL default '0', 136 PRIMARY KEY (`id`) 137 ) TYPE=MyISAM ;117 CREATE TABLE `tabledefs` ( 118 `editfile` varchar(128) default NULL, 119 `displayname` varchar(64) default NULL, 120 `id` int(11) NOT NULL auto_increment, 121 `maintable` varchar(64) NOT NULL default '', 122 `createdby` int(11) NOT NULL default '0', 123 `creationdate` datetime NOT NULL default '0000-00-00 00:00:00', 124 `modifiedby` int(11) default NULL, 125 `modifieddate` timestamp(14) NOT NULL, 126 `querytable` varchar(255) NOT NULL default '', 127 `addfile` varchar(100) default '', 128 `deletebutton` varchar(32) default '', 129 `defaultwhereclause` varchar(255) default NULL, 130 `defaultsortorder` varchar(255) default '', 131 `defaultsearchtype` varchar(64) default '', 132 `defaultcriteriafindoptions` varchar(128) default '', 133 `defaultcriteriaselection` varchar(128) default '', 134 `type` varchar(16) NOT NULL default 'table', 135 `moduleid` int(11) NOT NULL default '0', 136 PRIMARY KEY (`id`) 137 ) TYPE=MyISAM AUTO_INCREMENT=1000; 138 138 139 139 CREATE TABLE tablefindoptions ( -
trunk/install/updatev0.61.sql
r65 r67 1 1 UPDATE tablecolumns SET `column`="if(notes.starttime,concat(notes.startdate,\" \",notes.starttime),notes.startdate)" WHERE id=116; 2 2 UPDATE tablecolumns SET `column`="if(notes.endtime,concat(notes.enddate,\" \",notes.endtime),notes.enddate)" WHERE id=117; 3 UPDATE tablecolumns SET `column`="notes `.repeat`+if(notes.parentid is null, 0,1)" WHERE id=124;4 UPDATE tablecolumns SET `column`="notes. `repeat`",format="boolean" WHERE id=129;3 UPDATE tablecolumns SET `column`="notes.repeat+if(notes.parentid is null, 0,1)" WHERE id=124; 4 UPDATE tablecolumns SET `column`="notes.repeat",format="boolean" WHERE id=129; 5 5 6 6 ALTER TABLE tabledefs CHANGE defaultwhereclause defaultwhereclause varchar(255); -
trunk/modules/bms/report/invoices_pdfinvoice.php
r62 r67 217 217 $pdf->SetXY($leftmargin,$tempnext+.03); 218 218 219 $partnumberwidth=1. 25;220 $qtywidth=. 75;221 $unitpricewidth=. 75;222 $extendedwidth=. 75;223 $taxablewidth=. 4;219 $partnumberwidth=1.1; 220 $qtywidth=.5; 221 $unitpricewidth=.6; 222 $extendedwidth=.6; 223 $taxablewidth=.3; 224 224 $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth-$taxablewidth; 225 225 … … 252 252 $pdf->SetFont("Arial","",8); 253 253 $pdf->Cell($partnumberwidth,.13,$thelineitem["partnumber"],$border_debug,0,"L"); 254 $pdf->Cell($partnamewidth,.13,$thelineitem["partname"],$border_debug,0,"L"); 254 if(strlen($thelineitem["partname"])>85) 255 $partname=substr($thelineitem["partname"],0,85)."..."; 256 else 257 $partname=$thelineitem["partname"]; 258 $pdf->Cell($partnamewidth,.13,$partname,$border_debug,0,"L"); 255 259 $thelineitem["taxable"]=booleanFormat($thelineitem["taxable"]); 256 260 if($thelineitem["taxable"]=="·")$thelineitem["taxable"]=" "; … … 259 263 $pdf->Cell($unitpricewidth,.13,currencyFormat($thelineitem["unitprice"]),$border_debug,0,"R"); 260 264 $pdf->Cell($extendedwidth,.13,currencyFormat($thelineitem["extended"]),$border_debug,1,"R"); 261 $pdf->SetX($leftmargin+. 25);265 $pdf->SetX($leftmargin+.125); 262 266 $pdf->SetFont("Arial","i",8); 263 267 $thelineitem["memo"].="\n"; -
trunk/modules/bms/report/invoices_pdfpackinglist.php
r62 r67 192 192 $pdf->SetXY($leftmargin,$tempnext+.03); 193 193 194 $partnumberwidth=1. 2;195 $qtywidth= 1;196 $unitpricewidth= 1;197 $extendedwidth= 1;194 $partnumberwidth=1.1; 195 $qtywidth=.5; 196 $unitpricewidth=.6; 197 $extendedwidth=.6; 198 198 $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth; 199 199 … … 212 212 lineitems.quantity*lineitems.unitprice as extended, 213 213 lineitems.taxable, 214 lineitems.memo 214 lineitems.memo, 215 products.isprepackaged, 216 products.isoversized, 217 lineitems.unitweight, 218 products.packagesperitem 215 219 FROM lineitems LEFT JOIN products ON lineitems.productid=products.id 216 220 WHERE invoiceid=".$therecord["id"]; 217 221 $lineitems=mysql_query($lineitemquery,$dblink); 218 if(!$lineitems) die("bad line item query:".$lineitemquery);222 if(!$lineitems) reportError(300,"bad line item query: <br />".mysql_error($dblink)."<br /><br />".$lineitemquery); 219 223 220 224 $pdf->SetXY($leftmargin,$tempnext2); … … 229 233 $pdf->SetFont("Arial","",8); 230 234 $pdf->Cell($partnumberwidth,.13,$partnumber,$border_debug,0,"L"); 231 $pdf->Cell($partnamewidth,.13,$thelineitem["partname"],$border_debug,0,"L"); 235 if(strlen($thelineitem["partname"])>90) 236 $partname=substr($thelineitem["partname"],0,90)."..."; 237 else 238 $partname=$thelineitem["partname"]; 239 $pdf->Cell($partnamewidth,.13,$partname,$border_debug,0,"L"); 232 240 $pdf->Cell($qtywidth,.13,number_format($thelineitem["unitweight"],2),$border_debug,0,"C"); 233 241 $pdf->Cell($qtywidth,.13,number_format($thelineitem["quantity"],2),$border_debug,0,"C"); 234 242 $pdf->Cell($extendedwidth,.13,number_format($thelineitem["extended"],2),$border_debug,1,"R"); 235 $pdf->SetX($leftmargin+. 25);243 $pdf->SetX($leftmargin+.125); 236 244 $pdf->SetFont("Arial","i",8); 237 245 $thelineitem["memo"].="\n"; -
trunk/modules/bms/report/invoices_pdfquote.php
r62 r67 215 215 $pdf->SetXY($leftmargin,$tempnext+.03); 216 216 217 $partnumberwidth=1. 2;218 $qtywidth= 1;219 $unitpricewidth= 1;220 $extendedwidth= 1;217 $partnumberwidth=1.1; 218 $qtywidth=.5; 219 $unitpricewidth=.6; 220 $extendedwidth=.6; 221 221 $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth; 222 222 … … 248 248 $pdf->SetFont("Arial","",8); 249 249 $pdf->Cell($partnumberwidth,.13,$thelineitem["partnumber"],$border_debug,0,"L"); 250 $pdf->Cell($partnamewidth,.13,$thelineitem["partname"],$border_debug,0,"L"); 250 if(strlen($thelineitem["partname"])>90) 251 $partname=substr($thelineitem["partname"],0,90)."..."; 252 else 253 $partname=$thelineitem["partname"]; 254 $pdf->Cell($partnamewidth,.13,$partname,$border_debug,0,"L"); 251 255 $pdf->Cell($qtywidth,.13,number_format($thelineitem["quantity"],2),$border_debug,0,"C"); 252 256 $pdf->Cell($unitpricewidth,.13,"\$".number_format($thelineitem["unitprice"],2),$border_debug,0,"R"); 253 257 $pdf->Cell($extendedwidth,.13,"\$".number_format($thelineitem["extended"],2),$border_debug,1,"R"); 254 $pdf->SetX($leftmargin+. 25);258 $pdf->SetX($leftmargin+.125); 255 259 $pdf->SetFont("Arial","i",8); 256 260 $thelineitem["memo"].="\n"; -
trunk/modules/bms/report/invoices_pdfworkorder.php
r62 r67 61 61 date_Format(shippeddate,\"%c/%e/%Y\") as shippeddate, 62 62 invoices.totalti-invoices.amountpaid as amountdue, 63 invoices.ponumber,invoices.discountamount,invoices.discountid, 63 invoices.ponumber,invoices.discountamount,invoices.discountid,ccverification, 64 64 65 65 invoices.createdby, date_Format(invoices.creationdate,\"%c/%e/%Y %T\") as creationdate, … … 215 215 $pdf->SetXY($leftmargin,$tempnext+.03); 216 216 217 $partnumberwidth=1. 25;218 $qtywidth=. 75;219 $unitpricewidth=. 75;220 $extendedwidth=. 75;221 $taxablewidth=. 4;217 $partnumberwidth=1.1; 218 $qtywidth=.5; 219 $unitpricewidth=.6; 220 $extendedwidth=.6; 221 $taxablewidth=.3; 222 222 $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth-$taxablewidth; 223 223 … … 250 250 $pdf->SetFont("Arial","",8); 251 251 $pdf->Cell($partnumberwidth,.13,$thelineitem["partnumber"],$border_debug,0,"L"); 252 $pdf->Cell($partnamewidth,.13,$thelineitem["partname"],$border_debug,0,"L"); 252 if(strlen($thelineitem["partname"])>85) 253 $partname=substr($thelineitem["partname"],0,85)."..."; 254 else 255 $partname=$thelineitem["partname"]; 256 $pdf->Cell($partnamewidth,.13,$partname,$border_debug,0,"L"); 253 257 $thelineitem["taxable"]=booleanFormat($thelineitem["taxable"]); 254 258 if($thelineitem["taxable"]=="·")$thelineitem["taxable"]=" "; … … 257 261 $pdf->Cell($unitpricewidth,.13,currencyFormat($thelineitem["unitprice"]),$border_debug,0,"R"); 258 262 $pdf->Cell($extendedwidth,.13,currencyFormat($thelineitem["extended"]),$border_debug,1,"R"); 259 $pdf->SetX($leftmargin+. 25);263 $pdf->SetX($leftmargin+.125); 260 264 $pdf->SetFont("Arial","i",8); 261 265 $thelineitem["memo"].="\n";