[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[4340] trunk
- Subject: SF.net SVN: ledger-smb:[4340] trunk
- From: ..hidden..
- Date: Mon, 20 Feb 2012 08:55:56 +0000
Revision: 4340
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4340&view=rev
Author: einhverfr
Date: 2012-02-20 08:55:56 +0000 (Mon, 20 Feb 2012)
Log Message:
-----------
Now it is possible to add business reporting classes through the front-end
Modified Paths:
--------------
trunk/LedgerSMB/DBObject/Business_Unit_Class.pm
trunk/sql/Pg-database.sql
trunk/sql/modules/Business_Unit.sql
Modified: trunk/LedgerSMB/DBObject/Business_Unit_Class.pm
===================================================================
--- trunk/LedgerSMB/DBObject/Business_Unit_Class.pm 2012-02-20 08:42:25 UTC (rev 4339)
+++ trunk/LedgerSMB/DBObject/Business_Unit_Class.pm 2012-02-20 08:55:56 UTC (rev 4340)
@@ -27,7 +27,7 @@
=cut
-has 'id' => (is => 'rw', isa => 'Int');
+has 'id' => (is => 'rw', isa => 'Maybe[Int]');
=item label
Modified: trunk/sql/Pg-database.sql
===================================================================
--- trunk/sql/Pg-database.sql 2012-02-20 08:42:25 UTC (rev 4339)
+++ trunk/sql/Pg-database.sql 2012-02-20 08:55:56 UTC (rev 4340)
@@ -1773,7 +1773,7 @@
--
CREATE TABLE business_unit_class (
- id int not null unique,
+ id serial not null unique,
label text primary key,
active bool not null default false,
non_accounting bool not null default false,
Modified: trunk/sql/modules/Business_Unit.sql
===================================================================
--- trunk/sql/modules/Business_Unit.sql 2012-02-20 08:42:25 UTC (rev 4339)
+++ trunk/sql/modules/Business_Unit.sql 2012-02-20 08:55:56 UTC (rev 4340)
@@ -83,7 +83,7 @@
the business unit of in_id. $$;
CREATE OR REPLACE FUNCTION business_unit_class__save
-(in_id int, in_label text, in_active bool, in_non_accounting, in_ordering int)
+(in_id int, in_label text, in_active bool, in_non_accounting bool, in_ordering int)
RETURNS business_unit_class AS
$$
DECLARE retval business_unit_class;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.