[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1677] branches/1.2/sql



Revision: 1677
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1677&view=rev
Author:   tetragon
Date:     2007-09-29 21:51:45 -0700 (Sat, 29 Sep 2007)

Log Message:
-----------
Fixing 1804712 and some related issues

Modified Paths:
--------------
    branches/1.2/sql/Belgium-chart.sql
    branches/1.2/sql/Egypt-chart.sql
    branches/1.2/sql/Poland-chart.sql

Modified: branches/1.2/sql/Belgium-chart.sql
===================================================================
--- branches/1.2/sql/Belgium-chart.sql	2007-09-30 04:11:00 UTC (rev 1676)
+++ branches/1.2/sql/Belgium-chart.sql	2007-09-30 04:51:45 UTC (rev 1677)
@@ -425,11 +425,11 @@
 INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, contra) VALUES ('763750', '+Val.s/mat.informatique', 'A', 'I', '', '76', '0');
 INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, contra) VALUES ('406', 'Acomptes versÃs - Vooruitbetalingen', 'A', 'A', 'AP_paid', '40', '0');
 --
-INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '411590'), 0.06);
-INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '411591'), 0.21);
-INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '451540'), 0.06);
-INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '451541'), 0.21);
-INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '640700'), 0.21);
+INSERT INTO tax (chart_id, rate) VALUES ((SELECT id FROM chart WHERE accno = '411590'), 0.06);
+INSERT INTO tax (chart_id, rate) VALUES ((SELECT id FROM chart WHERE accno = '411591'), 0.21);
+INSERT INTO tax (chart_id, rate) VALUES ((SELECT id FROM chart WHERE accno = '451540'), 0.06);
+INSERT INTO tax (chart_id, rate) VALUES ((SELECT id FROM chart WHERE accno = '451541'), 0.21);
+INSERT INTO tax (chart_id, rate) VALUES ((SELECT id FROM chart WHERE accno = '640700'), 0.21);
 --
 INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (SELECT 
 id FROM chart WHERE accno = '340'));

Modified: branches/1.2/sql/Egypt-chart.sql
===================================================================
--- branches/1.2/sql/Egypt-chart.sql	2007-09-30 04:11:00 UTC (rev 1676)
+++ branches/1.2/sql/Egypt-chart.sql	2007-09-30 04:51:45 UTC (rev 1677)
@@ -84,7 +84,7 @@
  INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (SELECT id FROM chart WHERE accno = '5810'));
 
  INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg');
-INSERT INTO defaults (setting_key, value) VALUES ('curr', 'USD:CAD:EUR';
+INSERT INTO defaults (setting_key, value) VALUES ('curr', 'USD:CAD:EUR');
 
 INSERT INTO tax (chart_id,rate,taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '2310'),'0.1',NULL);
 INSERT INTO tax (chart_id,rate,taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '2320'),'0.14',NULL);

Modified: branches/1.2/sql/Poland-chart.sql
===================================================================
--- branches/1.2/sql/Poland-chart.sql	2007-09-30 04:11:00 UTC (rev 1676)
+++ branches/1.2/sql/Poland-chart.sql	2007-09-30 04:51:45 UTC (rev 1677)
@@ -340,9 +340,14 @@
 
  INSERT INTO defaults (setting_key, value) VALUES ('fxgain_accno_id', (select id from chart where accno = '775060000'));
 
- INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (select id from chart where accno = '775140000'), invnumber = '1000', sonumber = '1000', ponumber = '1000', curr = 'PLN:USD:EUR');
+ INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (select id from chart where accno = '775140000'));
 
- INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg');
+INSERT INTO defaults (setting_key, value) VALUES ('invnumber', '1000');
+INSERT INTO defaults (setting_key, value) VALUES ('curr', 'PLN:USD:EUR');
+INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg');
+
+UPDATE defaults SET value = '1000' WHERE setting_key = 'sonumber';
+UPDATE defaults SET value = '1000' WHERE setting_key = 'ponumber';
 --
 
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.