<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 7, 2018, at 2:06 PM, Brian Mine <<a href="mailto:bbooker45@gmail.com" class="">bbooker45@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="auto" class="">Hi Nathan, <div dir="auto" class=""><br class=""></div><div dir="auto" class="">Thanks for your help with this. Unfortunately I'm still stuck. I tried it on a test/dummy account as:</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">freeside-daily -d date --date='+1 month' <font face="sans-serif" class=""><span style="font-size:12.8px" class="">+%m/1/%y freeside 012.</span></font></div><div dir="auto" class=""><font face="sans-serif" class=""><span style="font-size:12.8px" class=""><br class=""></span></font></div><div class=""><font face="sans-serif" class=""><span style="font-size:12.8px" class="">That tried to pass off 

<span style="color:rgb(34,34,34);font-family:sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class="">+%m/1/%y as the user. If you would kindly</span></span></font></div><div class=""><font face="sans-serif" class=""><span style="font-size:12.8px" class=""><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class="">point out my rookie error it'll be much appreciated. </span></span></font></div></div></div></div></blockquote><div><br class=""></div><div>You want to execute the date command, so put backticks (`) around it.</div><div><br class=""></div><div>For example:</div><div><br class=""></div><div>freeside-daily -d `date --date='+1 month' <font face="sans-serif" class=""><span class="" style="font-size: 12.8px;">+%m/1/%y` freeside 012</span></font></div><div><font face="sans-serif" class=""><span class="" style="font-size: 12.8px;"><br class=""></span></font></div><div><font face="sans-serif" class=""><span class="" style="font-size: 12.8px;">That will execute the command between the backticks.</span></font></div><div><font face="sans-serif" class=""><span class="" style="font-size: 12.8px;"><br class=""></span></font></div><div><font face="sans-serif" class=""><span style="font-size: 12.800000190734863px;" class="">Charles</span></font></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="auto" class=""><div class=""><font face="sans-serif" class=""><span style="font-size:12.8px" class=""><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class=""><br class=""></span></span></font></div><div class=""><font face="sans-serif" class=""><span style="font-size:12.8px" class=""><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class="">Thanks!</span></span></font></div><div class=""><font face="sans-serif" class=""><span style="font-size:12.8px" class=""><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class=""><br class=""></span></span></font></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Sat, Apr 7, 2018, 11:22 AM Nathan Kennedy <<a href="mailto:nathan@nkent.us" rel="noreferrer" target="_blank" class="">nathan@nkent.us</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="">On Sat, 2018-04-07 at 13:51 +0000, Brian Mine wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex" class="">We bill on the 1st of the month. How do we set freeside-daily to generate the invoices around the 25th of the previous month?</blockquote><div class="">Hello Brian,</div><div class=""><br class=""></div><div class="">You need to run freeside-daily with the -d flag and pass the appropriate date to it.  You can do this using the date command, for example:</div><div class="">date --date='+1 month' +%m/1/%y returns a date showing the first of the next month.</div><div class=""><br class=""></div><div class="">You also need to schedule things properly in your freeside users crontab so on every day but your billing day it runs normally and on the billing day it runs freeside-daily normally and then the freeside-daily with the -d flag defined.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class=""><span class=""><pre class="">-- <br class=""></pre><div class="">Nathan Kennedy</div><div class="">Contracted Professional IT</div><div class="">(360) 637-1090</div><div class=""><a href="https://www.nkent.us/" rel="noreferrer noreferrer" target="_blank" class="">https://www.nkent.us/</a></div></span></div></div>______________________________<wbr class="">_________________<br class="">
freeside-users mailing list<br class="">
<a href="mailto:freeside-users@freeside.biz" rel="noreferrer noreferrer" target="_blank" class="">freeside-users@freeside.biz</a><br class="">
<a href="http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users" rel="noreferrer noreferrer noreferrer" target="_blank" class="">http://mail.freeside.biz/cgi-<wbr class="">bin/mailman/listinfo/freeside-<wbr class="">users</a><br class="">
</blockquote></div></div>
_______________________________________________<br class="">freeside-users mailing list<br class=""><a href="mailto:freeside-users@freeside.biz" class="">freeside-users@freeside.biz</a><br class="">http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users<br class=""></div></blockquote></div><br class=""></body></html>