Merged revisions 2905-2938 via svnmerge from
svn+ssh://danydb@svn/svn/phpcompta/branches/rel500
........
r2906 | danydb | 2010-01-27 15:16:08 +0100 (Wed, 27 Jan 2010) | 2 lines
Cosmetic for html popup
........
r2907 | danydb | 2010-01-27 15:28:03 +0100 (Wed, 27 Jan 2010) | 5 lines
Fix typo translation
Fix Bug : cannot save extension in IE, probably because the same scripts are included several times
........
r2908 | danydb | 2010-01-28 13:56:37 +0100 (Thu, 28 Jan 2010) | 5 lines
Fix Bug In getNodeText when retrieving data for Internet Explorer,
it fails if the xmlNode.firstChild.nodeValue does not contains data.
It is directly set to undefined
........
r2909 | danydb | 2010-01-29 12:20:24 +0100 (Fri, 29 Jan 2010) | 2 lines
Generate invoice : update the comment of the entry only if there were no comment
........
r2910 | danydb | 2010-01-29 19:39:11 +0100 (Fri, 29 Jan 2010) | 6 lines
Improve User
============
Status only plugin means that the user can use only the plugin and can't access to
anything else.
........
r2911 | danydb | 2010-01-29 19:42:38 +0100 (Fri, 29 Jan 2010) | 1 line
Bug import Dexia
........
r2912 | danydb | 2010-01-31 16:24:22 +0100 (Sun, 31 Jan 2010) | 3 lines
For insert_jrnx, the desc is now in the function, we don't need anymore to update after inserting
........
r2913 | danydb | 2010-01-31 16:33:55 +0100 (Sun, 31 Jan 2010) | 4 lines
Fix bug : cannot see operation in quick_writing
cause : the p_action must be set to ALL, it wasn't for quick_writing
........
r2914 | danydb | 2010-02-02 14:52:37 +0100 (Tue, 02 Feb 2010) | 4 lines
Code cleaning
Bug : in ledger of sale, we have twice the possibility to add~ or generate document, and only for invoice (type 4)
Solution : fix the function Acc_Ledger_Purchase::extra_info (type of document = 10), remove extra code
........
r2915 | danydb | 2010-02-05 01:01:11 +0100 (Fri, 05 Feb 2010) | 4 lines
Improve : search_card you can also find a card thanks is tva_num
Documentation doxygen improved
........
r2916 | danydb | 2010-02-05 11:18:36 +0100 (Fri, 05 Feb 2010) | 2 lines
when inserting into ledger_sold the test to check the attach was wrong
........
r2917 | danydb | 2010-02-05 14:45:33 +0100 (Fri, 05 Feb 2010) | 2 lines
Extension : add the possibility to use ajax
........
r2918 | danydb | 2010-02-06 14:25:22 +0100 (Sat, 06 Feb 2010) | 1 line
rewrite the function encodeJSON, hide and show for doxygen
........
r2919 | danydb | 2010-02-06 14:26:07 +0100 (Sat, 06 Feb 2010) | 1 line
remove error where _SESSION is expired
........
r2920 | danydb | 2010-02-06 14:26:49 +0100 (Sat, 06 Feb 2010) | 1 line
In ITva_Select add the display
........
r2921 | danydb | 2010-02-06 14:27:47 +0100 (Sat, 06 Feb 2010) | 1 line
Cosmetic
........
r2922 | danydb | 2010-02-06 14:27:49 +0100 (Sat, 06 Feb 2010) | 1 line
IPopup add a new property drag to make the ipopup dragguable or not
........
r2923 | danydb | 2010-02-06 14:35:28 +0100 (Sat, 06 Feb 2010) | 5 lines
Middle of payment
=================
Feature : add or remove middle of payment
........
r2924 | danydb | 2010-02-06 18:17:15 +0100 (Sat, 06 Feb 2010) | 7 lines
Card
----
A same card can now have 2 different sides (debit or credit)
usefull to have only one card for a customer and a supplier
........
r2925 | danydb | 2010-02-06 18:23:03 +0100 (Sat, 06 Feb 2010) | 1 line
Add the sql script for the double accounting
........
r2926 | danydb | 2010-02-06 19:29:29 +0100 (Sat, 06 Feb 2010) | 2 lines
Update documentation
........
r2927 | danydb | 2010-02-06 20:37:12 +0100 (Sat, 06 Feb 2010) | 4 lines
Fiche_def
========
Permit to have 2 accouting as class_base
........
r2928 | danydb | 2010-02-06 20:56:00 +0100 (Sat, 06 Feb 2010) | 1 line
Bug : FK from stock prevent the removal of a card
........
r2929 | danydb | 2010-02-06 21:14:10 +0100 (Sat, 06 Feb 2010) | 1 line
removeless useless test
........
r2930 | danydb | 2010-02-07 00:55:03 +0100 (Sun, 07 Feb 2010) | 1 line
Improve appearance extension
........
r2931 | danydb | 2010-02-07 00:56:28 +0100 (Sun, 07 Feb 2010) | 2 lines
remove debug
........
r2932 | danydb | 2010-02-07 01:16:51 +0100 (Sun, 07 Feb 2010) | 1 line
Improve appearance extension
........
r2933 | danydb | 2010-02-07 01:19:08 +0100 (Sun, 07 Feb 2010) | 1 line
Improve appearance extension
........
r2934 | danydb | 2010-02-07 01:30:31 +0100 (Sun, 07 Feb 2010) | 1 line
Improve appearance extension
........
r2935 | danydb | 2010-02-07 02:36:25 +0100 (Sun, 07 Feb 2010) | 1 line
Version PHP5.3 : split is obsolete and replace by explode
........
r2936 | danydb | 2010-02-07 04:56:17 +0100 (Sun, 07 Feb 2010) | 1 line
remove owner
........
r2937 | danydb | 2010-02-08 22:34:07 +0100 (Mon, 08 Feb 2010) | 1 line
typo
........
r2938 | danydb | 2010-02-08 22:34:28 +0100 (Mon, 08 Feb 2010) | 1 line
Start translation for Dutch
........
This commit is contained in:
parent
6017727263
commit
b43f4c87b4
67 changed files with 4220 additions and 898 deletions
111
sql/upgrade.sql
111
sql/upgrade.sql
|
|
@ -1,112 +1 @@
|
|||
begin;
|
||||
insert into parameter(pr_id,pr_value) values ('MY_CHECK_PERIODE','Y');
|
||||
alter table jrn add jr_mt text ;
|
||||
update jrn set jr_mt= extract (microseconds from jr_tech_date);
|
||||
create index x_mt on jrn(jr_mt);
|
||||
DROP FUNCTION insert_quant_purchase(text, numeric, character varying, numeric, numeric,numeric, integer, numeric, numeric, numeric, character varying);
|
||||
DROP FUNCTION insert_quant_sold(text, character varying, numeric, numeric, numeric, integer, character varying);
|
||||
alter table groupe_analytique add constraint fk_pa_id foreign key(pa_id) references plan_analytique(pa_id) on delete cascade;
|
||||
alter table stock_goods add constraint fk_stock_good_f_id foreign key(f_id) references fiche(f_id) ;
|
||||
-- for belgium
|
||||
insert into parm_code values ('SUPPLIER',440,'Poste par défaut pour les fournisseurs');
|
||||
-- for french
|
||||
-- insert into parm_code values ('SUPPLIER',400,'Poste par défaut pour les fournisseurs');
|
||||
drop table invoice;
|
||||
-- Function: account_parent(poste_comptable)
|
||||
|
||||
DROP FUNCTION account_parent(poste_comptable);
|
||||
|
||||
CREATE FUNCTION account_parent(p_account poste_comptable)
|
||||
RETURNS poste_comptable AS
|
||||
$BODY$
|
||||
declare
|
||||
nParent tmp_pcmn.pcm_val_parent%type;
|
||||
sParent varchar;
|
||||
nCount integer;
|
||||
begin
|
||||
sParent:=to_char(p_account,'9999999999999999');
|
||||
sParent:=trim(sParent::text);
|
||||
nParent:=0;
|
||||
while nParent = 0 loop
|
||||
select count(*) into nCount
|
||||
from tmp_pcmn
|
||||
where
|
||||
pcm_val = to_number(sParent,'9999999999999999');
|
||||
if nCount != 0 then
|
||||
nParent:=to_number(sParent,'9999999999999999');
|
||||
exit;
|
||||
end if;
|
||||
sParent:= substr(sParent,1,length(sParent)-1);
|
||||
if length(sParent) <= 0 then
|
||||
raise exception 'Impossible de trouver le compte parent pour %',p_account;
|
||||
end if;
|
||||
end loop;
|
||||
raise notice 'account_parent : Parent is %',nParent;
|
||||
return nParent;
|
||||
end;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
|
||||
alter table document drop column d_state;
|
||||
alter table action_gestion drop column f_id_exp;
|
||||
alter table action_gestion set ag_title type text;
|
||||
ALTER TABLE action_gestion ADD COLUMN ag_hour time with time zone;
|
||||
ALTER TABLE action_gestion ADD COLUMN ag_priority integer;
|
||||
ALTER TABLE action_gestion ALTER COLUMN ag_priority SET DEFAULT 2;
|
||||
ALTER TABLE action_gestion ADD COLUMN ag_dest text;
|
||||
ALTER TABLE action_gestion ADD COLUMN ag_owner text;
|
||||
ALTER TABLE action_gestion ADD COLUMN ag_contact int8;
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE OR REPLACE FUNCTION action_gestion_ins_upd()
|
||||
RETURNS trigger AS
|
||||
$BODY$
|
||||
begin
|
||||
NEW.ag_title := substr(NEW.ag_title,1,70);
|
||||
NEW.ag_hour := substr(NEW.ag_hour,1,10);
|
||||
return NEW;
|
||||
end;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
|
||||
CREATE TRIGGER action_gestion_t_insert_update
|
||||
BEFORE INSERT OR UPDATE
|
||||
ON action_gestion
|
||||
FOR EACH ROW
|
||||
EXECUTE PROCEDURE action_gestion_ins_upd();
|
||||
|
||||
COMMENT ON TRIGGER action_gestion_t_insert_update ON action_gestion IS 'Truncate the column ag_title to 70 char';
|
||||
|
||||
ALTER TABLE action_gestion ADD COLUMN ag_state integer;
|
||||
update action_gestion set f_id_dest = f_id_exp where f_id_exp != 0;
|
||||
|
||||
alter table action drop column f_id_dest;
|
||||
UPDATE document_state SET s_value= 'Clôturé' WHERE s_id=1;
|
||||
UPDATE document_state SET s_value= 'A suivre' WHERE s_id=2;
|
||||
UPDATE document_state SET s_value= 'A faire' WHERE s_id=3;
|
||||
UPDATE document_state SET s_value= 'Abandonné' WHERE s_id=4;
|
||||
|
||||
|
||||
CREATE TABLE action_detail
|
||||
(
|
||||
ad_id serial,
|
||||
f_id int8,
|
||||
ad_text text,
|
||||
ad_pu numeric(20,4) DEFAULT 0,
|
||||
ad_quant numeric(20,4) DEFAULT 0,
|
||||
ad_tva_id integer DEFAULT 0,
|
||||
ad_tva_amount numeric(20,4) DEFAULT 0,
|
||||
ad_total_amount numeric(20,4) DEFAULT 0,
|
||||
ag_id integer NOT NULL DEFAULT 0,
|
||||
CONSTRAINT action_detail_pkey PRIMARY KEY (ad_id),
|
||||
CONSTRAINT action_detail_ag_id_fkey FOREIGN KEY (ag_id)
|
||||
REFERENCES action_gestion (ag_id) MATCH SIMPLE
|
||||
ON UPDATE CASCADE ON DELETE CASCADE
|
||||
);
|
||||
|
||||
COMMENT ON TABLE action_detail IS 'Detail of action_gestion, see class Action_Detail';
|
||||
|
||||
commit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue