@bharatbxhipment/xhipment-models-v2 1.0.273 → 1.0.274
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.
|
@@ -5,21 +5,21 @@ const mongoose_1 = require("mongoose");
|
|
|
5
5
|
const LineItemSchema = new mongoose_1.Schema({
|
|
6
6
|
invoiceNumber: { type: String, required: true },
|
|
7
7
|
invoiceDate: { type: Date, required: true },
|
|
8
|
-
invoiceDescription: { type: String
|
|
9
|
-
parentInvoiceNumber: { type: String
|
|
10
|
-
discountTaken: { type: Number
|
|
11
|
-
amountPaid: { type: Number
|
|
12
|
-
amountRemaining: { type: Number
|
|
13
|
-
isLineItemC2FO: { type: Boolean
|
|
8
|
+
invoiceDescription: { type: String },
|
|
9
|
+
parentInvoiceNumber: { type: String },
|
|
10
|
+
discountTaken: { type: Number },
|
|
11
|
+
amountPaid: { type: Number },
|
|
12
|
+
amountRemaining: { type: Number },
|
|
13
|
+
isLineItemC2FO: { type: Boolean },
|
|
14
14
|
});
|
|
15
15
|
const InvoiceRollupSchema = new mongoose_1.Schema({
|
|
16
16
|
invoiceNumber: { type: String, required: true },
|
|
17
17
|
invoiceDate: { type: Date, required: true },
|
|
18
|
-
invoiceDescription: { type: String
|
|
18
|
+
invoiceDescription: { type: String },
|
|
19
19
|
grossAmountPaid: { type: Number, required: true },
|
|
20
|
-
c2foDiscount: { type: Number
|
|
21
|
-
netAmountPaid: { type: Number
|
|
22
|
-
amountRemaining: { type: Number
|
|
20
|
+
c2foDiscount: { type: Number },
|
|
21
|
+
netAmountPaid: { type: Number },
|
|
22
|
+
amountRemaining: { type: Number },
|
|
23
23
|
hasC2FODiscount: { type: Boolean, required: true },
|
|
24
24
|
});
|
|
25
25
|
exports.sendArReconciliationSchema = new mongoose_1.Schema({
|
|
@@ -27,13 +27,13 @@ exports.sendArReconciliationSchema = new mongoose_1.Schema({
|
|
|
27
27
|
supplierNumber: { type: String, required: true },
|
|
28
28
|
paymentNumber: { type: String, required: true },
|
|
29
29
|
paymentDate: { type: Date, required: true },
|
|
30
|
-
paymentCurrency: { type: String,
|
|
31
|
-
paymentAmount: { type: Number
|
|
30
|
+
paymentCurrency: { type: String, enum: ['USD', 'INR'] },
|
|
31
|
+
paymentAmount: { type: Number },
|
|
32
32
|
lineItems: { type: [LineItemSchema], required: true },
|
|
33
33
|
invoiceRollups: { type: [InvoiceRollupSchema], required: true },
|
|
34
|
-
remarks: { type: String
|
|
35
|
-
status: { type: String
|
|
36
|
-
isLineItemSuccessfullyMatchedWithPayment: { type: Boolean
|
|
34
|
+
remarks: { type: String },
|
|
35
|
+
status: { type: String },
|
|
36
|
+
isLineItemSuccessfullyMatchedWithPayment: { type: Boolean },
|
|
37
37
|
isContentVerified: { type: Boolean },
|
|
38
38
|
contentVerifiedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Employee' },
|
|
39
39
|
contentVerifiedAt: { type: Date },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-ar-recon.js","sourceRoot":"","sources":["../../../src/schemas/send-ar-reconciliation/send-ar-recon.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAIzC,MAAM,cAAc,GAAG,IAAI,iBAAM,CAAgC;IAC7D,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC/C,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3C,kBAAkB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"send-ar-recon.js","sourceRoot":"","sources":["../../../src/schemas/send-ar-reconciliation/send-ar-recon.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAIzC,MAAM,cAAc,GAAG,IAAI,iBAAM,CAAgC;IAC7D,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC/C,WAAW,EAAE,EAAE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