@floristcloud/api-lib 1.2.205 → 1.2.206
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/build/constant/error.js +5 -0
- package/constant/error.ts +5 -0
- package/package.json +1 -1
package/build/constant/error.js
CHANGED
|
@@ -779,6 +779,11 @@ exports.ERRORS = {
|
|
|
779
779
|
httpCode: 503,
|
|
780
780
|
},
|
|
781
781
|
ORDER_PRODUCT_CART_NOT_EDITABLE: { code: 'OP029', message: 'Only an open cart can be changed by the client', httpCode: 400 },
|
|
782
|
+
ORDER_PRODUCT_QUANTITY_BELOW_WRITE_OFF: {
|
|
783
|
+
code: 'OP030',
|
|
784
|
+
message: 'Order-product quantity cannot be less than the approved write-off quantity',
|
|
785
|
+
httpCode: 400,
|
|
786
|
+
},
|
|
782
787
|
//TRANSACTION
|
|
783
788
|
TRANSACTION_NOT_CREATED: { code: 'TR001', message: 'Failed to transaction product', httpCode: 500 },
|
|
784
789
|
TRANSACTION_FETCH_FAILED: { code: 'TR002', message: 'Error when retrieving a transaction', httpCode: 500 },
|
package/constant/error.ts
CHANGED
|
@@ -801,6 +801,11 @@ export const ERRORS = {
|
|
|
801
801
|
httpCode: 503,
|
|
802
802
|
},
|
|
803
803
|
ORDER_PRODUCT_CART_NOT_EDITABLE: { code: 'OP029', message: 'Only an open cart can be changed by the client', httpCode: 400 },
|
|
804
|
+
ORDER_PRODUCT_QUANTITY_BELOW_WRITE_OFF: {
|
|
805
|
+
code: 'OP030',
|
|
806
|
+
message: 'Order-product quantity cannot be less than the approved write-off quantity',
|
|
807
|
+
httpCode: 400,
|
|
808
|
+
},
|
|
804
809
|
|
|
805
810
|
//TRANSACTION
|
|
806
811
|
TRANSACTION_NOT_CREATED: { code: 'TR001', message: 'Failed to transaction product', httpCode: 500 },
|