claim detail now adds a sale with its total quantity
gitea/salix/test This commit looks good
Details
gitea/salix/test This commit looks good
Details
This commit is contained in:
parent
dfe1a68d35
commit
66d94dde3a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue