{{ order.pointSale.name }} | {{ order.pointSale.name }} | ||||
</template> | </template> | ||||
</td> | </td> | ||||
<td class="column-amount">{{ order.amount.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }}</td> | |||||
<td class="column-amount"> | |||||
{{ order.amount.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }} | |||||
</td> | |||||
<td class="column-state-payment"> | <td class="column-state-payment"> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<span class="label label-success input-group-addon" v-if="order.amount_paid == order.amount">payé</span> | <span class="label label-success input-group-addon" v-if="order.amount_paid == order.amount">payé</span> |
public function getAmountWithTax($type = self::AMOUNT_TOTAL, $format = false) | 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) { | 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); | return $this->_getAmountGeneric($type, $amount, $format); |