<div dir="ltr">Hi,<br><div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for the pointers.<br><br><div></div><div>freeside-daily was run without any options.  
However, after enabling debug option (-v), it became clear why the 
payment batches were not created.<br></div><div>Here's is an excerpt of output from freeside-daily -v:<br></div><div><br>----------------------------<br> [FS::cust_main::Billing] due_cust_event called with options stage: collect, check_freq: 1d, time: 1490967001, debug: 1<br>  6 total possible cust events found in initial search<br>  0 cust events left satisfying conditions<br>    invalid conditions not eliminated with condition_sql:<br>      cust_bill_has_noauto: 1<br>      payby: 6<span style="color:rgb(44,44,44);font-family:monospace;font-size:15px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(247,247,247);display:inline;float:none"><br></span></div><div>----------------------------<br></div><div><br></div><div>There are 2 invalid conditions listed.<br><br></div><div>cust_bill_has_noauto:<br><br></div><div>   This relates to part_pkg table having no_auto empty.  (ut_flag() definition treats NULL same as 'Y')<br></div><div>   Do I need to update the relevant part_pkg entries with no_auto='N'?<br><br></div><div>payby:<br><br></div><div>   I don't understand this invalid condition.  Probably relates to the billing event below.<br></div><div> <br></div><div>The log made it clear that none of the billing events were getting triggered.  Adding payments to payment batches is the first event.<br><br></div><div>Here's the definition of 1st billing event:<br>-------------------------------------------------------------------------------------------<br></div><div>#   Event           Type      Check freq.    <br></div><div>1  Batch Card    Invoice       daily       <br><br></div><div>Conditions<br></div><div>  Don't run this event again after it has completed successfully<br></div><div>  Customer Balance (Balance over:0)<br></div><div>  Amount owed on specific invoice (Amount owed over:0)<br></div><div>  (Deprecated) Customer payment type (payby:CARD)<br></div><div>  Invoice eligible for automatic collection<br><br></div><div>Action<br></div><div>  Add card or check to a pending batch<br>-------------------------------------------------------------------------------------------<br><br></div><div>The condition "Customer payment type" is deprecated in 4.1.  This definitely worked in 3.4. <br>What's the equivalent option in 4.1?<br></div><div><br></div><div>Also, are there default billing events for 4.1?<br><br></div><div></div><div>Amitay.<br></div><div><br><br></div>
    </div><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 30, 2017 at 4:45 AM, Erreu Gedmon <span dir="ltr"><<a href="mailto:eg@keyway.net" target="_blank">eg@keyway.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    What switches are you using with freeside-daily? If you are using -p
    you will need to remove it:<br>
        man freeside-daily<br>
             -p: Deprecated, will produce a fatal error (formerly was:
    Only process customers with the specified payby (CARD, DCRD, CHEK,
    DCHK, BILL, COMP, LECB))<br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    <br>
    Do payment batches work when you execute them manually with Tools,
    Billing, Process payment batches?<br>
    <br>
    Also, after enabling Configuration, Settings, event_log_level, debug
    and executing freeside-daily are there any related errors in:
    Reports, Logs, System Log<br>
    Reports, Logs, Billing Events<br>
    /var/log/apache2/error.log<br>
    /var/log/apache2/access.log<br>
    /var/log/messages<br>
    /usr/local/etc/freeside/*log*<br>
    /var/log/syslog<br>
    /var/log/postgresql/*log<br>
    /var/spool/mail (or wherever cron emails errors to)<br>
    <pre class="gmail-m_622088735546992781moz-signature" cols="0">Erreu Gedmon

--
"You see persons and things not as they are but as you are."
        -- Anthony De Mello</pre><div><div class="gmail-h5">
    <div class="gmail-m_622088735546992781moz-cite-prefix">On 03/29/2017 02:07 AM, Amitay Isaacs
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="gmail-h5">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
              <br>
            </div>
            Ever since the upgrade to 4.1, payment batches feature does
            not seem to<br>
            be working.  I have verified that in the settings for
            "Payment batching"<br>
            "batch-enable_payby" and "batch-default_format" are
            configured.<br>
            <br>
            Also, freeside-daily script has been running every day for
            more than a<br>
            week now.  However, I don't see any new payment batches
            being created.<br>
            <br>
            After the upgrade to 4.1, I did notice the following warning
            message.<br>
            <br>
              FS::part_event::Condition::<wbr>payby is disabled; skipping<br>
            <br>
            Is this related to why payment batches are not working?  If
            yes, how do<br>
            I fix it?  If not, is there any additional settings required
            to enable<br>
            payment batches in 4.1?<br>
            <br>
          </div>
          Thanks.<br>
          <br>
        </div>
        Amitay.<br>
      </div>
      <br>
      <fieldset class="gmail-m_622088735546992781mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
freeside-users mailing list
<a class="gmail-m_622088735546992781moz-txt-link-abbreviated" href="mailto:freeside-users@freeside.biz" target="_blank">freeside-users@freeside.biz</a>
<a class="gmail-m_622088735546992781moz-txt-link-freetext" href="http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users" target="_blank">http://freeside.biz/cgi-bin/<wbr>mailman/listinfo/freeside-<wbr>users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
freeside-users mailing list<br>
<a href="mailto:freeside-users@freeside.biz">freeside-users@freeside.biz</a><br>
<a href="http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users" rel="noreferrer" target="_blank">http://freeside.biz/cgi-bin/<wbr>mailman/listinfo/freeside-<wbr>users</a><br>
<br></blockquote></div><br></div></div></div>