[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2761] addons/1.3
- Subject: SF.net SVN: ledger-smb:[2761] addons/1.3
- From: ..hidden..
- Date: Tue, 25 Aug 2009 20:14:20 +0000
Revision: 2761
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2761&view=rev
Author: einhverfr
Date: 2009-08-25 20:14:20 +0000 (Tue, 25 Aug 2009)
Log Message:
-----------
Minor typos corrected
Modified Paths:
--------------
addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm
addons/1.3/base/trunk/sql/modules/Util.sql
Modified: addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm
===================================================================
--- addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm 2009-08-25 19:31:43 UTC (rev 2760)
+++ addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm 2009-08-25 20:14:20 UTC (rev 2761)
@@ -17,6 +17,8 @@
sub save {
my ($self) = @_;
my ($ref) = $self->exec_method(funcname => 'asset__save');
+ my ($ar) = $self->call_procedure(funcname => 'invoice__get_by_vendor_number');
+ $self->{invoice_id} = $ar->{id};
$self->merge($ref);
$self->{dbh}->commit || $self->error(
$self->{_locale}->text("Unable to save [_1] object",
Modified: addons/1.3/base/trunk/sql/modules/Util.sql
===================================================================
--- addons/1.3/base/trunk/sql/modules/Util.sql 2009-08-25 19:31:43 UTC (rev 2760)
+++ addons/1.3/base/trunk/sql/modules/Util.sql 2009-08-25 20:14:20 UTC (rev 2761)
@@ -8,7 +8,7 @@
SELECT * FROM warehouse order by description;
$$ language sql;
-CREATE OR REPLACE FUNCTION nvoice__get_by_vendor_number
+CREATE OR REPLACE FUNCTION invoice__get_by_vendor_number
(in_meta_nunber text, in_invoice_number text)
RETURNS ap AS
$$
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.