phpBMS

Changeset 722 for trunk/phpbms/modules

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
Location:
trunk/phpbms/modules
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/install/settings.sql

    r657 r722  
    22INSERT INTO `settings` (`name`, `value`) VALUES ('shipping_postalcode','87124'); 
    33INSERT INTO `settings` (`name`, `value`) VALUES ('invoice_default_printinstruc','Thank You For Your Order.'); 
    4 INSERT INTO `settings` (`name`, `value`) VALUES ('default_payment','0'); 
    5 INSERT INTO `settings` (`name`, `value`) VALUES ('default_shipping','0'); 
    6 INSERT INTO `settings` (`name`, `value`) VALUES ('default_discount','0'); 
    7 INSERT INTO `settings` (`name`, `value`) VALUES ('default_taxarea','0'); 
     4INSERT INTO `settings` (`name`, `value`) VALUES ('default_payment',''); 
     5INSERT INTO `settings` (`name`, `value`) VALUES ('default_shipping',''); 
     6INSERT INTO `settings` (`name`, `value`) VALUES ('default_discount',''); 
     7INSERT INTO `settings` (`name`, `value`) VALUES ('default_taxarea',''); 
    88INSERT INTO `settings` (`name`, `value`) VALUES ('default_hascredit','0'); 
    99INSERT INTO `settings` (`name`, `value`) VALUES ('default_creditlimit','0'); 
  • trunk/phpbms/modules/bms/install/updatev0.98.sql

    r719 r722  
    848848INSERT INTO `widgets` (`uuid`, `type`, `title`, `file`, `roleid`, `moduleid`, `default`, `createdby`, `creationdate`, `modifiedby`, `modifieddate`) VALUES ('wdgt:06a30e04-55ad-75da-7bd6-0c4203210ac8', 'little', 'Accounts Receivable Statistics', '../bms/widgets/arstats/class.php', 'role:c9439c3c-499b-7bcc-ee14-fec5bfcf5fc2', 'mod:0aa9cca0-7388-0eae-81b9-9935f9d127cc', '1', 1, NOW(), 1, NOW()); 
    849849--end widgets INSERT-- 
     850UPDATE `settings` SET `value` ='' WHERE `name` = 'default_payment' OR `name` = 'default_shipping' OR `name` = 'default_discount' OR `name` = 'default_taxarea'; 
  • 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.