@erp-galoper/types 1.0.1192 → 1.0.1194

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 +75 -29
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -23595,8 +23595,10 @@ export interface components {
23595
23595
  * Format: uuid
23596
23596
  */
23597
23597
  priceListId: string;
23598
- /** Price */
23599
- price: number | string | null;
23598
+ /** Minprice */
23599
+ minPrice: string | null;
23600
+ /** Maxprice */
23601
+ maxPrice: string | null;
23600
23602
  };
23601
23603
  /** QuantityGroupSchema */
23602
23604
  QuantityGroupSchema: {
@@ -43387,15 +43389,29 @@ export interface components {
43387
43389
  * Unitprice
43388
43390
  * @description - This field is a number.
43389
43391
  * - Should be greater than zero.
43390
- * - Get the unit price from sales/item/{id}/price/ with the following parameters:
43391
- * - id : item id
43392
- * - usdRate : secondary rate
43393
- * - companyRate : primary rate
43394
- * - customer : customer id
43395
- * - unitOfMeasure : item unit of measure id
43396
- * - itemPackage : item package id if applicable
43397
- * Note: if price list on you should pass price list id in the parameters
43398
- * - 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 ]
43399
43415
  */
43400
43416
  unitPrice: string;
43401
43417
  /**
@@ -45563,15 +45579,30 @@ export interface components {
45563
45579
  /**
45564
45580
  * Unitprice
45565
45581
  * @description - This field is a number.
45566
- * - Get the unit price from sales/item/{id}/price/ with the following parameters:
45567
- * - id : item id
45568
- * - usdRate : secondary rate
45569
- * - companyRate : primary rate
45570
- * - customer : customer id
45571
- * - unitOfMeasure : item unit of measure id
45572
- * - itemPackage : item package id if applicable
45573
- * Note: if price list on you should pass price list id in the parameters
45574
- * - 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 ]
45575
45606
  */
45576
45607
  unitPrice: number;
45577
45608
  /**
@@ -47185,15 +47216,30 @@ export interface components {
47185
47216
  /**
47186
47217
  * Unitprice
47187
47218
  * @description - This field is a number.
47188
- * - Get the unit price from sales/item/{id}/price/ with the following parameters:
47189
- * - id : item id
47190
- * - usdRate : secondary rate
47191
- * - companyRate : primary rate
47192
- * - customer : customer id
47193
- * - unitOfMeasure : item unit of measure id
47194
- * - itemPackage : item package id if applicable
47195
- * Note: if price list on you should pass price list id in the parameters
47196
- * - 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 ]
47197
47243
  */
47198
47244
  unitPrice: number;
47199
47245
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1192",
3
+ "version": "1.0.1194",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],