/[papo]/papo/sql/initialization/01-tax.sql
ViewVC logotype

Diff of /papo/sql/initialization/01-tax.sql

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mhepp, Mon Apr 14 20:17:39 2003 UTC revision 1.4 by mhepp, Tue Jul 8 14:38:15 2003 UTC
# Line 1  Line 1 
1  insert into tax (id) values (1);  insert into tax (id) values (1);
2  insert into _tax_data (id,_table,name,_start_t,graft) values (1,1,'IVA',current_timestamp,'def graft(ourIVACond, alienIVACond, amount, taxPercent):\n\tif ourIVACond == 1 and alienIVACond == 2:\n\t\treturn amount * taxPercent / 100 + (amount * taxPercent / 100) / 2\n\telse:\n\t\treturn amount * taxPercent / 100\n');  insert into _tax_data (id,_table,name,_start_t,graft) values (1,1,'IVA',current_timestamp,'def graft(ourIVACond, alienIVACond, amount, taxPercent):\n\treturn amount * taxPercent / 100\n');
3    insert into tax (id) values (2);
4    insert into _tax_data (id,_table,name,_start_t,graft) values (2,2,'IVA RNI',current_timestamp,'def graft(ourIVACond, alienIVACond, amount, taxPercent):\n\tif ourIVACond == 1 and alienIVACond == 2:\n\t\treturn amount * taxPercent / 100 / 2 \n\telse:\n\t\treturn 0.00 \n');

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26