I am working on an invoicing app, and how do I post products to the quote products table, by iteration as an array. As you may know the invoice has an indefinite number of products attached to it each time.
$http({
method: 'POST',
url: serverDomain + '/classes/fs_quote',
data: {
price: $scope.price,
name: $scope.name,
qty: $scope.qty
},
headers: configParams
}).then(function success(response) {
console.log(response.data)
}, function error(response) {
console.log(response.data);
});
Aucun commentaire:
Enregistrer un commentaire