@appcorp/stellar-solutions-invoice-module 0.1.35 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -198,9 +198,8 @@ var useInvoiceState = function () {
|
|
|
198
198
|
delete item.quoteInvoiceId;
|
|
199
199
|
return (__assign(__assign({}, item), { rowTotal: Number(item.quantity) * Number(item.price) }));
|
|
200
200
|
});
|
|
201
|
-
var updatedProducts = __spreadArray([], data.products, true).map(function (item) { return (__assign({}, item)); });
|
|
201
|
+
var updatedProducts = __spreadArray([], data.products, true).map(function (item) { return (__assign(__assign({}, item), { price: item.product.salePrice, id: item.productId, quantity: item.quantity, rowTotal: parseFloat(item.product.salePrice) * parseInt(item.quantity) })); });
|
|
202
202
|
var updatedData = __assign(__assign({}, data), { mode: 'Edit', companyId: data.company.id, services: __spreadArray([], updatedServices, true), products: __spreadArray([], updatedProducts, true) });
|
|
203
|
-
console.log('_>>', updatedData);
|
|
204
203
|
if ((_b = updatedData === null || updatedData === void 0 ? void 0 : updatedData.company) === null || _b === void 0 ? void 0 : _b.name) {
|
|
205
204
|
dispatch({
|
|
206
205
|
type: actions_1.INVOICE_ACTION_TYPES.SET_FORM_TO_RENDER,
|