mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
Support Maximum Allowable Reimbursement (#1110)
* Support Maximum Allowable Reimbursement * remove console Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
c908591f76
commit
8e36fb006c
@ -65,8 +65,10 @@
|
|||||||
{{ selectionTypeRefund.name }}
|
{{ selectionTypeRefund.name }}
|
||||||
</span>
|
</span>
|
||||||
<span style="float: right;text-align: end">
|
<span style="float: right;text-align: end">
|
||||||
<b>{{ $t('form.pos.collect.overdrawnInvoice.dailyLimit') }}: {{ formatPrice(selectionTypeRefund.maximum_refund_allowed, currency.iSOCode) }} | {{ formatPrice(0, isoCode) }}<br> {{ $t('form.pos.collect.overdrawnInvoice.available') }}: {{ formatPrice(selectionTypeRefund.maximum_daily_refund_allowed, currency.iSOCode) }} | {{ formatPrice(0, isoCode) }}</b> <br>
|
<b>
|
||||||
<b>{{ $t('form.pos.collect.overdrawnInvoice.customerLimit') }}: {{ formatPrice(selectionTypeRefund.maximum_refund_allowed, currency.iSOCode) }} | {{ formatPrice(0, isoCode) }} </b>
|
{{ $t('form.pos.collect.overdrawnInvoice.dailyLimit') }}: {{ formatPrice(maximumDailyRefundAllowed, refundReferenceCurrency) }}
|
||||||
|
{{ $t('form.pos.collect.overdrawnInvoice.customerLimit') }}: {{ formatPrice(maximumRefundAllowed, refundReferenceCurrency) }}
|
||||||
|
</b>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
@ -266,14 +268,29 @@ export default {
|
|||||||
caseOrder() {
|
caseOrder() {
|
||||||
return this.$store.state['pointOfSales/payments/index'].dialogoInvoce.type
|
return this.$store.state['pointOfSales/payments/index'].dialogoInvoce.type
|
||||||
},
|
},
|
||||||
isoCode() {
|
maximumRefundAllowed() {
|
||||||
return this.$store.getters.posAttributes.currentPointOfSales.displayCurrency.iso_code
|
if (!this.isEmptyValue(this.selectionTypeRefund) && !this.isEmptyValue(this.selectionTypeRefund.maximum_refund_allowed) && this.selectionTypeRefund.maximum_refund_allowed > 0) {
|
||||||
|
return this.selectionTypeRefund.maximum_refund_allowed
|
||||||
|
}
|
||||||
|
return this.$store.getters.posAttributes.currentPointOfSales.maximumRefundAllowed
|
||||||
},
|
},
|
||||||
maximumDailyRefundAllowed() {
|
maximumDailyRefundAllowed() {
|
||||||
|
if (!this.isEmptyValue(this.selectionTypeRefund) && !this.isEmptyValue(this.selectionTypeRefund.maximum_daily_refund_allowed) && this.selectionTypeRefund.maximum_daily_refund_allowed > 0) {
|
||||||
|
return this.selectionTypeRefund.maximum_daily_refund_allowed
|
||||||
|
}
|
||||||
return this.$store.getters.posAttributes.currentPointOfSales.maximumDailyRefundAllowed
|
return this.$store.getters.posAttributes.currentPointOfSales.maximumDailyRefundAllowed
|
||||||
},
|
},
|
||||||
maximumRefundAllowed() {
|
refundReferenceCurrency() {
|
||||||
return this.$store.getters.posAttributes.currentPointOfSales.maximumRefundAllowed
|
if (!this.isEmptyValue(this.selectionTypeRefund) && !this.isEmptyValue(this.selectionTypeRefund.refund_reference_currency)) {
|
||||||
|
return this.selectionTypeRefund.refund_reference_currency.iso_code
|
||||||
|
}
|
||||||
|
if (this.isEmptyValue(this.$store.getters.posAttributes.currentPointOfSales.refundReferenceCurrency.iso_code)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
return this.$store.getters.posAttributes.currentPointOfSales.refundReferenceCurrency.iso_code
|
||||||
|
},
|
||||||
|
isoCode() {
|
||||||
|
return this.$store.getters.posAttributes.currentPointOfSales.displayCurrency.iso_code
|
||||||
},
|
},
|
||||||
displayeCurrency() {
|
displayeCurrency() {
|
||||||
const tenderType = this.$store.getters.getValueOfField({
|
const tenderType = this.$store.getters.getValueOfField({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user