noalyss
Version-9
include
stock_inv.inc.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of NOALYSS.
5
*
6
* NOALYSS is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* NOALYSS is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with NOALYSS; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*/
20
21
// Copyright Author Dany De Bontridder dany@alchimerys.be
22
23
/**
24
* @file
25
* @brief Inventory : add manuel change
26
*
27
*/
28
if
( ! defined (
'ALLOWED'
) ) die(
'Appel direct ne sont pas permis'
);
29
global
$cn
;
30
31
$inv
=
new
Stock_Goods
(
$cn
);
32
$array
=array();
33
if
( isset (
$_POST
[
'save'
]))
34
{
35
try
36
{
37
$inv
->record_save(
$_POST
);
38
echo
h2info
(_(
"Opération sauvée"
));
39
$inv
->input(
$_POST
,
true
);
40
41
}
catch
(Exception
$e
)
42
{
43
alert
(
$e
->getMessage());
44
$array
=
$_POST
;
45
}
46
}
else
if
( isset (
$_GET
[
'reprise_frm'
]) )
47
{
48
49
$array
=
$inv
->take_last_inventory(
$_GET
);
50
}
51
echo
$inv
->input(
$array
);
52
53
?>
h2info
h2info($p_string)
Definition:
ac_common.php:63
alert
alert($p_msg, $buffer=false)
alert in javascript
Definition:
ac_common.php:738
$_GET
$_GET['qcode']
Definition:
category_followup.inc.php:53
Stock_Goods
Manage the goods.
Definition:
stock_goods.class.php:37
$_POST
$_POST['ac']
Definition:
do.php:310
$e
$e
Definition:
result_cat_card_summary.php:26
$cn
global $cn
Definition:
stock_inv.inc.php:29
$inv
$inv
Definition:
stock_inv.inc.php:31
$array
$array
Definition:
stock_inv.inc.php:32