projects
/
order_line_extra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Save in database.
[order_line_extra.git]
/
hooks.php
diff --git
a/hooks.php
b/hooks.php
index 308a9419d9303d0007931e99ee4e477901da3983..2425ba93d8822dd3995798b2b3fe5ffac3558bd7 100644
(file)
--- a/
hooks.php
+++ b/
hooks.php
@@
-6,10
+6,10
@@
// Title: Order Line Extra
// Free software under GNU GPL
// ----------------------------------------------------------------
// Title: Order Line Extra
// Free software under GNU GPL
// ----------------------------------------------------------------
-define ('SS_ORDERLINEX', 1
31
<<8);
+define ('SS_ORDERLINEX', 1
00
<<8);
-class hooks_orderline_extra extends hooks {
- var $module_name = '
Order Line E
xtra';
+class hooks_order
_
line_extra extends hooks {
+ var $module_name = '
order_line_e
xtra';
/*
Install additonal menu options provided by module
/*
Install additonal menu options provided by module
@@
-21,11
+21,17
@@
class hooks_orderline_extra extends hooks {
function install_options($app) {
global $path_to_root;
function install_options($app) {
global $path_to_root;
+ switch($app->id) {
+ case 'orders':
+ $app->add_rapp_function(0, _('Order Extra'),
+ $path_to_root.'/modules/order_line_extra/order_lines_view.php', 'SA_SALESTRANSVIEW');
+ }
}
function install_access()
{
}
function install_access()
{
- $security_sections[SS_ORDERLINEX] = _("Order Line eXtra");
+ $security_sections[SS_ORDERLINEX] = _("Order Line Extra");
+ $security_areas['SA_ORDERLINEX_EDIT'] = array(SS_ORDERLINEX|1, _("Edit lines"));
return array($security_areas, $security_sections);
}
return array($security_areas, $security_sections);
}
@@
-36,7
+42,7
@@
class hooks_orderline_extra extends hooks {
global $db_connections;
$updates = array(
global $db_connections;
$updates = array(
- 'alter_sales_order_details.sql' => array('
0_sales_order_details',
)
+ 'alter_sales_order_details.sql' => array('
sales_order_details', 'required_date'
)
);
return $this->update_databases($company, $updates, $check_only);
);
return $this->update_databases($company, $updates, $check_only);