Skip to content

Commit

Permalink
Merge pull request #12 from leon-mbs/dev
Browse files Browse the repository at this point in the history
v1.3.5
  • Loading branch information
leon-mbs authored Jun 7, 2019
2 parents 175b876 + bea0d2a commit b7a56d1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 18 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
CHANGELOG
=========
### v1.3.5 (2019-06-05)

### v1.3.4 (2019-05-05)
* модуль интеграции с опенкарт

Expand Down
4 changes: 3 additions & 1 deletion www/app/entity/doc/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ protected function Cancel() {
$conn->StartTrans();
// если метод не переопределен в наследнике удаляем документ со всех движений
$conn->Execute("delete from entrylist where document_id =" . $this->document_id);

//удаляем освободившиеся стоки
$conn->Execute("delete from store_stock where stock_id not in (select stock_id from entrylist) ");

$conn->CompleteTrans();


Expand Down
1 change: 1 addition & 0 deletions www/app/entity/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ protected function beforeDelete() {
public function checkDelete() {

$conn = \ZDB\DB::getConnect();

$sql = " select count(*) from store_stock where item_id = {$this->item_id}";
$cnt = $conn->GetOne($sql);
return ($cnt > 0) ? false : true;
Expand Down
34 changes: 18 additions & 16 deletions www/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion www/templates/pages/userlogin.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</div>
<div class="w-100"></div>
<div class="col-4 " style="margin-top:200px;">
v1.3.4 © <a href="http://zippy.com.ua/">zippy.com.ua</a>
v1.3.5 © <a href="http://zippy.com.ua/">zippy.com.ua</a>
</div>
</div>

Expand Down

0 comments on commit b7a56d1

Please sign in to comment.