Initial Commit of AgileBill Open Source
This commit is contained in:
71
modules/setup_invoice/setup_invoice.inc.php
Normal file
71
modules/setup_invoice/setup_invoice.inc.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AgileBill - Open Billing Software
|
||||
*
|
||||
* This body of work is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the Open AgileBill License
|
||||
* License as published at http://www.agileco.com/agilebill/license1-4.txt
|
||||
*
|
||||
* For questions, help, comments, discussion, etc., please join the
|
||||
* Agileco community forums at http://forum.agileco.com/
|
||||
*
|
||||
* @link http://www.agileco.com/
|
||||
* @copyright 2004-2008 Agileco, LLC.
|
||||
* @license http://www.agileco.com/agilebill/license1-4.txt
|
||||
* @author Tony Landis <tony@agileco.com>
|
||||
* @package AgileBill
|
||||
* @version 1.4.93
|
||||
*/
|
||||
|
||||
class setup_invoice
|
||||
{
|
||||
function setup_invoice()
|
||||
{
|
||||
$this->module = "setup_invoice";
|
||||
$this->xml_construct = PATH_MODULES . $this->module . "/" . $this->module . "_construct.xml";
|
||||
$C_xml = new CORE_xml;
|
||||
$construct = $C_xml->xml_to_array($this->xml_construct);
|
||||
$this->method = $construct["construct"]["method"];
|
||||
$this->trigger = $construct["construct"]["trigger"];
|
||||
$this->field = $construct["construct"]["field"];
|
||||
$this->table = $construct["construct"]["table"];
|
||||
$this->module = $construct["construct"]["module"];
|
||||
$this->cache = $construct["construct"]["cache"];
|
||||
$this->order_by = $construct["construct"]["order_by"];
|
||||
$this->limit = $construct["construct"]["limit"];
|
||||
}
|
||||
|
||||
function search($VAR)
|
||||
{
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->search($VAR, $this, $type);
|
||||
}
|
||||
|
||||
function search_show($VAR)
|
||||
{
|
||||
$type = "search";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->search_show($VAR, $this, $type);
|
||||
}
|
||||
|
||||
function view($VAR)
|
||||
{
|
||||
$type = "view";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->view($VAR, $this, $type);
|
||||
}
|
||||
|
||||
function update($VAR)
|
||||
{
|
||||
$type = "update";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$rs = $db->update($VAR, $this, $type);
|
||||
}
|
||||
}
|
||||
?>
|
84
modules/setup_invoice/setup_invoice_construct.xml
Normal file
84
modules/setup_invoice/setup_invoice_construct.xml
Normal file
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<module>setup_invoice</module>
|
||||
<table>setup_invoice</table>
|
||||
<dependancy/>
|
||||
<cache>0</cache>
|
||||
<order_by>site_id</order_by>
|
||||
<limit>10</limit>
|
||||
<field>
|
||||
<id>
|
||||
<type>I4</type>
|
||||
<unique>1</unique>
|
||||
<index>1</index>
|
||||
</id>
|
||||
<site_id>
|
||||
<type>I4</type>
|
||||
<unique>1</unique>
|
||||
<index>1</index>
|
||||
</site_id>
|
||||
<bill_to_company>
|
||||
<type>L</type>
|
||||
<default>1</default>
|
||||
</bill_to_company>
|
||||
<invoice_currency>
|
||||
<type>C(8)</type>
|
||||
</invoice_currency>
|
||||
<invoice_decimals>
|
||||
<type>I4</type>
|
||||
<default>5</default>
|
||||
</invoice_decimals>
|
||||
<items_summary_max>
|
||||
<type>I4</type>
|
||||
<default>16</default>
|
||||
</items_summary_max>
|
||||
<news>
|
||||
<type>X</type>
|
||||
<default>default</default>
|
||||
</news>
|
||||
<page_type>
|
||||
<type>I4</type>
|
||||
<default>1</default>
|
||||
</page_type>
|
||||
<invoice_delivery>
|
||||
<type>I4</type>
|
||||
</invoice_delivery>
|
||||
<invoice_show_itemized>
|
||||
<type>L</type>
|
||||
<default>1</default>
|
||||
</invoice_show_itemized>
|
||||
<invoice_show_service_dates>
|
||||
<type>L</type>
|
||||
<default>0</default>
|
||||
</invoice_show_service_dates>
|
||||
<invoice_grace>
|
||||
<type>I4</type>
|
||||
</invoice_grace>
|
||||
<invoice_advance_gen>
|
||||
<type>I4</type>
|
||||
</invoice_advance_gen>
|
||||
<invoice_terms>
|
||||
<type>I4</type>
|
||||
</invoice_terms>
|
||||
<invoice_pdf_plugin>
|
||||
<type>C(16)</type>
|
||||
<default>overview</default>
|
||||
</invoice_pdf_plugin>
|
||||
<contact_us_url>
|
||||
<type>C(64)</type>
|
||||
</contact_us_url>
|
||||
<contact_us_phone>
|
||||
<type>C(64)</type>
|
||||
</contact_us_phone>
|
||||
<advance_notice>
|
||||
<type>I4</type>
|
||||
</advance_notice>
|
||||
</field>
|
||||
<method>
|
||||
<update>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,contact_us_url,contact_us_phone,advance_notice</update>
|
||||
<view>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,contact_us_url,contact_us_phone,advance_notice</view>
|
||||
<search>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,contact_us_url,contact_us_phone,advance_notice</search>
|
||||
<search_show>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,contact_us_url,contact_us_phone,advance_notice</search_show>
|
||||
</method>
|
||||
<trigger>0</trigger>
|
||||
</construct>
|
26
modules/setup_invoice/setup_invoice_install.xml
Normal file
26
modules/setup_invoice/setup_invoice_install.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<install>
|
||||
<module_properties>
|
||||
<name>setup_invoice</name>
|
||||
<parent>setup</parent>
|
||||
<notes><![CDATA[Control the invoice setup]]></notes>
|
||||
<menu_display>1</menu_display>
|
||||
</module_properties>
|
||||
<sql_inserts>
|
||||
<module_method>
|
||||
<search>
|
||||
<name>search</name>
|
||||
</search>
|
||||
<view>
|
||||
<name>view</name>
|
||||
<page>core:search&module=%%&_escape=1&_next_page_one=view</page>
|
||||
<menu_display>1</menu_display>
|
||||
</view>
|
||||
<update>
|
||||
<name>update</name>
|
||||
</update>
|
||||
<search_show>
|
||||
<name>search_show</name>
|
||||
</search_show>
|
||||
</module_method>
|
||||
</sql_inserts>
|
||||
</install>
|
22
modules/setup_invoice/setup_invoice_install_data.xml
Normal file
22
modules/setup_invoice/setup_invoice_install_data.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<install>
|
||||
<setup_invoice>
|
||||
<id>1</id>
|
||||
<site_id>1</site_id>
|
||||
<bill_to_company>1</bill_to_company>
|
||||
<invoice_currency>$</invoice_currency>
|
||||
<invoice_decimals>5</invoice_decimals>
|
||||
<items_summary_max>16</items_summary_max>
|
||||
<news></news>
|
||||
<page_type>1</page_type>
|
||||
<invoice_delivery>0</invoice_delivery>
|
||||
<invoice_show_itemized>1</invoice_show_itemized>
|
||||
<invoice_grace>0</invoice_grace>
|
||||
<invoice_advance_gen>0</invoice_advance_gen>
|
||||
<invoice_terms>0</invoice_terms>
|
||||
<invoice_pdf_plugin>overview</invoice_pdf_plugin>
|
||||
</setup_invoice>
|
||||
<setup_invoice_id>
|
||||
<id>2</id>
|
||||
</setup_invoice_id>
|
||||
</install>
|
Reference in New Issue
Block a user