fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6611] Property: Fix insert


From: Sigurd Nes
Subject: [Fmsystem-commits] [6611] Property: Fix insert
Date: Wed, 17 Nov 2010 14:12:01 +0000

Revision: 6611
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6611
Author:   sigurdne
Date:     2010-11-17 14:12:01 +0000 (Wed, 17 Nov 2010)
Log Message:
-----------
Property: Fix insert

Modified Paths:
--------------
    trunk/property/inc/class.soXport.inc.php

Modified: trunk/property/inc/class.soXport.inc.php
===================================================================
--- trunk/property/inc/class.soXport.inc.php    2010-11-17 13:46:45 UTC (rev 
6610)
+++ trunk/property/inc/class.soXport.inc.php    2010-11-17 14:12:01 UTC (rev 
6611)
@@ -252,9 +252,7 @@
                                                $fields['item_type'],
                                                $fields['item_id'],
                                                $fields['external_ref'],
-                                               isset($fields['currency']) && 
$fields['currency'] ? $fields['currency'] : 'NOK',
-                                               
$this->db->money_format($fields['belop']),
-                                               
$this->db->money_format($fields['godkjentbelop'])
+                                               isset($fields['currency']) && 
$fields['currency'] ? $fields['currency'] : 'NOK'
                                                );
 
                                        $bilagsnr       = 
(int)$fields['bilagsnr'];
@@ -265,7 +263,7 @@
                                        . " 
forfallsdato,regtid,artid,spvend_code,dimb,oppsynsmannid,saksbehandlerid,budsjettansvarligid,"
                                        . " 
fakturanr,spbudact_code,loc1,dima,dimd,mvakode,periode,merknad,oppsynsigndato,saksigndato,"
                                        . " 
budsjettsigndato,utbetalingsigndato,item_type,item_id,external_ref,currency,belop,godkjentbelop)"
-                                       . " VALUES ({$values})";
+                                       . " VALUES ({$values}," . 
$this->db->money_format($fields['belop']) . ',' . 
$this->db->money_format($fields['godkjentbelop']) .')';
 
                                        
$this->db->query($sql,__LINE__,__FILE__);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]