@things-factory/sales-base 3.8.25 → 3.8.29
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.
- package/dist-server/entities/index.js +6 -3
- package/dist-server/entities/index.js.map +1 -1
- package/dist-server/entities/invoice-product.js +94 -0
- package/dist-server/entities/invoice-product.js.map +1 -0
- package/dist-server/entities/invoice.js +163 -24
- package/dist-server/entities/invoice.js.map +1 -1
- package/dist-server/entities/release-good.js +3 -1
- package/dist-server/entities/release-good.js.map +1 -1
- package/dist-server/graphql/resolvers/index.js +3 -0
- package/dist-server/graphql/resolvers/index.js.map +1 -1
- package/dist-server/graphql/resolvers/invoice/create-invoice.js +17 -2
- package/dist-server/graphql/resolvers/invoice/create-invoice.js.map +1 -1
- package/dist-server/graphql/resolvers/invoice-product/create-invoice-product.js +12 -0
- package/dist-server/graphql/resolvers/invoice-product/create-invoice-product.js.map +1 -0
- package/dist-server/graphql/resolvers/invoice-product/delete-invoice-product.js +13 -0
- package/dist-server/graphql/resolvers/invoice-product/delete-invoice-product.js.map +1 -0
- package/dist-server/graphql/resolvers/invoice-product/delete-invoice-products.js +16 -0
- package/dist-server/graphql/resolvers/invoice-product/delete-invoice-products.js.map +1 -0
- package/dist-server/graphql/resolvers/invoice-product/index.js +12 -0
- package/dist-server/graphql/resolvers/invoice-product/index.js.map +1 -0
- package/dist-server/graphql/resolvers/invoice-product/invoice-product-query.js +33 -0
- package/dist-server/graphql/resolvers/invoice-product/invoice-product-query.js.map +1 -0
- package/dist-server/graphql/resolvers/invoice-product/update-invoice-product.js +16 -0
- package/dist-server/graphql/resolvers/invoice-product/update-invoice-product.js.map +1 -0
- package/dist-server/graphql/resolvers/invoice-product/update-multiple-invoice-product.js +31 -0
- package/dist-server/graphql/resolvers/invoice-product/update-multiple-invoice-product.js.map +1 -0
- package/dist-server/graphql/resolvers/purchase-order/create-purchase-order.js +5 -5
- package/dist-server/graphql/resolvers/purchase-order/create-purchase-order.js.map +1 -1
- package/dist-server/graphql/resolvers/purchase-order/update-purchase-order.js +12 -23
- package/dist-server/graphql/resolvers/purchase-order/update-purchase-order.js.map +1 -1
- package/dist-server/graphql/resolvers/purchase-order/upsert-purchase-order.js +5 -7
- package/dist-server/graphql/resolvers/purchase-order/upsert-purchase-order.js.map +1 -1
- package/dist-server/graphql/types/index.js +4 -0
- package/dist-server/graphql/types/index.js.map +1 -1
- package/dist-server/graphql/types/invoice/invoice-patch.js +38 -5
- package/dist-server/graphql/types/invoice/invoice-patch.js.map +1 -1
- package/dist-server/graphql/types/invoice/invoice.js +38 -4
- package/dist-server/graphql/types/invoice/invoice.js.map +1 -1
- package/dist-server/graphql/types/invoice/new-invoice.js +42 -8
- package/dist-server/graphql/types/invoice/new-invoice.js.map +1 -1
- package/dist-server/graphql/types/invoice-product/index.js +21 -0
- package/dist-server/graphql/types/invoice-product/index.js.map +1 -0
- package/dist-server/graphql/types/invoice-product/invoice-product-list.js +14 -0
- package/dist-server/graphql/types/invoice-product/invoice-product-list.js.map +1 -0
- package/dist-server/graphql/types/invoice-product/invoice-product-patch.js +21 -0
- package/dist-server/graphql/types/invoice-product/invoice-product-patch.js.map +1 -0
- package/dist-server/graphql/types/invoice-product/invoice-product.js +27 -0
- package/dist-server/graphql/types/invoice-product/invoice-product.js.map +1 -0
- package/dist-server/graphql/types/invoice-product/new-invoice-product.js +21 -0
- package/dist-server/graphql/types/invoice-product/new-invoice-product.js.map +1 -0
- package/dist-server/graphql/types/invoice-product/product-input.js +13 -0
- package/dist-server/graphql/types/invoice-product/product-input.js.map +1 -0
- package/dist-server/graphql/types/purchase-order/index.js +1 -1
- package/dist-server/graphql/types/purchase-order/index.js.map +1 -1
- package/dist-server/utils/order-no-generator.js +7 -0
- package/dist-server/utils/order-no-generator.js.map +1 -1
- package/package.json +6 -6
- package/server/entities/index.ts +6 -3
- package/server/entities/invoice-product.ts +64 -0
- package/server/entities/invoice.ts +127 -19
- package/server/entities/release-good.ts +2 -0
- package/server/graphql/resolvers/index.ts +3 -0
- package/server/graphql/resolvers/invoice/create-invoice.ts +43 -6
- package/server/graphql/resolvers/invoice-product/create-invoice-product.ts +16 -0
- package/server/graphql/resolvers/invoice-product/delete-invoice-product.ts +13 -0
- package/server/graphql/resolvers/invoice-product/delete-invoice-products.ts +16 -0
- package/server/graphql/resolvers/invoice-product/index.ts +18 -0
- package/server/graphql/resolvers/invoice-product/invoice-product-query.ts +38 -0
- package/server/graphql/resolvers/invoice-product/update-invoice-product.ts +19 -0
- package/server/graphql/resolvers/invoice-product/update-multiple-invoice-product.ts +46 -0
- package/server/graphql/resolvers/purchase-order/create-purchase-order.ts +33 -32
- package/server/graphql/resolvers/purchase-order/update-purchase-order.ts +10 -8
- package/server/graphql/resolvers/purchase-order/upsert-purchase-order.ts +21 -32
- package/server/graphql/types/index.ts +4 -0
- package/server/graphql/types/invoice/invoice-patch.ts +38 -5
- package/server/graphql/types/invoice/invoice.ts +38 -4
- package/server/graphql/types/invoice/new-invoice.ts +42 -8
- package/server/graphql/types/invoice-product/index.ts +20 -0
- package/server/graphql/types/invoice-product/invoice-product-list.ts +8 -0
- package/server/graphql/types/invoice-product/invoice-product-patch.ts +15 -0
- package/server/graphql/types/invoice-product/invoice-product.ts +21 -0
- package/server/graphql/types/invoice-product/new-invoice-product.ts +15 -0
- package/server/graphql/types/invoice-product/product-input.ts +7 -0
- package/server/graphql/types/purchase-order/index.ts +1 -4
- package/server/utils/order-no-generator.ts +11 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateInvoiceProduct = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
exports.updateInvoiceProduct = {
|
|
7
|
+
async updateInvoiceProduct(_, { name, patch }, context) {
|
|
8
|
+
const { domain, user } = context.state;
|
|
9
|
+
const repository = (0, typeorm_1.getRepository)(entities_1.InvoiceProduct);
|
|
10
|
+
const invoiceProduct = await repository.findOne({
|
|
11
|
+
where: { domain, name }
|
|
12
|
+
});
|
|
13
|
+
return await repository.save(Object.assign(Object.assign(Object.assign({}, invoiceProduct), patch), { updater: user }));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=update-invoice-product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-invoice-product.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/invoice-product/update-invoice-product.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAkD;AAErC,QAAA,oBAAoB,GAAG;IAClC,KAAK,CAAC,oBAAoB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAY;QAC9D,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,yBAAc,CAAC,CAAA;QAChD,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YAC9C,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACxB,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,cAAc,GACd,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateMultipleInvoiceProduct = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
exports.updateMultipleInvoiceProduct = {
|
|
7
|
+
async updateMultipleInvoiceProduct(_, { patches }, context) {
|
|
8
|
+
const { domain, user } = context.state;
|
|
9
|
+
let results = [];
|
|
10
|
+
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
11
|
+
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
12
|
+
const invoiceProductRepo = (0, typeorm_1.getRepository)(entities_1.InvoiceProduct);
|
|
13
|
+
if (_createRecords.length > 0) {
|
|
14
|
+
for (let i = 0; i < _createRecords.length; i++) {
|
|
15
|
+
const newRecord = _createRecords[i];
|
|
16
|
+
const result = await invoiceProductRepo.save(Object.assign(Object.assign({}, newRecord), { domain: domain, creator: user, updater: user }));
|
|
17
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (_updateRecords.length > 0) {
|
|
21
|
+
for (let i = 0; i < _updateRecords.length; i++) {
|
|
22
|
+
const newRecord = _updateRecords[i];
|
|
23
|
+
const invoiceProduct = await invoiceProductRepo.findOne({ domain, id: newRecord.id });
|
|
24
|
+
const result = await invoiceProductRepo.save(Object.assign(Object.assign(Object.assign({}, invoiceProduct), newRecord), { updater: user }));
|
|
25
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return results;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=update-multiple-invoice-product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-multiple-invoice-product.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/invoice-product/update-multiple-invoice-product.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAkD;AAErC,QAAA,4BAA4B,GAAG;IAC1C,KAAK,CAAC,4BAA4B,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;QAClE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CA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IAAG,CAAA;aACzC;SACJ;QAED,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAA"}
|
|
@@ -8,12 +8,12 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.createPurchaseOrderFunction = exports.createPurchaseOrder = void 0;
|
|
11
|
+
const typeorm_1 = require("typeorm");
|
|
11
12
|
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
12
13
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
13
|
-
const warehouse_base_1 = require("@things-factory/warehouse-base");
|
|
14
14
|
const id_rule_base_1 = require("@things-factory/id-rule-base");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
15
|
const setting_base_1 = require("@things-factory/setting-base");
|
|
16
|
+
const warehouse_base_1 = require("@things-factory/warehouse-base");
|
|
17
17
|
const constants_1 = require("../../../constants");
|
|
18
18
|
const entities_1 = require("../../../entities");
|
|
19
19
|
const order_no_generator_1 = require("../../../utils/order-no-generator");
|
|
@@ -24,7 +24,7 @@ exports.createPurchaseOrder = {
|
|
|
24
24
|
return await tx.getRepository(entities_1.PurchaseOrder).save(Object.assign(Object.assign({ domain }, purchaseOrder), { creator: user, updater: user }));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
async function createPurchaseOrderFunction(_, purchaseOrder,
|
|
27
|
+
async function createPurchaseOrderFunction(_, purchaseOrder, files, context, tx) {
|
|
28
28
|
var e_1, _a;
|
|
29
29
|
var _b, _c, _d;
|
|
30
30
|
const { domain, user } = context.state;
|
|
@@ -92,8 +92,8 @@ async function createPurchaseOrderFunction(_, purchaseOrder, file, context, tx)
|
|
|
92
92
|
finally { if (e_1) throw e_1.error; }
|
|
93
93
|
}
|
|
94
94
|
// // 4. Create Attacments
|
|
95
|
-
if (
|
|
96
|
-
const attachments =
|
|
95
|
+
if (files === null || files === void 0 ? void 0 : files.length) {
|
|
96
|
+
const attachments = files.map(attachment => {
|
|
97
97
|
return {
|
|
98
98
|
file: attachment,
|
|
99
99
|
refBy: createdPurchaseOrder.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-purchase-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/purchase-order/create-purchase-order.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-purchase-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/purchase-order/create-purchase-order.ts"],"names":[],"mappings":";;;;;;;;;;AACA,qCAAkE;AAElE,qEAA+E;AAE/E,uDAMiC;AACjC,+DAAyD;AACzD,+DAAsD;AAEtD,mEAAyD;AAEzD,kDAK2B;AAC3B,gDAAwG;AACxG,0EAAoE;AAEpE,mCAAqD;AAExC,QAAA,mBAAmB,GAAG;IACjC,KAAK,CAAC,mBAAmB,CAAC,CAAM,EAAE,EAAE,aAAa,EAAE,EAAE,OAAY;QAC/D,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAE7F,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,wBAAa,CAAC,CAAC,IAAI,+BAC/C,MAAM,IACH,aAAa,KAChB,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,2BAA2B,CAC/C,CAAM,EACN,aAAkB,EAClB,KAAmB,EACnB,OAAY,EACZ,EAAkB;;;IAElB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAmC,OAAO,CAAC,KAAK,CAAA;IACtE,IAAI,aAAa,GAAmB,aAAa,CAAC,aAAa,CAAA;IAC/D,IAAI,YAAY,GAA+B,aAAa,CAAC,YAAY,CAAA;IAEzE,IAAI,UAAoB,CAAA;IACxB,IAAI,OAAO,GAAW,EAAE,CAAA;IACxB,IAAI,QAAQ,GAAa,EAAE,CAAA;IAE3B,MAAM,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a,EAAE,oBAAoB,EACnC,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;SACH;;;;;;;;;IAED,0BAA0B;IAC1B,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE;QACjB,MAAM,WAAW,GAAiB,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;YACvD,OAAO;gBACL,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,oBAAoB,CAAC,EAAE;gBAC9B,QAAQ,EAAE,2BAAe,CAAC,EAAE;aAC7B,CAAA;QACH,CAAC,CAAC,CAAA;QACF,MAAM,IAAA,mCAAiB,EAAC,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,CAAC,CAAA;KACrD;IAED,OAAO,oBAAoB,CAAA;AAC7B,CAAC;AAhGD,kEAgGC"}
|
|
@@ -8,10 +8,10 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.updatePurchaseOrderFunction = exports.updatePurchaseOrder = void 0;
|
|
11
|
+
const typeorm_1 = require("typeorm");
|
|
11
12
|
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
12
13
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
13
14
|
const warehouse_base_1 = require("@things-factory/warehouse-base");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
15
|
const constants_1 = require("../../../constants");
|
|
16
16
|
const entities_1 = require("../../../entities");
|
|
17
17
|
const index_1 = require("./index");
|
|
@@ -25,24 +25,24 @@ exports.updatePurchaseOrder = {
|
|
|
25
25
|
return await repository.save(Object.assign(Object.assign(Object.assign({}, purchaseOrder), patch), { updater: user }));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
async function updatePurchaseOrderFunction(_, purchaseOrder,
|
|
29
|
-
var e_1, _a
|
|
30
|
-
var _c, _d
|
|
28
|
+
async function updatePurchaseOrderFunction(_, purchaseOrder, files, context, tx) {
|
|
29
|
+
var e_1, _a;
|
|
30
|
+
var _b, _c, _d;
|
|
31
31
|
const { domain, user } = context.state;
|
|
32
32
|
let existingPurchaseOrder = await (0, index_1.getPurchaseOrderFunction)(_, purchaseOrder.name, context, tx);
|
|
33
33
|
let orderProducts = purchaseOrder.orderProducts;
|
|
34
34
|
let otherCharges = purchaseOrder.otherCharges;
|
|
35
|
-
if ((
|
|
35
|
+
if ((_b = purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.bizplace) === null || _b === void 0 ? void 0 : _b.id) {
|
|
36
36
|
const permittedBizplaces = await (0, biz_base_1.getPermittedBizplaces)(domain, user);
|
|
37
37
|
let foundPermittedBizplace = permittedBizplaces.find(biz => biz.id == purchaseOrder.bizplace.id);
|
|
38
38
|
if (!foundPermittedBizplace)
|
|
39
39
|
throw new Error(`This user does not permitted for this company`);
|
|
40
40
|
purchaseOrder.bizplace = foundPermittedBizplace;
|
|
41
41
|
}
|
|
42
|
-
if ((
|
|
42
|
+
if ((_c = purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.supplier) === null || _c === void 0 ? void 0 : _c.id) {
|
|
43
43
|
purchaseOrder.supplier = await (0, typeorm_1.getRepository)(biz_base_1.ContactPoint).findOne({ id: purchaseOrder.supplier.id });
|
|
44
44
|
}
|
|
45
|
-
if ((
|
|
45
|
+
if ((_d = purchaseOrder === null || purchaseOrder === void 0 ? void 0 : purchaseOrder.bufferLocation) === null || _d === void 0 ? void 0 : _d.id) {
|
|
46
46
|
purchaseOrder.bufferLocation = await (0, typeorm_1.getRepository)(warehouse_base_1.Location).findOne({ id: purchaseOrder.bufferLocation.id });
|
|
47
47
|
}
|
|
48
48
|
// // 1. Update purchase order
|
|
@@ -79,24 +79,13 @@ async function updatePurchaseOrderFunction(_, purchaseOrder, file, context, tx)
|
|
|
79
79
|
category: constants_1.ATTACHMENT_TYPE.PO
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const file = _g.value;
|
|
86
|
-
await (0, attachment_base_1.deleteAttachment)(_, { id: file.id }, context);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
90
|
-
finally {
|
|
91
|
-
try {
|
|
92
|
-
if (_g && !_g.done && (_b = _f.return)) await _b.call(_f);
|
|
93
|
-
}
|
|
94
|
-
finally { if (e_2) throw e_2.error; }
|
|
82
|
+
// // 6. Remove All Attachment
|
|
83
|
+
if (foundAttachments === null || foundAttachments === void 0 ? void 0 : foundAttachments.length) {
|
|
84
|
+
await (0, attachment_base_1.deleteAttachmentsByRef)(_, { refBys: foundAttachments.map(file => file.refBy) }, context);
|
|
95
85
|
}
|
|
96
86
|
// // 7. Add New Attachment
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const attachments = newAttachments.map(attachment => {
|
|
87
|
+
if ((files === null || files === void 0 ? void 0 : files.length) > 0) {
|
|
88
|
+
const attachments = files.map(attachment => {
|
|
100
89
|
return {
|
|
101
90
|
file: attachment,
|
|
102
91
|
refBy: updatePurchaseOrder.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-purchase-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/purchase-order/update-purchase-order.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"update-purchase-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/purchase-order/update-purchase-order.ts"],"names":[],"mappings":";;;;;;;;;;AACA,qCAAkE;AAElE,qEAAuG;AAEvG,uDAAwF;AAExF,mEAAyD;AAEzD,kDAAoD;AACpD,gDAAyF;AACzF,mCAA+E;AAElE,QAAA,mBAAmB,GAAG;IACjC,KAAK,CAAC,mBAAmB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAY;QAC7D,MAAM,EAAE,EAAE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UAAU;gBAChB,KAAK,EAAE,mBAAmB,CAAC,EAAE;gBAC7B,QAAQ,EAAE,2BAAe,CAAC,EAAE;aAC7B,CAAA;QACH,CAAC,CAAC,CAAA;QACF,MAAM,IAAA,mCAAiB,EAAC,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,CAAC,CAAA;KACrD;IAED,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AA5FD,kEA4FC"}
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.upsertPurchaseOrderFunction = exports.upsertPurchaseOrder = void 0;
|
|
4
4
|
const index_1 = require("./index");
|
|
5
5
|
exports.upsertPurchaseOrder = {
|
|
6
|
-
async upsertPurchaseOrder(_, { purchaseOrder,
|
|
6
|
+
async upsertPurchaseOrder(_, { purchaseOrder, files }, context) {
|
|
7
7
|
try {
|
|
8
8
|
const { tx } = context.state;
|
|
9
|
-
const createdPurchaseOrder = await upsertPurchaseOrderFunction(_, purchaseOrder,
|
|
9
|
+
const createdPurchaseOrder = await upsertPurchaseOrderFunction(_, purchaseOrder, files, context, tx);
|
|
10
10
|
return createdPurchaseOrder;
|
|
11
11
|
}
|
|
12
12
|
catch (error) {
|
|
@@ -14,14 +14,12 @@ exports.upsertPurchaseOrder = {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
async function upsertPurchaseOrderFunction(_, purchaseOrder,
|
|
18
|
-
const { domain, user } = context.state;
|
|
19
|
-
let orderProducts = purchaseOrder.orderProducts;
|
|
17
|
+
async function upsertPurchaseOrderFunction(_, purchaseOrder, files, context, tx) {
|
|
20
18
|
if (!purchaseOrder.id) {
|
|
21
|
-
purchaseOrder = await (0, index_1.createPurchaseOrderFunction)(_, purchaseOrder,
|
|
19
|
+
purchaseOrder = await (0, index_1.createPurchaseOrderFunction)(_, purchaseOrder, files, context, tx);
|
|
22
20
|
}
|
|
23
21
|
else {
|
|
24
|
-
purchaseOrder = await (0, index_1.updatePurchaseOrderFunction)(_, purchaseOrder,
|
|
22
|
+
purchaseOrder = await (0, index_1.updatePurchaseOrderFunction)(_, purchaseOrder, files, context, tx);
|
|
25
23
|
}
|
|
26
24
|
return purchaseOrder;
|
|
27
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-purchase-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/purchase-order/upsert-purchase-order.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"upsert-purchase-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/purchase-order/upsert-purchase-order.ts"],"names":[],"mappings":";;;AAIA,mCAAkF;AAErE,QAAA,mBAAmB,GAAG;IACjC,KAAK,CAAC,mBAAmB,CAAC,CAAM,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,OAAY;QACtE,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,MAAM,oBAAoB,GAAkB,MAAM,2BAA2B,CAC3E,CAAC,EACD,aAAa,EACb,KAAK,EACL,OAAO,EACP,EAAE,CACH,CAAA;YAED,OAAO,oBAAoB,CAAA;SAC5B;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,2BAA2B,CAC/C,CAAM,EACN,aAAkB,EAClB,KAAmB,EACnB,OAAY,EACZ,EAAkB;IAElB,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE;QACrB,aAAa,GAAG,MAAM,IAAA,mCAA2B,EAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAA;KACxF;SAAM;QACL,aAAa,GAAG,MAAM,IAAA,mCAA2B,EAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAA;KACxF;IAED,OAAO,aAAa,CAAA;AACtB,CAAC;AAdD,kEAcC"}
|
|
@@ -29,6 +29,7 @@ const DeliveryOrder = __importStar(require("./delivery-order"));
|
|
|
29
29
|
const GoodsReceivalNote = __importStar(require("./goods-receival-note"));
|
|
30
30
|
const InventoryCheck = __importStar(require("./inventory-check"));
|
|
31
31
|
const Invoice = __importStar(require("./invoice"));
|
|
32
|
+
const InvoiceProduct = __importStar(require("./invoice-product"));
|
|
32
33
|
const JobSheet = __importStar(require("./job-sheet"));
|
|
33
34
|
const Manifest = __importStar(require("./manifest"));
|
|
34
35
|
const OrderInventory = __importStar(require("./order-inventory"));
|
|
@@ -50,6 +51,7 @@ exports.queries = [
|
|
|
50
51
|
RetailReplenishmentOrder.Query,
|
|
51
52
|
TransferOrder.Query,
|
|
52
53
|
Invoice.Query,
|
|
54
|
+
InvoiceProduct.Query,
|
|
53
55
|
InventoryCheck.Query,
|
|
54
56
|
JobSheet.Query,
|
|
55
57
|
PurchaseOrder.Query,
|
|
@@ -78,6 +80,7 @@ exports.mutations = [
|
|
|
78
80
|
RetailReplenishmentOrder.Mutation,
|
|
79
81
|
TransferOrder.Mutation,
|
|
80
82
|
Invoice.Mutation,
|
|
83
|
+
InvoiceProduct.Mutation,
|
|
81
84
|
InventoryCheck.Mutation,
|
|
82
85
|
JobSheet.Mutation,
|
|
83
86
|
PurchaseOrder.Mutation,
|
|
@@ -105,6 +108,7 @@ exports.types = [
|
|
|
105
108
|
...RetailReplenishmentOrder.Types,
|
|
106
109
|
...TransferOrder.Types,
|
|
107
110
|
...Invoice.Types,
|
|
111
|
+
...InvoiceProduct.Types,
|
|
108
112
|
...InventoryCheck.Types,
|
|
109
113
|
...JobSheet.Types,
|
|
110
114
|
...PurchaseOrder.Types,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAiD;AACjD,+CAAgC;AAChC,4DAA6C;AAC7C,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AG,mBAAmB,CAAC,KAAK;IAC5B,GAAG,QAAQ,CAAC,KAAK;CAClB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAiD;AACjD,+CAAgC;AAChC,4DAA6C;AAC7C,0DAA2C;AAC3C,oEAAqD;AACrD,gEAAiD;AACjD,yEAA0D;AAC1D,kEAAmD;AACnD,mDAAoC;AACpC,kEAAmD;AACnD,sDAAuC;AACvC,qDAAsC;AACtC,kEAAmD;AACnD,8DAA+C;AAC/C,6EAA8D;AAC9D,sDAAuC;AACvC,iDAAkC;AAClC,gEAAiD;AACjD,wFAAyE;AACzE,4DAA6C;AAC7C,uFAAwE;AACxE,4DAA6C;AAC7C,6EAA8D;AAC9D,gEAAiD;AACjD,gEAAiD;AACjD,2CAA4B;AAC5B,sDAAuC;AAE1B,QAAA,OAAO,GAAG;IACrB,wBAAwB,CAAC,KAAK;IAC9B,aAAa,CAAC,KAAK;IACnB,OAAO,CAAC,KAAK;IACb,cAAc,CAAC,KAAK;IACpB,cAAc,CAAC,KAAK;IACpB,QAAQ,CAAC,KAAK;IACd,aAAa,CAAC,KAAK;IACnB,wBAAwB,CAAC,KAAK;IAC9B,aAAa,CAAC,KAAK;IACnB,aAAa,CAAC,KAAK;IACnB,eAAe,CAAC,KAAK;IACrB,GAAG,CAAC,KAAK;IACT,aAAa,CAAC,KAAK;IACnB,YAAY,CAAC,KAAK;IAClB,QAAQ,CAAC,KAAK;IACd,WAAW,CAAC,KAAK;IACjB,WAAW,CAAC,KAAK;IACjB,KAAK,CAAC,KAAK;IACX,WAAW,CAAC,KAAK;IACjB,UAAU,CAAC,KAAK;IAChB,cAAc,CAAC,KAAK;IACpB,QAAQ,CAAC,KAAK;IACd,iBAAiB,CAAC,KAAK;IACvB,MAAM,CAAC,KAAK;IACZ,mBAAmB,CAAC,KAAK;IACzB,mBAAmB,CAAC,K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AK;IACjB,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,KAAK,CAAC,KAAK;IACd,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,UAAU,CAAC,KAAK;IACnB,GAAG,cAAc,CAAC,KAAK;IACvB,GAAG,QAAQ,CAAC,KAAK;IACjB,GAAG,iBAAiB,CAAC,KAAK;IAC1B,GAAG,MAAM,CAAC,KAAK;IACf,GAAG,mBAAmB,CAAC,KAAK;IAC5B,GAAG,mBAAmB,CAAC,KAAK;IAC5B,GAAG,QAAQ,CAAC,KAAK;CAClB,CAAA"}
|
|
@@ -8,13 +8,46 @@ const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
|
8
8
|
exports.InvoicePatch = (0, graphql_tag_1.default) `
|
|
9
9
|
input InvoicePatch {
|
|
10
10
|
name: String
|
|
11
|
-
|
|
11
|
+
refNo1: String
|
|
12
|
+
refNo2: String
|
|
13
|
+
refNo3: String
|
|
12
14
|
issuedOn: String
|
|
15
|
+
contactPointRefId: String
|
|
16
|
+
from: String
|
|
17
|
+
fromContactPhone: String
|
|
18
|
+
fromAddress1: String
|
|
19
|
+
fromAddress2: String
|
|
20
|
+
fromAddress3: String
|
|
21
|
+
fromAddress4: String
|
|
22
|
+
fromAddress5: String
|
|
23
|
+
fromPostcode: String
|
|
24
|
+
fromCity: String
|
|
25
|
+
fromState: String
|
|
26
|
+
fromCountry: String
|
|
27
|
+
deliverTo: String
|
|
28
|
+
deliverToPhone: String
|
|
29
|
+
deliveryAddress1: String
|
|
30
|
+
deliveryAddress2: String
|
|
31
|
+
deliveryAddress3: String
|
|
32
|
+
deliveryAddress4: String
|
|
33
|
+
deliveryAddress5: String
|
|
34
|
+
deliveryCity: String
|
|
35
|
+
deliveryState: String
|
|
36
|
+
deliveryCountry: String
|
|
37
|
+
billTo: String
|
|
38
|
+
billToPhone: String
|
|
39
|
+
billingAddress1: String
|
|
40
|
+
billingAddress2: String
|
|
41
|
+
billingAddress3: String
|
|
42
|
+
billingAddress4: String
|
|
43
|
+
billingAddress5: String
|
|
44
|
+
billingPostcode: String
|
|
45
|
+
billingCity: String
|
|
46
|
+
billingState: String
|
|
47
|
+
billingCountry: String
|
|
13
48
|
paymentDue: String
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
state: String
|
|
17
|
-
description: String
|
|
49
|
+
invoiceProducts: [ObjectRef]
|
|
50
|
+
releaseGood: ObjectRef
|
|
18
51
|
}
|
|
19
52
|
`;
|
|
20
53
|
//# sourceMappingURL=invoice-patch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-patch.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice/invoice-patch.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,YAAY,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"invoice-patch.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice/invoice-patch.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,YAAY,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4C9B,CAAA"}
|
|
@@ -10,12 +10,46 @@ exports.Invoice = (0, graphql_tag_1.default) `
|
|
|
10
10
|
id: String
|
|
11
11
|
domain: Domain
|
|
12
12
|
name: String
|
|
13
|
-
|
|
13
|
+
refNo1: String
|
|
14
|
+
refNo2: String
|
|
15
|
+
refNo3: String
|
|
14
16
|
issuedOn: String
|
|
17
|
+
contactPointRefId: String
|
|
18
|
+
from: String
|
|
19
|
+
fromContactPhone: String
|
|
20
|
+
fromAddress1: String
|
|
21
|
+
fromAddress2: String
|
|
22
|
+
fromAddress3: String
|
|
23
|
+
fromAddress4: String
|
|
24
|
+
fromAddress5: String
|
|
25
|
+
fromPostcode: String
|
|
26
|
+
fromCity: String
|
|
27
|
+
fromState: String
|
|
28
|
+
fromCountry: String
|
|
29
|
+
deliverTo: String
|
|
30
|
+
deliverToPhone: String
|
|
31
|
+
deliveryAddress1: String
|
|
32
|
+
deliveryAddress2: String
|
|
33
|
+
deliveryAddress3: String
|
|
34
|
+
deliveryAddress4: String
|
|
35
|
+
deliveryAddress5: String
|
|
36
|
+
deliveryCity: String
|
|
37
|
+
deliveryState: String
|
|
38
|
+
deliveryCountry: String
|
|
39
|
+
billTo: String
|
|
40
|
+
billToPhone: String
|
|
41
|
+
billingAddress1: String
|
|
42
|
+
billingAddress2: String
|
|
43
|
+
billingAddress3: String
|
|
44
|
+
billingAddress4: String
|
|
45
|
+
billingAddress5: String
|
|
46
|
+
billingPostcode: String
|
|
47
|
+
billingCity: String
|
|
48
|
+
billingState: String
|
|
49
|
+
billingCountry: String
|
|
15
50
|
paymentDue: String
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
state: String
|
|
51
|
+
invoiceProducts: [InvoiceProduct]
|
|
52
|
+
releaseGood: ReleaseGood
|
|
19
53
|
description: String
|
|
20
54
|
creator: User
|
|
21
55
|
updater: User
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice/invoice.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,OAAO,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice/invoice.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,OAAO,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDzB,CAAA"}
|
|
@@ -7,14 +7,48 @@ exports.NewInvoice = void 0;
|
|
|
7
7
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
8
|
exports.NewInvoice = (0, graphql_tag_1.default) `
|
|
9
9
|
input NewInvoice {
|
|
10
|
-
name: String
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
name: String
|
|
11
|
+
refNo1: String
|
|
12
|
+
refNo2: String
|
|
13
|
+
refNo3: String
|
|
14
|
+
issuedOn: String
|
|
15
|
+
contactPointRefId: String
|
|
16
|
+
from: String
|
|
17
|
+
fromContactPhone: String
|
|
18
|
+
fromAddress1: String
|
|
19
|
+
fromAddress2: String
|
|
20
|
+
fromAddress3: String
|
|
21
|
+
fromAddress4: String
|
|
22
|
+
fromAddress5: String
|
|
23
|
+
fromPostcode: String
|
|
24
|
+
fromCity: String
|
|
25
|
+
fromState: String
|
|
26
|
+
fromCountry: String
|
|
27
|
+
deliverTo: String
|
|
28
|
+
deliverToPhone: String
|
|
29
|
+
deliveryAddress1: String
|
|
30
|
+
deliveryAddress2: String
|
|
31
|
+
deliveryAddress3: String
|
|
32
|
+
deliveryAddress4: String
|
|
33
|
+
deliveryAddress5: String
|
|
34
|
+
deliveryCity: String
|
|
35
|
+
deliveryState: String
|
|
36
|
+
deliveryCountry: String
|
|
37
|
+
deliveryPostcode: String
|
|
38
|
+
billTo: String
|
|
39
|
+
billToPhone: String
|
|
40
|
+
billingAddress1: String
|
|
41
|
+
billingAddress2: String
|
|
42
|
+
billingAddress3: String
|
|
43
|
+
billingAddress4: String
|
|
44
|
+
billingAddress5: String
|
|
45
|
+
billingPostcode: String
|
|
46
|
+
billingCity: String
|
|
47
|
+
billingState: String
|
|
48
|
+
billingCountry: String
|
|
49
|
+
paymentDue: String
|
|
50
|
+
invoiceProducts: [NewInvoiceProduct]
|
|
51
|
+
releaseGood: ObjectRef
|
|
18
52
|
}
|
|
19
53
|
`;
|
|
20
54
|
//# sourceMappingURL=new-invoice.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-invoice.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice/new-invoice.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"new-invoice.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice/new-invoice.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C5B,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Types = exports.Query = exports.Mutation = void 0;
|
|
4
|
+
const invoice_product_1 = require("./invoice-product");
|
|
5
|
+
const invoice_product_list_1 = require("./invoice-product-list");
|
|
6
|
+
const invoice_product_patch_1 = require("./invoice-product-patch");
|
|
7
|
+
const new_invoice_product_1 = require("./new-invoice-product");
|
|
8
|
+
const product_input_1 = require("./product-input");
|
|
9
|
+
exports.Mutation = `
|
|
10
|
+
createInvoiceProduct (invoiceProduct: NewInvoiceProduct!): InvoiceProduct
|
|
11
|
+
updateInvoiceProduct (name: String! patch: InvoiceProductPatch!): InvoiceProduct
|
|
12
|
+
updateMultipleInvoiceProduct (patches: [InvoiceProductPatch]!): [InvoiceProduct]
|
|
13
|
+
deleteInvoiceProduct (name: String!): Boolean
|
|
14
|
+
deleteInvoiceProducts (names: [String]!): Boolean
|
|
15
|
+
`;
|
|
16
|
+
exports.Query = `
|
|
17
|
+
invoiceProducts(filters: [Filter], pagination: Pagination, sortings: [Sorting]): InvoiceProductList
|
|
18
|
+
invoiceProduct(name: String!): InvoiceProduct
|
|
19
|
+
`;
|
|
20
|
+
exports.Types = [invoice_product_1.InvoiceProduct, new_invoice_product_1.NewInvoiceProduct, invoice_product_patch_1.InvoiceProductPatch, invoice_product_list_1.InvoiceProductList, product_input_1.ProductInput];
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice-product/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAClD,iEAA2D;AAC3D,mEAA6D;AAC7D,+DAAyD;AACzD,mDAA8C;AAEjC,QAAA,QAAQ,GAAG;;;;;;CAMvB,CAAA;AAEY,QAAA,KAAK,GAAG;;;CAGpB,CAAA;AAEY,QAAA,KAAK,GAAG,CAAC,gCAAc,EAAE,uCAAiB,EAAE,2CAAmB,EAAE,yCAAkB,EAAE,4BAAY,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InvoiceProductList = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.InvoiceProductList = (0, graphql_tag_1.default) `
|
|
9
|
+
type InvoiceProductList {
|
|
10
|
+
items: [InvoiceProduct]
|
|
11
|
+
total: Int
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
//# sourceMappingURL=invoice-product-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-product-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice-product/invoice-product-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKpC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InvoiceProductPatch = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.InvoiceProductPatch = (0, graphql_tag_1.default) `
|
|
9
|
+
input InvoiceProductPatch {
|
|
10
|
+
id: String
|
|
11
|
+
name: String
|
|
12
|
+
description: String
|
|
13
|
+
invoice: ObjectRef
|
|
14
|
+
product: ObjectRef
|
|
15
|
+
qty: Int
|
|
16
|
+
otherCharges: Float
|
|
17
|
+
unitPrice: Float
|
|
18
|
+
paidPrice: Float
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
//# sourceMappingURL=invoice-product-patch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-product-patch.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice-product/invoice-product-patch.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;CAYrC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InvoiceProduct = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.InvoiceProduct = (0, graphql_tag_1.default) `
|
|
9
|
+
type InvoiceProduct {
|
|
10
|
+
id: String
|
|
11
|
+
sku: String
|
|
12
|
+
name: String
|
|
13
|
+
domain: Domain
|
|
14
|
+
description: String
|
|
15
|
+
invoice: Invoice
|
|
16
|
+
product: Product
|
|
17
|
+
qty: Int
|
|
18
|
+
otherCharges: Float
|
|
19
|
+
unitPrice: Float
|
|
20
|
+
paidPrice: Float
|
|
21
|
+
updater: User
|
|
22
|
+
creator: User
|
|
23
|
+
updatedAt: String
|
|
24
|
+
createdAt: String
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
//# sourceMappingURL=invoice-product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-product.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice-product/invoice-product.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;CAkBhC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NewInvoiceProduct = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.NewInvoiceProduct = (0, graphql_tag_1.default) `
|
|
9
|
+
input NewInvoiceProduct {
|
|
10
|
+
sku: String
|
|
11
|
+
name: String!
|
|
12
|
+
description: String
|
|
13
|
+
invoice: ObjectRef
|
|
14
|
+
product: ProductInput
|
|
15
|
+
qty: Int
|
|
16
|
+
otherCharges: Float
|
|
17
|
+
unitPrice: Float
|
|
18
|
+
paidPrice: Float
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
//# sourceMappingURL=new-invoice-product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-invoice-product.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice-product/new-invoice-product.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;CAYnC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProductInput = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.ProductInput = (0, graphql_tag_1.default) `
|
|
9
|
+
input ProductInput {
|
|
10
|
+
sku: String
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
//# sourceMappingURL=product-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-input.js","sourceRoot":"","sources":["../../../../server/graphql/types/invoice-product/product-input.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,YAAY,GAAG,IAAA,qBAAG,EAAA;;;;CAI9B,CAAA"}
|