@erp-galoper/types 1.0.1193 → 1.0.1195

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 +72 -28
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -22161,7 +22161,7 @@ export interface components {
22161
22161
  * BasePermissionsSchema_Supplier_SupplierEnum
22162
22162
  * @enum {string}
22163
22163
  */
22164
- BasePermissionsSchema_Supplier_SupplierEnum: "add" | "change" | "delete" | "import" | "view";
22164
+ BasePermissionsSchema_Supplier_SupplierEnum: "add" | "change" | "import" | "view";
22165
22165
  /** BasePermissionsSchema_Task */
22166
22166
  BasePermissionsSchema_Task: {
22167
22167
  /**
@@ -43389,15 +43389,29 @@ export interface components {
43389
43389
  * Unitprice
43390
43390
  * @description - This field is a number.
43391
43391
  * - Should be greater than zero.
43392
- * - Get the unit price from sales/item/{id}/price/ with the following parameters:
43393
- * - id : item id
43394
- * - usdRate : secondary rate
43395
- * - companyRate : primary rate
43396
- * - customer : customer id
43397
- * - unitOfMeasure : item unit of measure id
43398
- * - itemPackage : item package id if applicable
43399
- * Note: if price list on you should pass price list id in the parameters
43400
- * - field should be disabled if price list is on and user dont have access to change price, permissionKey : price : [ change ]
43392
+ * - if price list is on get price using route /api/v1/inventory/items/ with required query params:
43393
+ * - priceListIds = selected price-list-id
43394
+ * - type = sales
43395
+ * - companyRate if customer currency is different than company currency, rate is taken from document itself
43396
+ * - secondaryCurrency if customer currency is different than secondary currency, rate is taken from document itself
43397
+ * and access unitOfMeasure field to get min price and max price
43398
+ *
43399
+ * - if price list off get price using route /api/v1/inventory/items/
43400
+ * Apply currency rules based on defaultSellingPriceCurrency and the customer's currency:
43401
+ *
43402
+ * 1) if defaultSellingPriceCurrency is equals to customer currency get price from field defaultSellingPrice
43403
+ *
43404
+ * 2) if customer currency equals company currency price is defaultSellingPrice / secondaryRate
43405
+ *
43406
+ * 3) if customer currency equals to secondary currency price is defaultSellingPrice / companyRate
43407
+ *
43408
+ * 4) if customer currency is foreign(e.g., EUR) price is:
43409
+ * - if defaultSellingPriceCurrency is equals company currency defaultSellingPrice / companyRate
43410
+ * - if defaultSellingPriceCurrency is equals secondary currency defaultSellingPrice / secondaryRate
43411
+ *
43412
+ * this logic is applied to item and item package
43413
+ *
43414
+ * - when price list is on user is allowed to change price if have permission, permissionKey : price : [ change ]
43401
43415
  */
43402
43416
  unitPrice: string;
43403
43417
  /**
@@ -45565,15 +45579,30 @@ export interface components {
45565
45579
  /**
45566
45580
  * Unitprice
45567
45581
  * @description - This field is a number.
45568
- * - Get the unit price from sales/item/{id}/price/ with the following parameters:
45569
- * - id : item id
45570
- * - usdRate : secondary rate
45571
- * - companyRate : primary rate
45572
- * - customer : customer id
45573
- * - unitOfMeasure : item unit of measure id
45574
- * - itemPackage : item package id if applicable
45575
- * Note: if price list on you should pass price list id in the parameters
45576
- * - field should be disabled if price list is on and user dont have access to change price, permissionKey : price : [ change ]
45582
+ * - Should be greater than zero.
45583
+ * - if price list is on get price using route /api/v1/inventory/items/ with required query params:
45584
+ * - priceListIds = selected price-list-id
45585
+ * - type = sales
45586
+ * - companyRate if customer currency is different than company currency, rate is taken from document itself
45587
+ * - secondaryCurrency if customer currency is different than secondary currency, rate is taken from document itself
45588
+ * and access unitOfMeasure field to get min price and max price
45589
+ *
45590
+ * - if price list off get price using route /api/v1/inventory/items/
45591
+ * • Apply currency rules based on defaultSellingPriceCurrency and the customer's currency:
45592
+ *
45593
+ * 1) if defaultSellingPriceCurrency is equals to customer currency get price from field defaultSellingPrice
45594
+ *
45595
+ * 2) if customer currency equals company currency price is defaultSellingPrice / secondaryRate
45596
+ *
45597
+ * 3) if customer currency equals to secondary currency price is defaultSellingPrice / companyRate
45598
+ *
45599
+ * 4) if customer currency is foreign(e.g., EUR) price is:
45600
+ * - if defaultSellingPriceCurrency is equals company currency defaultSellingPrice / companyRate
45601
+ * - if defaultSellingPriceCurrency is equals secondary currency defaultSellingPrice / secondaryRate
45602
+ *
45603
+ * this logic is applied to item and item package
45604
+ *
45605
+ * - when price list is on user is allowed to change price if have permission, permissionKey : price : [ change ]
45577
45606
  */
45578
45607
  unitPrice: number;
45579
45608
  /**
@@ -47187,15 +47216,30 @@ export interface components {
47187
47216
  /**
47188
47217
  * Unitprice
47189
47218
  * @description - This field is a number.
47190
- * - Get the unit price from sales/item/{id}/price/ with the following parameters:
47191
- * - id : item id
47192
- * - usdRate : secondary rate
47193
- * - companyRate : primary rate
47194
- * - customer : customer id
47195
- * - unitOfMeasure : item unit of measure id
47196
- * - itemPackage : item package id if applicable
47197
- * Note: if price list on you should pass price list id in the parameters
47198
- * - field should be disabled if price list is on and user dont have access to change price, permissionKey : price : [ change ]
47219
+ * - Should be greater than zero.
47220
+ * - if price list is on get price using route /api/v1/inventory/items/ with required query params:
47221
+ * - priceListIds = selected price-list-id
47222
+ * - type = sales
47223
+ * - companyRate if customer currency is different than company currency, rate is taken from document itself
47224
+ * - secondaryCurrency if customer currency is different than secondary currency, rate is taken from document itself
47225
+ * and access unitOfMeasure field to get min price and max price
47226
+ *
47227
+ * - if price list off get price using route /api/v1/inventory/items/
47228
+ * • Apply currency rules based on defaultSellingPriceCurrency and the customer's currency:
47229
+ *
47230
+ * 1) if defaultSellingPriceCurrency is equals to customer currency get price from field defaultSellingPrice
47231
+ *
47232
+ * 2) if customer currency equals company currency price is defaultSellingPrice / secondaryRate
47233
+ *
47234
+ * 3) if customer currency equals to secondary currency price is defaultSellingPrice / companyRate
47235
+ *
47236
+ * 4) if customer currency is foreign(e.g., EUR) price is:
47237
+ * - if defaultSellingPriceCurrency is equals company currency defaultSellingPrice / companyRate
47238
+ * - if defaultSellingPriceCurrency is equals secondary currency defaultSellingPrice / secondaryRate
47239
+ *
47240
+ * this logic is applied to item and item package
47241
+ *
47242
+ * - when price list is on user is allowed to change price if have permission, permissionKey : price : [ change ]
47199
47243
  */
47200
47244
  unitPrice: number;
47201
47245
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1193",
3
+ "version": "1.0.1195",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],