@erp-galoper/types 1.0.1966 → 1.0.1968
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 +18 -0
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -50496,6 +50496,7 @@ export interface components {
|
|
|
50496
50496
|
/**
|
|
50497
50497
|
* @description Unit of measure used for pricing this line.
|
|
50498
50498
|
* For retail price lists this is always the item's default sales UOM (or the package UOM when a package is selected).
|
|
50499
|
+
* For POS price lists (isPos is true), only the item's default sales unit of measure is allowed.
|
|
50499
50500
|
*/
|
|
50500
50501
|
unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
|
|
50501
50502
|
/**
|
|
@@ -50618,6 +50619,7 @@ export interface components {
|
|
|
50618
50619
|
canDelete: boolean;
|
|
50619
50620
|
/**
|
|
50620
50621
|
* Ispos
|
|
50622
|
+
* @description When true, this is a POS retail price list. Only items priced in their default sales unit of measure are allowed.
|
|
50621
50623
|
* @default false
|
|
50622
50624
|
*/
|
|
50623
50625
|
isPos: boolean;
|
|
@@ -50649,6 +50651,10 @@ export interface components {
|
|
|
50649
50651
|
* - allowSales equal to true
|
|
50650
50652
|
* - viewType equal to flat, role not equal to template
|
|
50651
50653
|
* - item can be filtered by: name, barcode, sku code or short name
|
|
50654
|
+
*
|
|
50655
|
+
* **When the price list has isPos set to true:**
|
|
50656
|
+
* - Only items where the unit of measure equals the item's default sales unit of measure (`default_sale_unit_of_measure`) should be included
|
|
50657
|
+
* - The frontend should not allow selecting a different unit of measure for POS price lists
|
|
50652
50658
|
*/
|
|
50653
50659
|
item: string;
|
|
50654
50660
|
/**
|
|
@@ -50675,6 +50681,11 @@ export interface components {
|
|
|
50675
50681
|
* - Sending a different unit of measure is rejected with error code `invalidUnitOfMeasureForRetail` on field `items.{index}.unitOfMeasure`.
|
|
50676
50682
|
* - The frontend should auto-populate this field from the item's default sales UOM (or the package UOM) and should not allow the user to change it for retail lists.
|
|
50677
50683
|
*
|
|
50684
|
+
* **POS price lists (isPos is true):**
|
|
50685
|
+
* - Only items where the unit of measure equals the item's default sales unit of measure (`default_sale_unit_of_measure`) are allowed.
|
|
50686
|
+
* - When `itemPackage` is provided, this field must exactly match the package's unit of measure.
|
|
50687
|
+
* - The frontend should only present items and units of measure that satisfy this constraint when building a POS price list.
|
|
50688
|
+
*
|
|
50678
50689
|
* **Duplicate validation:**
|
|
50679
50690
|
* - The same item + itemPackage + unitOfMeasure combination cannot appear more than once per price list (enforced by database unique constraint).
|
|
50680
50691
|
* - For retail lists, unit of measure is normalized before insert, so conflicting lines are rejected at save time with error code `duplicateItemInPriceList`.
|
|
@@ -50749,6 +50760,10 @@ export interface components {
|
|
|
50749
50760
|
/**
|
|
50750
50761
|
* Ispos
|
|
50751
50762
|
* @description Only applicable when price list type is retail. Only one retail price list per branch can have is_pos set to true.
|
|
50763
|
+
*
|
|
50764
|
+
* When isPos is true:
|
|
50765
|
+
* - regions, customers, and customerGroups are not applicable
|
|
50766
|
+
* - Only items where the unit of measure equals the item's default sales unit of measure (`default_sale_unit_of_measure`) should be added to the price list
|
|
50752
50767
|
* @default false
|
|
50753
50768
|
*/
|
|
50754
50769
|
isPos: boolean;
|
|
@@ -50817,6 +50832,8 @@ export interface components {
|
|
|
50817
50832
|
* @description List of items with their corresponding prices defined in this price list. At least one item must be included.
|
|
50818
50833
|
*
|
|
50819
50834
|
* Each line is uniquely identified by the combination of `item`, `itemPackage`, and `unitOfMeasure` (enforced by database unique constraint).
|
|
50835
|
+
*
|
|
50836
|
+
* **When isPos is true:** only include items where `unitOfMeasure` equals the item's default sales unit of measure. Non-sales units of measure are not allowed.
|
|
50820
50837
|
*/
|
|
50821
50838
|
items: components["schemas"]["CreateUpdateSalesPriceListItemSchema"][];
|
|
50822
50839
|
};
|
|
@@ -50880,6 +50897,7 @@ export interface components {
|
|
|
50880
50897
|
canDelete: boolean;
|
|
50881
50898
|
/**
|
|
50882
50899
|
* Ispos
|
|
50900
|
+
* @description When true, this is a POS retail price list. Only items priced in their default sales unit of measure are allowed.
|
|
50883
50901
|
* @default false
|
|
50884
50902
|
*/
|
|
50885
50903
|
isPos: boolean;
|