Powered by OpenBSD

CVS log for RT/Invoicing/rt_invoices.pl

[BACK] Up to [local] / RT / Invoicing

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.56 / (download) - annotate - [select for diffs], Sun Aug 2 17:57:28 2020 UTC (3 years, 9 months ago) by afresh1
Branch: MAIN
CVS Tags: HEAD
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Fix bug in last

Revision 1.55 / (download) - annotate - [select for diffs], Sun Aug 2 17:52:40 2020 UTC (3 years, 9 months ago) by afresh1
Branch: MAIN
Changes since 1.54: +22 -19 lines
Diff to previous 1.54 (colored)

Stop using switch and smartmatch

I don't know 100% for sure that this is the exact same logic, but I think it's close.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Dec 8 02:10:43 2015 UTC (8 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Attempt to make invoices for all customers

Because they may owe for their Retainer without having any tickets

Revision 1.53 / (download) - annotate - [select for diffs], Thu May 7 05:26:08 2015 UTC (9 years ago) by andrew
Branch: MAIN
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored)

*** empty log message ***

Revision 1.52 / (download) - annotate - [select for diffs], Thu May 7 05:23:15 2015 UTC (9 years ago) by andrew
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Note that we are using experimental switch and smartmatch

Yes, need to refactor not to, but for now this is easy.

Revision 1.51 / (download) - annotate - [select for diffs], Thu May 7 05:21:49 2015 UTC (9 years ago) by andrew
Branch: MAIN
Changes since 1.50: +7 -5 lines
Diff to previous 1.50 (colored)

Use add/subtract_frequency to perform DateTime calculations with frequencies

Apparently it no longer works the other way.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jun 20 04:36:06 2013 UTC (10 years, 10 months ago) by andrew
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Fix possible uninit error

Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 5 03:41:58 2013 UTC (11 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored)

Don't create an invoice if the customer has a credit

