Finish version/v.0.0.89
This commit is contained in:
commit
7ff496c454
@ -208,14 +208,9 @@ class InventoryItemController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// if (isset($prev)) {
|
|
||||||
// return $this->redirect($prev);
|
|
||||||
// } else {
|
|
||||||
// return $this->redirect(['index', 'id' => $inventory->id_inventory]);
|
|
||||||
// }
|
|
||||||
|
|
||||||
$next = InventoryItem::findNextItemAlphabetical($model->id_inventory_item);
|
$next = InventoryItem::findNextItemAlphabetical($model->id_inventory_item);
|
||||||
if ( isset($next)){
|
if ( isset($_POST['_next']) && isset($next)){
|
||||||
return $this->redirect(['inventory-item/update', 'id' => $next]);
|
return $this->redirect(['inventory-item/update', 'id' => $next]);
|
||||||
}else{
|
}else{
|
||||||
return $this->redirect(['index', 'id' => $inventory->id_inventory]);
|
return $this->redirect(['index', 'id' => $inventory->id_inventory]);
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
-0.0.89
|
||||||
|
- fix TransferPayout overridePaymentMethod array_search returns 0 for first element
|
||||||
|
which false false...
|
||||||
|
-0.0.88
|
||||||
|
- fix inventory-time edit save/next and save button targets
|
||||||
-0.0.87
|
-0.0.87
|
||||||
- add console command fix ticket installment request target time
|
- add console command fix ticket installment request target time
|
||||||
-0.0.86
|
-0.0.86
|
||||||
|
|||||||
@ -96,7 +96,9 @@ class TransferPayout extends \yii\base\Object{
|
|||||||
}
|
}
|
||||||
|
|
||||||
\Yii::info("fizetési mód: " . $this->overridePaymentMethod);
|
\Yii::info("fizetési mód: " . $this->overridePaymentMethod);
|
||||||
if ( isset($this->overridePaymentMethod ) && array_search($this->overridePaymentMethod, array_keys( Transfer::paymentMethods()) ) ){
|
|
||||||
|
$arr = Transfer::paymentMethods();
|
||||||
|
if ( isset($this->overridePaymentMethod ) && array_key_exists($this->overridePaymentMethod, $arr) ){
|
||||||
\Yii::info("fizetési mód beállítva: " .$this->overridePaymentMethod );
|
\Yii::info("fizetési mód beállítva: " .$this->overridePaymentMethod );
|
||||||
$transfer->payment_method = $this->overridePaymentMethod;
|
$transfer->payment_method = $this->overridePaymentMethod;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@ return [
|
|||||||
'supportEmail' => 'rocho02@gmail.com',
|
'supportEmail' => 'rocho02@gmail.com',
|
||||||
'infoEmail' => 'info@rocho-net.hu',
|
'infoEmail' => 'info@rocho-net.hu',
|
||||||
'user.passwordResetTokenExpire' => 3600,
|
'user.passwordResetTokenExpire' => 3600,
|
||||||
'version' => 'v0.0.87',
|
'version' => 'v0.0.89',
|
||||||
'company' => 'movar',//gyor
|
'company' => 'movar',//gyor
|
||||||
'company_name' => "Freimann Kft.",
|
'company_name' => "Freimann Kft.",
|
||||||
'product_visiblity' => 'account',// on reception which products to display. account or global
|
'product_visiblity' => 'account',// on reception which products to display. account or global
|
||||||
|
|||||||
@ -3,7 +3,6 @@ namespace console\controllers;
|
|||||||
|
|
||||||
use common\models\Inventory;
|
use common\models\Inventory;
|
||||||
use common\models\InventoryItem;
|
use common\models\InventoryItem;
|
||||||
use common\models\Product;
|
|
||||||
use common\models\Transfer;
|
use common\models\Transfer;
|
||||||
use yii\console\Controller;
|
use yii\console\Controller;
|
||||||
use yii\db\Expression;
|
use yii\db\Expression;
|
||||||
@ -61,11 +60,8 @@ class InventoryConsoleController extends Controller{
|
|||||||
|
|
||||||
$item->save();
|
$item->save();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user