Skip to content

Commit

Permalink
fix serviceact
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-mbs committed Dec 6, 2024
1 parent 4584a7f commit 5a714ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions www/app/entity/doc/serviceact.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ protected function onState($state, $oldstate) {
}


if ($state == self::STATE_WP) {
$this->DoBalans() ;
}

if ($state == self::STATE_FINISHED) {

// $this->DoStore() ;
Expand Down
3 changes: 2 additions & 1 deletion www/templates/pages/doc/serviceact.html
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ <h5 class="modal-title">Новий контрагент</h5>
data.doc.total = parseVal( this.total )
data.doc.totaldisc = parseVal( this.totaldisc )
data.doc.payamount = parseVal(this.payamount)
data.doc.payed = parseVal(this.payed)
data.doc.bonus = parseVal(this.bonus)


Expand Down Expand Up @@ -772,7 +773,7 @@ <h5 class="modal-title">Новий контрагент</h5>
payamount:function(){

var tmp = fa( parseVal(this.total) - parseVal(this.totaldisc) - parseVal(this.bonus) )
this.payed = tmp

return tmp
} ,

Expand Down

0 comments on commit 5a714ac

Please sign in to comment.