[DEVEL] Billing System - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Contributions Area (/forum-40.html) +--- Forum: Enhancements (/forum-43.html) +--- Thread: [DEVEL] Billing System (/thread-5553.html) |
[DEVEL] Billing System - ceco91 - 01-28-2009 05:20 AM Hi! Here is billing system development Later, I will post my first release. One thing I like someone to do is to check PERL code because PERL is not my passion and by now I not as experienced as I should be to write PERL. RE: [DEVEL] Billing System - DiXeoN - 01-28-2009 05:36 AM It looks okay to me.. But with my knowledge of PERL, you better ask someone else But i'll be a happy beta-tester, when a alpha version comes out! RE: [DEVEL] Billing System - ceco91 - 01-28-2009 05:45 AM I cant guarantee that this will work. Better test on a test machine not on a real WORKING machine. Here are my files. Up-to-date: 27 Jan 2009 RE: [DEVEL] Billing System - DiXeoN - 01-28-2009 05:48 AM Of course Im just about setting up a testserver, so will reply with some data later tonight or tomorrow. RE: [DEVEL] Billing System - ceco91 - 01-28-2009 05:50 AM I have a testing server but i haven't install ispCP yet. So any testing result will be good -------------- A fix: In billing.pl: Replace (~ line 54): Code: $SQL = "SELECT `domain` FROM `invoices` WHERE `duedate` = '".(1900 + $year)."-".$months[$mon]."-".$days[$mday]."' AND `status` = 'Unpaid'"; Code: $SQL = "SELECT `domain` FROM `clients` WHERE `paidto` = '".(1900 + $year)."-".$months[$mon]."-".$days[$mday]."'"; -------------- Another fix: In config.php (in billing.zip): Replace (~ line 6): Code: error_reporting(E_ALL); Code: error_reporting(0); RE: [DEVEL] Billing System - DiXeoN - 01-28-2009 06:22 AM by the way.. Where should i put the PERL file? RE: [DEVEL] Billing System - ceco91 - 01-28-2009 03:04 PM Cron Tab. Auto disable accouns and generate a new invoices.. RE: [DEVEL] Billing System - DiXeoN - 01-28-2009 05:44 PM Could you please explain further, as i didnt quite get that? RE: [DEVEL] Billing System - lepetitalbert - 01-28-2009 10:24 PM Hi ceco91, you should just add : Code: use strict; NEVER write a Perl script without these ! Not tested but seems cool Thanks. Have a nice day. RE: [DEVEL] Billing System - ceco91 - 01-28-2009 11:05 PM I mean that this script will disable account and generate invoices. It's an automatic system. |