@erp-galoper/types 1.0.1646 → 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.
Files changed (2) hide show
  1. package/openapi.ts +1053 -420
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -39880,21 +39880,39 @@ export interface components {
39880
39880
  * @default 0
39881
39881
  */
39882
39882
  companySubtotal: number;
39883
+ /**
39884
+ * Netsubtotal
39885
+ * @description This field is a number representing net subtotal (subtotal - line discount)
39886
+ * @default 0
39887
+ */
39888
+ netSubtotal: string;
39889
+ /**
39890
+ * Usdnetsubtotal
39891
+ * @description This field is a number representing net subtotal in secondary currency
39892
+ * @default 0
39893
+ */
39894
+ usdNetSubtotal: string;
39895
+ /**
39896
+ * Companynetsubtotal
39897
+ * @description This field is a number representing net subtotal in company currency
39898
+ * @default 0
39899
+ */
39900
+ companyNetSubtotal: string;
39883
39901
  /**
39884
39902
  * Discountedtotal
39885
- * @description This field represents net subtotal after discount
39903
+ * @description This field represents net total after discount
39886
39904
  * @default 0
39887
39905
  */
39888
39906
  discountedTotal: string;
39889
39907
  /**
39890
39908
  * Usddiscountedtotal
39891
- * @description This field represents net subtotal after discount in secondary currency
39909
+ * @description This field represents net total after discount in secondary currency
39892
39910
  * @default 0
39893
39911
  */
39894
39912
  usdDiscountedTotal: string;
39895
39913
  /**
39896
39914
  * Companydiscountedtotal
39897
- * @description This field represents net subtotal after discount in company currency
39915
+ * @description This field represents net total after discount in company currency
39898
39916
  * @default 0
39899
39917
  */
39900
39918
  companyDiscountedTotal: string;
@@ -39991,6 +40009,21 @@ export interface components {
39991
40009
  * @description This field represents gross subtotal in company currency
39992
40010
  */
39993
40011
  companySubtotal: number;
40012
+ /**
40013
+ * Netsubtotal
40014
+ * @description This field is a number representing net subtotal (subtotal - line discount)
40015
+ */
40016
+ netSubtotal: number;
40017
+ /**
40018
+ * Usdnetsubtotal
40019
+ * @description This field is a number representing net subtotal in secondary currency
40020
+ */
40021
+ usdNetSubtotal: number;
40022
+ /**
40023
+ * Companynetsubtotal
40024
+ * @description This field is a number representing net subtotal in company currency
40025
+ */
40026
+ companyNetSubtotal: number;
39994
40027
  /**
39995
40028
  * Discount
39996
40029
  * @description This field represents overall discount in %
@@ -39999,18 +40032,18 @@ export interface components {
39999
40032
  discount: number;
40000
40033
  /**
40001
40034
  * Discountedtotal
40002
- * @description This field represents net subtotal after discount
40035
+ * @description This field represents net total after line discount and overall discount
40003
40036
  * @default 0
40004
40037
  */
40005
40038
  discountedTotal: number;
40006
40039
  /**
40007
40040
  * Usddiscountedtotal
40008
- * @description This field represents net subtotal in secondary currency
40041
+ * @description This field represents net total after line discount and overall discount in secondary currency
40009
40042
  */
40010
40043
  usdDiscountedTotal: number;
40011
40044
  /**
40012
40045
  * Companydiscountedtotal
40013
- * @description This field represents net subtotal in company currency
40046
+ * @description This field represents net total after line discount and overall discount in company currency
40014
40047
  */
40015
40048
  companyDiscountedTotal: number;
40016
40049
  /** Taxamount */
@@ -40330,17 +40363,17 @@ export interface components {
40330
40363
  discount: number;
40331
40364
  /**
40332
40365
  * Discountedtotal
40333
- * @description This field represents net subtotal
40366
+ * @description This field represents net total after line discount and overall discount
40334
40367
  */
40335
40368
  discountedTotal: number;
40336
40369
  /**
40337
40370
  * Usddiscountedtotal
40338
- * @description Discount amount in secondary currency
40371
+ * @description This field represents discounted_total in secondary currency
40339
40372
  */
40340
- usdDiscountedTotal?: string | null;
40373
+ usdDiscountedTotal: number;
40341
40374
  /**
40342
40375
  * Companydiscountedtotal
40343
- * @description This field represents net subtotal in company currency
40376
+ * @description This field represents discounted_total in company currency
40344
40377
  */
40345
40378
  companyDiscountedTotal: number;
40346
40379
  /** Taxamount */
@@ -40375,6 +40408,11 @@ export interface components {
40375
40408
  * @description Discount amount (header-level discount only)
40376
40409
  */
40377
40410
  discountAmount?: string | null;
40411
+ /**
40412
+ * Usddiscountamount
40413
+ * @description Discount amount in secondary currency
40414
+ */
40415
+ usdDiscountAmount?: string | null;
40378
40416
  /**
40379
40417
  * Companydiscountamount
40380
40418
  * @description Discount amount in company currency
@@ -40438,19 +40476,34 @@ export interface components {
40438
40476
  * @description This field represents gross subtotal in company currency
40439
40477
  */
40440
40478
  companySubtotal: number;
40479
+ /**
40480
+ * Netsubtotal
40481
+ * @description This field is a number representing net subtotal (subtotal - line discount)
40482
+ */
40483
+ netSubtotal: number;
40484
+ /**
40485
+ * Usdnetsubtotal
40486
+ * @description This field is a number representing net subtotal in secondary currency
40487
+ */
40488
+ usdNetSubtotal: number;
40489
+ /**
40490
+ * Companynetsubtotal
40491
+ * @description This field is a number representing net subtotal in company currency
40492
+ */
40493
+ companyNetSubtotal: number;
40441
40494
  /**
40442
40495
  * Discountedtotal
40443
- * @description This field represents net subtotal
40496
+ * @description This field represents net total after line discount and overall discount
40444
40497
  */
40445
40498
  discountedTotal: number;
40446
40499
  /**
40447
40500
  * Usddiscountedtotal
40448
- * @description This field represents net subtotal in secondary currency
40501
+ * @description This field represents net total after line discount and overall discount in secondary currency
40449
40502
  */
40450
40503
  usdDiscountedTotal: number;
40451
40504
  /**
40452
40505
  * Companydiscountedtotal
40453
- * @description This field represents net subtotal in company currency
40506
+ * @description This field represents net total after line discount and overall discount in company currency
40454
40507
  */
40455
40508
  companyDiscountedTotal: number;
40456
40509
  /** Taxamount */
@@ -40638,21 +40691,39 @@ export interface components {
40638
40691
  * @default 0
40639
40692
  */
40640
40693
  companySubtotal: number;
40694
+ /**
40695
+ * Netsubtotal
40696
+ * @description This field is a number representing net subtotal (subtotal - line discount)
40697
+ * @default 0
40698
+ */
40699
+ netSubtotal: string;
40700
+ /**
40701
+ * Usdnetsubtotal
40702
+ * @description This field is a number representing net subtotal in secondary currency
40703
+ * @default 0
40704
+ */
40705
+ usdNetSubtotal: string;
40706
+ /**
40707
+ * Companynetsubtotal
40708
+ * @description This field is a number representing net subtotal in company currency
40709
+ * @default 0
40710
+ */
40711
+ companyNetSubtotal: string;
40641
40712
  /**
40642
40713
  * Discountedtotal
40643
- * @description This field represents net subtotal after discount
40714
+ * @description This field represents net total after line discount and overall discount
40644
40715
  * @default 0
40645
40716
  */
40646
40717
  discountedTotal: string;
40647
40718
  /**
40648
40719
  * Usddiscountedtotal
40649
- * @description This field represents net subtotal after discount in secondary currency
40720
+ * @description This field represents net total after line discount and overall discount in secondary currency
40650
40721
  * @default 0
40651
40722
  */
40652
40723
  usdDiscountedTotal: string;
40653
40724
  /**
40654
40725
  * Companydiscountedtotal
40655
- * @description This field represents net subtotal after discount in company currency
40726
+ * @description This field represents net total after line discount and overall discount in company currency
40656
40727
  * @default 0
40657
40728
  */
40658
40729
  companyDiscountedTotal: string;
@@ -40753,6 +40824,21 @@ export interface components {
40753
40824
  * @description This field represents gross subtotal in company currency
40754
40825
  */
40755
40826
  companySubtotal: number;
40827
+ /**
40828
+ * Netsubtotal
40829
+ * @description This field is a number representing net subtotal (subtotal - line discount)
40830
+ */
40831
+ netSubtotal: number;
40832
+ /**
40833
+ * Usdnetsubtotal
40834
+ * @description This field is a number representing net subtotal in secondary currency
40835
+ */
40836
+ usdNetSubtotal: number;
40837
+ /**
40838
+ * Companynetsubtotal
40839
+ * @description This field is a number representing net subtotal in company currency
40840
+ */
40841
+ companyNetSubtotal: number;
40756
40842
  /**
40757
40843
  * Discount
40758
40844
  * @description This field represents overall discount in %
@@ -40760,17 +40846,17 @@ export interface components {
40760
40846
  discount: number;
40761
40847
  /**
40762
40848
  * Discountedtotal
40763
- * @description This field represents net subtotal after discount
40849
+ * @description This field represents net total after line discount and overall discount
40764
40850
  */
40765
40851
  discountedTotal: number;
40766
40852
  /**
40767
40853
  * Usddiscountedtotal
40768
- * @description This field represents net subtotal in secondary currency
40854
+ * @description This field represents net total after line discount and overall discount in secondary currency
40769
40855
  */
40770
40856
  usdDiscountedTotal: number;
40771
40857
  /**
40772
40858
  * Companydiscountedtotal
40773
- * @description This field represents net subtotal in company currency
40859
+ * @description This field represents net total after line discount and overall discount in company currency
40774
40860
  */
40775
40861
  companyDiscountedTotal: number;
40776
40862
  /** Taxamount */
@@ -41134,8 +41220,8 @@ export interface components {
41134
41220
  itemDifferences: components["schemas"]["ItemDifferenceSchema"][];
41135
41221
  totalDifferences: components["schemas"]["TotalDifferenceSchema"];
41136
41222
  };
41137
- /** PurchaseInvoiceForReturnOrderReturnSchema */
41138
- PurchaseInvoiceForReturnOrderReturnSchema: {
41223
+ /** AdvancedPaymentSharedSchema */
41224
+ AdvancedPaymentSharedSchema: {
41139
41225
  /**
41140
41226
  * Id
41141
41227
  * Format: uuid
@@ -41143,102 +41229,41 @@ export interface components {
41143
41229
  id: string;
41144
41230
  /** Serialnumber */
41145
41231
  serialNumber: string;
41232
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
41233
+ };
41234
+ /** DebitNoteSharedSchema */
41235
+ DebitNoteSharedSchema: {
41146
41236
  /**
41147
- * Purchaseinvoiceitem
41237
+ * Id
41148
41238
  * Format: uuid
41149
- * @description the same route used to get a purchase invoice you will find the items related to this purchase invoice
41150
41239
  */
41151
- purchaseInvoiceItem: string;
41240
+ id: string;
41241
+ /** Serialnumber */
41242
+ serialNumber: string;
41152
41243
  };
41153
- /** PurchaseReturnOrderItemsSchema */
41154
- PurchaseReturnOrderItemsSchema: {
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: {
41155
41256
  /**
41156
41257
  * Id
41157
41258
  * Format: uuid
41158
41259
  */
41159
41260
  id: string;
41160
- item?: components["schemas"]["ItemMinimalSchema"] | null;
41161
- /** Itemname */
41162
- itemName?: string | null;
41163
- /** Description */
41164
- description: string | null;
41165
- /** Quantity */
41166
- quantity: number;
41167
- /** @description This field is required and visible when inventory module is active only, to get unit of measures use route /inventory/item/{item_id}/ where field is unitOfMeasure */
41168
- unitOfMeasure?: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
41169
- /** Unitprice */
41170
- unitPrice: number;
41171
- itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
41172
- purchaseInvoice: components["schemas"]["PurchaseInvoiceForReturnOrderReturnSchema"];
41173
- /** Discount */
41174
- discount: number;
41175
- /** Subtotal */
41176
- subtotal: number;
41177
- /**
41178
- * Usdsubtotal
41179
- * @default 0
41180
- */
41181
- usdSubtotal: number;
41182
- /**
41183
- * Companysubtotal
41184
- * @default 0
41185
- */
41186
- companySubtotal: number;
41187
- /** Discountedtotal */
41188
- discountedTotal: string;
41189
- /**
41190
- * Usddiscountedtotal
41191
- * @default 0
41192
- */
41193
- usdDiscountedTotal: string;
41194
- /**
41195
- * Companydiscountedtotal
41196
- * @default 0
41197
- */
41198
- companyDiscountedTotal: string;
41199
- /**
41200
- * Taxes
41201
- * @default []
41202
- */
41203
- taxes: components["schemas"]["TaxSharedSchema"][];
41204
- /**
41205
- * Taxamount
41206
- * @default 0
41207
- */
41208
- taxAmount: number;
41209
- /**
41210
- * Usdtaxamount
41211
- * @default 0
41212
- */
41213
- usdTaxAmount: number;
41214
- /**
41215
- * Companytaxamount
41216
- * @default 0
41217
- */
41218
- companyTaxAmount: number;
41219
- /**
41220
- * Total
41221
- * @default 0
41222
- */
41223
- total: number;
41224
- /**
41225
- * Usdtotal
41226
- * @default 0
41227
- */
41228
- usdTotal: number;
41229
- /**
41230
- * Companytotal
41231
- * @default 0
41232
- */
41233
- companyTotal: number;
41234
- /**
41235
- * Returnedquantity
41236
- * @description Quantity already returned/invoiced (quantity for regular items, unit package for packaged items)
41237
- */
41238
- returnedQuantity?: number | null;
41261
+ /** Serialnumber */
41262
+ serialNumber: string;
41263
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
41239
41264
  };
41240
- /** PurchaseReturnOrderSchema */
41241
- PurchaseReturnOrderSchema: {
41265
+ /** PurchaseInvoiceForReturnOrderReturnSchema */
41266
+ PurchaseInvoiceForReturnOrderReturnSchema: {
41242
41267
  /**
41243
41268
  * Datecreated
41244
41269
  * Format: date-time
@@ -41255,19 +41280,57 @@ export interface components {
41255
41280
  id: string;
41256
41281
  /** Serialnumber */
41257
41282
  serialNumber: string;
41258
- supplier: components["schemas"]["ChildSupplierSharedSchema"];
41283
+ branch: components["schemas"]["BranchSummaryInfo"];
41259
41284
  /**
41260
41285
  * Date
41261
41286
  * Format: date
41262
41287
  */
41263
41288
  date: string;
41264
- /** Deliverydate */
41265
- deliveryDate?: string | null;
41266
- status: components["schemas"]["InternalStatusOnReturnValueChoices"];
41267
- approvalStatus: components["schemas"]["ApprovalValueChoices"];
41268
41289
  /** Referencenumber */
41269
- referenceNumber?: string | null;
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"][];
41270
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"];
41271
41334
  /** Usdrate */
41272
41335
  usdRate: number;
41273
41336
  /** Companyrate */
@@ -41276,38 +41339,58 @@ export interface components {
41276
41339
  * Subtotal
41277
41340
  * @description This field represents gross subtotal
41278
41341
  */
41279
- subtotal: number;
41342
+ subTotal: number;
41280
41343
  /**
41281
41344
  * Usdsubtotal
41282
41345
  * @description This field represents gross subtotal in secondary currency
41283
41346
  */
41284
- usdSubtotal: number;
41347
+ usdSubTotal: number;
41285
41348
  /**
41286
41349
  * Companysubtotal
41287
41350
  * @description This field represents gross subtotal in company currency
41288
41351
  */
41289
- companySubtotal: number;
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;
41290
41373
  /**
41291
41374
  * Discountedtotal
41292
- * @description This field represents net subtotal
41375
+ * @description This field represents net total after line discount and overall discount
41293
41376
  */
41294
41377
  discountedTotal: number;
41295
41378
  /**
41296
41379
  * Usddiscountedtotal
41297
- * @description This field represents net subtotal in secondary currency
41380
+ * @description This field represents net total after line discount and overall discount in secondary currency
41298
41381
  */
41299
41382
  usdDiscountedTotal: number;
41300
41383
  /**
41301
41384
  * Companydiscountedtotal
41302
- * @description This field represents net subtotal in company currency
41385
+ * @description This field represents net total after line discount and overall discount in company currency
41303
41386
  */
41304
41387
  companyDiscountedTotal: number;
41305
41388
  /** Taxamount */
41306
41389
  taxAmount: number;
41307
- /** Usdtaxamount */
41308
- usdTaxAmount: number;
41309
41390
  /** Companytaxamount */
41310
41391
  companyTaxAmount: number;
41392
+ /** Usdtaxamount */
41393
+ usdTaxAmount: number;
41311
41394
  /**
41312
41395
  * Total
41313
41396
  * @description This field represents grand total
@@ -41323,9 +41406,342 @@ export interface components {
41323
41406
  * @description This field represents grand total in company currency
41324
41407
  */
41325
41408
  companyTotal: number;
41326
- /** Attachments */
41327
- attachments?: string[] | null;
41328
- /** Description */
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"][];
41465
+ /**
41466
+ * Purchaseinvoiceitem
41467
+ * Format: uuid
41468
+ * @description the same route used to get a purchase invoice you will find the items related to this purchase invoice
41469
+ */
41470
+ purchaseInvoiceItem: string;
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
+ };
41569
+ /** PurchaseReturnOrderItemsSchema */
41570
+ PurchaseReturnOrderItemsSchema: {
41571
+ /**
41572
+ * Id
41573
+ * Format: uuid
41574
+ */
41575
+ id: string;
41576
+ item?: components["schemas"]["ItemMinimalSchema"] | null;
41577
+ /** Itemname */
41578
+ itemName?: string | null;
41579
+ /** Description */
41580
+ description: string | null;
41581
+ /** Quantity */
41582
+ quantity: number;
41583
+ /** @description This field is required and visible when inventory module is active only, to get unit of measures use route /inventory/item/{item_id}/ where field is unitOfMeasure */
41584
+ unitOfMeasure?: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
41585
+ /** Unitprice */
41586
+ unitPrice: number;
41587
+ itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
41588
+ purchaseInvoice: components["schemas"]["PurchaseInvoiceForReturnOrderReturnSchema"];
41589
+ /** Discount */
41590
+ discount: number;
41591
+ /** Subtotal */
41592
+ subtotal: number;
41593
+ /**
41594
+ * Usdsubtotal
41595
+ * @default 0
41596
+ */
41597
+ usdSubtotal: number;
41598
+ /**
41599
+ * Companysubtotal
41600
+ * @default 0
41601
+ */
41602
+ companySubtotal: number;
41603
+ /** Discountedtotal */
41604
+ discountedTotal: string;
41605
+ /**
41606
+ * Usddiscountedtotal
41607
+ * @default 0
41608
+ */
41609
+ usdDiscountedTotal: string;
41610
+ /**
41611
+ * Companydiscountedtotal
41612
+ * @default 0
41613
+ */
41614
+ companyDiscountedTotal: string;
41615
+ /**
41616
+ * Taxes
41617
+ * @default []
41618
+ */
41619
+ taxes: components["schemas"]["TaxSharedSchema"][];
41620
+ /**
41621
+ * Taxamount
41622
+ * @default 0
41623
+ */
41624
+ taxAmount: number;
41625
+ /**
41626
+ * Usdtaxamount
41627
+ * @default 0
41628
+ */
41629
+ usdTaxAmount: number;
41630
+ /**
41631
+ * Companytaxamount
41632
+ * @default 0
41633
+ */
41634
+ companyTaxAmount: number;
41635
+ /**
41636
+ * Total
41637
+ * @default 0
41638
+ */
41639
+ total: number;
41640
+ /**
41641
+ * Usdtotal
41642
+ * @default 0
41643
+ */
41644
+ usdTotal: number;
41645
+ /**
41646
+ * Companytotal
41647
+ * @default 0
41648
+ */
41649
+ companyTotal: number;
41650
+ /**
41651
+ * Returnedquantity
41652
+ * @description Quantity already returned/invoiced (quantity for regular items, unit package for packaged items)
41653
+ */
41654
+ returnedQuantity?: number | null;
41655
+ };
41656
+ /** PurchaseReturnOrderSchema */
41657
+ PurchaseReturnOrderSchema: {
41658
+ /**
41659
+ * Datecreated
41660
+ * Format: date-time
41661
+ */
41662
+ dateCreated: string;
41663
+ /** Datemodified */
41664
+ dateModified: string | null;
41665
+ createdBy: components["schemas"]["RecordUserSchema"];
41666
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
41667
+ /**
41668
+ * Id
41669
+ * Format: uuid
41670
+ */
41671
+ id: string;
41672
+ /** Serialnumber */
41673
+ serialNumber: string;
41674
+ supplier: components["schemas"]["ChildSupplierSharedSchema"];
41675
+ /**
41676
+ * Date
41677
+ * Format: date
41678
+ */
41679
+ date: string;
41680
+ /** Deliverydate */
41681
+ deliveryDate?: string | null;
41682
+ status: components["schemas"]["InternalStatusOnReturnValueChoices"];
41683
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
41684
+ /** Referencenumber */
41685
+ referenceNumber?: string | null;
41686
+ department?: components["schemas"]["DepartmentCommonSchema"] | null;
41687
+ /** Usdrate */
41688
+ usdRate: number;
41689
+ /** Companyrate */
41690
+ companyRate: number;
41691
+ /**
41692
+ * Subtotal
41693
+ * @description This field represents gross subtotal
41694
+ */
41695
+ subtotal: number;
41696
+ /**
41697
+ * Usdsubtotal
41698
+ * @description This field represents gross subtotal in secondary currency
41699
+ */
41700
+ usdSubtotal: number;
41701
+ /**
41702
+ * Companysubtotal
41703
+ * @description This field represents gross subtotal in company currency
41704
+ */
41705
+ companySubtotal: number;
41706
+ /**
41707
+ * Discountedtotal
41708
+ * @description This field represents net subtotal
41709
+ */
41710
+ discountedTotal: number;
41711
+ /**
41712
+ * Usddiscountedtotal
41713
+ * @description This field represents discounted_total in secondary currency
41714
+ */
41715
+ usdDiscountedTotal: number;
41716
+ /**
41717
+ * Companydiscountedtotal
41718
+ * @description This field represents net subtotal in company currency
41719
+ */
41720
+ companyDiscountedTotal: number;
41721
+ /** Taxamount */
41722
+ taxAmount: number;
41723
+ /** Usdtaxamount */
41724
+ usdTaxAmount: number;
41725
+ /** Companytaxamount */
41726
+ companyTaxAmount: number;
41727
+ /**
41728
+ * Total
41729
+ * @description This field represents grand total
41730
+ */
41731
+ total: number;
41732
+ /**
41733
+ * Usdtotal
41734
+ * @description This field represents grand total in secondary currency
41735
+ */
41736
+ usdTotal: number;
41737
+ /**
41738
+ * Companytotal
41739
+ * @description This field represents grand total in company currency
41740
+ */
41741
+ companyTotal: number;
41742
+ /** Attachments */
41743
+ attachments?: string[] | null;
41744
+ /** Description */
41329
41745
  description: string | null;
41330
41746
  /** Notes */
41331
41747
  notes: string | null;
@@ -41369,6 +41785,11 @@ export interface components {
41369
41785
  */
41370
41786
  items: components["schemas"]["PurchaseReturnOrderItemsSchema"][];
41371
41787
  };
41788
+ /**
41789
+ * ReceivingStatusChoices
41790
+ * @enum {string}
41791
+ */
41792
+ ReceivingStatusChoices: "Not Received" | "Partially Received" | "received";
41372
41793
  /** CreateUpdatePurchaseReturnOrderItemsSchema */
41373
41794
  CreateUpdatePurchaseReturnOrderItemsSchema: {
41374
41795
  /**
@@ -41607,7 +42028,7 @@ export interface components {
41607
42028
  discountedTotal: number;
41608
42029
  /**
41609
42030
  * Usddiscountedtotal
41610
- * @description This field represents net subtotal in secondary currency
42031
+ * @description This field represents discounted_total in secondary currency
41611
42032
  */
41612
42033
  usdDiscountedTotal: number;
41613
42034
  /**
@@ -41682,48 +42103,6 @@ export interface components {
41682
42103
  * @enum {string}
41683
42104
  */
41684
42105
  TypeSchema: "default" | "creditNote" | "paymentVoucher";
41685
- /** AdvancedPaymentSharedSchema */
41686
- AdvancedPaymentSharedSchema: {
41687
- /**
41688
- * Id
41689
- * Format: uuid
41690
- */
41691
- id: string;
41692
- /** Serialnumber */
41693
- serialNumber: string;
41694
- approvalStatus: components["schemas"]["ApprovalValueChoices"];
41695
- };
41696
- /** DebitNoteSharedSchema */
41697
- DebitNoteSharedSchema: {
41698
- /**
41699
- * Id
41700
- * Format: uuid
41701
- */
41702
- id: string;
41703
- /** Serialnumber */
41704
- serialNumber: string;
41705
- };
41706
- /**
41707
- * DocumentStatusValue
41708
- * @enum {string}
41709
- */
41710
- DocumentStatusValue: "draft" | "posted" | "submitted" | "canceled" | "sent";
41711
- /**
41712
- * PaymentStatusChoices
41713
- * @enum {string}
41714
- */
41715
- PaymentStatusChoices: "Not Paid" | "Partially Paid" | "Paid";
41716
- /** PaymentVoucherSharedSchema */
41717
- PaymentVoucherSharedSchema: {
41718
- /**
41719
- * Id
41720
- * Format: uuid
41721
- */
41722
- id: string;
41723
- /** Serialnumber */
41724
- serialNumber: string;
41725
- approvalStatus: components["schemas"]["ApprovalValueChoices"];
41726
- };
41727
42106
  /** PurchaseInvoiceDetailSchema */
41728
42107
  PurchaseInvoiceDetailSchema: {
41729
42108
  /**
@@ -41817,19 +42196,34 @@ export interface components {
41817
42196
  * @description This field represents overall discount in %
41818
42197
  */
41819
42198
  discount: number;
42199
+ /**
42200
+ * Netsubtotal
42201
+ * @description This field is a number representing net subtotal (subtotal - line discount)
42202
+ */
42203
+ netSubtotal: number;
42204
+ /**
42205
+ * Usdnetsubtotal
42206
+ * @description This field is a number representing net subtotal in secondary currency
42207
+ */
42208
+ usdNetSubtotal: number;
42209
+ /**
42210
+ * Companynetsubtotal
42211
+ * @description This field is a number representing net subtotal in company currency
42212
+ */
42213
+ companyNetSubtotal: number;
41820
42214
  /**
41821
42215
  * Discountedtotal
41822
- * @description This field represents net subtotal after discount
42216
+ * @description This field represents net total after line discount and overall discount
41823
42217
  */
41824
42218
  discountedTotal: number;
41825
42219
  /**
41826
42220
  * Usddiscountedtotal
41827
- * @description This field represents net subtotal in secondary currency
42221
+ * @description This field represents net total after line discount and overall discount in secondary currency
41828
42222
  */
41829
42223
  usdDiscountedTotal: number;
41830
42224
  /**
41831
42225
  * Companydiscountedtotal
41832
- * @description This field represents net subtotal in company currency
42226
+ * @description This field represents net total after line discount and overall discount in company currency
41833
42227
  */
41834
42228
  companyDiscountedTotal: number;
41835
42229
  /** Taxamount */
@@ -41899,103 +42293,16 @@ export interface components {
41899
42293
  /**
41900
42294
  * Remaining
41901
42295
  * @description - this field is number
41902
- */
41903
- remaining?: string | null;
41904
- /** Linkeddocuments */
41905
- linkedDocuments?: {
41906
- [key: string]: components["schemas"]["LinkedDocumentsSchema"];
41907
- }[];
41908
- /** @description visible when project module is active */
41909
- project: components["schemas"]["ProjectSummaryInfo"] | null;
41910
- /** Items */
41911
- items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
41912
- };
41913
- /** PurchaseInvoiceItemsGetSchema */
41914
- PurchaseInvoiceItemsGetSchema: {
41915
- /**
41916
- * Id
41917
- * Format: uuid
41918
- */
41919
- id: string;
41920
- item: components["schemas"]["ItemMinimalSchema"] | null;
41921
- /** Itemname */
41922
- itemName: string | null;
41923
- itemType: components["schemas"]["NonInventoryItemType"] | null;
41924
- /** Description */
41925
- description: string | null;
41926
- /** Quantity */
41927
- quantity: number;
41928
- unitOfMeasurement: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
41929
- /** Unitprice */
41930
- unitPrice: number;
41931
- itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
41932
- /**
41933
- * Includetaxinunitprice
41934
- * @description If true, the unit price includes tax and will be extracted to calculate the base price
41935
- * @default false
41936
- */
41937
- includeTaxInUnitPrice: boolean;
41938
- /** Discount */
41939
- discount: number;
41940
- /** Taxes */
41941
- taxes: components["schemas"]["TaxSchema"][];
41942
- /**
41943
- * Subtotal
41944
- * @description This field represents gross subtotal
41945
- */
41946
- subTotal: number;
41947
- /**
41948
- * Usdsubtotal
41949
- * @description This field represents gross subtotal in secondary currency
41950
- */
41951
- usdSubTotal: number;
41952
- /**
41953
- * Companysubtotal
41954
- * @description This field represents gross subtotal in company currency
41955
- */
41956
- companySubTotal: number;
41957
- /**
41958
- * Discountedtotal
41959
- * @description This field represents net subtotal after discount
41960
- */
41961
- discountedTotal: number;
41962
- /**
41963
- * Usddiscountedtotal
41964
- * @description This field represents net subtotal in secondary currency
41965
- */
41966
- usdDiscountedTotal: number;
41967
- /**
41968
- * Companydiscountedtotal
41969
- * @description This field represents net subtotal in company currency
41970
- */
41971
- companyDiscountedTotal: number;
41972
- /** Taxamount */
41973
- taxAmount: number;
41974
- /** Usdtaxamount */
41975
- usdTaxAmount: number;
41976
- /** Companytaxamount */
41977
- companyTaxAmount: number;
41978
- /**
41979
- * Total
41980
- * @description This field represents grand total
41981
- */
41982
- total: number;
41983
- /**
41984
- * Usdtotal
41985
- * @description This field represents grand total in secondary currency
41986
- */
41987
- usdTotal: number;
41988
- /**
41989
- * Companytotal
41990
- * @description This field represents grand total in company currency
41991
- */
41992
- companyTotal: number;
41993
- /** Quantityreceived */
41994
- quantityReceived?: number;
41995
- /** Quantityreturnedorder */
41996
- quantityReturnedOrder?: number;
41997
- /** Quantityreturnedinvoice */
41998
- quantityReturnedInvoice?: number;
42296
+ */
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"][];
41999
42306
  };
42000
42307
  /** PurchaseInvoiceListResponse */
42001
42308
  PurchaseInvoiceListResponse: {
@@ -42003,21 +42310,6 @@ export interface components {
42003
42310
  /** Results */
42004
42311
  results: components["schemas"]["PurchaseInvoiceDetailSchema"][];
42005
42312
  };
42006
- /** PurchaseOrderSharedSchema */
42007
- PurchaseOrderSharedSchema: {
42008
- /**
42009
- * Id
42010
- * Format: uuid
42011
- */
42012
- id: string;
42013
- /** Serialnumber */
42014
- serialNumber: string;
42015
- };
42016
- /**
42017
- * ReceivingStatusChoices
42018
- * @enum {string}
42019
- */
42020
- ReceivingStatusChoices: "Not Received" | "Partially Received" | "received";
42021
42313
  /** PurchaseInvoiceWithEntriesSchema */
42022
42314
  PurchaseInvoiceWithEntriesSchema: {
42023
42315
  /**
@@ -42111,19 +42403,34 @@ export interface components {
42111
42403
  * @description This field represents overall discount in %
42112
42404
  */
42113
42405
  discount: number;
42406
+ /**
42407
+ * Netsubtotal
42408
+ * @description This field is a number representing net subtotal (subtotal - line discount)
42409
+ */
42410
+ netSubtotal: number;
42411
+ /**
42412
+ * Usdnetsubtotal
42413
+ * @description This field is a number representing net subtotal in secondary currency
42414
+ */
42415
+ usdNetSubtotal: number;
42416
+ /**
42417
+ * Companynetsubtotal
42418
+ * @description This field is a number representing net subtotal in company currency
42419
+ */
42420
+ companyNetSubtotal: number;
42114
42421
  /**
42115
42422
  * Discountedtotal
42116
- * @description This field represents net subtotal after discount
42423
+ * @description This field represents net total after line discount and overall discount
42117
42424
  */
42118
42425
  discountedTotal: number;
42119
42426
  /**
42120
42427
  * Usddiscountedtotal
42121
- * @description This field represents net subtotal in secondary currency
42428
+ * @description This field represents net total after line discount and overall discount in secondary currency
42122
42429
  */
42123
42430
  usdDiscountedTotal: number;
42124
42431
  /**
42125
42432
  * Companydiscountedtotal
42126
- * @description This field represents net subtotal in company currency
42433
+ * @description This field represents net total after line discount and overall discount in company currency
42127
42434
  */
42128
42435
  companyDiscountedTotal: number;
42129
42436
  /** Taxamount */
@@ -42997,138 +43304,329 @@ export interface components {
42997
43304
  * - supplier_id: ID of the supplier.
42998
43305
  * - Filter: Banks where `status = true.
42999
43306
  */
43000
- accountNumber?: string;
43307
+ accountNumber?: string;
43308
+ /**
43309
+ * Paymentmethod
43310
+ * @description API Endpoints for Payment Method Retrieval:
43311
+ * - Use the API: api/v1/payment_methods/
43312
+ * - Filter: where name != on Account
43313
+ */
43314
+ paymentMethod: number;
43315
+ /**
43316
+ * Supplierbankaccount
43317
+ * @description Visibility and Requirement:
43318
+ * - Required and visible if payment method is Bank Transfer
43319
+ * API Endpoints for Supplier Bank Account Retrieval:
43320
+ * - Use the API: /api/v1/suppliers/{supplier-id}/ where field is banks
43321
+ */
43322
+ supplierBankAccount?: number;
43323
+ /**
43324
+ * Duedate
43325
+ * Format: date
43326
+ * @description Visibility and Requirement:
43327
+ * - Required and visible if payment method is Cheque
43328
+ */
43329
+ dueDate?: string;
43330
+ /**
43331
+ * Chequenumber
43332
+ * @description Visibility and Requirement:
43333
+ * - Required and visible if payment method is Cheque
43334
+ */
43335
+ chequeNumber?: string;
43336
+ /**
43337
+ * Bankname
43338
+ * @description Visibility and Requirement:
43339
+ * - Required and visible if payment method is Cheque
43340
+ */
43341
+ bankName?: string;
43342
+ /**
43343
+ * Purchaseinvoice
43344
+ * Format: uuid
43345
+ * @description API Endpoints for Purchase Invoice Retrieval:
43346
+ * - Use the API: /api/v1/purchase/invoices/?branchId={branch-id}&type=paymentVoucher&supplier={supplier-id}
43347
+ */
43348
+ purchaseInvoice?: string;
43349
+ /**
43350
+ * Amount
43351
+ * @description field is number
43352
+ */
43353
+ amount: string;
43354
+ /**
43355
+ * Companyrate
43356
+ * @description - This field is number
43357
+ * - This field is visible and required if allow rate change is on in system settings
43358
+ * - For LB:
43359
+ * - if supplier currency same as company currency or supplier currency is USD get the company_rate from /api/v1/currencies/ where currency name is USD and field(rate),
43360
+ * - if supplier currency is foreign for example EUR get the company_rate from /api/v1/currencies/ where currency name is same as supplier currency and field(rate)),
43361
+ * - For countries other than LB:
43362
+ * - get company_rate from /api/v1/currencies/ where currency name same as supplier currency
43363
+ */
43364
+ companyRate?: string;
43365
+ /**
43366
+ * Secondaryrate
43367
+ * @description - This field is number
43368
+ * - This field is visible and required if allow rate change is on in system settings and the country is Lebanon
43369
+ * and supplier currency is foreign currency meaning (NOT COMPANY CURRENCY)
43370
+ */
43371
+ secondaryRate?: string;
43372
+ };
43373
+ /** UpdatePaymentVoucherSchema */
43374
+ UpdatePaymentVoucherSchema: {
43375
+ /** Password */
43376
+ password: string | null;
43377
+ /**
43378
+ * Date
43379
+ * Format: date
43380
+ * @description API Endpoints for Date Range Retrieval:
43381
+ * - Use the API: /api/v1/common/allowed_date_range/
43382
+ * - Query Parameters:
43383
+ * - module: purchase
43384
+ * - Format: yyyy-mm-dd
43385
+ */
43386
+ date: string;
43387
+ /** Reference */
43388
+ reference?: string | null;
43389
+ /** Description */
43390
+ description: string | null;
43391
+ /** Notes */
43392
+ notes?: string | null;
43393
+ /**
43394
+ * Supplier
43395
+ * @description To get suppliers use route /suppliers/?type=children and filter by isActive equals to true
43396
+ */
43397
+ supplier: number;
43398
+ /**
43399
+ * Attachments
43400
+ * @description API Endpoints for File Upload:
43401
+ * - Use the API: /api/v1/common/upload
43402
+ * - Payload Type: paymentvoucher
43403
+ * @default []
43404
+ */
43405
+ attachments: string[];
43406
+ /** Recipient */
43407
+ recipient: string | null;
43408
+ /**
43409
+ * Department
43410
+ * @description to get user departments use route /auth/users/me/
43411
+ */
43412
+ department: string | null;
43413
+ status: components["schemas"]["InternalStatusChoices"];
43414
+ /** Payments */
43415
+ payments: components["schemas"]["UpdatePaymentVoucherItemSchema"][];
43416
+ };
43417
+ /** PaymentVoucherDeleteSchema */
43418
+ PaymentVoucherDeleteSchema: {
43419
+ /** Password */
43420
+ password?: string;
43421
+ };
43422
+ /** ActionOnPaymentVoucherSchema */
43423
+ ActionOnPaymentVoucherSchema: {
43424
+ /**
43425
+ * Password
43426
+ * @default
43427
+ */
43428
+ password: string | null;
43429
+ };
43430
+ /** PurchaseInvoiceForReturnInvoiceReturnSchema */
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;
43441
+ /**
43442
+ * Id
43443
+ * Format: uuid
43444
+ */
43445
+ id: string;
43446
+ /** Serialnumber */
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;
43001
43533
  /**
43002
- * Paymentmethod
43003
- * @description API Endpoints for Payment Method Retrieval:
43004
- * - Use the API: api/v1/payment_methods/
43005
- * - Filter: where name != on Account
43534
+ * Companynetsubtotal
43535
+ * @description This field is a number representing net subtotal in company currency
43006
43536
  */
43007
- paymentMethod: number;
43537
+ companyNetSubtotal: number;
43008
43538
  /**
43009
- * Supplierbankaccount
43010
- * @description Visibility and Requirement:
43011
- * - Required and visible if payment method is Bank Transfer
43012
- * API Endpoints for Supplier Bank Account Retrieval:
43013
- * - Use the API: /api/v1/suppliers/{supplier-id}/ where field is banks
43539
+ * Discountedtotal
43540
+ * @description This field represents net total after line discount and overall discount
43014
43541
  */
43015
- supplierBankAccount?: number;
43542
+ discountedTotal: number;
43016
43543
  /**
43017
- * Duedate
43018
- * Format: date
43019
- * @description Visibility and Requirement:
43020
- * - Required and visible if payment method is Cheque
43544
+ * Usddiscountedtotal
43545
+ * @description This field represents net total after line discount and overall discount in secondary currency
43021
43546
  */
43022
- dueDate?: string;
43547
+ usdDiscountedTotal: number;
43023
43548
  /**
43024
- * Chequenumber
43025
- * @description Visibility and Requirement:
43026
- * - Required and visible if payment method is Cheque
43549
+ * Companydiscountedtotal
43550
+ * @description This field represents net total after line discount and overall discount in company currency
43027
43551
  */
43028
- chequeNumber?: string;
43552
+ companyDiscountedTotal: number;
43553
+ /** Taxamount */
43554
+ taxAmount: number;
43555
+ /** Companytaxamount */
43556
+ companyTaxAmount: number;
43557
+ /** Usdtaxamount */
43558
+ usdTaxAmount: number;
43029
43559
  /**
43030
- * Bankname
43031
- * @description Visibility and Requirement:
43032
- * - Required and visible if payment method is Cheque
43560
+ * Total
43561
+ * @description This field represents grand total
43033
43562
  */
43034
- bankName?: string;
43563
+ total: number;
43035
43564
  /**
43036
- * Purchaseinvoice
43037
- * Format: uuid
43038
- * @description API Endpoints for Purchase Invoice Retrieval:
43039
- * - Use the API: /api/v1/purchase/invoices/?branchId={branch-id}&type=paymentVoucher&supplier={supplier-id}
43565
+ * Usdtotal
43566
+ * @description This field represents grand total in secondary currency
43040
43567
  */
43041
- purchaseInvoice?: string;
43568
+ usdTotal: number;
43042
43569
  /**
43043
- * Amount
43044
- * @description field is number
43570
+ * Companytotal
43571
+ * @description This field represents grand total in company currency
43045
43572
  */
43046
- amount: string;
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;
43047
43581
  /**
43048
- * Companyrate
43049
- * @description - This field is number
43050
- * - This field is visible and required if allow rate change is on in system settings
43051
- * - For LB:
43052
- * - if supplier currency same as company currency or supplier currency is USD get the company_rate from /api/v1/currencies/ where currency name is USD and field(rate),
43053
- * - if supplier currency is foreign for example EUR get the company_rate from /api/v1/currencies/ where currency name is same as supplier currency and field(rate)),
43054
- * - For countries other than LB:
43055
- * - get company_rate from /api/v1/currencies/ where currency name same as supplier currency
43582
+ * Taxbreakdown
43583
+ * @description Aggregated tax amounts breakdown
43584
+ * @default []
43056
43585
  */
43057
- companyRate?: string;
43586
+ taxBreakdown: components["schemas"]["TaxBreakdownSchema"][];
43058
43587
  /**
43059
- * Secondaryrate
43060
- * @description - This field is number
43061
- * - This field is visible and required if allow rate change is on in system settings and the country is Lebanon
43062
- * and supplier currency is foreign currency meaning (NOT COMPANY CURRENCY)
43588
+ * Discountamount
43589
+ * @description Header-level discount amount (after line discounts)
43063
43590
  */
43064
- secondaryRate?: string;
43065
- };
43066
- /** UpdatePaymentVoucherSchema */
43067
- UpdatePaymentVoucherSchema: {
43068
- /** Password */
43069
- password: string | null;
43591
+ discountAmount?: string | null;
43070
43592
  /**
43071
- * Date
43072
- * Format: date
43073
- * @description API Endpoints for Date Range Retrieval:
43074
- * - Use the API: /api/v1/common/allowed_date_range/
43075
- * - Query Parameters:
43076
- * - module: purchase
43077
- * - Format: yyyy-mm-dd
43593
+ * Usddiscountamount
43594
+ * @description Discount amount in secondary currency
43078
43595
  */
43079
- date: string;
43080
- /** Reference */
43081
- reference?: string | null;
43082
- /** Description */
43083
- description: string | null;
43084
- /** Notes */
43085
- notes?: string | null;
43596
+ usdDiscountAmount?: string | null;
43086
43597
  /**
43087
- * Supplier
43088
- * @description To get suppliers use route /suppliers/?type=children and filter by isActive equals to true
43598
+ * Companydiscountamount
43599
+ * @description Discount amount in company currency
43089
43600
  */
43090
- supplier: number;
43601
+ companyDiscountAmount?: string | null;
43091
43602
  /**
43092
- * Attachments
43093
- * @description API Endpoints for File Upload:
43094
- * - Use the API: /api/v1/common/upload
43095
- * - Payload Type: paymentvoucher
43096
- * @default []
43603
+ * Linediscountamount
43604
+ * @description Total line item discount amount
43097
43605
  */
43098
- attachments: string[];
43099
- /** Recipient */
43100
- recipient: string | null;
43606
+ lineDiscountAmount?: string | null;
43101
43607
  /**
43102
- * Department
43103
- * @description to get user departments use route /auth/users/me/
43608
+ * Usdlinediscountamount
43609
+ * @description Total line item discount amount in secondary currency
43104
43610
  */
43105
- department: string | null;
43106
- status: components["schemas"]["InternalStatusChoices"];
43107
- /** Payments */
43108
- payments: components["schemas"]["UpdatePaymentVoucherItemSchema"][];
43109
- };
43110
- /** PaymentVoucherDeleteSchema */
43111
- PaymentVoucherDeleteSchema: {
43112
- /** Password */
43113
- password?: string;
43114
- };
43115
- /** ActionOnPaymentVoucherSchema */
43116
- ActionOnPaymentVoucherSchema: {
43611
+ usdLineDiscountAmount?: string | null;
43117
43612
  /**
43118
- * Password
43119
- * @default
43613
+ * Companylinediscountamount
43614
+ * @description Total line item discount amount in company currency
43120
43615
  */
43121
- password: string | null;
43122
- };
43123
- /** PurchaseInvoiceForReturnInvoiceReturnSchema */
43124
- PurchaseInvoiceForReturnInvoiceReturnSchema: {
43616
+ companyLineDiscountAmount?: string | null;
43125
43617
  /**
43126
- * Id
43127
- * Format: uuid
43618
+ * Remaining
43619
+ * @description - this field is number
43128
43620
  */
43129
- id: string;
43130
- /** Serialnumber */
43131
- serialNumber: string;
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"][];
43132
43630
  /**
43133
43631
  * Purchaseinvoiceitem
43134
43632
  * Format: uuid
@@ -43276,12 +43774,12 @@ export interface components {
43276
43774
  discountedTotal: number;
43277
43775
  /**
43278
43776
  * Usddiscountedtotal
43279
- * @description This field represents net subtotal in secondary currency
43777
+ * @description This field represents discounted_total in secondary currency
43280
43778
  */
43281
43779
  usdDiscountedTotal: number;
43282
43780
  /**
43283
43781
  * Companydiscountedtotal
43284
- * @description This field represents net subtotal in company currency
43782
+ * @description This field represents discounted_total in company currency
43285
43783
  */
43286
43784
  companyDiscountedTotal: number;
43287
43785
  /** Taxamount */
@@ -43529,12 +44027,12 @@ export interface components {
43529
44027
  discountedTotal: number;
43530
44028
  /**
43531
44029
  * Usddiscountedtotal
43532
- * @description This field represents net subtotal in secondary currency
44030
+ * @description This field represents discounted_total in secondary currency
43533
44031
  */
43534
44032
  usdDiscountedTotal: number;
43535
44033
  /**
43536
44034
  * Companydiscountedtotal
43537
- * @description This field represents net subtotal in company currency
44035
+ * @description This field represents discounted_total in company currency
43538
44036
  */
43539
44037
  companyDiscountedTotal: number;
43540
44038
  /** Taxamount */
@@ -43638,12 +44136,12 @@ export interface components {
43638
44136
  discountedTotal: number;
43639
44137
  /**
43640
44138
  * Usddiscountedtotal
43641
- * @description This field represents net subtotal in secondary currency
44139
+ * @description This field represents discounted_total in secondary currency
43642
44140
  */
43643
44141
  usdDiscountedTotal: number;
43644
44142
  /**
43645
44143
  * Companydiscountedtotal
43646
- * @description This field represents net subtotal in company currency
44144
+ * @description This field represents discounted_total in company currency
43647
44145
  */
43648
44146
  companyDiscountedTotal: number;
43649
44147
  /** Taxamount */
@@ -47235,19 +47733,34 @@ export interface components {
47235
47733
  * @description This field represents gross subtotal in company currency
47236
47734
  */
47237
47735
  companySubtotal: string;
47736
+ /**
47737
+ * Netsubtotal
47738
+ * @description This field is a number representing net subtotal (subtotal - line discount)
47739
+ */
47740
+ netSubtotal: string;
47741
+ /**
47742
+ * Secondarynetsubtotal
47743
+ * @description This field is a number representing net subtotal in secondary currency
47744
+ */
47745
+ secondaryNetSubtotal: string;
47746
+ /**
47747
+ * Companynetsubtotal
47748
+ * @description This field is a number representing net subtotal in company currency
47749
+ */
47750
+ companyNetSubtotal: string;
47238
47751
  /**
47239
47752
  * Discountedtotal
47240
- * @description This field represents net subtotal
47753
+ * @description This field represents net total after line discount and overall discount
47241
47754
  */
47242
47755
  discountedTotal: string;
47243
47756
  /**
47244
47757
  * Usddiscountedtotal
47245
- * @description This field represents net subtotal in secondary currency
47758
+ * @description This field represents net total after line discount and overall discount in secondary currency
47246
47759
  */
47247
47760
  usdDiscountedTotal: string;
47248
47761
  /**
47249
47762
  * Companydiscountedtotal
47250
- * @description This field represents net subtotal in company currency
47763
+ * @description This field represents net total after line discount and overall discount in company currency
47251
47764
  */
47252
47765
  companyDiscountedTotal: string;
47253
47766
  /**
@@ -47639,6 +48152,21 @@ export interface components {
47639
48152
  * @description This field is a number representing gross subtotal in company currency
47640
48153
  */
47641
48154
  companySubtotal: string;
48155
+ /**
48156
+ * Netsubtotal
48157
+ * @description This field is a number representing net subtotal (subtotal - line discount)
48158
+ */
48159
+ netSubtotal: string;
48160
+ /**
48161
+ * Secondarynetsubtotal
48162
+ * @description This field is a number representing net subtotal in secondary currency
48163
+ */
48164
+ secondaryNetSubtotal: string;
48165
+ /**
48166
+ * Companynetsubtotal
48167
+ * @description This field is a number representing net subtotal in company currency
48168
+ */
48169
+ companyNetSubtotal: string;
47642
48170
  /**
47643
48171
  * Discount
47644
48172
  * @description This field represents overall discount in %
@@ -47647,17 +48175,17 @@ export interface components {
47647
48175
  discount: number;
47648
48176
  /**
47649
48177
  * Discountedtotal
47650
- * @description This field is a number representing net subtotal after discount
48178
+ * @description This field is a number representing net total after line discount and overall discount
47651
48179
  */
47652
48180
  discountedTotal: string;
47653
48181
  /**
47654
48182
  * Secondarydiscountedtotal
47655
- * @description This field is a number representing net subtotal in secondary currency
48183
+ * @description This field is a number representing discounted total in secondary currency
47656
48184
  */
47657
48185
  secondaryDiscountedTotal: string;
47658
48186
  /**
47659
48187
  * Companydiscountedtotal
47660
- * @description This field is a number representing net subtotal in company currency
48188
+ * @description This field is a number representing discounted total in company currency
47661
48189
  */
47662
48190
  companyDiscountedTotal: string;
47663
48191
  /**
@@ -48075,6 +48603,21 @@ export interface components {
48075
48603
  * @description This field is a number representing gross subtotal in company currency
48076
48604
  */
48077
48605
  companySubtotal: string;
48606
+ /**
48607
+ * Netsubtotal
48608
+ * @description This field is a number representing net subtotal (subtotal - line discount)
48609
+ */
48610
+ netSubtotal: string;
48611
+ /**
48612
+ * Secondarynetsubtotal
48613
+ * @description This field is a number representing net subtotal in secondary currency
48614
+ */
48615
+ secondaryNetSubtotal: string;
48616
+ /**
48617
+ * Companynetsubtotal
48618
+ * @description This field is a number representing net subtotal in company currency
48619
+ */
48620
+ companyNetSubtotal: string;
48078
48621
  /**
48079
48622
  * Discount
48080
48623
  * @description This field represents overall discount in %
@@ -48083,17 +48626,17 @@ export interface components {
48083
48626
  discount: number;
48084
48627
  /**
48085
48628
  * Discountedtotal
48086
- * @description This field is a number representing net subtotal after discount
48629
+ * @description This field is a number representing net total after line discount and overall discount
48087
48630
  */
48088
48631
  discountedTotal: string;
48089
48632
  /**
48090
48633
  * Secondarydiscountedtotal
48091
- * @description This field is a number representing net subtotal in secondary currency
48634
+ * @description This field is a number representing discounted total in secondary currency
48092
48635
  */
48093
48636
  secondaryDiscountedTotal: string;
48094
48637
  /**
48095
48638
  * Companydiscountedtotal
48096
- * @description This field is a number representing net subtotal in company currency
48639
+ * @description This field is a number representing discounted total in company currency
48097
48640
  */
48098
48641
  companyDiscountedTotal: string;
48099
48642
  /**
@@ -49916,6 +50459,21 @@ export interface components {
49916
50459
  * @description This field is a number representing gross subtotal in the company's currency.
49917
50460
  */
49918
50461
  companySubtotal: string;
50462
+ /**
50463
+ * Netsubtotal
50464
+ * @description This field is a number representing net subtotal (subtotal - line discount)
50465
+ */
50466
+ netSubtotal: string;
50467
+ /**
50468
+ * Usdnetsubtotal
50469
+ * @description This field is a number representing net subtotal in secondary currency
50470
+ */
50471
+ usdNetSubtotal: string;
50472
+ /**
50473
+ * Companynetsubtotal
50474
+ * @description This field is a number representing net subtotal in company currency
50475
+ */
50476
+ companyNetSubtotal: string;
49919
50477
  /**
49920
50478
  * Discount
49921
50479
  * @description This field represents overall discount in %.
@@ -49924,17 +50482,17 @@ export interface components {
49924
50482
  discount: number;
49925
50483
  /**
49926
50484
  * Discountedtotal
49927
- * @description This field is a number representing net subtotal after discount.
50485
+ * @description This field is a number representing net total after line discount and overall discount.
49928
50486
  */
49929
50487
  discountedTotal: string;
49930
50488
  /**
49931
50489
  * Usddiscountedtotal
49932
- * @description This field is a number representing net subtotal in secondary currency.
50490
+ * @description This field is a number representing discounted total in secondary currency.
49933
50491
  */
49934
50492
  usdDiscountedTotal: string;
49935
50493
  /**
49936
50494
  * Companydiscountedtotal
49937
- * @description This field is a number representing net subtotal in the company's currency.
50495
+ * @description This field is a number representing discounted total in the company's currency.
49938
50496
  */
49939
50497
  companyDiscountedTotal: string;
49940
50498
  /**
@@ -50405,6 +50963,21 @@ export interface components {
50405
50963
  * @description This field is a number representing gross subtotal in the company's currency.
50406
50964
  */
50407
50965
  companySubtotal: string;
50966
+ /**
50967
+ * Netsubtotal
50968
+ * @description This field is a number representing net subtotal (subtotal - line discount)
50969
+ */
50970
+ netSubtotal: string;
50971
+ /**
50972
+ * Usdnetsubtotal
50973
+ * @description This field is a number representing net subtotal in secondary currency
50974
+ */
50975
+ usdNetSubtotal: string;
50976
+ /**
50977
+ * Companynetsubtotal
50978
+ * @description This field is a number representing net subtotal in company currency
50979
+ */
50980
+ companyNetSubtotal: string;
50408
50981
  /**
50409
50982
  * Discount
50410
50983
  * @description This field represents overall discount in %.
@@ -50413,17 +50986,17 @@ export interface components {
50413
50986
  discount: number;
50414
50987
  /**
50415
50988
  * Discountedtotal
50416
- * @description This field is a number representing net subtotal after discount.
50989
+ * @description This field is a number representing net total after line discount and overall discount.
50417
50990
  */
50418
50991
  discountedTotal: string;
50419
50992
  /**
50420
50993
  * Usddiscountedtotal
50421
- * @description This field is a number representing net subtotal in secondary currency.
50994
+ * @description This field is a number representing discounted total in secondary currency.
50422
50995
  */
50423
50996
  usdDiscountedTotal: string;
50424
50997
  /**
50425
50998
  * Companydiscountedtotal
50426
- * @description This field is a number representing net subtotal in the company's currency.
50999
+ * @description This field is a number representing discounted total in the company's currency.
50427
51000
  */
50428
51001
  companyDiscountedTotal: string;
50429
51002
  /**
@@ -50615,6 +51188,21 @@ export interface components {
50615
51188
  * @description This field is a number representing gross subtotal in the company's currency.
50616
51189
  */
50617
51190
  companySubtotal: string;
51191
+ /**
51192
+ * Netsubtotal
51193
+ * @description This field is a number representing net subtotal (subtotal - line discount)
51194
+ */
51195
+ netSubtotal: string;
51196
+ /**
51197
+ * Usdnetsubtotal
51198
+ * @description This field is a number representing net subtotal in secondary currency
51199
+ */
51200
+ usdNetSubtotal: string;
51201
+ /**
51202
+ * Companynetsubtotal
51203
+ * @description This field is a number representing net subtotal in company currency
51204
+ */
51205
+ companyNetSubtotal: string;
50618
51206
  /**
50619
51207
  * Discount
50620
51208
  * @description This field represents overall discount in %.
@@ -50623,17 +51211,17 @@ export interface components {
50623
51211
  discount: number;
50624
51212
  /**
50625
51213
  * Discountedtotal
50626
- * @description This field is a number representing net subtotal after discount.
51214
+ * @description This field is a number representing net total after line discount and overall discount.
50627
51215
  */
50628
51216
  discountedTotal: string;
50629
51217
  /**
50630
51218
  * Usddiscountedtotal
50631
- * @description This field is a number representing net subtotal in secondary currency.
51219
+ * @description This field is a number representing discounted total in secondary currency.
50632
51220
  */
50633
51221
  usdDiscountedTotal: string;
50634
51222
  /**
50635
51223
  * Companydiscountedtotal
50636
- * @description This field is a number representing net subtotal in the company's currency.
51224
+ * @description This field is a number representing discounted total in the company's currency.
50637
51225
  */
50638
51226
  companyDiscountedTotal: string;
50639
51227
  /**
@@ -51883,6 +52471,21 @@ export interface components {
51883
52471
  * @description This field is a number representing gross subtotal in the company's currency.
51884
52472
  */
51885
52473
  companySubtotal: string;
52474
+ /**
52475
+ * Netsubtotal
52476
+ * @description This field is a number representing net subtotal (subtotal - line discount)
52477
+ */
52478
+ netSubtotal: string;
52479
+ /**
52480
+ * Secondarynetsubtotal
52481
+ * @description This field is a number representing net subtotal in secondary currency
52482
+ */
52483
+ secondaryNetSubtotal: string;
52484
+ /**
52485
+ * Companynetsubtotal
52486
+ * @description This field is a number representing net subtotal in company currency
52487
+ */
52488
+ companyNetSubtotal: string;
51886
52489
  /**
51887
52490
  * Discount
51888
52491
  * @description This field represents overall discount in %.
@@ -51891,17 +52494,17 @@ export interface components {
51891
52494
  discount: number;
51892
52495
  /**
51893
52496
  * Discountedtotal
51894
- * @description This field is a number representing net subtotal after discount
52497
+ * @description This field is a number representing net total after line discount and overall discount
51895
52498
  */
51896
52499
  discountedTotal: string;
51897
52500
  /**
51898
52501
  * Secondarydiscountedtotal
51899
- * @description This field is a number representing net subtotal in secondary currency.
52502
+ * @description This field is a number representing discounted total in secondary currency.
51900
52503
  */
51901
52504
  secondaryDiscountedTotal: string;
51902
52505
  /**
51903
52506
  * Companydiscountedtotal
51904
- * @description This field is a number representing net subtotal in the company's currency.
52507
+ * @description This field is a number representing discounted total in the company's currency.
51905
52508
  */
51906
52509
  companyDiscountedTotal: string;
51907
52510
  /**
@@ -52437,6 +53040,21 @@ export interface components {
52437
53040
  * @description This field is a number representing gross subtotal in the company's currency.
52438
53041
  */
52439
53042
  companySubtotal: string;
53043
+ /**
53044
+ * Netsubtotal
53045
+ * @description This field is a number representing net subtotal (subtotal - line discount)
53046
+ */
53047
+ netSubtotal: string;
53048
+ /**
53049
+ * Secondarynetsubtotal
53050
+ * @description This field is a number representing net subtotal in secondary currency
53051
+ */
53052
+ secondaryNetSubtotal: string;
53053
+ /**
53054
+ * Companynetsubtotal
53055
+ * @description This field is a number representing net subtotal in company currency
53056
+ */
53057
+ companyNetSubtotal: string;
52440
53058
  /**
52441
53059
  * Discount
52442
53060
  * @description This field represents overall discount in %.
@@ -52445,17 +53063,17 @@ export interface components {
52445
53063
  discount: number;
52446
53064
  /**
52447
53065
  * Discountedtotal
52448
- * @description This field is a number representing net subtotal after discount
53066
+ * @description This field is a number representing net total after line discount and overall discount
52449
53067
  */
52450
53068
  discountedTotal: string;
52451
53069
  /**
52452
53070
  * Secondarydiscountedtotal
52453
- * @description This field is a number representing net subtotal in secondary currency.
53071
+ * @description This field is a number representing discounted total in secondary currency.
52454
53072
  */
52455
53073
  secondaryDiscountedTotal: string;
52456
53074
  /**
52457
53075
  * Companydiscountedtotal
52458
- * @description This field is a number representing net subtotal in the company's currency.
53076
+ * @description This field is a number representing discounted total in the company's currency.
52459
53077
  */
52460
53078
  companyDiscountedTotal: string;
52461
53079
  /**
@@ -52684,6 +53302,21 @@ export interface components {
52684
53302
  * @description This field is a number representing gross subtotal in the company's currency.
52685
53303
  */
52686
53304
  companySubtotal: string;
53305
+ /**
53306
+ * Netsubtotal
53307
+ * @description This field is a number representing net subtotal (subtotal - line discount)
53308
+ */
53309
+ netSubtotal: string;
53310
+ /**
53311
+ * Secondarynetsubtotal
53312
+ * @description This field is a number representing net subtotal in secondary currency
53313
+ */
53314
+ secondaryNetSubtotal: string;
53315
+ /**
53316
+ * Companynetsubtotal
53317
+ * @description This field is a number representing net subtotal in company currency
53318
+ */
53319
+ companyNetSubtotal: string;
52687
53320
  /**
52688
53321
  * Discount
52689
53322
  * @description This field represents overall discount in %.
@@ -52692,17 +53325,17 @@ export interface components {
52692
53325
  discount: number;
52693
53326
  /**
52694
53327
  * Discountedtotal
52695
- * @description This field is a number representing net subtotal after discount
53328
+ * @description This field is a number representing net total after line discount and overall discount
52696
53329
  */
52697
53330
  discountedTotal: string;
52698
53331
  /**
52699
53332
  * Secondarydiscountedtotal
52700
- * @description This field is a number representing net subtotal in secondary currency.
53333
+ * @description This field is a number representing discounted total in secondary currency.
52701
53334
  */
52702
53335
  secondaryDiscountedTotal: string;
52703
53336
  /**
52704
53337
  * Companydiscountedtotal
52705
- * @description This field is a number representing net subtotal in the company's currency.
53338
+ * @description This field is a number representing discounted total in the company's currency.
52706
53339
  */
52707
53340
  companyDiscountedTotal: string;
52708
53341
  /**