GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
216cbbc
)
Prodavac uklada datum prodeje
author
Thomas Mudrunka
<tomas@mudrunka.cz>
Wed, 11 Apr 2012 11:37:20 +0000
(13:37 +0200)
committer
Thomas Mudrunka
<tomas@mudrunka.cz>
Wed, 11 Apr 2012 11:37:20 +0000
(13:37 +0200)
assistants/sell.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/assistants/sell.inc.php
b/assistants/sell.inc.php
index 33b08e57cb62e12cca50f7c6962896469ad1866f..e79e234dec83eccc519a8b0c9c9515fed90a19d5 100644
(file)
--- a/
assistants/sell.inc.php
+++ b/
assistants/sell.inc.php
@@
-10,7
+10,7
@@
if(!isset($item_customer)) $item_customer = '';
if(!isset($hide_cols_additional)) $hide_cols_additional = array();
$button_label = strtoupper($ASSISTANT);
if(!isset($hide_cols_additional)) $hide_cols_additional = array();
$button_label = strtoupper($ASSISTANT);
-$hide_cols_common = array_merge($hide_cols_additional,array('status_id','item_price_in','item_serial','item_quantity','model_id','vendor_id','room_id'));
+$hide_cols_common = array_merge($hide_cols_additional,array('status_id','item_price_in','item_serial','item_quantity','model_id','vendor_id','room_id'
,'item_date_bought'
));
switch($SUBPATH[0]) {
default: case 1:
switch($SUBPATH[0]) {
default: case 1:
@@
-38,10
+38,11
@@
switch($SUBPATH[0]) {
$current[$item_id]['status_id'] = $status_id;
$current[$item_id]['item_customer'] = $item_customer;
$item_quantity = 1;
$current[$item_id]['status_id'] = $status_id;
$current[$item_id]['item_customer'] = $item_customer;
$item_quantity = 1;
- $current[$item_id]['item_price_out'] = $model_price_out;
+ $current[$item_id]['item_price_out'] = $model_price_out;
+ $current[$item_id]['item_date_sold'] = date('Y-m-d');
$hide_cols = $hide_cols_common;
} else {
$hide_cols = $hide_cols_common;
} else {
- $hide_cols = array_merge($hide_cols_common,array('item_price_out','item_note','item_customer'));
+ $hide_cols = array_merge($hide_cols_common,array('item_price_out','item_note','item_customer'
,'item_date_sold'
));
$quantity_removed = $_GET['quantity'];
if($quantity_removed <= 0) $this->post_redirect_get("$URL_INTERNAL/1","Can't dispose non-possitive amount of items!");
if(!is_numeric($quantity_removed)) $quantity_removed = 1;
$quantity_removed = $_GET['quantity'];
if($quantity_removed <= 0) $this->post_redirect_get("$URL_INTERNAL/1","Can't dispose non-possitive amount of items!");
if(!is_numeric($quantity_removed)) $quantity_removed = 1;
@@
-63,6
+64,7
@@
switch($SUBPATH[0]) {
$forked_item[$item_id]['item_price_in'] = $quantity_removed * $model_price_in;
$forked_item[$item_id]['item_price_out'] = $quantity_removed * $model_price_out;
$forked_item[$item_id]['item_customer'] = $item_customer;
$forked_item[$item_id]['item_price_in'] = $quantity_removed * $model_price_in;
$forked_item[$item_id]['item_price_out'] = $quantity_removed * $model_price_out;
$forked_item[$item_id]['item_customer'] = $item_customer;
+ $forked_item[$item_id]['item_date_sold'] = date('Y-m-d');
$forked_hide_cols = array_merge($hide_cols_common,array('item_price_out'));
}
$forked_hide_cols = array_merge($hide_cols_common,array('item_price_out'));
}
This page took
0.117863 seconds
and
4
git commands to generate.