No need to send them a bill.  I suppose that might not be totally true, but
right now it is true enough.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Nov 28 02:23:34 2012 UTC (11 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.47: +30 -1 lines
Diff to previous 1.47 (colored)

Add available credits to the invoice

That way users who pre-pay can see that.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jan 31 04:36:28 2012 UTC (12 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.46: +18 -10 lines
Diff to previous 1.46 (colored)

fix invoice total to not include unpaid invoices

It was adding the past_due totals to the invoice total which is not what I
want.

Also fix making an invoice for a customer pass $cust to make_invoice

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jan 27 04:13:45 2012 UTC (12 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.45: +24 -14 lines
Diff to previous 1.45 (colored)

Include all unpaid invoices, but only past_due cause a new invoice

That way people can see exactly what they owe.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Dec 31 02:14:32 2011 UTC (12 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.44: +2 -32 lines
Diff to previous 1.44 (colored)

Made invdate, start and end DateTime objects
Made RTI::State expand the above
Made RTI::State better at saving

Moved utility functions to RTI::Util

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 30 05:01:41 2011 UTC (12 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.43: +60 -46 lines
Diff to previous 1.43 (colored)

Print past due even if no other bills

Revision 1.43 / (download) - annotate - [select for diffs], Fri Dec 30 03:30:51 2011 UTC (12 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.42: +24 -28 lines
Diff to previous 1.42 (colored)

perltidy

Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 30 03:20:45 2011 UTC (12 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.41: +21 -8 lines
Diff to previous 1.41 (colored)

Past due only if older than $cust->{net} days

Revision 1.41 / (download) - annotate - [select for diffs], Thu Dec 22 05:21:56 2011 UTC (12 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.40: +13 -15 lines
Diff to previous 1.40 (colored)

A little cleanup, make things faster since we know things sooner

Revision 1.40 / (download) - annotate - [select for diffs], Thu Dec 22 04:52:28 2011 UTC (12 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.39: +112 -222 lines
Diff to previous 1.39 (colored)

Strip out the packages for re-use and add unpaid invoice feature

Should have been split into more commits, but oh well

Revision 1.39 / (download) - annotate - [select for diffs], Wed Dec 21 02:21:54 2011 UTC (12 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Change to layout of the state file.  It should mean new features.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jun 21 00:20:28 2011 UTC (12 years, 10 months ago) by andrew
Branch: MAIN
Changes since 1.37: +8 -8 lines
Diff to previous 1.37 (colored)

Keep track of how many hours we have discounted for a fee so we don't discount more than there are.

Revision 1.37 / (download) - annotate - [select for diffs], Thu May 26 01:09:36 2011 UTC (12 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

Stop if we discounted the total amount

Revision 1.36 / (download) - annotate - [select for diffs], Wed May 18 19:03:17 2011 UTC (12 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.35: +10 -7 lines
Diff to previous 1.35 (colored)

perltidy

Revision 1.35 / (download) - annotate - [select for diffs], Wed May 18 19:02:36 2011 UTC (12 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.34: +28 -24 lines
Diff to previous 1.34 (colored)

apply all discount hours available, not just the first found.

Revision 1.34 / (download) - annotate - [select for diffs], Sat May 7 02:34:17 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.33: +8 -1 lines
Diff to previous 1.33 (colored)

Strip off Onsite modifiers, to be dealt with later (like when I need it)

Revision 1.33 / (download) - annotate - [select for diffs], Sat May 7 02:27:34 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.32: +31 -9 lines
Diff to previous 1.32 (colored)

Now that I have an ExpenseAmount custom field, I can bill for expenses, or at least custom things.

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 7 01:09:43 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

now that was silly.  Not sure how that crept through.

Revision 1.31 / (download) - annotate - [select for diffs], Sat May 7 01:03:55 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.30: +11 -13 lines
Diff to previous 1.30 (colored)

use the default hours if we have used up the hours in our Type

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 3 04:41:11 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored)

try and get this comparison correct.  Seems good now.

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 3 04:38:56 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.28: +31 -24 lines
Diff to previous 1.28 (colored)

perltidy, must have gotten the new version!

Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 19 03:35:12 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.27: +25 -35 lines
Diff to previous 1.27 (colored)

standardize on variable name
more importantly, use the 'local' time_zone in DateTime to work with what RT has.
This means the date calculations work as expected and we get the dates we want.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Apr 19 03:21:06 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored)

warn about uninvoiced transactions

Revision 1.26 / (download) - annotate - [select for diffs], Tue Apr 19 03:19:27 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.25: +6 -1 lines
Diff to previous 1.25 (colored)

skip tickets without time_worked. makes it faster with no loss.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 19 03:18:13 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.24: +25 -39 lines
Diff to previous 1.24 (colored)

make conf->customers an array instead of a hash.  Makes stuff easier, and more importantly, the matches then go in order.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 12 19:32:15 2011 UTC (13 years ago) by andrew
Branch: MAIN
Changes since 1.23: +7 -4 lines
Diff to previous 1.23 (colored)

more messing about with billends, make it at the end of yesterday instead of beginning of today.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Apr 8 18:00:16 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

better check to not create an invoice if we billed more recently than $freq $per

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 8 17:10:28 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.21: +20 -19 lines
Diff to previous 1.21 (colored)

stupidly forgot to commit between changes so:
1. use File::Spec instead of File::Basename so we can get rel2abs
2. that means we can add a logo with path that LaTeX can find
3. then, fixup the find_customer_for_ticket so it works properly

Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 24 20:03:49 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.20: +9 -9 lines
Diff to previous 1.20 (colored)

Make bill day optional, that means we can bill up through yesterday but in a mininum of $per times.  By default that means bill not more than once a week.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 23 23:05:47 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.19: +12 -3 lines
Diff to previous 1.19 (colored)

make Template Toolkit default to looking for templates in the same directory as the config file

Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 22 05:27:12 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.18: +5 -1 lines
Diff to previous 1.18 (colored)

put the organization in the corner, and grab something from the "from" to put there.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Mar 22 04:55:27 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.17: +19 -8 lines
Diff to previous 1.17 (colored)

add an invoice_dir to store the configs in

Revision 1.17 / (download) - annotate - [select for diffs], Tue Mar 22 04:06:05 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

better looking

Revision 1.16 / (download) - annotate - [select for diffs], Tue Mar 22 03:32:58 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.15: +118 -96 lines
Diff to previous 1.15 (colored)

look up the address if make_address's argument is not a ref
Move a LOT more stuff into make_invoice and split out make_base_project
Would be nice to not have to pass so much to make_base_project, but I'm not seeing it at the moment.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Mar 22 01:41:43 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.14: +4 -6 lines
Diff to previous 1.14 (colored)

round the discount so it matches the total
don't set cust->{address}, just use get_user where we need it

Revision 1.14 / (download) - annotate - [select for diffs], Tue Mar 22 01:37:14 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.13: +23 -10 lines
Diff to previous 1.13 (colored)

add default hours for people without prepaid.  You can have them 0, but may as well have them $$$

Revision 1.13 / (download) - annotate - [select for diffs], Tue Mar 22 01:16:53 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.12: +25 -12 lines
Diff to previous 1.12 (colored)

use make_invoice to make sure we get the same initial invoice wherever we need one
then, add a match to a fake user so if they have multiple tickets it works

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 22 00:46:41 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.11: +37 -8 lines
Diff to previous 1.11 (colored)

make the addresses format more correctly

Revision 1.11 / (download) - annotate - [select for diffs], Tue Mar 22 00:16:32 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.10: +16 -0 lines
Diff to previous 1.10 (colored)

add rcsid and license

Revision 1.10 / (download) - annotate - [select for diffs], Tue Mar 22 00:15:27 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.9: +20 -11 lines
Diff to previous 1.9 (colored)

more fixup of output, more better entries in the state file

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 22 00:01:53 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.8: +22 -26 lines
Diff to previous 1.8 (colored)

better output
look up user->{from} if we don't have it
rename get_requestor to get_user to be more accurate

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 21 23:22:27 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.7: +54 -10 lines
Diff to previous 1.7 (colored)

now generate bills for people who don't really exist!

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 21 22:29:22 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.6: +30 -25 lines
Diff to previous 1.6 (colored)

lots more cleanup and updates to make it work properly.  It looks to generate correctly now!

Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 21 20:49:44 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.5: +207 -122 lines
Diff to previous 1.5 (colored)

lots of changes, store the invoice in the customer being the main one.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 21 17:36:59 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.4: +4 -5 lines
Diff to previous 1.4 (colored)

clone some things with YAML using Load(Dump($var))

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 21 04:01:33 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.3: +89 -80 lines
Diff to previous 1.3 (colored)

some small amount of breaking the mess into subs

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 21 03:19:25 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.2: +92 -48 lines
Diff to previous 1.2 (colored)

no more discount time
add start and end dates to the invoice
man info an array

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 21 00:05:38 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.1: +7 -3 lines
Diff to previous 1.1 (colored)

use actual rates
don't add a project without fees.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 20 23:55:41 2011 UTC (13 years, 1 month ago) by andrew
Branch: MAIN

may as well get this into CVS, it is a steaming pile still, but I'll keep polishing

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>