Bug : supplemental tax cannot be deleted
This commit is contained in:
parent
9473dcbcbf
commit
6e14b34867
2 changed files with 256 additions and 254 deletions
|
|
@ -79,8 +79,7 @@ if ( ! defined('OVERRIDE_PARAM')) {
|
|||
* Ini session
|
||||
*/
|
||||
|
||||
if (! defined('NOALYSS_CAPTCHA') )
|
||||
{
|
||||
if (!defined('NOALYSS_CAPTCHA')) {
|
||||
define("NOALYSS_CAPTCHA", false);
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +115,7 @@ if ( !defined ("NOALYSS_PACKAGE_REPOSITORY")) {
|
|||
if (!defined("SYSINFO_DISPLAY")) {
|
||||
define("SYSINFO_DISPLAY", TRUE);
|
||||
}
|
||||
define ("DBVERSION",173);
|
||||
define("DBVERSION", 174);
|
||||
define("MONO_DATABASE", 25);
|
||||
define("DBVERSIONREPO", 20);
|
||||
define('NOTFOUND', '--not found--');
|
||||
|
|
@ -263,8 +262,7 @@ if ( ! defined ('GENERATE_PDF') ) define ('GENERATE_PDF','NO');
|
|||
* Pour conversion GIF en PDF
|
||||
*/
|
||||
$convert_gif_pdf = '/usr/bin/convert';
|
||||
if (file_exists($convert_gif_pdf))
|
||||
{
|
||||
if (file_exists($convert_gif_pdf)) {
|
||||
define('CONVERT_GIF_PDF', $convert_gif_pdf);
|
||||
} else {
|
||||
define('CONVERT_GIF_PDF', 'NOT');
|
||||
|
|
@ -293,16 +291,12 @@ if ( ! file_exists($ps2pdf) )
|
|||
/**
|
||||
* Outil pour manipuler les PDF
|
||||
*/
|
||||
if ( ! isset ($pdftk))
|
||||
{
|
||||
if (!isset ($pdftk)) {
|
||||
$pdftk = '/usr/bin/pdftk';
|
||||
}
|
||||
if (file_exists($pdftk))
|
||||
{
|
||||
if (file_exists($pdftk)) {
|
||||
define('PDFTK', $pdftk);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
define('PDFTK', 'NOT');
|
||||
}
|
||||
|
||||
|
|
@ -362,7 +356,8 @@ if (!defined ("DEFAULT_SERVER_VIDEO_CONF")) {
|
|||
*
|
||||
* @param string $class classname to load
|
||||
*/
|
||||
function noalyss_class_autoloader($class) {
|
||||
function noalyss_class_autoloader($class)
|
||||
{
|
||||
$class = strtolower($class);
|
||||
$aClass = array(
|
||||
"database" => "class/database.class.php",
|
||||
|
|
|
|||
7
include/sql/patch/upgrade173.sql
Normal file
7
include/sql/patch/upgrade173.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
begin;
|
||||
|
||||
ALTER TABLE public.jrn_tax drop CONSTRAINT jrn_tax_fk ;
|
||||
ALTER TABLE public.jrn_tax ADD CONSTRAINT jrn_tax_fk FOREIGN KEY (j_id) REFERENCES jrnx(j_id) on delete cascade on update cascade;
|
||||
|
||||
insert into version (val,v_description) values (174,'Supplemental tax : delete');
|
||||
commit;
|
||||
Loading…
Add table
Add a link
Reference in a new issue