PDA

View Full Version : Invoices


envycom
25-06-05, 04:54 AM
Why do tasks have to be logged before they appear under Task Name? I want to create billing tasks, and i don't want to have to log them before i actually invoice.

Also.. taxes? is there a way to add them?

Thanks

pedroa
25-06-05, 06:16 AM
cyberhorse is the man to answer you.

As to the second question, let me say that if you talk to cyberhorse ask him if we can get rid of taxes, I would really like to get rid of those.

I guess cyberhorse does not know that there are only two certainties in life:
Death and taxes... :(

Pedro A.

envycom
25-06-05, 07:06 AM
Yeah i would love to get rid of taxes too

caseydk
26-06-05, 01:12 AM
As an alternative to trashing it, I'd rename it something like "Adjustment" and allow a user to provide comment.

Therefore if you wanted to do +5% for taxes or -5% for a discount, it'd work either way.

I have had a project or two where mishaps have happened... offering a discount - however small - is a good way to calm the customer.

jvalin
28-10-06, 02:31 AM
Figured out a fix for calculating and displaying taxes in reports that I suppose could be easily modified to also calculate a discount for those in need. You could also add a second taxrate if you needed to. Did not have time to tinker with the database and assume that it will one day make its way into a future release...so this is a quick fix....please note: the taxes are calculated in the reports and are not added to the database.

Add the following after the "print invoice total" code in your favorite report:

// Calculate the TAX
$taxrate = 0.06; // modify tax rate accordingly
$tax = round($invTotal * $taxrate, 2); // calculate taxes where invTotal is the total of the invoice before tax
$pdf->ezText("gst: " . dPgetConfig('currency_symbol').sprintf("%.2f",$tax), 10,array('justification'=>'right')); // print tax
$pdf->ezText(''); // print space
$total = round($invTotal + $tax, 2); // add the invoice total and the tax to create total
$pdf->ezText("invoice total: " . dPgetConfig('currency_symbol').sprintf("%.2f",$total,2), 12,array('justification'=>'right')); // print total