refs #4764 ticketSerivce refund add
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
d01584bfb3
commit
12acda0b1c
|
@ -103,7 +103,7 @@ module.exports = Self => {
|
|||
const [firstTicketId] = ticketsIds;
|
||||
|
||||
// eslint-disable-next-line max-len
|
||||
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, refoundZoneId, myOptions);
|
||||
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, refoundZoneId, withWarehouse, myOptions);
|
||||
}
|
||||
|
||||
if (servicesIds && servicesIds.length > 0) {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
vn-acl="invoicing, claimManager, salesAssistant"
|
||||
vn-acl-action="remove">
|
||||
</vn-button>
|
||||
{{ watcher.dataChanged() }}
|
||||
{{ $ctrl.checkeds }}
|
||||
</vn-button-bar>
|
||||
<vn-horizontal ng-repeat="service in $ctrl.services">
|
||||
<vn-check
|
||||
|
|
|
@ -53,11 +53,9 @@ class Controller extends Section {
|
|||
}
|
||||
|
||||
createRefund() {
|
||||
const services = this.services;
|
||||
if (!services) return;
|
||||
const servicesIds = services.map(service => service.id);
|
||||
if (!this.checkeds.length) return;
|
||||
|
||||
const params = {servicesIds: servicesIds, withWarehouse: false};
|
||||
const params = {servicesIds: this.checkeds, withWarehouse: false};
|
||||
const query = 'Sales/refund';
|
||||
this.$http.post(query, params).then(res => {
|
||||
const refundTicket = res.data;
|
||||
|
@ -69,6 +67,8 @@ class Controller extends Section {
|
|||
}
|
||||
|
||||
addChecked(id) {
|
||||
if (this.checkeds.includes(id))
|
||||
return this.checkeds = this.checkeds.filter(check => check != id);
|
||||
this.checkeds.push(id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue