<div dir="ltr"><div>Well this is front ended with processing that asks for a client number range and a date range -- so hard to determine those things until the records are selected for the criteria provided....someone could ask just to print one specific client or a range of clients and about any date range you can imagine, so the last suggestion of a 1 or 0 wouldn&#39;t really work - because for a date range of two months ago, they very well could have been owed and not a credit balance</div>
<div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 12, 2013 at 10:42 AM, Richard D. Williams <span dir="ltr">&lt;<a href="mailto:richard@appgrp.net" target="_blank">richard@appgrp.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 7/12/2013 9:04 AM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> wrote:<br>

&gt; Still having issues with this<br>
&gt;<br>
&gt; This processing is subtotaled and has @wbrk1 where it does the calculating<br>
&gt; The premise is the &#39;top&#39; part of the report prints line detail from the<br>
&gt; payment file - then @wrbk1 calculates the totals, if they owe us or we owe<br>
&gt; them<br>
&gt; I have tried putting different logic in place including a running variable<br>
&gt; on &#39;balance&#39; and if it&#39;s negative not to print etc<br>
&gt; &gt;From what I can see the &#39;print&#39; command only works on &#39;records&#39; and not<br>
&gt; once processing is finishing and it&#39;s spitting out the report?<br>
&gt;<br>
&gt; I can post the code if that would help - just trying to figure out can I<br>
&gt; even prevent printing once it gets to @wbrk1 ?  Or do I need to &#39;kill&#39; the<br>
&gt; print BEFORE it gets there?<br>
&gt;<br>
&gt; thanks<br>
&gt; Scott<br>
&gt; PDM<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 11:52 AM, Nancy Palmquist &lt;<a href="mailto:nlp@vss3.com">nlp@vss3.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Scott,<br>
&gt;&gt;<br>
&gt;&gt; getenv(&quot;PFPRINTER&quot;) is one way to find out what is loaded into that<br>
&gt;&gt; variable.<br>
&gt;&gt;<br>
&gt;&gt; However, if it is not set and the default is running, you can get the<br>
&gt;&gt; current printer from @pr  (Current printer name) or @pt (current printer<br>
&gt;&gt; type)<br>
&gt;&gt;<br>
&gt;&gt; My gotcha&#39;s:<br>
&gt;&gt;<br>
&gt;&gt; Be sure you never name printers the same as tables. Filepro is clever<br>
&gt;&gt; enough to print to any printer that has a given table assigned.  So if<br>
&gt;&gt; you have a number of printers with a table called &quot;laser&quot; you can direct<br>
&gt;&gt; output to &quot;laser&quot; and it will turn up on one of those printers in the<br>
&gt;&gt; queue.  A neat trick but annoying if the printer you want is next to you<br>
&gt;&gt; and it never prints.<br>
&gt;&gt;<br>
&gt;&gt; If you change the printer name in processing, also set the printer type.<br>
&gt;&gt;<br>
&gt;&gt; I know FilePro will assume but I find it always a better rule to be<br>
&gt;&gt; clear as to what you want.  Saves much troubleshooting.<br>
&gt;&gt;<br>
&gt;&gt; Nancy<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 7/9/2013 10:01 AM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> wrote:<br>
&gt;&gt;&gt; I have some processing that prints our statements each month and it&#39;s<br>
&gt;&gt;&gt; worked fine with no problem for years.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The PFPRINTER is set through a menu the user passes through, so they have<br>
&gt;&gt;&gt; the option to printer to 3-4 different printers....no problem there<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Now we&#39;ve gotten more and more clients with a &lt;credit balance&gt; so I want<br>
&gt;&gt; to<br>
&gt;&gt;&gt; be able to set PFPRINTER to &#39;null&#39; if there is &lt;credit balance&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; So, is there a way to set a variable to whatever PFPRINTER is set to when<br>
&gt;&gt;&gt; the user executes the processing.....then put a GOSUB if it&#39;s a &lt;credit&gt;<br>
&gt;&gt;&gt; that will set PRPRINTER=null<br>
&gt;&gt;&gt; If it&#39;s NOT &lt;credit balance&gt; then I want to obviously reset PFPRINTER to<br>
&gt;&gt;&gt; whatever it was when user executed the command....<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I haven&#39;t been able to figure out how to get the &#39;value&#39; of PFPRINTER<br>
&gt;&gt;&gt; pulled into processing to be able to &#39;manipulate&#39; it?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt; Scott<br>
&gt;&gt;&gt; PDM<br>
&gt;&gt;&gt; -------------- next part --------------<br>
&gt;&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt;&gt; URL:<br>
&gt;&gt; <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20130709/67e18e99/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20130709/67e18e99/attachment.html</a><br>

&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Filepro-list mailing list<br>
&gt;&gt;&gt; <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
&gt;&gt;&gt; Subscribe/Unsubscribe/Subscription Changes<br>
&gt;&gt;&gt; <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
&gt;&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Nancy Palmquist         MOS &amp; filePro Training Available<br>
&gt;&gt; Virtual Software Systems    Web Based Training and Consulting<br>
&gt;&gt; PHONE: <a href="tel:%28412%29%20835-9417" value="+14128359417">(412) 835-9417</a>           Web site:  <a href="http://www.vss3.com" target="_blank">http://www.vss3.com</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Filepro-list mailing list<br>
&gt;&gt; <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
&gt;&gt; Subscribe/Unsubscribe/Subscription Changes<br>
&gt;&gt; <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
&gt;&gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
</div></div>&gt; URL: <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20130712/ab257741/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20130712/ab257741/attachment.html</a><br>

<div class="im">&gt; _______________________________________________<br>
&gt; Filepro-list mailing list<br>
&gt; <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
&gt; Subscribe/Unsubscribe/Subscription Changes<br>
&gt; <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>Scott,<br>
<br>
Why don&#39;t you place variables in your sub-total/total area and just not<br>
fill them in if the balance is negative.<br>
That would simply stop the printing of the total area.<br>
<br>
I think you may want to not print your detail if the balance is negative.<br>
You can do that in your selection process before the records are<br>
selected for that client/customer.<br>
That would require you to calc the bal due on each record. Too much time.<br>
<br>
The best way is you use a process only on a blank record somewhere using<br>
*clerk.<br>
 From this record you can lookup into your customer/client file and get<br>
each client/customer and calc. the balance due.<br>
If it is negative, do a getnext and check the next client/customer.<br>
But if it is positive, execute a system command to print for that one<br>
client/customer.<br>
<br>
This assumes you have an index already in your detail file by<br>
client/customer.<br>
I often have a single character field that indicates which ones are<br>
paid/unpaid (1 or 0 respectively) and build an index on that field with<br>
the client/customer number.<br>
<br>
Just some thoughts,<br>
<br>
Richard D. Williams<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</div></div></blockquote></div><br></div>