@bharatbxhipment/xhipment-models-v2 1.0.271 → 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.
- package/dist/schemas/send-ar-reconciliation/send-ar-recon.d.ts +6 -6
- package/dist/schemas/send-ar-reconciliation/send-ar-recon.js +15 -15
- package/dist/schemas/send-ar-reconciliation/send-ar-recon.js.map +1 -1
- package/dist/schemas/send-ar-reconciliation/send-ar.interface.d.ts +3 -3
- package/dist/schemas/send-ar-reconciliation/send-ar.interface.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
2
|
import { ISendArReconciliation } from './send-ar.interface';
|
|
3
|
-
export declare const sendArReconciliationSchema: Schema<ISendArReconciliation, import("mongoose").Model<ISendArReconciliation, any, any, any, import("mongoose").Document<unknown, any, ISendArReconciliation, any, {}> & ISendArReconciliation & {
|
|
4
|
-
_id:
|
|
5
|
-
} & {
|
|
3
|
+
export declare const sendArReconciliationSchema: Schema<ISendArReconciliation, import("mongoose").Model<ISendArReconciliation, any, any, any, import("mongoose").Document<unknown, any, ISendArReconciliation, any, {}> & ISendArReconciliation & Required<{
|
|
4
|
+
_id: Schema.Types.ObjectId;
|
|
5
|
+
}> & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ISendArReconciliation, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ISendArReconciliation>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ISendArReconciliation> & {
|
|
8
|
-
_id:
|
|
9
|
-
} & {
|
|
7
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ISendArReconciliation, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ISendArReconciliation>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ISendArReconciliation> & Required<{
|
|
8
|
+
_id: Schema.Types.ObjectId;
|
|
9
|
+
}> & {
|
|
10
10
|
__v: number;
|
|
11
11
|
}>;
|
|
12
12
|
//# sourceMappingURL=send-ar-recon.d.ts.map
|
|
@@ -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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EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3C,eAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;IACvD,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC/B,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrD,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,mBAAmB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC/D,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACzB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACxB,wCAAwC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IAC3D,iBAAiB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACpC,iBAAiB,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE;IACnE,iBAAiB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CAClC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectId } from 'mongoose';
|
|
2
2
|
export interface ISendArReconciliation {
|
|
3
|
-
|
|
3
|
+
_id?: ObjectId;
|
|
4
4
|
paymentMadeTo: string;
|
|
5
5
|
supplierNumber: string;
|
|
6
6
|
paymentNumber: string;
|
|
@@ -9,8 +9,8 @@ export interface ISendArReconciliation {
|
|
|
9
9
|
paymentAmount: number;
|
|
10
10
|
lineItems: ISendArReconciliationLineItem[];
|
|
11
11
|
invoiceRollups: ISendArReconciliationInvoiceRollup[];
|
|
12
|
-
remarks
|
|
13
|
-
status
|
|
12
|
+
remarks?: string;
|
|
13
|
+
status?: 'PENDING' | 'APPROVED' | 'REJECTED' | 'VOIDED';
|
|
14
14
|
isLineItemSuccessfullyMatchedWithPayment: boolean;
|
|
15
15
|
isContentVerified?: boolean;
|
|
16
16
|
contentVerifiedBy?: ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-ar.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/send-ar-reconciliation/send-ar.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,UAAU,CAAC;AAClC,MAAM,WAAW,qBAAqB;IACpC,
|
|
1
|
+
{"version":3,"file":"send-ar.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/send-ar-reconciliation/send-ar.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,UAAU,CAAC;AAClC,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,IAAI,CAAC;IAClB,eAAe,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,6BAA6B,EAAE,CAAC;IAC3C,cAAc,EAAE,kCAAkC,EAAE,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IACxD,wCAAwC,EAAE,OAAO,CAAC;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAGD,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,IAAI,CA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