Reply to this topicStart new topicStart Poll

> One Time should be added
Posted: April 02, 2009 08:05 am
Quote Post

Advanced Member

Group: Members
Posts: 488
Member No.: 3,298
Joined: January 29, 2008

One Time billing should be added in the default install as an option for invoice cycles.
You shouldn't have to mod for this to be an option.

I said it.

PMEmail Poster
Posted: April 02, 2009 01:33 pm
Quote Post

Chief Cook & Bottle Washer

Group: Archive
Posts: 3,252
Member No.: 1
Joined: August 25, 2006

The first item in the list is treated as days for auto-invoicing, all the others are considered to be months. By necessity that means either one-time or daily

But on my accounting site I only need one-time and weekly, so I use a lang_config_override the same as everyone else can. I unset all items, and then only init the two I need
# Delete the invoice bill cycle arrays since we do not need all those options

# Invoices Billing Cycle Select List Params  (array position stored)
# Array element zero MUST be days, even if you don't use it.
# Other elements can be removed, and the remainder renumbered sequentially
$_CCFG['INVC_BILL_CYCLE'][0]   = 'Weekly';
$_CCFG['INVC_BILL_CYCLE'][1]   = 'One-Time';

# Invoices Billing Cycle Params Values (must correspond to list params)
# Array element zero MUST be days, even if you don't use it.
# Other elements can be removed, and the remainder renumbered sequentially
$_CCFG['INVC_BILL_CYCLE_VAL'][0]  = 7;   # Only one in days

From now on phpCOIN can upgrade all it wants ~ I will always have the cycles I need without having to do anything.

Please do not email or PM me with a question:
1: I handle over a thousand emails a day, so chances are yours would be buried in the pile.
2: All questions will only be answered in the support forums, so the answers will be useful to others.

Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)

If you are trying to integrate posted sample code into your website, please take into account any changes in phpCOIN made after the code sample was posted. It is discouraging to spend hours answering questions or trying to track down an issue only to find that the user has a version of phpCOIN that makes the sample irrelevant
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll


Inscrita el Registro Mercantil de Mallorca Tomo 2140, Hoja No. PM-51034, Folio 135
This website owned and operated by: Technology Services RPVW S.L. CIF# B57345084
Avda Constitucion 48 Bajos Alaro 07340 Baleares SPAIN
Tel:+34 971518362    Fax: +34 971518368    eMail: