@erp-galoper/types 1.0.1647 → 1.0.1648
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/openapi.ts +549 -167
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -41220,8 +41220,59 @@ export interface components {
|
|
|
41220
41220
|
itemDifferences: components["schemas"]["ItemDifferenceSchema"][];
|
|
41221
41221
|
totalDifferences: components["schemas"]["TotalDifferenceSchema"];
|
|
41222
41222
|
};
|
|
41223
|
+
/** AdvancedPaymentSharedSchema */
|
|
41224
|
+
AdvancedPaymentSharedSchema: {
|
|
41225
|
+
/**
|
|
41226
|
+
* Id
|
|
41227
|
+
* Format: uuid
|
|
41228
|
+
*/
|
|
41229
|
+
id: string;
|
|
41230
|
+
/** Serialnumber */
|
|
41231
|
+
serialNumber: string;
|
|
41232
|
+
approvalStatus: components["schemas"]["ApprovalValueChoices"];
|
|
41233
|
+
};
|
|
41234
|
+
/** DebitNoteSharedSchema */
|
|
41235
|
+
DebitNoteSharedSchema: {
|
|
41236
|
+
/**
|
|
41237
|
+
* Id
|
|
41238
|
+
* Format: uuid
|
|
41239
|
+
*/
|
|
41240
|
+
id: string;
|
|
41241
|
+
/** Serialnumber */
|
|
41242
|
+
serialNumber: string;
|
|
41243
|
+
};
|
|
41244
|
+
/**
|
|
41245
|
+
* DocumentStatusValue
|
|
41246
|
+
* @enum {string}
|
|
41247
|
+
*/
|
|
41248
|
+
DocumentStatusValue: "draft" | "posted" | "submitted" | "canceled" | "sent";
|
|
41249
|
+
/**
|
|
41250
|
+
* PaymentStatusChoices
|
|
41251
|
+
* @enum {string}
|
|
41252
|
+
*/
|
|
41253
|
+
PaymentStatusChoices: "Not Paid" | "Partially Paid" | "Paid";
|
|
41254
|
+
/** PaymentVoucherSharedSchema */
|
|
41255
|
+
PaymentVoucherSharedSchema: {
|
|
41256
|
+
/**
|
|
41257
|
+
* Id
|
|
41258
|
+
* Format: uuid
|
|
41259
|
+
*/
|
|
41260
|
+
id: string;
|
|
41261
|
+
/** Serialnumber */
|
|
41262
|
+
serialNumber: string;
|
|
41263
|
+
approvalStatus: components["schemas"]["ApprovalValueChoices"];
|
|
41264
|
+
};
|
|
41223
41265
|
/** PurchaseInvoiceForReturnOrderReturnSchema */
|
|
41224
41266
|
PurchaseInvoiceForReturnOrderReturnSchema: {
|
|
41267
|
+
/**
|
|
41268
|
+
* Datecreated
|
|
41269
|
+
* Format: date-time
|
|
41270
|
+
*/
|
|
41271
|
+
dateCreated: string;
|
|
41272
|
+
/** Datemodified */
|
|
41273
|
+
dateModified: string | null;
|
|
41274
|
+
createdBy: components["schemas"]["RecordUserSchema"];
|
|
41275
|
+
modifiedBy: components["schemas"]["RecordUserSchema"] | null;
|
|
41225
41276
|
/**
|
|
41226
41277
|
* Id
|
|
41227
41278
|
* Format: uuid
|
|
@@ -41229,6 +41280,188 @@ export interface components {
|
|
|
41229
41280
|
id: string;
|
|
41230
41281
|
/** Serialnumber */
|
|
41231
41282
|
serialNumber: string;
|
|
41283
|
+
branch: components["schemas"]["BranchSummaryInfo"];
|
|
41284
|
+
/**
|
|
41285
|
+
* Date
|
|
41286
|
+
* Format: date
|
|
41287
|
+
*/
|
|
41288
|
+
date: string;
|
|
41289
|
+
/** Referencenumber */
|
|
41290
|
+
referenceNumber: string | null;
|
|
41291
|
+
supplier: components["schemas"]["ChildSupplierSharedSchema"];
|
|
41292
|
+
/**
|
|
41293
|
+
* @description Purchase order ID, hit the purchase_order endpoint to get the list of purchase orders, filtered by the supplier
|
|
41294
|
+
* @default []
|
|
41295
|
+
*/
|
|
41296
|
+
purchaseOrder: components["schemas"]["PurchaseOrderSharedSchema"] | null;
|
|
41297
|
+
requisition: components["schemas"]["DocumentCommonSchema"] | null;
|
|
41298
|
+
purchaseQuotation: components["schemas"]["DocumentCommonSchema"] | null;
|
|
41299
|
+
/**
|
|
41300
|
+
* @description Advanced payment ID, to get advance payments use route /v1/purchase/advance-payments/?branchId=1&type=purchaseInvoice&supplier={supplier-id}
|
|
41301
|
+
* @default []
|
|
41302
|
+
*/
|
|
41303
|
+
advancePayment: components["schemas"]["AdvancedPaymentSharedSchema"] | null;
|
|
41304
|
+
/**
|
|
41305
|
+
* Goodsreceiptnote
|
|
41306
|
+
* @description Goods receipt note ID, hit the goods_receipt_note endpoint to get the list of goods receipt notes, filtered by the supplier
|
|
41307
|
+
* @default []
|
|
41308
|
+
*/
|
|
41309
|
+
goodsReceiptNote: components["schemas"]["ReceiptNoteSharedSchema"][];
|
|
41310
|
+
/**
|
|
41311
|
+
* Paymentvouchers
|
|
41312
|
+
* @default []
|
|
41313
|
+
*/
|
|
41314
|
+
paymentVouchers: components["schemas"]["PaymentVoucherSharedSchema"][];
|
|
41315
|
+
/**
|
|
41316
|
+
* Debitnotes
|
|
41317
|
+
* @default []
|
|
41318
|
+
*/
|
|
41319
|
+
debitNotes: components["schemas"]["DebitNoteSharedSchema"][];
|
|
41320
|
+
department?: components["schemas"]["DepartmentCommonSchema"] | null;
|
|
41321
|
+
/** Attachments */
|
|
41322
|
+
attachments: string[] | null;
|
|
41323
|
+
/** Description */
|
|
41324
|
+
description: string | null;
|
|
41325
|
+
/** Notes */
|
|
41326
|
+
notes: string | null;
|
|
41327
|
+
paymentTerms: components["schemas"]["PaymentTermsEnumSchema"];
|
|
41328
|
+
/** Duedate */
|
|
41329
|
+
dueDate?: string | null;
|
|
41330
|
+
status: components["schemas"]["DocumentStatusValue"];
|
|
41331
|
+
approvalStatus: components["schemas"]["ApprovalChoices"];
|
|
41332
|
+
paymentStatus: components["schemas"]["PaymentStatusChoices"];
|
|
41333
|
+
receivingStatus: components["schemas"]["ReceivingStatusChoices"];
|
|
41334
|
+
/** Usdrate */
|
|
41335
|
+
usdRate: number;
|
|
41336
|
+
/** Companyrate */
|
|
41337
|
+
companyRate: number;
|
|
41338
|
+
/**
|
|
41339
|
+
* Subtotal
|
|
41340
|
+
* @description This field represents gross subtotal
|
|
41341
|
+
*/
|
|
41342
|
+
subTotal: number;
|
|
41343
|
+
/**
|
|
41344
|
+
* Usdsubtotal
|
|
41345
|
+
* @description This field represents gross subtotal in secondary currency
|
|
41346
|
+
*/
|
|
41347
|
+
usdSubTotal: number;
|
|
41348
|
+
/**
|
|
41349
|
+
* Companysubtotal
|
|
41350
|
+
* @description This field represents gross subtotal in company currency
|
|
41351
|
+
*/
|
|
41352
|
+
companySubTotal: number;
|
|
41353
|
+
/**
|
|
41354
|
+
* Discount
|
|
41355
|
+
* @description This field represents overall discount in %
|
|
41356
|
+
*/
|
|
41357
|
+
discount: number;
|
|
41358
|
+
/**
|
|
41359
|
+
* Netsubtotal
|
|
41360
|
+
* @description This field is a number representing net subtotal (subtotal - line discount)
|
|
41361
|
+
*/
|
|
41362
|
+
netSubtotal: number;
|
|
41363
|
+
/**
|
|
41364
|
+
* Usdnetsubtotal
|
|
41365
|
+
* @description This field is a number representing net subtotal in secondary currency
|
|
41366
|
+
*/
|
|
41367
|
+
usdNetSubtotal: number;
|
|
41368
|
+
/**
|
|
41369
|
+
* Companynetsubtotal
|
|
41370
|
+
* @description This field is a number representing net subtotal in company currency
|
|
41371
|
+
*/
|
|
41372
|
+
companyNetSubtotal: number;
|
|
41373
|
+
/**
|
|
41374
|
+
* Discountedtotal
|
|
41375
|
+
* @description This field represents net total after line discount and overall discount
|
|
41376
|
+
*/
|
|
41377
|
+
discountedTotal: number;
|
|
41378
|
+
/**
|
|
41379
|
+
* Usddiscountedtotal
|
|
41380
|
+
* @description This field represents net total after line discount and overall discount in secondary currency
|
|
41381
|
+
*/
|
|
41382
|
+
usdDiscountedTotal: number;
|
|
41383
|
+
/**
|
|
41384
|
+
* Companydiscountedtotal
|
|
41385
|
+
* @description This field represents net total after line discount and overall discount in company currency
|
|
41386
|
+
*/
|
|
41387
|
+
companyDiscountedTotal: number;
|
|
41388
|
+
/** Taxamount */
|
|
41389
|
+
taxAmount: number;
|
|
41390
|
+
/** Companytaxamount */
|
|
41391
|
+
companyTaxAmount: number;
|
|
41392
|
+
/** Usdtaxamount */
|
|
41393
|
+
usdTaxAmount: number;
|
|
41394
|
+
/**
|
|
41395
|
+
* Total
|
|
41396
|
+
* @description This field represents grand total
|
|
41397
|
+
*/
|
|
41398
|
+
total: number;
|
|
41399
|
+
/**
|
|
41400
|
+
* Usdtotal
|
|
41401
|
+
* @description This field represents grand total in secondary currency
|
|
41402
|
+
*/
|
|
41403
|
+
usdTotal: number;
|
|
41404
|
+
/**
|
|
41405
|
+
* Companytotal
|
|
41406
|
+
* @description This field represents grand total in company currency
|
|
41407
|
+
*/
|
|
41408
|
+
companyTotal: number;
|
|
41409
|
+
/** Candelete */
|
|
41410
|
+
canDelete: boolean;
|
|
41411
|
+
/** Canconvert */
|
|
41412
|
+
canConvert: boolean;
|
|
41413
|
+
warehouse: components["schemas"]["WarehouseSummaryInfo"] | null;
|
|
41414
|
+
/** @description visible when supplier is not resident */
|
|
41415
|
+
tax: components["schemas"]["TaxSharedSchema"] | null;
|
|
41416
|
+
/**
|
|
41417
|
+
* Taxbreakdown
|
|
41418
|
+
* @description Aggregated tax amounts breakdown
|
|
41419
|
+
* @default []
|
|
41420
|
+
*/
|
|
41421
|
+
taxBreakdown: components["schemas"]["TaxBreakdownSchema"][];
|
|
41422
|
+
/**
|
|
41423
|
+
* Discountamount
|
|
41424
|
+
* @description Header-level discount amount (after line discounts)
|
|
41425
|
+
*/
|
|
41426
|
+
discountAmount?: string | null;
|
|
41427
|
+
/**
|
|
41428
|
+
* Usddiscountamount
|
|
41429
|
+
* @description Discount amount in secondary currency
|
|
41430
|
+
*/
|
|
41431
|
+
usdDiscountAmount?: string | null;
|
|
41432
|
+
/**
|
|
41433
|
+
* Companydiscountamount
|
|
41434
|
+
* @description Discount amount in company currency
|
|
41435
|
+
*/
|
|
41436
|
+
companyDiscountAmount?: string | null;
|
|
41437
|
+
/**
|
|
41438
|
+
* Linediscountamount
|
|
41439
|
+
* @description Total line item discount amount
|
|
41440
|
+
*/
|
|
41441
|
+
lineDiscountAmount?: string | null;
|
|
41442
|
+
/**
|
|
41443
|
+
* Usdlinediscountamount
|
|
41444
|
+
* @description Total line item discount amount in secondary currency
|
|
41445
|
+
*/
|
|
41446
|
+
usdLineDiscountAmount?: string | null;
|
|
41447
|
+
/**
|
|
41448
|
+
* Companylinediscountamount
|
|
41449
|
+
* @description Total line item discount amount in company currency
|
|
41450
|
+
*/
|
|
41451
|
+
companyLineDiscountAmount?: string | null;
|
|
41452
|
+
/**
|
|
41453
|
+
* Remaining
|
|
41454
|
+
* @description - this field is number
|
|
41455
|
+
*/
|
|
41456
|
+
remaining?: string | null;
|
|
41457
|
+
/** Linkeddocuments */
|
|
41458
|
+
linkedDocuments?: {
|
|
41459
|
+
[key: string]: components["schemas"]["LinkedDocumentsSchema"];
|
|
41460
|
+
}[];
|
|
41461
|
+
/** @description visible when project module is active */
|
|
41462
|
+
project: components["schemas"]["ProjectSummaryInfo"] | null;
|
|
41463
|
+
/** Items */
|
|
41464
|
+
items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
|
|
41232
41465
|
/**
|
|
41233
41466
|
* Purchaseinvoiceitem
|
|
41234
41467
|
* Format: uuid
|
|
@@ -41236,6 +41469,103 @@ export interface components {
|
|
|
41236
41469
|
*/
|
|
41237
41470
|
purchaseInvoiceItem: string;
|
|
41238
41471
|
};
|
|
41472
|
+
/** PurchaseInvoiceItemsGetSchema */
|
|
41473
|
+
PurchaseInvoiceItemsGetSchema: {
|
|
41474
|
+
/**
|
|
41475
|
+
* Id
|
|
41476
|
+
* Format: uuid
|
|
41477
|
+
*/
|
|
41478
|
+
id: string;
|
|
41479
|
+
item: components["schemas"]["ItemSchema"] | null;
|
|
41480
|
+
/** Itemname */
|
|
41481
|
+
itemName: string | null;
|
|
41482
|
+
itemType: components["schemas"]["NonInventoryItemType"] | null;
|
|
41483
|
+
/** Description */
|
|
41484
|
+
description: string | null;
|
|
41485
|
+
/** Quantity */
|
|
41486
|
+
quantity: number;
|
|
41487
|
+
unitOfMeasurement: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
|
|
41488
|
+
/** Unitprice */
|
|
41489
|
+
unitPrice: number;
|
|
41490
|
+
itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
|
|
41491
|
+
/**
|
|
41492
|
+
* Includetaxinunitprice
|
|
41493
|
+
* @description If true, the unit price includes tax and will be extracted to calculate the base price
|
|
41494
|
+
* @default false
|
|
41495
|
+
*/
|
|
41496
|
+
includeTaxInUnitPrice: boolean;
|
|
41497
|
+
/** Discount */
|
|
41498
|
+
discount: number;
|
|
41499
|
+
/** Taxes */
|
|
41500
|
+
taxes: components["schemas"]["TaxSchema"][];
|
|
41501
|
+
/**
|
|
41502
|
+
* Subtotal
|
|
41503
|
+
* @description This field represents gross subtotal
|
|
41504
|
+
*/
|
|
41505
|
+
subTotal: number;
|
|
41506
|
+
/**
|
|
41507
|
+
* Usdsubtotal
|
|
41508
|
+
* @description This field represents gross subtotal in secondary currency
|
|
41509
|
+
*/
|
|
41510
|
+
usdSubTotal: number;
|
|
41511
|
+
/**
|
|
41512
|
+
* Companysubtotal
|
|
41513
|
+
* @description This field represents gross subtotal in company currency
|
|
41514
|
+
*/
|
|
41515
|
+
companySubTotal: number;
|
|
41516
|
+
/**
|
|
41517
|
+
* Discountedtotal
|
|
41518
|
+
* @description This field represents net subtotal after discount
|
|
41519
|
+
*/
|
|
41520
|
+
discountedTotal: number;
|
|
41521
|
+
/**
|
|
41522
|
+
* Usddiscountedtotal
|
|
41523
|
+
* @description This field represents discounted_total in secondary currency
|
|
41524
|
+
*/
|
|
41525
|
+
usdDiscountedTotal: number;
|
|
41526
|
+
/**
|
|
41527
|
+
* Companydiscountedtotal
|
|
41528
|
+
* @description This field represents discounted_total in company currency
|
|
41529
|
+
*/
|
|
41530
|
+
companyDiscountedTotal: number;
|
|
41531
|
+
/** Taxamount */
|
|
41532
|
+
taxAmount: number;
|
|
41533
|
+
/** Usdtaxamount */
|
|
41534
|
+
usdTaxAmount: number;
|
|
41535
|
+
/** Companytaxamount */
|
|
41536
|
+
companyTaxAmount: number;
|
|
41537
|
+
/**
|
|
41538
|
+
* Total
|
|
41539
|
+
* @description This field represents grand total
|
|
41540
|
+
*/
|
|
41541
|
+
total: number;
|
|
41542
|
+
/**
|
|
41543
|
+
* Usdtotal
|
|
41544
|
+
* @description This field represents grand total in secondary currency
|
|
41545
|
+
*/
|
|
41546
|
+
usdTotal: number;
|
|
41547
|
+
/**
|
|
41548
|
+
* Companytotal
|
|
41549
|
+
* @description This field represents grand total in company currency
|
|
41550
|
+
*/
|
|
41551
|
+
companyTotal: number;
|
|
41552
|
+
/** Quantityreceived */
|
|
41553
|
+
quantityReceived?: number;
|
|
41554
|
+
/** Quantityreturnedorder */
|
|
41555
|
+
quantityReturnedOrder?: number;
|
|
41556
|
+
/** Quantityreturnedinvoice */
|
|
41557
|
+
quantityReturnedInvoice?: number;
|
|
41558
|
+
};
|
|
41559
|
+
/** PurchaseOrderSharedSchema */
|
|
41560
|
+
PurchaseOrderSharedSchema: {
|
|
41561
|
+
/**
|
|
41562
|
+
* Id
|
|
41563
|
+
* Format: uuid
|
|
41564
|
+
*/
|
|
41565
|
+
id: string;
|
|
41566
|
+
/** Serialnumber */
|
|
41567
|
+
serialNumber: string;
|
|
41568
|
+
};
|
|
41239
41569
|
/** PurchaseReturnOrderItemsSchema */
|
|
41240
41570
|
PurchaseReturnOrderItemsSchema: {
|
|
41241
41571
|
/**
|
|
@@ -41455,6 +41785,11 @@ export interface components {
|
|
|
41455
41785
|
*/
|
|
41456
41786
|
items: components["schemas"]["PurchaseReturnOrderItemsSchema"][];
|
|
41457
41787
|
};
|
|
41788
|
+
/**
|
|
41789
|
+
* ReceivingStatusChoices
|
|
41790
|
+
* @enum {string}
|
|
41791
|
+
*/
|
|
41792
|
+
ReceivingStatusChoices: "Not Received" | "Partially Received" | "received";
|
|
41458
41793
|
/** CreateUpdatePurchaseReturnOrderItemsSchema */
|
|
41459
41794
|
CreateUpdatePurchaseReturnOrderItemsSchema: {
|
|
41460
41795
|
/**
|
|
@@ -41768,48 +42103,6 @@ export interface components {
|
|
|
41768
42103
|
* @enum {string}
|
|
41769
42104
|
*/
|
|
41770
42105
|
TypeSchema: "default" | "creditNote" | "paymentVoucher";
|
|
41771
|
-
/** AdvancedPaymentSharedSchema */
|
|
41772
|
-
AdvancedPaymentSharedSchema: {
|
|
41773
|
-
/**
|
|
41774
|
-
* Id
|
|
41775
|
-
* Format: uuid
|
|
41776
|
-
*/
|
|
41777
|
-
id: string;
|
|
41778
|
-
/** Serialnumber */
|
|
41779
|
-
serialNumber: string;
|
|
41780
|
-
approvalStatus: components["schemas"]["ApprovalValueChoices"];
|
|
41781
|
-
};
|
|
41782
|
-
/** DebitNoteSharedSchema */
|
|
41783
|
-
DebitNoteSharedSchema: {
|
|
41784
|
-
/**
|
|
41785
|
-
* Id
|
|
41786
|
-
* Format: uuid
|
|
41787
|
-
*/
|
|
41788
|
-
id: string;
|
|
41789
|
-
/** Serialnumber */
|
|
41790
|
-
serialNumber: string;
|
|
41791
|
-
};
|
|
41792
|
-
/**
|
|
41793
|
-
* DocumentStatusValue
|
|
41794
|
-
* @enum {string}
|
|
41795
|
-
*/
|
|
41796
|
-
DocumentStatusValue: "draft" | "posted" | "submitted" | "canceled" | "sent";
|
|
41797
|
-
/**
|
|
41798
|
-
* PaymentStatusChoices
|
|
41799
|
-
* @enum {string}
|
|
41800
|
-
*/
|
|
41801
|
-
PaymentStatusChoices: "Not Paid" | "Partially Paid" | "Paid";
|
|
41802
|
-
/** PaymentVoucherSharedSchema */
|
|
41803
|
-
PaymentVoucherSharedSchema: {
|
|
41804
|
-
/**
|
|
41805
|
-
* Id
|
|
41806
|
-
* Format: uuid
|
|
41807
|
-
*/
|
|
41808
|
-
id: string;
|
|
41809
|
-
/** Serialnumber */
|
|
41810
|
-
serialNumber: string;
|
|
41811
|
-
approvalStatus: components["schemas"]["ApprovalValueChoices"];
|
|
41812
|
-
};
|
|
41813
42106
|
/** PurchaseInvoiceDetailSchema */
|
|
41814
42107
|
PurchaseInvoiceDetailSchema: {
|
|
41815
42108
|
/**
|
|
@@ -41978,125 +42271,38 @@ export interface components {
|
|
|
41978
42271
|
*/
|
|
41979
42272
|
usdDiscountAmount?: string | null;
|
|
41980
42273
|
/**
|
|
41981
|
-
* Companydiscountamount
|
|
41982
|
-
* @description Discount amount in company currency
|
|
41983
|
-
*/
|
|
41984
|
-
companyDiscountAmount?: string | null;
|
|
41985
|
-
/**
|
|
41986
|
-
* Linediscountamount
|
|
41987
|
-
* @description Total line item discount amount
|
|
41988
|
-
*/
|
|
41989
|
-
lineDiscountAmount?: string | null;
|
|
41990
|
-
/**
|
|
41991
|
-
* Usdlinediscountamount
|
|
41992
|
-
* @description Total line item discount amount in secondary currency
|
|
41993
|
-
*/
|
|
41994
|
-
usdLineDiscountAmount?: string | null;
|
|
41995
|
-
/**
|
|
41996
|
-
* Companylinediscountamount
|
|
41997
|
-
* @description Total line item discount amount in company currency
|
|
41998
|
-
*/
|
|
41999
|
-
companyLineDiscountAmount?: string | null;
|
|
42000
|
-
/**
|
|
42001
|
-
* Remaining
|
|
42002
|
-
* @description - this field is number
|
|
42003
|
-
*/
|
|
42004
|
-
remaining?: string | null;
|
|
42005
|
-
/** Linkeddocuments */
|
|
42006
|
-
linkedDocuments?: {
|
|
42007
|
-
[key: string]: components["schemas"]["LinkedDocumentsSchema"];
|
|
42008
|
-
}[];
|
|
42009
|
-
/** @description visible when project module is active */
|
|
42010
|
-
project: components["schemas"]["ProjectSummaryInfo"] | null;
|
|
42011
|
-
/** Items */
|
|
42012
|
-
items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
|
|
42013
|
-
};
|
|
42014
|
-
/** PurchaseInvoiceItemsGetSchema */
|
|
42015
|
-
PurchaseInvoiceItemsGetSchema: {
|
|
42016
|
-
/**
|
|
42017
|
-
* Id
|
|
42018
|
-
* Format: uuid
|
|
42019
|
-
*/
|
|
42020
|
-
id: string;
|
|
42021
|
-
item: components["schemas"]["ItemMinimalSchema"] | null;
|
|
42022
|
-
/** Itemname */
|
|
42023
|
-
itemName: string | null;
|
|
42024
|
-
itemType: components["schemas"]["NonInventoryItemType"] | null;
|
|
42025
|
-
/** Description */
|
|
42026
|
-
description: string | null;
|
|
42027
|
-
/** Quantity */
|
|
42028
|
-
quantity: number;
|
|
42029
|
-
unitOfMeasurement: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
|
|
42030
|
-
/** Unitprice */
|
|
42031
|
-
unitPrice: number;
|
|
42032
|
-
itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
|
|
42033
|
-
/**
|
|
42034
|
-
* Includetaxinunitprice
|
|
42035
|
-
* @description If true, the unit price includes tax and will be extracted to calculate the base price
|
|
42036
|
-
* @default false
|
|
42037
|
-
*/
|
|
42038
|
-
includeTaxInUnitPrice: boolean;
|
|
42039
|
-
/** Discount */
|
|
42040
|
-
discount: number;
|
|
42041
|
-
/** Taxes */
|
|
42042
|
-
taxes: components["schemas"]["TaxSchema"][];
|
|
42043
|
-
/**
|
|
42044
|
-
* Subtotal
|
|
42045
|
-
* @description This field represents gross subtotal
|
|
42046
|
-
*/
|
|
42047
|
-
subTotal: number;
|
|
42048
|
-
/**
|
|
42049
|
-
* Usdsubtotal
|
|
42050
|
-
* @description This field represents gross subtotal in secondary currency
|
|
42051
|
-
*/
|
|
42052
|
-
usdSubTotal: number;
|
|
42053
|
-
/**
|
|
42054
|
-
* Companysubtotal
|
|
42055
|
-
* @description This field represents gross subtotal in company currency
|
|
42056
|
-
*/
|
|
42057
|
-
companySubTotal: number;
|
|
42058
|
-
/**
|
|
42059
|
-
* Discountedtotal
|
|
42060
|
-
* @description This field represents net subtotal after discount
|
|
42061
|
-
*/
|
|
42062
|
-
discountedTotal: number;
|
|
42063
|
-
/**
|
|
42064
|
-
* Usddiscountedtotal
|
|
42065
|
-
* @description This field represents discounted_total in secondary currency
|
|
42274
|
+
* Companydiscountamount
|
|
42275
|
+
* @description Discount amount in company currency
|
|
42066
42276
|
*/
|
|
42067
|
-
|
|
42277
|
+
companyDiscountAmount?: string | null;
|
|
42068
42278
|
/**
|
|
42069
|
-
*
|
|
42070
|
-
* @description
|
|
42279
|
+
* Linediscountamount
|
|
42280
|
+
* @description Total line item discount amount
|
|
42071
42281
|
*/
|
|
42072
|
-
|
|
42073
|
-
/** Taxamount */
|
|
42074
|
-
taxAmount: number;
|
|
42075
|
-
/** Usdtaxamount */
|
|
42076
|
-
usdTaxAmount: number;
|
|
42077
|
-
/** Companytaxamount */
|
|
42078
|
-
companyTaxAmount: number;
|
|
42282
|
+
lineDiscountAmount?: string | null;
|
|
42079
42283
|
/**
|
|
42080
|
-
*
|
|
42081
|
-
* @description
|
|
42284
|
+
* Usdlinediscountamount
|
|
42285
|
+
* @description Total line item discount amount in secondary currency
|
|
42082
42286
|
*/
|
|
42083
|
-
|
|
42287
|
+
usdLineDiscountAmount?: string | null;
|
|
42084
42288
|
/**
|
|
42085
|
-
*
|
|
42086
|
-
* @description
|
|
42289
|
+
* Companylinediscountamount
|
|
42290
|
+
* @description Total line item discount amount in company currency
|
|
42087
42291
|
*/
|
|
42088
|
-
|
|
42292
|
+
companyLineDiscountAmount?: string | null;
|
|
42089
42293
|
/**
|
|
42090
|
-
*
|
|
42091
|
-
* @description
|
|
42294
|
+
* Remaining
|
|
42295
|
+
* @description - this field is number
|
|
42092
42296
|
*/
|
|
42093
|
-
|
|
42094
|
-
/**
|
|
42095
|
-
|
|
42096
|
-
|
|
42097
|
-
|
|
42098
|
-
/**
|
|
42099
|
-
|
|
42297
|
+
remaining?: string | null;
|
|
42298
|
+
/** Linkeddocuments */
|
|
42299
|
+
linkedDocuments?: {
|
|
42300
|
+
[key: string]: components["schemas"]["LinkedDocumentsSchema"];
|
|
42301
|
+
}[];
|
|
42302
|
+
/** @description visible when project module is active */
|
|
42303
|
+
project: components["schemas"]["ProjectSummaryInfo"] | null;
|
|
42304
|
+
/** Items */
|
|
42305
|
+
items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
|
|
42100
42306
|
};
|
|
42101
42307
|
/** PurchaseInvoiceListResponse */
|
|
42102
42308
|
PurchaseInvoiceListResponse: {
|
|
@@ -42104,21 +42310,6 @@ export interface components {
|
|
|
42104
42310
|
/** Results */
|
|
42105
42311
|
results: components["schemas"]["PurchaseInvoiceDetailSchema"][];
|
|
42106
42312
|
};
|
|
42107
|
-
/** PurchaseOrderSharedSchema */
|
|
42108
|
-
PurchaseOrderSharedSchema: {
|
|
42109
|
-
/**
|
|
42110
|
-
* Id
|
|
42111
|
-
* Format: uuid
|
|
42112
|
-
*/
|
|
42113
|
-
id: string;
|
|
42114
|
-
/** Serialnumber */
|
|
42115
|
-
serialNumber: string;
|
|
42116
|
-
};
|
|
42117
|
-
/**
|
|
42118
|
-
* ReceivingStatusChoices
|
|
42119
|
-
* @enum {string}
|
|
42120
|
-
*/
|
|
42121
|
-
ReceivingStatusChoices: "Not Received" | "Partially Received" | "received";
|
|
42122
42313
|
/** PurchaseInvoiceWithEntriesSchema */
|
|
42123
42314
|
PurchaseInvoiceWithEntriesSchema: {
|
|
42124
42315
|
/**
|
|
@@ -43238,6 +43429,15 @@ export interface components {
|
|
|
43238
43429
|
};
|
|
43239
43430
|
/** PurchaseInvoiceForReturnInvoiceReturnSchema */
|
|
43240
43431
|
PurchaseInvoiceForReturnInvoiceReturnSchema: {
|
|
43432
|
+
/**
|
|
43433
|
+
* Datecreated
|
|
43434
|
+
* Format: date-time
|
|
43435
|
+
*/
|
|
43436
|
+
dateCreated: string;
|
|
43437
|
+
/** Datemodified */
|
|
43438
|
+
dateModified: string | null;
|
|
43439
|
+
createdBy: components["schemas"]["RecordUserSchema"];
|
|
43440
|
+
modifiedBy: components["schemas"]["RecordUserSchema"] | null;
|
|
43241
43441
|
/**
|
|
43242
43442
|
* Id
|
|
43243
43443
|
* Format: uuid
|
|
@@ -43245,6 +43445,188 @@ export interface components {
|
|
|
43245
43445
|
id: string;
|
|
43246
43446
|
/** Serialnumber */
|
|
43247
43447
|
serialNumber: string;
|
|
43448
|
+
branch: components["schemas"]["BranchSummaryInfo"];
|
|
43449
|
+
/**
|
|
43450
|
+
* Date
|
|
43451
|
+
* Format: date
|
|
43452
|
+
*/
|
|
43453
|
+
date: string;
|
|
43454
|
+
/** Referencenumber */
|
|
43455
|
+
referenceNumber: string | null;
|
|
43456
|
+
supplier: components["schemas"]["ChildSupplierSharedSchema"];
|
|
43457
|
+
/**
|
|
43458
|
+
* @description Purchase order ID, hit the purchase_order endpoint to get the list of purchase orders, filtered by the supplier
|
|
43459
|
+
* @default []
|
|
43460
|
+
*/
|
|
43461
|
+
purchaseOrder: components["schemas"]["PurchaseOrderSharedSchema"] | null;
|
|
43462
|
+
requisition: components["schemas"]["DocumentCommonSchema"] | null;
|
|
43463
|
+
purchaseQuotation: components["schemas"]["DocumentCommonSchema"] | null;
|
|
43464
|
+
/**
|
|
43465
|
+
* @description Advanced payment ID, to get advance payments use route /v1/purchase/advance-payments/?branchId=1&type=purchaseInvoice&supplier={supplier-id}
|
|
43466
|
+
* @default []
|
|
43467
|
+
*/
|
|
43468
|
+
advancePayment: components["schemas"]["AdvancedPaymentSharedSchema"] | null;
|
|
43469
|
+
/**
|
|
43470
|
+
* Goodsreceiptnote
|
|
43471
|
+
* @description Goods receipt note ID, hit the goods_receipt_note endpoint to get the list of goods receipt notes, filtered by the supplier
|
|
43472
|
+
* @default []
|
|
43473
|
+
*/
|
|
43474
|
+
goodsReceiptNote: components["schemas"]["ReceiptNoteSharedSchema"][];
|
|
43475
|
+
/**
|
|
43476
|
+
* Paymentvouchers
|
|
43477
|
+
* @default []
|
|
43478
|
+
*/
|
|
43479
|
+
paymentVouchers: components["schemas"]["PaymentVoucherSharedSchema"][];
|
|
43480
|
+
/**
|
|
43481
|
+
* Debitnotes
|
|
43482
|
+
* @default []
|
|
43483
|
+
*/
|
|
43484
|
+
debitNotes: components["schemas"]["DebitNoteSharedSchema"][];
|
|
43485
|
+
department?: components["schemas"]["DepartmentCommonSchema"] | null;
|
|
43486
|
+
/** Attachments */
|
|
43487
|
+
attachments: string[] | null;
|
|
43488
|
+
/** Description */
|
|
43489
|
+
description: string | null;
|
|
43490
|
+
/** Notes */
|
|
43491
|
+
notes: string | null;
|
|
43492
|
+
paymentTerms: components["schemas"]["PaymentTermsEnumSchema"];
|
|
43493
|
+
/** Duedate */
|
|
43494
|
+
dueDate?: string | null;
|
|
43495
|
+
status: components["schemas"]["DocumentStatusValue"];
|
|
43496
|
+
approvalStatus: components["schemas"]["ApprovalChoices"];
|
|
43497
|
+
paymentStatus: components["schemas"]["PaymentStatusChoices"];
|
|
43498
|
+
receivingStatus: components["schemas"]["ReceivingStatusChoices"];
|
|
43499
|
+
/** Usdrate */
|
|
43500
|
+
usdRate: number;
|
|
43501
|
+
/** Companyrate */
|
|
43502
|
+
companyRate: number;
|
|
43503
|
+
/**
|
|
43504
|
+
* Subtotal
|
|
43505
|
+
* @description This field represents gross subtotal
|
|
43506
|
+
*/
|
|
43507
|
+
subTotal: number;
|
|
43508
|
+
/**
|
|
43509
|
+
* Usdsubtotal
|
|
43510
|
+
* @description This field represents gross subtotal in secondary currency
|
|
43511
|
+
*/
|
|
43512
|
+
usdSubTotal: number;
|
|
43513
|
+
/**
|
|
43514
|
+
* Companysubtotal
|
|
43515
|
+
* @description This field represents gross subtotal in company currency
|
|
43516
|
+
*/
|
|
43517
|
+
companySubTotal: number;
|
|
43518
|
+
/**
|
|
43519
|
+
* Discount
|
|
43520
|
+
* @description This field represents overall discount in %
|
|
43521
|
+
*/
|
|
43522
|
+
discount: number;
|
|
43523
|
+
/**
|
|
43524
|
+
* Netsubtotal
|
|
43525
|
+
* @description This field is a number representing net subtotal (subtotal - line discount)
|
|
43526
|
+
*/
|
|
43527
|
+
netSubtotal: number;
|
|
43528
|
+
/**
|
|
43529
|
+
* Usdnetsubtotal
|
|
43530
|
+
* @description This field is a number representing net subtotal in secondary currency
|
|
43531
|
+
*/
|
|
43532
|
+
usdNetSubtotal: number;
|
|
43533
|
+
/**
|
|
43534
|
+
* Companynetsubtotal
|
|
43535
|
+
* @description This field is a number representing net subtotal in company currency
|
|
43536
|
+
*/
|
|
43537
|
+
companyNetSubtotal: number;
|
|
43538
|
+
/**
|
|
43539
|
+
* Discountedtotal
|
|
43540
|
+
* @description This field represents net total after line discount and overall discount
|
|
43541
|
+
*/
|
|
43542
|
+
discountedTotal: number;
|
|
43543
|
+
/**
|
|
43544
|
+
* Usddiscountedtotal
|
|
43545
|
+
* @description This field represents net total after line discount and overall discount in secondary currency
|
|
43546
|
+
*/
|
|
43547
|
+
usdDiscountedTotal: number;
|
|
43548
|
+
/**
|
|
43549
|
+
* Companydiscountedtotal
|
|
43550
|
+
* @description This field represents net total after line discount and overall discount in company currency
|
|
43551
|
+
*/
|
|
43552
|
+
companyDiscountedTotal: number;
|
|
43553
|
+
/** Taxamount */
|
|
43554
|
+
taxAmount: number;
|
|
43555
|
+
/** Companytaxamount */
|
|
43556
|
+
companyTaxAmount: number;
|
|
43557
|
+
/** Usdtaxamount */
|
|
43558
|
+
usdTaxAmount: number;
|
|
43559
|
+
/**
|
|
43560
|
+
* Total
|
|
43561
|
+
* @description This field represents grand total
|
|
43562
|
+
*/
|
|
43563
|
+
total: number;
|
|
43564
|
+
/**
|
|
43565
|
+
* Usdtotal
|
|
43566
|
+
* @description This field represents grand total in secondary currency
|
|
43567
|
+
*/
|
|
43568
|
+
usdTotal: number;
|
|
43569
|
+
/**
|
|
43570
|
+
* Companytotal
|
|
43571
|
+
* @description This field represents grand total in company currency
|
|
43572
|
+
*/
|
|
43573
|
+
companyTotal: number;
|
|
43574
|
+
/** Candelete */
|
|
43575
|
+
canDelete: boolean;
|
|
43576
|
+
/** Canconvert */
|
|
43577
|
+
canConvert: boolean;
|
|
43578
|
+
warehouse: components["schemas"]["WarehouseSummaryInfo"] | null;
|
|
43579
|
+
/** @description visible when supplier is not resident */
|
|
43580
|
+
tax: components["schemas"]["TaxSharedSchema"] | null;
|
|
43581
|
+
/**
|
|
43582
|
+
* Taxbreakdown
|
|
43583
|
+
* @description Aggregated tax amounts breakdown
|
|
43584
|
+
* @default []
|
|
43585
|
+
*/
|
|
43586
|
+
taxBreakdown: components["schemas"]["TaxBreakdownSchema"][];
|
|
43587
|
+
/**
|
|
43588
|
+
* Discountamount
|
|
43589
|
+
* @description Header-level discount amount (after line discounts)
|
|
43590
|
+
*/
|
|
43591
|
+
discountAmount?: string | null;
|
|
43592
|
+
/**
|
|
43593
|
+
* Usddiscountamount
|
|
43594
|
+
* @description Discount amount in secondary currency
|
|
43595
|
+
*/
|
|
43596
|
+
usdDiscountAmount?: string | null;
|
|
43597
|
+
/**
|
|
43598
|
+
* Companydiscountamount
|
|
43599
|
+
* @description Discount amount in company currency
|
|
43600
|
+
*/
|
|
43601
|
+
companyDiscountAmount?: string | null;
|
|
43602
|
+
/**
|
|
43603
|
+
* Linediscountamount
|
|
43604
|
+
* @description Total line item discount amount
|
|
43605
|
+
*/
|
|
43606
|
+
lineDiscountAmount?: string | null;
|
|
43607
|
+
/**
|
|
43608
|
+
* Usdlinediscountamount
|
|
43609
|
+
* @description Total line item discount amount in secondary currency
|
|
43610
|
+
*/
|
|
43611
|
+
usdLineDiscountAmount?: string | null;
|
|
43612
|
+
/**
|
|
43613
|
+
* Companylinediscountamount
|
|
43614
|
+
* @description Total line item discount amount in company currency
|
|
43615
|
+
*/
|
|
43616
|
+
companyLineDiscountAmount?: string | null;
|
|
43617
|
+
/**
|
|
43618
|
+
* Remaining
|
|
43619
|
+
* @description - this field is number
|
|
43620
|
+
*/
|
|
43621
|
+
remaining?: string | null;
|
|
43622
|
+
/** Linkeddocuments */
|
|
43623
|
+
linkedDocuments?: {
|
|
43624
|
+
[key: string]: components["schemas"]["LinkedDocumentsSchema"];
|
|
43625
|
+
}[];
|
|
43626
|
+
/** @description visible when project module is active */
|
|
43627
|
+
project: components["schemas"]["ProjectSummaryInfo"] | null;
|
|
43628
|
+
/** Items */
|
|
43629
|
+
items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
|
|
43248
43630
|
/**
|
|
43249
43631
|
* Purchaseinvoiceitem
|
|
43250
43632
|
* Format: uuid
|