[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4749 - phpcompta/tags/rel560_syndic/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4749 - phpcompta/tags/rel560_syndic/include |
Date: |
Sat, 4 Feb 2012 18:53:23 +0100 (CET) |
Author: danydb
Date: 2012-02-04 18:53:23 +0100 (Sat, 04 Feb 2012)
New Revision: 4749
Modified:
phpcompta/tags/rel560_syndic/include/class_acc_operation.php
Log:
periode is computed
Modified: phpcompta/tags/rel560_syndic/include/class_acc_operation.php
===================================================================
--- phpcompta/tags/rel560_syndic/include/class_acc_operation.php
2012-02-04 17:47:00 UTC (rev 4748)
+++ phpcompta/tags/rel560_syndic/include/class_acc_operation.php
2012-02-04 17:53:23 UTC (rev 4749)
@@ -93,6 +93,10 @@
{
$this->type=($this->type=='d')?'c':'d';
}
+
+ if ($this->periode == 0 || strlen(trim($this->periode))==0)
+ $this->periode=$this->db->get_value('select
find_periode($1)',array($this->date));
+
$this->amount=abs($this->amount);
$debit=($this->type=='c')?'false':'true';
$this->desc=(isset($this->desc))?$this->desc:'';
@@ -194,7 +198,8 @@
echo "Erreur : balance incorrecte :diff = $diff";
return false;
}
-
+ if ($this->periode == 0 || strlen(trim($this->periode))==0)
+ $this->periode=$this->db->get_value('select
find_periode($1)',array($this->date));
$echeance=( isset( $this->echeance) && strlen(trim($this->echeance))
!= 0)?$this->echeance:null;
if ( ! isset($this->mt) )
{
@@ -468,7 +473,7 @@
}
/**
address@hidden retrieve data from jrnx and jrn
- address@hidden return an object
+ address@hidden return an object
address@hidden
address@hidden
@code
@@ -562,7 +567,7 @@
/**
address@hidden this class manage data from the JRNX and JRN
* table
- address@hidden Data member are the column of the table
+ address@hidden Data member are the column of the table
*/
class Acc_Misc extends Acc_Detail
{
@@ -588,7 +593,7 @@
/**
address@hidden this class manage data from the QUANT_SOLD
* table
- address@hidden Data member are the column of the table
+ address@hidden Data member are the column of the table
*/
class Acc_Sold extends Acc_Detail
{
@@ -611,8 +616,8 @@
/**
address@hidden this class manage data from the QUANT_PURCHASE
* table
- address@hidden Data member are the column of the table
-
+ address@hidden Data member are the column of the table
+
*/
class Acc_Purchase extends Acc_Detail
{
@@ -636,7 +641,7 @@
/**
address@hidden this class manage data from the QUANT_FIN
* table
- address@hidden Data member are the column of the table
+ address@hidden Data member are the column of the table
*/
class Acc_Fin extends Acc_Detail
{
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4749 - phpcompta/tags/rel560_syndic/include,
phpcompta-dev <=