X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=2b94dca3343062e506782e164e7ae7ef04d7cda4;hp=da1d3e1956d8757d710b5edf34eb3caa0bd3cbc5;hb=2b8ffc98529637ffddfe7cbf6b4f9b8deb90f0fa;hpb=619b9c20b1c2c76d439284bd6d023e5d5d9dbc7d diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index da1d3e195..2b94dca33 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -135,101 +135,181 @@ FS::Record. The following fields are currently supported: =over 4 -=item custnum - primary key (assigned automatically for new customers) +=item custnum -=item agentnum - agent (see L) +Primary key (assigned automatically for new customers) -=item refnum - Advertising source (see L) +=item agentnum + +Agent (see L) + +=item refnum + +Advertising source (see L) + +=item first + +First name -=item first - name +=item last -=item last - name +Last name -=item ss - social security number (optional) +=item ss -=item company - (optional) +Cocial security number (optional) + +=item company + +(optional) =item address1 -=item address2 - (optional) +=item address2 + +(optional) =item city -=item county - (optional, see L) +=item county -=item state - (see L) +(optional, see L) + +=item state + +(see L) =item zip -=item country - (see L) +=item country + +(see L) -=item daytime - phone (optional) +=item daytime -=item night - phone (optional) +phone (optional) -=item fax - phone (optional) +=item night -=item ship_first - name +phone (optional) -=item ship_last - name +=item fax -=item ship_company - (optional) +phone (optional) + +=item ship_first + +Shipping first name + +=item ship_last + +Shipping last name + +=item ship_company + +(optional) =item ship_address1 -=item ship_address2 - (optional) +=item ship_address2 + +(optional) =item ship_city -=item ship_county - (optional, see L) +=item ship_county + +(optional, see L) + +=item ship_state -=item ship_state - (see L) +(see L) =item ship_zip -=item ship_country - (see L) +=item ship_country -=item ship_daytime - phone (optional) +(see L) -=item ship_night - phone (optional) +=item ship_daytime -=item ship_fax - phone (optional) +phone (optional) -=item payby - Payment Type (See L for valid payby values) +=item ship_night -=item payinfo - Payment Information (See L for data format) +phone (optional) -=item paymask - Masked payinfo (See L for how this works) +=item ship_fax + +phone (optional) + +=item payby + +Payment Type (See L for valid payby values) + +=item payinfo + +Payment Information (See L for data format) + +=item paymask + +Masked payinfo (See L for how this works) =item paycvv Card Verification Value, "CVV2" (also known as CVC2 or CID), the 3 or 4 digit number on the back (or front, for American Express) of the credit card -=item paydate - expiration date, mm/yyyy, m/yyyy, mm/yy or m/yy +=item paydate + +Expiration date, mm/yyyy, m/yyyy, mm/yy or m/yy + +=item paystart_month + +Start date month (maestro/solo cards only) + +=item paystart_year + +Start date year (maestro/solo cards only) -=item paystart_month - start date month (maestro/solo cards only) +=item payissue -=item paystart_year - start date year (maestro/solo cards only) +Issue number (maestro/solo cards only) -=item payissue - issue number (maestro/solo cards only) +=item payname -=item payname - name on card or billing name +Name on card or billing name -=item payip - IP address from which payment information was received +=item payip -=item tax - tax exempt, empty or `Y' +IP address from which payment information was received -=item otaker - order taker (assigned automatically, see L) +=item tax -=item comments - comments (optional) +Tax exempt, empty or `Y' -=item referral_custnum - referring customer number +=item otaker -=item spool_cdr - Enable individual CDR spooling, empty or `Y' +Order taker (assigned automatically, see L) -=item dundate - a suggestion to events (see L) to delay until this unix timestamp +=item comments -=item squelch_cdr - Discourage individual CDR printing, empty or `Y' +Comments (optional) + +=item referral_custnum + +Referring customer number + +=item spool_cdr + +Enable individual CDR spooling, empty or `Y' + +=item dundate + +A suggestion to events (see L) to delay until this unix timestamp + +=item squelch_cdr + +Discourage individual CDR printing, empty or `Y' =back @@ -2905,6 +2985,11 @@ Only return events for the specified eventtable (by default, events of all event Explicitly pass the objects to be tested (typically used with eventtable). +=item testonly + +Set to true to return the objects, but not actually insert them into the +database. + =back =cut @@ -2935,7 +3020,8 @@ sub due_cust_event { local $FS::UID::AutoCommit = 0; my $dbh = dbh; - $self->select_for_update; #mutex + $self->select_for_update #mutex + unless $opt{testonly}; ### # 1: find possible events (initial search)