Results 1 to 5 of 5

Thread: PDF quotes total, subtotal, tax and shipping values

  1. #1
    jmcalderond is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Sugar, Hell
    Posts
    113

    Unhappy PDF quotes total, subtotal, tax and shipping values

    Hi there,

    It's just that this values are showing not in the same line, I've tried to move them but I haven't been able to fix this, I've been searchimg where do I have to make this change but I haven't found out where, I've looked to invoice.php and standard.php but the changes I've made to the positions variables aren't being reflected to the quote in PDF, see the screenshot please.

    Does anyone know where do I have to make these changes?

    Cheers,

    Juan Miguel
    Attached Images Attached Images  

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: PDF quotes total, subtotal, tax and shipping values

    Hi Juan

    The code which generate this table is the following:

    1. in the Standard.php: 258
    PHP Code:
    $pdf->ezTable($total,'' ,'' ,$options); 
    2. in the Invoice.php: 269
    PHP Code:
    $pdf->ezTable($total,'' ,'' ,$options); 
    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    jmcalderond is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Sugar, Hell
    Posts
    113

    Default Re: PDF quotes total, subtotal, tax and shipping values

    Hi andopes,

    I've played with the line
    $pdf->ezTable($total,'' ,'' ,$options);
    in both files but I haven't been able to move to the left the table that contains those values, I don't know what's the second parameter for, the third parameter shows above the values on the PDF quote whatever you write there, I have also changed the value of this variable
    $options['xPos'] = 15; (this line is a couple of lineas above $pdf->ezTable($total,'' ,'' ,$options); )
    but nothing, it won't move to the left, andopes, could you be more especific in what I have to do to move it a little to the left.

    Thank you,

    Juan Miguel

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: PDF quotes total, subtotal, tax and shipping values

    Hi Juan

    Take a look at this line:

    PHP Code:
    $options['cols'] = array('BLANK' => array('width' => '410'), 'VALUE' => array('justification' => 'right')); 
    You need to set the width for the column 'VALUE'.
    I don't know which value you need to setup, just try one and test until you get the correct layout.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    francisco.daza is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    45

    Default Re: PDF quotes total, subtotal, tax and shipping values

    Hi andopes,

    Thanks a lot, that did move to the left the table that has those values

    Regards,

    Juan Miguel

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •