0000991: Default to premier bank account
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 15 Aug 2011 23:11:35 +0000 (01:11 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 15 Aug 2011 23:11:35 +0000 (01:11 +0200)
gl/includes/ui/gl_bank_ui.inc

index 5a0124f656215e1e8582c8d4e70434b4725cc716..1ac37eb7a2812509f82940558c85c2662ced1c61 100644 (file)
@@ -93,7 +93,7 @@ function display_bank_header(&$order)
 
        table_section(3, "33%");
 
-       if (!list_updated('bank_account'))
+       if (!$order->order_id && !list_updated('bank_account'))
        {
                if ($_POST['PayType'] == PT_CUSTOMER)
                        $_POST['bank_account'] = get_default_customer_bank_account($_POST['person_id']);