phpBMS

Show
Ignore:
Timestamp:
01/06/10 17:35:36 (2 years ago)
Author:
brieb
Message:
  • Fixed recurring invoices not copying line items over correctly
  • Fixed default values for orders when it comes to shipping, payment, tax and discount as they now use UUIDs
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/recurringinvoices/scheduler_recurr.php

    r674 r722  
    209209 
    210210                $fieldList = array(); 
     211 
    211212                foreach($therecord as $name=>$value){ 
    212213                        switch($name){ 
     
    293294                $theid = $this->db->insertId(); 
    294295 
    295                 $this->copyLineItems($therecord["uuid"],$theid); 
    296                 $this->insertHistory($theid,$therecord["statusid"],$therecord["statusdate"],$therecord["assignedtoid"]); 
     296                $this->copyLineItems($therecord["id"], $theid); 
     297 
     298                $this->insertHistory($therecord["uuid"], $therecord["statusid"], $therecord["statusdate"], $therecord["assignedtoid"]); 
    297299 
    298300                $this->updateReccurence($therecord["recurrid"],$therecord["firstrepeat"]); 
     
    323325 
    324326                                        case "invoiceid": 
    325                                                 $therecord[$name] = "'".$newInvoiceID."'"; 
     327                                                $therecord[$name] = $newInvoiceID; 
    326328                                                $fieldlist[] = $name; 
    327329                                                break; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.