BambooInvoice Forums

Please Help me [its urgent]

 
Total Posts: 4

Firstly how do I add new administrator and remove the default admin user account with the username .(JavaScript must be enabled to view this email address)
And secondly how do I remove the .00 two decimal in the quantity description, both on the print view and pdf view? Actually I want it removed permanently. Please give me a php hack for this.
Need this help real quick..

Total Posts: 2339

Hi.  You can open up the database directly and change the username if you want to.  Look for clientcontacts and find the user with id of 1.  Change there.  Then use the “forgot my password” function to change the password.

To modify the invoice, open bamboo_system_files/application/views/invoice and find pdf.php and view.php.  These are html/php files.  You’ll need to edit these.

May I ask why this is urgent?

Regards.

Total Posts: 4

Thank you so much. You solved my problem.
Its urgent because one of my client wanted this system running and functional within this week for managing the invoices online.
I wanted the decimals removed because the service is traded in a whole unit and the decimal would create some problem.
Thank you so much

Total Posts: 4

Ok so I found the files that needs to be edited and the admin password has been fixed.
so i have this code

<?php echo $item->quantity;?> 

So what do I have to modify to remove the decimals?

Total Posts: 3

number_format($number);

change: <?php echo $item->quantity;?>
to: <?php echo number_format($item->quantity);?>

SCRATCH THAT…

The better way is to change the quantity field in the invoice_items table. It is set to a Decimal field with a max length of 9 digits… 7 and 2 past the decimal 1234567.89 . Change this to an Integer (INT) if you have no need for the decimals.  I just verified that it works.

Total Posts: 4
mkbrkb - Mar 05, 2008 06:14pm

The better way is to change the quantity field in the invoice_items table. It is set to a Decimal field with a max length of 9 digits… 7 and 2 past the decimal 1234567.89 . Change this to an Integer (INT) if you have no need for the decimals.  I just verified that it works.

Perfect!!
THank you so much.