title: Magento - No invoice on Payment method cash (Mindstretch modules)
body: <p>we are maintaining a webshop based on Magento which has payment modules installed from Mindstretch. We are using the 'cash on pick-up' option, but the problem is that the module creates an invoice when the order has been send in. However, when 'cash on pick-up' is selected it should not create an invoice. This should only happen when they actually pick it up. So we need to disable the making of the invoice. Problem is that I have no idea where to start looking. Below the config.xml and system.xml files</p>
  
  <hr>
  
  <p>CONFIG.XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;config&gt;
  
      &lt;modules&gt;
          &lt;Mindstretch_Contant&gt;
              &lt;version&gt;0.1.0&lt;/version&gt;
          &lt;/Mindstretch_Contant&gt;
      &lt;/modules&gt;
  
      &lt;global&gt;
          &lt;helpers&gt;
                  &lt;contant&gt;
                      &lt;class&gt;Mindstretch_Contant_Helper&lt;/class&gt;
                  &lt;/contant&gt;
                  &lt;!--
                   &lt;payment&gt;
                      &lt;rewrite&gt;
                      &lt;data&gt;Mindstretch_Contant_Helper_Data&lt;/data&gt;
                      &lt;/rewrite&gt;
                  &lt;/payment&gt;
                  --&gt;
              &lt;/helpers&gt;
          &lt;models&gt;
              &lt;contant&gt;
                  &lt;class&gt;Mindstretch_Contant_Model&lt;/class&gt;
              &lt;/contant&gt;
          &lt;/models&gt;
      &lt;adminhtml&gt;       
          &lt;translate&gt;
              &lt;modules&gt;
                  &lt;Mindstretch_Contant&gt;
                      &lt;files&gt;
                          &lt;default&gt;Mindstretch_Backend.csv&lt;/default&gt;
                      &lt;/files&gt;
                  &lt;/Mindstretch_Contant&gt;
              &lt;/modules&gt;
          &lt;/translate&gt;
      &lt;/adminhtml&gt;
  
          &lt;resources&gt;
              &lt;contant_setup&gt;
                  &lt;setup&gt;
                      &lt;module&gt;Mindstretch_Contant&lt;/module&gt;
                  &lt;/setup&gt;
                  &lt;connection&gt;
                      &lt;use&gt;core_setup&lt;/use&gt;
                  &lt;/connection&gt;
              &lt;/contant_setup&gt;
              &lt;contant_write&gt;
                  &lt;connection&gt;
                      &lt;use&gt;core_write&lt;/use&gt;
                  &lt;/connection&gt;
              &lt;/contant_write&gt;
              &lt;contant_read&gt;
                  &lt;connection&gt;
                      &lt;use&gt;core_read&lt;/use&gt;
                  &lt;/connection&gt;
              &lt;/contant_read&gt;
          &lt;/resources&gt;
      &lt;/global&gt;
  
      &lt;frontend&gt;
          &lt;routers&gt;
              &lt;contant&gt;
                  &lt;use&gt;standard&lt;/use&gt;
                  &lt;args&gt;
                      &lt;module&gt;Mindstretch_Contant&lt;/module&gt;
                      &lt;frontName&gt;Contant&lt;/frontName&gt;
                  &lt;/args&gt;
              &lt;/contant&gt;
          &lt;/routers&gt;
      &lt;/frontend&gt;
  
  
      &lt;default&gt;
          &lt;payment&gt;
              &lt;contant&gt;
  
                  &lt;active&gt;0&lt;/active&gt;
                  &lt;model&gt;contant/paymentLogic&lt;/model&gt;
                  &lt;order_status&gt;pending&lt;/order_status&gt;
                  &lt;title&gt;Contant&lt;/title&gt;
                  &lt;api_key&gt;46&lt;/api_key&gt;
                  &lt;api_secret&gt;46&lt;/api_secret&gt;
                  &lt;payment_action&gt;authorize_capture&lt;/payment_action&gt;
                  &lt;allowspecific&gt;0&lt;/allowspecific&gt;
              &lt;/contant&gt;
          &lt;/payment&gt;
      &lt;/default&gt;
  &lt;/config&gt;
  </code></pre>
  
  <hr>
  
  <p>SYSTEM.XML:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;sections&gt;
  
          &lt;payment&gt;
              &lt;groups&gt;
  
                  &lt;contant translate="label" module="paygate"&gt;
                      &lt;label&gt;Contant&lt;/label&gt;
                      &lt;sort_order&gt;601&lt;/sort_order&gt;
                      &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                      &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                      &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                      &lt;fields&gt;
                          &lt;active translate="label"&gt;
                              &lt;label&gt;Enabled&lt;/label&gt;
                              &lt;frontend_type&gt;select&lt;/frontend_type&gt;
                              &lt;source_model&gt;adminhtml/system_config_source_yesno&lt;/source_model&gt;
                              &lt;sort_order&gt;1&lt;/sort_order&gt;
                              &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                              &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                              &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                          &lt;/active&gt;
                          &lt;order_status translate="label"&gt;
                              &lt;label&gt;New order status&lt;/label&gt;
                              &lt;frontend_type&gt;select&lt;/frontend_type&gt;
                              &lt;source_model&gt;contant/paid&lt;/source_model&gt;
                              &lt;sort_order&gt;4&lt;/sort_order&gt;
                              &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                              &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                              &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                          &lt;/order_status&gt;
                           &lt;allowspecific translate="label"&gt;
                              &lt;label&gt;Payment from applicable countries&lt;/label&gt;
                              &lt;frontend_type&gt;allowspecific&lt;/frontend_type&gt;
                              &lt;sort_order&gt;50&lt;/sort_order&gt;
                              &lt;source_model&gt;adminhtml/system_config_source_payment_allspecificcountries&lt;/source_model&gt;
                              &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                              &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                              &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                          &lt;/allowspecific&gt;
                          &lt;specificcountry translate="label"&gt;
                              &lt;label&gt;Payment from Specific countries&lt;/label&gt;
                              &lt;frontend_type&gt;multiselect&lt;/frontend_type&gt;
                              &lt;sort_order&gt;51&lt;/sort_order&gt;
                              &lt;source_model&gt;adminhtml/system_config_source_country&lt;/source_model&gt;
                              &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                              &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                              &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                          &lt;/specificcountry&gt;
                          &lt;min_order_total translate="label"&gt;
                              &lt;label&gt;Minimum Order Total&lt;/label&gt;
                              &lt;frontend_type&gt;text&lt;/frontend_type&gt;
                              &lt;sort_order&gt;98&lt;/sort_order&gt;
                              &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                              &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                              &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                          &lt;/min_order_total&gt;
                          &lt;max_order_total translate="label"&gt;
                              &lt;label&gt;Maximum Order Total&lt;/label&gt;
                              &lt;frontend_type&gt;text&lt;/frontend_type&gt;
                              &lt;sort_order&gt;99&lt;/sort_order&gt;
                              &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                              &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                              &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                          &lt;/max_order_total&gt;
              &lt;sort_order translate="label"&gt;
         &lt;label&gt;Sort order&lt;/label&gt;
         &lt;frontend_type&gt;text&lt;/frontend_type&gt;
         &lt;sort_order&gt;999&lt;/sort_order&gt;
         &lt;show_in_default&gt;1&lt;/show_in_default&gt;
         &lt;show_in_website&gt;1&lt;/show_in_website&gt;
         &lt;show_in_store&gt;1&lt;/show_in_store&gt;
        &lt;/sort_order&gt;
  
  
                          &lt;title translate="label"&gt;
                              &lt;label&gt;Title&lt;/label&gt;
                              &lt;frontend_type&gt;text&lt;/frontend_type&gt;
                              &lt;sort_order&gt;2&lt;/sort_order&gt;
                              &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                              &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                              &lt;show_in_store&gt;0&lt;/show_in_store&gt;
                          &lt;/title&gt;
                      &lt;/fields&gt;
                  &lt;/contant&gt;
              &lt;/groups&gt;
          &lt;/payment&gt;
      &lt;/sections&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>PAYMENTLOGIC.PHP:</p>
  
  <pre><code>&lt;?php
  class Mindstretch_Contant_Model_PaymentLogic extends Mage_Payment_Model_Method_Abstract
  {
      /**
       * Set forced canCreditmemo flag
       *
       * @param Varien_Event_Observer $observer
       * @return Mage_Payment_Model_Observer
       */
      protected $_code                    = 'contant';
      protected $_isGateway               = true;
      protected $_canAuthorize            = true;
      protected $_canCapture              = true;
      protected $_canCapturePartial       = false;
      protected $_canRefund               = true;
      protected $_canVoid                 = true;
      protected $_canUseInternal          = true;
      protected $_canUseCheckout          = true;
      protected $_canUseForMultishipping  = true;
      protected $_canSaveCc               = false;
  
      /*public function authorize (Varien_Object $payment, $amount)
      {
  
      }
  
      public function capture (Varien_Object $payment, $amount)
      {
  
      }
  
      public function refund (Varien_Object $payment, $amount)
      {
  
      }
      */
      public function void (Varien_Object $payment)
      {
  
      }
  
  }
  ?&gt;
  </code></pre>
  
  <p>Hope someone can give me some direction of where to look. Thanks</p>