1

(23 replies, posted in Reporting)

Solved, but how can I forget to say T H A N K   YOU /  Salute bro.

apmuthu wrote:

Most, if not all lines are in the reporting/includes/header2.inc file. Try commenting out sets of lines at a time and see what disappears in the resulting invoice.... Also see what is necessary to manage the position ($x, $y co-ordinates) of the subsequent printing....

2

(23 replies, posted in Reporting)

bibin141 wrote:

Hello Guys,
         I am a intermediate php programmer, i have created a INVOICE  form design which suitable for indian users,

My form contains S.NO , Item Des ,  Qty , Rate, Gross , Dis% , DisAmt , Vat% , VatAmt, Total,

I designed this form for my business.If u are interested in this design then go and edit reporting/rep107.php.

Note : Better take a backup of this file before altering it.

Here is the complete coding for my design

<?php
/**********************************************************************
    Copyright (C) FrontAccounting, LLC.
    Released under the terms of the GNU General Public License, GPL,
    as published by the Free Software Foundation, either version 3
    of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = $_POST['PARAM_0'] == $_POST['PARAM_1'] ?
    'SA_SALESTRANSVIEW' : 'SA_SALESBULKREP';
// ----------------------------------------------------------------


?>

HI, hope you doing great joe,
What if I want to line in my invoice? I want to print paper from printing press, and my frontaccounting only write text there, becuase I am using dot matrix printer and that take long time for printing lines, especially that vertical lines, So please help me that how can I remove all the lines from invoice, that will be better if you can paste that complete code here of that file, I am not expert , but I can go and copy paste things in /reporting/includes/ directory. Thanks in advance, and will wait for your reply. Thanks again bro.

Peace,
I want to ask if it is possible,
(1)---: In  sale-->sale quotation or sale invoices etc. when we select item from "item description" or with a barcode reader  from "bar code" box, so we have to click "add item" button then computer goes to next line, Is it possible that computer automatically move to next line, and
(2)---: also if we double scan one item with bar code reader or select twice so FA increase the quantity of item, Right now, FA says with double scan "his item is already on this document. You have been warned."
waiting ...
Thanks in Advance

HI,
FrontAccounting latest 2.3.16, installed on ubuntu-server 12.04 ip=192.168.1.101
1- printer is shared with LPR/LPD service on some Win7 machine ip=192.168.1.148, I told to Frontaccounting that printer is on 192.168.1.148 port 515, because FA support lpd printer at the moment, When FA is printing invoice  Quotation or Reports, the prints is strnage, some garpage raw text or some .php or html coding,
the images can be checked here
2- Next I installed cups on my ubuntu-server machine and added that shared printer via cups to my ubuntu machine, Now I can send print from command prompt from the same ubuntu-server machine like 

 lp -d EPSON300 print.txt 
 lp -d EPSON300 Hi.pdf 

and the print is normal text print
Now here i told to frontaccounting that printer is on localhost, Now if I am sending print from frontaccounting via browser,I am getting error on tail -f /var/log/cups/error.log

 +0300] Unable to encrypt connection from localhost - An unexpected TLS packet was received.

my /etc/cups/cupd.conf

vi /etc/cups/cupsd.conf
root@srvr1-zbr-database:~# cat /etc/cups/cupsd.conf
LogLevel warn
MaxLogSize 0
#SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS dnssd
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow  all
</Location>
<Location /admin>
 Order allow,deny
 Allow all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
   </Location>
<Policy default>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    Allow all
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

Printer.conf

<Printer EPSON300>
UUID urn:uuid:5fb9a974-2b34-329e-53cc-695ae5948584
Info EPSON300
Location
MakeModel Epson LX-300+ Foomatic/ibmpro (recommended)
DeviceURI smb://192.168.1.148/EPSON300
State Idle
StateTime 1370533770
Type 8433668
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
<Printer PDF>
UUID urn:uuid:39870712-4947-368b-7bd9-e4d5fc91f256
Info PDF
MakeModel Generic CUPS-PDF Printer
DeviceURI cups-pdf:/
State Idle
StateTime 1370478760
Type 8450124
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

yes, I am not an expert, Just a learner.
Help, Thanks.