ソースを参照

[Backend] Commandes : méthode de calcul du prix TTC

refactoring
Guillaume Bourgeois 2年前
コミット
4fc3824168
2個のファイルの変更5行の追加3行の削除
  1. +3
    -1
      backend/views/distribution/index.php
  2. +2
    -2
      common/models/Order.php

+ 3
- 1
backend/views/distribution/index.php ファイルの表示

@@ -360,7 +360,9 @@ $this->setPageTitle('Distributions') ;
{{ order.pointSale.name }}
</template>
</td>
<td class="column-amount">{{ order.amount.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+'&nbsp;€' }}</td>
<td class="column-amount">
{{ order.amount.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+'&nbsp;€' }}
</td>
<td class="column-state-payment">
<div class="input-group">
<span class="label label-success input-group-addon" v-if="order.amount_paid == order.amount">payé</span>

+ 2
- 2
common/models/Order.php ファイルの表示

@@ -478,9 +478,9 @@ class Order extends ActiveRecordCommon

public function getAmountWithTax($type = self::AMOUNT_TOTAL, $format = false)
{
$amount = $this->amount_with_tax;
$amount = $this->amount + $this->getTotalVat($type);
if ($type == self::INVOICE_AMOUNT_TOTAL && $this->invoice_amount) {
$amount = $this->invoice_amount_with_tax;
$amount = $this->invoice_amount + $this->getTotalVat($type);
}

return $this->_getAmountGeneric($type, $amount, $format);

読み込み中…
キャンセル
保存