@erp-galoper/types 1.0.2088 → 1.0.2090
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 +114 -219
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -28401,6 +28401,18 @@ export interface components {
|
|
|
28401
28401
|
*/
|
|
28402
28402
|
default: boolean;
|
|
28403
28403
|
};
|
|
28404
|
+
/** ItemEmbeddedUOMConversionSchema */
|
|
28405
|
+
ItemEmbeddedUOMConversionSchema: {
|
|
28406
|
+
/**
|
|
28407
|
+
* Id
|
|
28408
|
+
* Format: uuid
|
|
28409
|
+
*/
|
|
28410
|
+
id: string;
|
|
28411
|
+
fromUom: components["schemas"]["UnitOfMeasureSummaryInfo"];
|
|
28412
|
+
toUom: components["schemas"]["UnitOfMeasureSummaryInfo"];
|
|
28413
|
+
/** Conversionfactor */
|
|
28414
|
+
conversionFactor: number | string;
|
|
28415
|
+
};
|
|
28404
28416
|
/** ItemExpenseCategorySchema */
|
|
28405
28417
|
ItemExpenseCategorySchema: {
|
|
28406
28418
|
/**
|
|
@@ -28579,6 +28591,12 @@ export interface components {
|
|
|
28579
28591
|
* @default []
|
|
28580
28592
|
*/
|
|
28581
28593
|
unitOfMeasure: components["schemas"]["UnitOfMeasureWithPricesSchema"][];
|
|
28594
|
+
/**
|
|
28595
|
+
* Uomconversions
|
|
28596
|
+
* @description Item-specific UOM conversions (one row per pair; inverse rows are not returned).
|
|
28597
|
+
* @default []
|
|
28598
|
+
*/
|
|
28599
|
+
uomConversions: components["schemas"]["ItemEmbeddedUOMConversionSchema"][];
|
|
28582
28600
|
/**
|
|
28583
28601
|
* Tags
|
|
28584
28602
|
* @default []
|
|
@@ -28871,6 +28889,12 @@ export interface components {
|
|
|
28871
28889
|
* @default []
|
|
28872
28890
|
*/
|
|
28873
28891
|
unitOfMeasure: components["schemas"]["UnitOfMeasureWithPricesSchema"][];
|
|
28892
|
+
/**
|
|
28893
|
+
* Uomconversions
|
|
28894
|
+
* @description Item-specific UOM conversions (one row per pair; inverse rows are not returned).
|
|
28895
|
+
* @default []
|
|
28896
|
+
*/
|
|
28897
|
+
uomConversions: components["schemas"]["ItemEmbeddedUOMConversionSchema"][];
|
|
28874
28898
|
/**
|
|
28875
28899
|
* Tags
|
|
28876
28900
|
* @default []
|
|
@@ -29609,6 +29633,12 @@ export interface components {
|
|
|
29609
29633
|
* @default []
|
|
29610
29634
|
*/
|
|
29611
29635
|
unitOfMeasure: string[];
|
|
29636
|
+
/**
|
|
29637
|
+
* Uomconversions
|
|
29638
|
+
* @description Per-item unit conversions (from, to, factor). Reverse direction is created automatically.
|
|
29639
|
+
* @default []
|
|
29640
|
+
*/
|
|
29641
|
+
uomConversions: components["schemas"]["ItemEmbeddedUOMConversionInputSchema"][];
|
|
29612
29642
|
/**
|
|
29613
29643
|
* Tags
|
|
29614
29644
|
* @default []
|
|
@@ -29860,6 +29890,12 @@ export interface components {
|
|
|
29860
29890
|
* @description Get default value from inventory settings (/api/v1/settings/inventory/)
|
|
29861
29891
|
*/
|
|
29862
29892
|
unitOfMeasure: string[];
|
|
29893
|
+
/**
|
|
29894
|
+
* Uomconversions
|
|
29895
|
+
* @description Per-item unit conversions (from, to, factor). Reverse direction is created automatically.
|
|
29896
|
+
* @default []
|
|
29897
|
+
*/
|
|
29898
|
+
uomConversions: components["schemas"]["ItemEmbeddedUOMConversionInputSchema"][];
|
|
29863
29899
|
/**
|
|
29864
29900
|
* Tags
|
|
29865
29901
|
* @default []
|
|
@@ -30215,6 +30251,21 @@ export interface components {
|
|
|
30215
30251
|
*/
|
|
30216
30252
|
unitOfMeasure: string;
|
|
30217
30253
|
};
|
|
30254
|
+
/** ItemEmbeddedUOMConversionInputSchema */
|
|
30255
|
+
ItemEmbeddedUOMConversionInputSchema: {
|
|
30256
|
+
/**
|
|
30257
|
+
* Fromuomid
|
|
30258
|
+
* Format: uuid
|
|
30259
|
+
*/
|
|
30260
|
+
fromUomId: string;
|
|
30261
|
+
/**
|
|
30262
|
+
* Touomid
|
|
30263
|
+
* Format: uuid
|
|
30264
|
+
*/
|
|
30265
|
+
toUomId: string;
|
|
30266
|
+
/** Conversionfactor */
|
|
30267
|
+
conversionFactor: number | string;
|
|
30268
|
+
};
|
|
30218
30269
|
/**
|
|
30219
30270
|
* OnlineSyncStoreLinkInputSchema
|
|
30220
30271
|
* @description One store row for create/patch ``onlineSyncStores``.
|
|
@@ -30403,6 +30454,11 @@ export interface components {
|
|
|
30403
30454
|
variant_of?: string | null;
|
|
30404
30455
|
/** Unitofmeasure */
|
|
30405
30456
|
unitOfMeasure?: string[] | null;
|
|
30457
|
+
/**
|
|
30458
|
+
* Uomconversions
|
|
30459
|
+
* @description Replace all item UOM conversions when provided. Reverse direction is maintained by the system.
|
|
30460
|
+
*/
|
|
30461
|
+
uomConversions?: components["schemas"]["ItemEmbeddedUOMConversionInputSchema"][] | null;
|
|
30406
30462
|
/**
|
|
30407
30463
|
* Tags
|
|
30408
30464
|
* @default []
|
|
@@ -30737,6 +30793,11 @@ export interface components {
|
|
|
30737
30793
|
variant_of?: string | null;
|
|
30738
30794
|
/** Unitofmeasure */
|
|
30739
30795
|
unitOfMeasure?: string[] | null;
|
|
30796
|
+
/**
|
|
30797
|
+
* Uomconversions
|
|
30798
|
+
* @description Replace all item UOM conversions when provided. Reverse direction is maintained by the system.
|
|
30799
|
+
*/
|
|
30800
|
+
uomConversions?: components["schemas"]["ItemEmbeddedUOMConversionInputSchema"][] | null;
|
|
30740
30801
|
/**
|
|
30741
30802
|
* Tags
|
|
30742
30803
|
* @default []
|
|
@@ -42133,10 +42194,10 @@ export interface components {
|
|
|
42133
42194
|
ListTaxRules: {
|
|
42134
42195
|
info: components["schemas"]["PageInfoSchema"];
|
|
42135
42196
|
/** Results */
|
|
42136
|
-
results: components["schemas"]["
|
|
42197
|
+
results: components["schemas"]["RetrieveTaxRule"][];
|
|
42137
42198
|
};
|
|
42138
|
-
/**
|
|
42139
|
-
|
|
42199
|
+
/** RetrieveTaxRule */
|
|
42200
|
+
RetrieveTaxRule: {
|
|
42140
42201
|
/**
|
|
42141
42202
|
* Datecreated
|
|
42142
42203
|
* Format: date-time
|
|
@@ -42172,6 +42233,8 @@ export interface components {
|
|
|
42172
42233
|
* @default []
|
|
42173
42234
|
*/
|
|
42174
42235
|
itemCategories: components["schemas"]["ItemCategorySummaryInfo"][] | null;
|
|
42236
|
+
/** Candelete */
|
|
42237
|
+
canDelete: boolean;
|
|
42175
42238
|
taxApplication: components["schemas"]["TaxApplication"];
|
|
42176
42239
|
/** Exemptionpercent */
|
|
42177
42240
|
exemptionPercent?: number | null;
|
|
@@ -42183,8 +42246,6 @@ export interface components {
|
|
|
42183
42246
|
chargeBearer?: string | null;
|
|
42184
42247
|
/** Isactive */
|
|
42185
42248
|
isActive: boolean;
|
|
42186
|
-
/** Candelete */
|
|
42187
|
-
canDelete: boolean;
|
|
42188
42249
|
};
|
|
42189
42250
|
/** UpdateTaxRule */
|
|
42190
42251
|
UpdateTaxRule: {
|
|
@@ -42217,55 +42278,6 @@ export interface components {
|
|
|
42217
42278
|
/** Isactive */
|
|
42218
42279
|
isActive?: boolean | null;
|
|
42219
42280
|
};
|
|
42220
|
-
/** RetrieveTaxRule */
|
|
42221
|
-
RetrieveTaxRule: {
|
|
42222
|
-
/**
|
|
42223
|
-
* Datecreated
|
|
42224
|
-
* Format: date-time
|
|
42225
|
-
*/
|
|
42226
|
-
dateCreated: string;
|
|
42227
|
-
/** Datemodified */
|
|
42228
|
-
dateModified: string | null;
|
|
42229
|
-
createdBy: components["schemas"]["RecordUserSchema"];
|
|
42230
|
-
modifiedBy: components["schemas"]["RecordUserSchema"] | null;
|
|
42231
|
-
/**
|
|
42232
|
-
* Id
|
|
42233
|
-
* Format: uuid
|
|
42234
|
-
*/
|
|
42235
|
-
id: string;
|
|
42236
|
-
tax: components["schemas"]["TaxSharedSchema"];
|
|
42237
|
-
/**
|
|
42238
|
-
* Customers
|
|
42239
|
-
* @default []
|
|
42240
|
-
*/
|
|
42241
|
-
customers: components["schemas"]["AccountSummaryInfo"][] | null;
|
|
42242
|
-
/**
|
|
42243
|
-
* Customergroups
|
|
42244
|
-
* @default []
|
|
42245
|
-
*/
|
|
42246
|
-
customerGroups: components["schemas"]["ContactSegmentationSharedSchema"][] | null;
|
|
42247
|
-
/**
|
|
42248
|
-
* Items
|
|
42249
|
-
* @default []
|
|
42250
|
-
*/
|
|
42251
|
-
items: components["schemas"]["ItemSummaryInfo"][] | null;
|
|
42252
|
-
/**
|
|
42253
|
-
* Itemcategories
|
|
42254
|
-
* @default []
|
|
42255
|
-
*/
|
|
42256
|
-
itemCategories: components["schemas"]["ItemCategorySummaryInfo"][] | null;
|
|
42257
|
-
taxApplication: components["schemas"]["TaxApplication"];
|
|
42258
|
-
/** Exemptionpercent */
|
|
42259
|
-
exemptionPercent?: number | null;
|
|
42260
|
-
exemptionMethod?: components["schemas"]["ExemptionMethod"] | null;
|
|
42261
|
-
/**
|
|
42262
|
-
* Chargebearer
|
|
42263
|
-
* @description Who bears the stamp duty charge. Only set (always 'customer' for now) when the rule's tax is of type stampDuty; null otherwise.
|
|
42264
|
-
*/
|
|
42265
|
-
chargeBearer?: string | null;
|
|
42266
|
-
/** Isactive */
|
|
42267
|
-
isActive: boolean;
|
|
42268
|
-
};
|
|
42269
42281
|
/** AccountingSettingResponseSchema */
|
|
42270
42282
|
AccountingSettingResponseSchema: {
|
|
42271
42283
|
/** Code */
|
|
@@ -45216,7 +45228,7 @@ export interface components {
|
|
|
45216
45228
|
/**
|
|
45217
45229
|
* Taxes
|
|
45218
45230
|
* @description - visible when supplier is resident
|
|
45219
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
45231
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
45220
45232
|
* - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
|
|
45221
45233
|
*/
|
|
45222
45234
|
taxes?: string[] | null;
|
|
@@ -45288,7 +45300,7 @@ export interface components {
|
|
|
45288
45300
|
* Format: uuid
|
|
45289
45301
|
* @description - tax id
|
|
45290
45302
|
* - visible when supplier is not resident
|
|
45291
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
45303
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
45292
45304
|
*/
|
|
45293
45305
|
tax?: string;
|
|
45294
45306
|
/**
|
|
@@ -45643,7 +45655,7 @@ export interface components {
|
|
|
45643
45655
|
* Tax
|
|
45644
45656
|
* Format: uuid
|
|
45645
45657
|
* @description - visible when entity is not resident
|
|
45646
|
-
* - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase or sale with respect to document
|
|
45658
|
+
* - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase or sale with respect to document
|
|
45647
45659
|
*/
|
|
45648
45660
|
tax?: string;
|
|
45649
45661
|
/** Items */
|
|
@@ -46070,7 +46082,7 @@ export interface components {
|
|
|
46070
46082
|
/**
|
|
46071
46083
|
* Taxes
|
|
46072
46084
|
* @description - visible when supplier is resident
|
|
46073
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
46085
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
46074
46086
|
* - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
|
|
46075
46087
|
*/
|
|
46076
46088
|
taxes?: string[] | null;
|
|
@@ -46155,7 +46167,7 @@ export interface components {
|
|
|
46155
46167
|
* Format: uuid
|
|
46156
46168
|
* @description - tax id
|
|
46157
46169
|
* - visible when supplier is not resident
|
|
46158
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
46170
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
46159
46171
|
*/
|
|
46160
46172
|
tax?: string;
|
|
46161
46173
|
/**
|
|
@@ -47856,7 +47868,7 @@ export interface components {
|
|
|
47856
47868
|
* Format: uuid
|
|
47857
47869
|
* @description - tax id
|
|
47858
47870
|
* - visible when supplier is not resident
|
|
47859
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
47871
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
47860
47872
|
*/
|
|
47861
47873
|
tax?: string;
|
|
47862
47874
|
/**
|
|
@@ -47932,7 +47944,7 @@ export interface components {
|
|
|
47932
47944
|
/**
|
|
47933
47945
|
* Taxes
|
|
47934
47946
|
* @description - visible when supplier is resident
|
|
47935
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
47947
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
47936
47948
|
* - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
|
|
47937
47949
|
*/
|
|
47938
47950
|
taxes: string[];
|
|
@@ -48011,7 +48023,7 @@ export interface components {
|
|
|
48011
48023
|
/**
|
|
48012
48024
|
* Taxes
|
|
48013
48025
|
* @description - visible when supplier is resident
|
|
48014
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
48026
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
48015
48027
|
* - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
|
|
48016
48028
|
*/
|
|
48017
48029
|
taxes: string[];
|
|
@@ -48120,7 +48132,7 @@ export interface components {
|
|
|
48120
48132
|
* Format: uuid
|
|
48121
48133
|
* @description - tax id
|
|
48122
48134
|
* - visible when supplier is not resident
|
|
48123
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
48135
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
48124
48136
|
*/
|
|
48125
48137
|
tax?: string;
|
|
48126
48138
|
/**
|
|
@@ -54070,47 +54082,14 @@ export interface components {
|
|
|
54070
54082
|
taxes: string[];
|
|
54071
54083
|
/**
|
|
54072
54084
|
* Taxexemptions
|
|
54073
|
-
* @description Per-tax exemption validity/info for this item (hasValidExemption, exemptionPercent, applyExemption)
|
|
54074
54085
|
* @default []
|
|
54075
54086
|
*/
|
|
54076
|
-
taxExemptions: components["schemas"]["
|
|
54087
|
+
taxExemptions: components["schemas"]["TaxExemptionSelectionResponseSchema"][];
|
|
54077
54088
|
/**
|
|
54078
54089
|
* Exemptionamount
|
|
54079
54090
|
* @description Total tax amount exempted for this item
|
|
54080
54091
|
*/
|
|
54081
54092
|
exemptionAmount?: string | null;
|
|
54082
|
-
/**
|
|
54083
|
-
* Hasstampduty
|
|
54084
|
-
* @description Whether stamp duty is applicable for this item's customer/item scope (based on active stamp-duty TaxRule matching), regardless of the document's applyStampDuty.
|
|
54085
|
-
* @default false
|
|
54086
|
-
*/
|
|
54087
|
-
hasStampDuty: boolean;
|
|
54088
|
-
/**
|
|
54089
|
-
* Applystampduty
|
|
54090
|
-
* @description Whether stamp duty was actually applied to this item (true only when the document's applyStampDuty was requested AND hasStampDuty is true for this item).
|
|
54091
|
-
* @default false
|
|
54092
|
-
*/
|
|
54093
|
-
applyStampDuty: boolean;
|
|
54094
|
-
/**
|
|
54095
|
-
* Stampdutychargebearer
|
|
54096
|
-
* @description Who bears the stamp duty charge (only 'customer' is currently supported); null when not applicable.
|
|
54097
|
-
*/
|
|
54098
|
-
stampDutyChargeBearer?: string | null;
|
|
54099
|
-
/**
|
|
54100
|
-
* Stampdutyamount
|
|
54101
|
-
* @description Stamp duty amount for this item in document/customer currency
|
|
54102
|
-
*/
|
|
54103
|
-
stampDutyAmount?: string | null;
|
|
54104
|
-
/**
|
|
54105
|
-
* Secondarystampdutyamount
|
|
54106
|
-
* @description Stamp duty amount for this item in secondary (USD) currency
|
|
54107
|
-
*/
|
|
54108
|
-
secondaryStampDutyAmount?: string | null;
|
|
54109
|
-
/**
|
|
54110
|
-
* Companystampdutyamount
|
|
54111
|
-
* @description Stamp duty amount for this item in company currency
|
|
54112
|
-
*/
|
|
54113
|
-
companyStampDutyAmount?: string | null;
|
|
54114
54093
|
/**
|
|
54115
54094
|
* Subtotal
|
|
54116
54095
|
* @description This field represents gross subtotal for the item
|
|
@@ -54254,60 +54233,32 @@ export interface components {
|
|
|
54254
54233
|
* @description Total line item discount amount in company currency
|
|
54255
54234
|
*/
|
|
54256
54235
|
companyLineDiscountAmount?: string | null;
|
|
54257
|
-
/**
|
|
54258
|
-
* Hasstampduty
|
|
54259
|
-
* @description Whether stamp duty is applicable for at least one line item's customer/item scope (based on active stamp-duty TaxRule matching), regardless of applyStampDuty.
|
|
54260
|
-
* @default false
|
|
54261
|
-
*/
|
|
54262
|
-
hasStampDuty: boolean;
|
|
54263
|
-
/**
|
|
54264
|
-
* Applystampduty
|
|
54265
|
-
* @description Whether stamp duty was actually applied to at least one line item (true only when applyStampDuty was requested AND hasStampDuty is true for that item). Amounts below are aggregated from the per-item stampDutyAmount fields (see items[].stampDutyAmount).
|
|
54266
|
-
* @default false
|
|
54267
|
-
*/
|
|
54268
|
-
applyStampDuty: boolean;
|
|
54269
|
-
/**
|
|
54270
|
-
* Stampdutychargebearer
|
|
54271
|
-
* @description Who bears the stamp duty charge (only 'customer' is currently supported); null when not applicable.
|
|
54272
|
-
*/
|
|
54273
|
-
stampDutyChargeBearer?: string | null;
|
|
54274
|
-
/**
|
|
54275
|
-
* Stampdutyamount
|
|
54276
|
-
* @description Aggregated stamp duty amount (sum of applied line items) in document/customer currency
|
|
54277
|
-
*/
|
|
54278
|
-
stampDutyAmount?: string | null;
|
|
54279
|
-
/**
|
|
54280
|
-
* Secondarystampdutyamount
|
|
54281
|
-
* @description Aggregated stamp duty amount in secondary (USD) currency
|
|
54282
|
-
*/
|
|
54283
|
-
secondaryStampDutyAmount?: string | null;
|
|
54284
|
-
/**
|
|
54285
|
-
* Companystampdutyamount
|
|
54286
|
-
* @description Aggregated stamp duty amount in company currency
|
|
54287
|
-
*/
|
|
54288
|
-
companyStampDutyAmount?: string | null;
|
|
54289
54236
|
/** Items */
|
|
54290
54237
|
items: components["schemas"]["SalesItemTotalCalculated"][];
|
|
54291
54238
|
};
|
|
54292
|
-
/**
|
|
54293
|
-
|
|
54239
|
+
/** TaxExemptionSelectionResponseSchema */
|
|
54240
|
+
TaxExemptionSelectionResponseSchema: {
|
|
54294
54241
|
/**
|
|
54295
54242
|
* Tax
|
|
54296
54243
|
* Format: uuid
|
|
54244
|
+
* @description Tax id for which a tax rule is selected
|
|
54297
54245
|
*/
|
|
54298
54246
|
tax: string;
|
|
54299
54247
|
/**
|
|
54300
|
-
*
|
|
54301
|
-
*
|
|
54302
|
-
|
|
54303
|
-
hasValidExemption: boolean;
|
|
54304
|
-
/** Exemptionpercent */
|
|
54305
|
-
exemptionPercent?: number | null;
|
|
54306
|
-
/**
|
|
54307
|
-
* Applyexemption
|
|
54308
|
-
* @default false
|
|
54248
|
+
* Rule
|
|
54249
|
+
* Format: uuid
|
|
54250
|
+
* @description Selected tax rule id for the tax
|
|
54309
54251
|
*/
|
|
54310
|
-
|
|
54252
|
+
rule: string;
|
|
54253
|
+
};
|
|
54254
|
+
/** CalculateTotalsErrorResponse */
|
|
54255
|
+
CalculateTotalsErrorResponse: {
|
|
54256
|
+
/** Message */
|
|
54257
|
+
message?: string | null;
|
|
54258
|
+
/** Code */
|
|
54259
|
+
code?: string | null;
|
|
54260
|
+
/** Errors */
|
|
54261
|
+
errors?: components["schemas"]["ErrorMessageSchema"][] | null;
|
|
54311
54262
|
};
|
|
54312
54263
|
/** SalesItemTotal */
|
|
54313
54264
|
SalesItemTotal: {
|
|
@@ -54341,7 +54292,7 @@ export interface components {
|
|
|
54341
54292
|
promotionsAndOffers?: string[];
|
|
54342
54293
|
/**
|
|
54343
54294
|
* Taxes
|
|
54344
|
-
* @description - get taxes from /api/v1/settings/accounting/taxes/
|
|
54295
|
+
* @description - get taxes from /api/v1/settings/accounting/taxes/
|
|
54345
54296
|
* - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals sales
|
|
54346
54297
|
* @default []
|
|
54347
54298
|
*/
|
|
@@ -54353,25 +54304,11 @@ export interface components {
|
|
|
54353
54304
|
*/
|
|
54354
54305
|
includeTaxInUnitPrice: boolean;
|
|
54355
54306
|
/**
|
|
54356
|
-
*
|
|
54357
|
-
* @description
|
|
54358
|
-
* - If applyExemption is true for a tax, and a valid (active) TaxRule exists for that tax
|
|
54359
|
-
* matching this item/customer scope, the tax exemption percentage from that rule is
|
|
54360
|
-
* applied, reducing the tax amount calculated for that tax on this item.
|
|
54307
|
+
* Taxexemptions
|
|
54308
|
+
* @description List of selected tax rule ids per tax for this item.
|
|
54361
54309
|
* @default []
|
|
54362
54310
|
*/
|
|
54363
|
-
|
|
54364
|
-
/**
|
|
54365
|
-
* Applystampduty
|
|
54366
|
-
* @description - Stamp duty is not a regular tax: like a tax exemption, it is toggled per line item.
|
|
54367
|
-
* It only checks whether this line item/the document customer are within a valid
|
|
54368
|
-
* (active) stamp-duty TaxRule scope.
|
|
54369
|
-
* - If true AND stamp duty is applicable for this item (hasStampDuty in the response is
|
|
54370
|
-
* true for this item), the response returns this item's stamp duty amount, added to
|
|
54371
|
-
* this item's total and to the document's aggregated totals.
|
|
54372
|
-
* @default false
|
|
54373
|
-
*/
|
|
54374
|
-
applyStampDuty: boolean;
|
|
54311
|
+
taxExemptions: components["schemas"]["TaxExemptionSelectionSchema"][];
|
|
54375
54312
|
};
|
|
54376
54313
|
/** SalesTotalCalculationRequest */
|
|
54377
54314
|
SalesTotalCalculationRequest: {
|
|
@@ -54404,27 +54341,26 @@ export interface components {
|
|
|
54404
54341
|
* Tax
|
|
54405
54342
|
* Format: uuid
|
|
54406
54343
|
* @description - tax id
|
|
54407
|
-
* - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals sales
|
|
54344
|
+
* - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals sales
|
|
54408
54345
|
*/
|
|
54409
54346
|
tax?: string;
|
|
54410
54347
|
/** Items */
|
|
54411
54348
|
items: components["schemas"]["SalesItemTotal"][];
|
|
54412
54349
|
};
|
|
54413
|
-
/**
|
|
54414
|
-
|
|
54350
|
+
/** TaxExemptionSelectionSchema */
|
|
54351
|
+
TaxExemptionSelectionSchema: {
|
|
54415
54352
|
/**
|
|
54416
54353
|
* Tax
|
|
54417
54354
|
* Format: uuid
|
|
54418
|
-
* @description Tax id
|
|
54355
|
+
* @description Tax id for which a tax rule is selected
|
|
54419
54356
|
*/
|
|
54420
54357
|
tax: string;
|
|
54421
54358
|
/**
|
|
54422
|
-
*
|
|
54423
|
-
*
|
|
54424
|
-
*
|
|
54425
|
-
* reducing the tax amount calculated for that tax on this item.
|
|
54359
|
+
* Rule
|
|
54360
|
+
* Format: uuid
|
|
54361
|
+
* @description Selected tax rule id for the tax
|
|
54426
54362
|
*/
|
|
54427
|
-
|
|
54363
|
+
rule: string;
|
|
54428
54364
|
};
|
|
54429
54365
|
/** CustomerBranchSharedSchema */
|
|
54430
54366
|
CustomerBranchSharedSchema: {
|
|
@@ -54892,7 +54828,7 @@ export interface components {
|
|
|
54892
54828
|
/**
|
|
54893
54829
|
* Taxes
|
|
54894
54830
|
* @description - visible when customer is resident
|
|
54895
|
-
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
54831
|
+
* - get taxes from /api/v1/settings/accounting/taxes/
|
|
54896
54832
|
* - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals sales
|
|
54897
54833
|
* @default []
|
|
54898
54834
|
*/
|
|
@@ -59625,46 +59561,11 @@ export interface components {
|
|
|
59625
59561
|
*/
|
|
59626
59562
|
companyExemptionAmount: string;
|
|
59627
59563
|
/**
|
|
59628
|
-
*
|
|
59629
|
-
* @description
|
|
59630
|
-
* @default []
|
|
59631
|
-
*/
|
|
59632
|
-
appliedExemptions: components["schemas"]["TaxExemptionInfoSchema"][] | null;
|
|
59633
|
-
/**
|
|
59634
|
-
* Hasstampduty
|
|
59635
|
-
* @description Whether stamp duty is applicable for this item's customer/item scope (based on active stamp-duty TaxRule matching)
|
|
59636
|
-
* @default false
|
|
59637
|
-
*/
|
|
59638
|
-
hasStampDuty: boolean;
|
|
59639
|
-
/**
|
|
59640
|
-
* Appliedstampduties
|
|
59641
|
-
* @description List of stamp duty tax ids that were applied to this item
|
|
59564
|
+
* Taxexemptions
|
|
59565
|
+
* @description Selected tax rule ids per tax for this item
|
|
59642
59566
|
* @default []
|
|
59643
59567
|
*/
|
|
59644
|
-
|
|
59645
|
-
/**
|
|
59646
|
-
* Stampdutychargebearer
|
|
59647
|
-
* @description Who bears the stamp duty charge (only 'customer' is currently supported); null when not applicable.
|
|
59648
|
-
*/
|
|
59649
|
-
stampDutyChargeBearer?: string | null;
|
|
59650
|
-
/**
|
|
59651
|
-
* Stampdutyamount
|
|
59652
|
-
* @description Stamp duty amount for this item in document/customer currency
|
|
59653
|
-
* @default 0
|
|
59654
|
-
*/
|
|
59655
|
-
stampDutyAmount: string;
|
|
59656
|
-
/**
|
|
59657
|
-
* Secondarystampdutyamount
|
|
59658
|
-
* @description Stamp duty amount for this item in secondary (USD) currency
|
|
59659
|
-
* @default 0
|
|
59660
|
-
*/
|
|
59661
|
-
secondaryStampDutyAmount: string;
|
|
59662
|
-
/**
|
|
59663
|
-
* Companystampdutyamount
|
|
59664
|
-
* @description Stamp duty amount for this item in company currency
|
|
59665
|
-
* @default 0
|
|
59666
|
-
*/
|
|
59667
|
-
companyStampDutyAmount: string;
|
|
59568
|
+
taxExemptions: components["schemas"]["TaxExemptionSelectionResponseSchema"][] | null;
|
|
59668
59569
|
/**
|
|
59669
59570
|
* Total
|
|
59670
59571
|
* @description This field is a number representing grand total for the item.
|
|
@@ -60115,11 +60016,11 @@ export interface components {
|
|
|
60115
60016
|
*/
|
|
60116
60017
|
includeTaxInUnitPrice: boolean;
|
|
60117
60018
|
/**
|
|
60118
|
-
*
|
|
60119
|
-
* @description List of tax
|
|
60019
|
+
* Taxexemptions
|
|
60020
|
+
* @description List of selected tax rule ids per tax for this item
|
|
60120
60021
|
* @default []
|
|
60121
60022
|
*/
|
|
60122
|
-
|
|
60023
|
+
taxExemptions: components["schemas"]["TaxExemptionSelectionSchema"][];
|
|
60123
60024
|
/**
|
|
60124
60025
|
* Dimensionallocations
|
|
60125
60026
|
* @description - Optional per-line override. Field name: `dimensionAllocations` on each line/item row.
|
|
@@ -60130,12 +60031,6 @@ export interface components {
|
|
|
60130
60031
|
* `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
|
|
60131
60032
|
*/
|
|
60132
60033
|
dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
|
|
60133
|
-
/**
|
|
60134
|
-
* Appliedstampduties
|
|
60135
|
-
* @description List of stamp duty tax ids to apply for this item
|
|
60136
|
-
* @default []
|
|
60137
|
-
*/
|
|
60138
|
-
appliedStampDuties: string[];
|
|
60139
60034
|
};
|
|
60140
60035
|
/** CreateUpdateSalesInvoiceSchema */
|
|
60141
60036
|
CreateUpdateSalesInvoiceSchema: {
|
|
@@ -102513,7 +102408,7 @@ export interface operations {
|
|
|
102513
102408
|
[name: string]: unknown;
|
|
102514
102409
|
};
|
|
102515
102410
|
content: {
|
|
102516
|
-
"application/json": components["schemas"]["
|
|
102411
|
+
"application/json": components["schemas"]["CalculateTotalsErrorResponse"];
|
|
102517
102412
|
};
|
|
102518
102413
|
};
|
|
102519
102414
|
/** @description Internal Server Error */
|
|
@@ -104986,7 +104881,7 @@ export interface operations {
|
|
|
104986
104881
|
[name: string]: unknown;
|
|
104987
104882
|
};
|
|
104988
104883
|
content: {
|
|
104989
|
-
"application/json": components["schemas"]["
|
|
104884
|
+
"application/json": components["schemas"]["CalculateTotalsErrorResponse"];
|
|
104990
104885
|
};
|
|
104991
104886
|
};
|
|
104992
104887
|
/** @description Internal Server Error */
|
|
@@ -107195,7 +107090,7 @@ export interface operations {
|
|
|
107195
107090
|
[name: string]: unknown;
|
|
107196
107091
|
};
|
|
107197
107092
|
content: {
|
|
107198
|
-
"application/json": components["schemas"]["
|
|
107093
|
+
"application/json": components["schemas"]["CalculateTotalsErrorResponse"];
|
|
107199
107094
|
};
|
|
107200
107095
|
};
|
|
107201
107096
|
/** @description Internal Server Error */
|