phpBMS

Changeset 67

Show
Ignore:
Timestamp:
11/28/05 10:34:40 (6 years ago)
Author:
brieb
Message:

- Fixed tasks display problem.
- Adjusted widths/truncation onf invoice PDF reports for line items.

Location:
trunk
Files:
1 added
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/changelog.txt

    r63 r67  
    1 phpBMS v0.603/ BMS module v0.603 
     1phpBMS 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 
     7phpBMS v0.61/ BMS module v0.61 
    28================================== 
    39- Fixed display errors with dateTime column format. 
  • trunk/install/createtables.sql

    r63 r67  
    115115) TYPE=MyISAM; 
    116116 
    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; 
     117CREATE 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',   
     136PRIMARY KEY (`id`)   
     137) TYPE=MyISAM AUTO_INCREMENT=1000;  
    138138 
    139139CREATE TABLE tablefindoptions ( 
  • trunk/install/updatev0.61.sql

    r65 r67  
    11UPDATE tablecolumns SET `column`="if(notes.starttime,concat(notes.startdate,\" \",notes.starttime),notes.startdate)" WHERE id=116; 
    22UPDATE 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; 
     3UPDATE tablecolumns SET `column`="notes.repeat+if(notes.parentid is null, 0,1)" WHERE id=124; 
     4UPDATE tablecolumns SET `column`="notes.repeat",format="boolean" WHERE id=129; 
    55 
    66ALTER TABLE tabledefs CHANGE defaultwhereclause defaultwhereclause varchar(255); 
  • trunk/modules/bms/report/invoices_pdfinvoice.php

    r62 r67  
    217217                $pdf->SetXY($leftmargin,$tempnext+.03); 
    218218 
    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; 
    224224                $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth-$taxablewidth; 
    225225 
     
    252252                        $pdf->SetFont("Arial","",8); 
    253253                        $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"); 
    255259                        $thelineitem["taxable"]=booleanFormat($thelineitem["taxable"]); 
    256260                        if($thelineitem["taxable"]=="·")$thelineitem["taxable"]=" "; 
     
    259263                        $pdf->Cell($unitpricewidth,.13,currencyFormat($thelineitem["unitprice"]),$border_debug,0,"R"); 
    260264                        $pdf->Cell($extendedwidth,.13,currencyFormat($thelineitem["extended"]),$border_debug,1,"R"); 
    261                         $pdf->SetX($leftmargin+.25); 
     265                        $pdf->SetX($leftmargin+.125); 
    262266                        $pdf->SetFont("Arial","i",8); 
    263267                        $thelineitem["memo"].="\n"; 
  • trunk/modules/bms/report/invoices_pdfpackinglist.php

    r62 r67  
    192192                $pdf->SetXY($leftmargin,$tempnext+.03); 
    193193 
    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; 
    198198                $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth; 
    199199 
     
    212212                                                lineitems.quantity*lineitems.unitprice as extended, 
    213213                                                lineitems.taxable, 
    214                                                 lineitems.memo 
     214                                                lineitems.memo, 
     215                                                products.isprepackaged, 
     216                                                products.isoversized, 
     217                                                lineitems.unitweight, 
     218                                                products.packagesperitem 
    215219                                                FROM lineitems LEFT JOIN products ON lineitems.productid=products.id  
    216220                                                WHERE invoiceid=".$therecord["id"]; 
    217221                $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); 
    219223         
    220224                $pdf->SetXY($leftmargin,$tempnext2); 
     
    229233                        $pdf->SetFont("Arial","",8); 
    230234                        $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"); 
    232240                        $pdf->Cell($qtywidth,.13,number_format($thelineitem["unitweight"],2),$border_debug,0,"C"); 
    233241                        $pdf->Cell($qtywidth,.13,number_format($thelineitem["quantity"],2),$border_debug,0,"C"); 
    234242                        $pdf->Cell($extendedwidth,.13,number_format($thelineitem["extended"],2),$border_debug,1,"R"); 
    235                         $pdf->SetX($leftmargin+.25); 
     243                        $pdf->SetX($leftmargin+.125); 
    236244                        $pdf->SetFont("Arial","i",8); 
    237245                        $thelineitem["memo"].="\n"; 
  • trunk/modules/bms/report/invoices_pdfquote.php

    r62 r67  
    215215                $pdf->SetXY($leftmargin,$tempnext+.03); 
    216216 
    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; 
    221221                $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth; 
    222222 
     
    248248                        $pdf->SetFont("Arial","",8); 
    249249                        $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"); 
    251255                        $pdf->Cell($qtywidth,.13,number_format($thelineitem["quantity"],2),$border_debug,0,"C"); 
    252256                        $pdf->Cell($unitpricewidth,.13,"\$".number_format($thelineitem["unitprice"],2),$border_debug,0,"R"); 
    253257                        $pdf->Cell($extendedwidth,.13,"\$".number_format($thelineitem["extended"],2),$border_debug,1,"R"); 
    254                         $pdf->SetX($leftmargin+.25); 
     258                        $pdf->SetX($leftmargin+.125); 
    255259                        $pdf->SetFont("Arial","i",8); 
    256260                        $thelineitem["memo"].="\n"; 
  • trunk/modules/bms/report/invoices_pdfworkorder.php

    r62 r67  
    6161                                        date_Format(shippeddate,\"%c/%e/%Y\") as shippeddate, 
    6262                                        invoices.totalti-invoices.amountpaid as amountdue, 
    63                                         invoices.ponumber,invoices.discountamount,invoices.discountid, 
     63                                        invoices.ponumber,invoices.discountamount,invoices.discountid,ccverification, 
    6464                                         
    6565                                        invoices.createdby, date_Format(invoices.creationdate,\"%c/%e/%Y %T\") as creationdate,  
     
    215215                $pdf->SetXY($leftmargin,$tempnext+.03); 
    216216 
    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; 
    222222                $partnamewidth=$paperwidth-$leftmargin-$rightmargin-$partnumberwidth-$qtywidth-$unitpricewidth-$extendedwidth-$taxablewidth; 
    223223 
     
    250250                        $pdf->SetFont("Arial","",8); 
    251251                        $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"); 
    253257                        $thelineitem["taxable"]=booleanFormat($thelineitem["taxable"]); 
    254258                        if($thelineitem["taxable"]=="&middot;")$thelineitem["taxable"]=" "; 
     
    257261                        $pdf->Cell($unitpricewidth,.13,currencyFormat($thelineitem["unitprice"]),$border_debug,0,"R"); 
    258262                        $pdf->Cell($extendedwidth,.13,currencyFormat($thelineitem["extended"]),$border_debug,1,"R"); 
    259                         $pdf->SetX($leftmargin+.25); 
     263                        $pdf->SetX($leftmargin+.125); 
    260264                        $pdf->SetFont("Arial","i",8); 
    261265                        $thelineitem["memo"].="\n"; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.