phpBMS

Show
Ignore:
Timestamp:
01/15/10 13:13:56 (2 years ago)
Author:
brieb
Message:
  • Fixed invoice creation error reporting
  • Added getDefaults to API and wrapper
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/include/invoices.php

    r750 r762  
    625625                        $therecord["taxpercentage"]=$taxinfo["percentage"]; 
    626626                        $therecord["amountdue"]=0; 
     627                        $therecord["amountpaid"]=0; 
    627628 
    628629                        $therecord["hascredit"]=0; 
     
    632633                        $therecord["thelineitems"] = array(); 
    633634                        $therecord["cmid"] = ""; 
     635 
     636                        $therecord["lineitemschanged"] = ""; 
    634637 
    635638                        return $therecord; 
     
    833836                                        $this->verifyErrors[] = "The `statusid` field does not give an existing/acceptable status id number."; 
    834837 
    835                         }//end if 
     838                        } else { 
     839 
     840                                $this->verifyErrors[] = "The `statusid` field must be set."; 
     841 
     842                        }//end if 
    836843 
    837844                        //check booleans 
     
    11871194                                require_once("addresstorecord.php"); 
    11881195 
     1196                                if(!isset($variables["uuid"])) 
     1197                                    $variables["uuid"] = getUuid($this->db, $this->uuid, $newid); 
     1198 
    11891199                                $newuuid = mysql_real_escape_string($variables["uuid"]); 
    11901200 
     
    11941204                        }//end if 
    11951205 
     1206 
     1207                        if(!isset($variables["lineitemschanged"])) 
     1208                            $variables["lineitemschanged"] =''; 
    11961209 
    11971210                        if($variables["lineitemschanged"]==1){ 
     
    12061219                        }//end if 
    12071220 
     1221                        if(!isset($variables["statusdate"])) 
     1222                            $variables["statusdate"] =''; 
     1223 
     1224                        if(!isset($variables["assignedtoid"])) 
     1225                            $variables["assignedtoid"] =''; 
     1226 
    12081227                        //if($variables["statuschanged"]==1) 
    1209                                 $this->updateStatus($id,$variables["statusid"],$variables["statusdate"],$variables["assignedtoid"], $replace); 
     1228                        $this->updateStatus($id, $variables["statusid"], $variables["statusdate"], $variables["assignedtoid"], $replace); 
    12101229 
    12111230                        if($variables["clienttype"] == "prospect" && $variables["type"] == "Order") 
     
    20612080 
    20622081                                }//end foreach 
    2063                                  
     2082 
    20642083                                if($count == count($this->idsArray)) 
    20652084                                        $message = $count." related credit memo(s) have been created."; 
    20662085                                else 
    20672086                                        $message = $count." related credit memo(s) (of ".count($this->idsArray)." selected) have been created."; 
    2068                                  
     2087 
    20692088                                return $message; 
    20702089 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.