claim detail now adds a sale with its total quantity
gitea/salix/test This commit looks good Details

This commit is contained in:
Gerard 2019-04-01 09:03:05 +02:00
parent dfe1a68d35
commit 66d94dde3a
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Controller {
addClaimedSale(index) {
let sale = this.salesToClaim[index];
let saleToAdd = {saleFk: sale.saleFk, claimFk: this.claim.id, quantity: 0};
let saleToAdd = {saleFk: sale.saleFk, claimFk: this.claim.id, quantity: sale.quantity};
let query = `claim/api/ClaimBeginnings/`;
this.$http.post(query, saleToAdd).then(() => {
this.$.addSales.hide();