Commit graph

32 commits

Author SHA1 Message Date
Bradley M. Kuhn
31961b997c Various changes from last time t-shirts were shipped.
I had made various changes the last time we shipped t-shirts, but had
never committed them.  These are those changes.
2024-11-03 15:53:08 -08:00
Bradley M. Kuhn
ca8348d84b Rework various aspects of shirt label printing
The primary change here is to add output such that we can get CSV
output that can be later used in post-processing to upload the data
to  third-party shipping services.

Various other changes are present as well, including changes to the
logic related to which t-shirt to give when no specific type is
requested.
2022-11-21 17:31:17 -08:00
Bradley M. Kuhn
d505f69f00 Add new style as an option for t-shirts. 2022-11-13 15:01:31 -08:00
Bradley M. Kuhn
bdd100540a Versions as used for the last time we sent t-shirts. 2022-06-21 10:15:56 -07:00
Bradley M. Kuhn
8f6bd0e563 Handle multiple addresses. 2019-12-10 09:38:20 -08:00
Bradley M. Kuhn
f9e94aec25 Add YAML output. 2019-12-10 09:38:02 -08:00
Bradley M. Kuhn
c2443bfcf7 Rework to handle multiple t-shirt designs. 2019-12-10 09:37:38 -08:00
Bradley M. Kuhn
2e45e52e01 Add license notice. 2019-12-10 09:37:19 -08:00
Bradley M. Kuhn
693a844212 type list variable should be used for loop. 2017-08-01 12:13:10 -07:00
Bradley M. Kuhn
96c04d988e t-shirts: control by type when we send.
Allow for controlled sending of t-shirts by type.
2017-08-01 10:17:19 -07:00
Bradley M. Kuhn
5cf6dfb805 Send postal shipment via an email address? Really?
This would have only worked if we had solved generalized energy-matter
conversion.... and I haven't invented a Heisenberg compensator.
2016-12-17 11:35:56 -08:00
Bradley M. Kuhn
460352b7c4 Ignor blank lines and comments in the inventory. 2016-12-09 13:47:02 -08:00
Bradley M. Kuhn
89bd74a50a Implement ability to put requests on hold.
Requests can now be placed "on hold", and getRequest() can ignore held
requests.

This required addition of a table, and another API call holdRequest().

Tests were not written here, which was a mistake.  Unit tests and docs
are needed.  A FIXME was added, at least.

Also, minor imporvements to reporting on fulfilled requests.
2016-12-08 15:10:16 -08:00
Bradley M. Kuhn
4231731b24 Include additional font package. 2016-05-27 06:08:36 -07:00
Bradley M. Kuhn
3b14ca9abe Fix address formatting here too. 2016-05-27 06:02:17 -07:00
Bradley M. Kuhn
eb34901017 LaTeX does support these characters. 2016-05-26 21:17:09 -07:00
Bradley M. Kuhn
04ae300292 Use preferred postal address if available.
Test first to see if a preferred postal address is available before
attempting to just accept one.
2016-05-26 21:04:43 -07:00
Bradley M. Kuhn
e98b8b9d42 Print the overall needed. 2016-05-26 21:03:54 -07:00
Bradley M. Kuhn
7b5f6f1b8a Correct variable names 2016-05-26 20:40:24 -07:00
Bradley M. Kuhn
4e52c8fe1c Fix test command. 2016-05-26 20:39:58 -07:00
Bradley M. Kuhn
6147f2b869 Fix bug: $type from loop should be used!
We weren't using the type variable from the loop!
2016-05-26 20:39:40 -07:00
Bradley M. Kuhn
6a6ec1fca2 Properly sort so most in need get shirts first.
The idea behind this sort is to give monthlies top priority based on
their id number (i.e., when they hit $60, just get that shirt out to
them), and for annuals, make sure we prioritize based on how long it has
been since their last donation.
2016-05-26 20:38:48 -07:00
Bradley M. Kuhn
922e8f279e Add additional parameters. 2016-01-22 17:10:58 -08:00
Bradley M. Kuhn
6986796a7d Correct variable name. 2016-01-22 17:10:45 -08:00
Bradley M. Kuhn
8f5c3b8d1f This error checking condition is now meaningless. 2016-01-22 17:10:30 -08:00
Bradley M. Kuhn
167d8c9520 checklist is the proper has value throughout. 2016-01-22 17:10:17 -08:00
Bradley M. Kuhn
cf8cc36045 Giving limit for donor to receive t-shirt.
Analysis of IRS rules indicate that sometimes, a thank-you gift can't be
sent unless the percentage the gift is of the donation meets a certain
threshold.

This change allows the caller of this script to implement that sort of
threshold.
2016-01-08 13:10:20 -08:00
Bradley M. Kuhn
97e772b89c Parallel hashes made no sense here.
Since the main index is size, no reason not to have a single hash that
is so-keyed, and have subhash with two keys for checklist and labels.
2016-01-07 12:42:51 -08:00
Bradley M. Kuhn
dd8d8cba37 Reverse shortened postal address printed.
Packers find that reversing the postal address makes people easier to
find when matching up labels.
2016-01-07 12:38:53 -08:00
Bradley M. Kuhn
a4fdb4ea99 Correct sorting to print by size.
Packers indicate that packing by size rather than any other method is
better.
2016-01-07 12:33:52 -08:00
Bradley M. Kuhn
dbea255aee Properly handle counting.
Fix an off-by-one error on the size counts and otherwise handle counting
well.
2016-01-06 21:46:58 -08:00
Bradley M. Kuhn
d151b992c4 First past script to print t-shirt labels. 2016-01-02 11:21:17 -08:00