Fix draft order line items (#873)
This commit is contained in:
1 parent
e0064026ed
commit
4e7a92c1b6
2 files changed
+4
-3
No files matched your search
+3
-2
@@ -3,5 +3,6 @@
|
|||||||
"semi": false,
|
"semi": false,
|
||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"trailingComma": "es5"
|
"trailingComma": "es5",
|
||||||
}
|
"arrowParens": "always"
|
||||||
|
}
|
||||||
@@ -104,7 +104,7 @@ class LineItemService extends BaseService {
|
|||||||
let price
|
let price
|
||||||
let shouldMerge = true
|
let shouldMerge = true
|
||||||
|
|
||||||
if (config.unit_price && typeof config.unit_price !== `undefined`) {
|
if (config.unit_price !== undefined && config.unit_price !== null) {
|
||||||
// if custom unit_price, we ensure positive values
|
// if custom unit_price, we ensure positive values
|
||||||
// and we choose to not merge the items
|
// and we choose to not merge the items
|
||||||
shouldMerge = false
|
shouldMerge = false
|
||||||
|
|||||||
Reference in new issue
Block a user