@appcorp/stellar-solutions-invoice-module 0.1.2 → 0.1.4
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.
|
@@ -385,9 +385,9 @@ exports.staticProductSection = (_d = {},
|
|
|
385
385
|
],
|
|
386
386
|
_d);
|
|
387
387
|
exports.INVOICE_API_ROUTES = {
|
|
388
|
-
INVOICES: '/api/invoices',
|
|
389
|
-
INVOICE: '/api/invoice',
|
|
390
|
-
INVOICE_BY_ID: '/api/invoice/invoice-by-id',
|
|
388
|
+
INVOICES: '/api/quotes-invoices',
|
|
389
|
+
INVOICE: '/api/quote-invoice',
|
|
390
|
+
INVOICE_BY_ID: '/api/quote-invoice/quote-invoice-by-id',
|
|
391
391
|
};
|
|
392
392
|
exports.tableBodyCols = [
|
|
393
393
|
{
|
|
@@ -10,6 +10,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
13
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
23
|
exports.initialInvoiceState = void 0;
|
|
15
24
|
exports.invoiceReducer = invoiceReducer;
|
|
@@ -116,11 +125,8 @@ function invoiceReducer(state, action) {
|
|
|
116
125
|
// };
|
|
117
126
|
case actions_1.INVOICE_ACTION_TYPES.SET_PAGE_LIMIT:
|
|
118
127
|
return __assign(__assign({}, state), { pageLimit: action.payload.pageLimit });
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
// ...state,
|
|
122
|
-
// products: [...action.payload.products],
|
|
123
|
-
// };
|
|
128
|
+
case actions_1.INVOICE_ACTION_TYPES.SET_INVOICES:
|
|
129
|
+
return __assign(__assign({}, state), { invoices: __spreadArray([], action.payload.invoices, true) });
|
|
124
130
|
case actions_1.INVOICE_ACTION_TYPES.SET_SEARCH_QUERY:
|
|
125
131
|
return __assign(__assign({}, state), { searchQuery: action.payload.searchQuery });
|
|
126
132
|
case actions_1.INVOICE_ACTION_TYPES.SET_FORM:
|