File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,14 @@ function drawCollectorAddItemConfirmation(){
49
49
50
50
}
51
51
52
-
53
- function assembleItemData ($ price ,){
52
+
53
+ /** maps new item data for insertion
54
+ *
55
+ * @param mixed $price from pricing algorithm
56
+ * @param mixed $days_to_minimum_price set in contants/constants.all.php
57
+ * @return void
58
+ */
59
+ function assembleItemData ($ price , $ days_to_minimum_price ){
54
60
return array (
55
61
"i_name " => $ _POST ["title " ],
56
62
"i_description " => $ _POST ["description " ],
@@ -60,7 +66,7 @@ function assembleItemData($price,){
60
66
"i_serialnum " => $ _POST ["serial " ],
61
67
"original_price " => $ _POST ["original_price " ],
62
68
"original_purchase_date " => $ _POST ["original_purchase_date " ],
63
- "days_to_minimum_price " => 10
69
+ "days_to_minimum_price " => $ days_to_minimum_price
64
70
);
65
71
}
66
72
You can’t perform that action at this time.
0 commit comments