Author: danydb
Date: 2012-06-29 00:55:19 +0200 (Fri, 29 Jun 2012)
New Revision: 5032
Modified:
phpcompta/trunk/include/class_stock_goods.php
Log:
sauve date + montant en absolu
Modified: phpcompta/trunk/include/class_stock_goods.php
===================================================================
--- phpcompta/trunk/include/class_stock_goods.php 2012-06-28 22:54:49 UTC
(rev 5031)
+++ phpcompta/trunk/include/class_stock_goods.php 2012-06-28 22:55:19 UTC
(rev 5032)
@@ -103,13 +103,14 @@
trim($p_array['sg_code' . $i])
!= '')
{
$a->sg_code = $p_array['sg_code' . $i];
- $a->sg_quantity =
$p_array['sg_quantity' . $i];
+ $a->sg_quantity =
abs($p_array['sg_quantity' . $i]);
$a->sg_type = ($p_array['sg_quantity' .
$i] > 0) ? 'd' : 'c';
$a->sg_comment = $p_array['p_motif'];
$a->tech_user = $_SESSION['g_user'];
$a->r_id = $p_array['p_depot'];
$a->sg_exercice = $exercice;
$a->c_id = $ch->c_id;
+ $a->sg_date=$p_array['p_date'];
$a->insert();
}
}
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev