Fix draft order line items (#873)

This commit is contained in:
Derek Wene
2021-12-07 11:02:35 +01:00
committed by GitHub
parent e0064026ed
commit 4e7a92c1b6
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -3,5 +3,6 @@
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
"trailingComma": "es5",
"arrowParens": "always"
}
+1 -1
View File
@@ -104,7 +104,7 @@ class LineItemService extends BaseService {
let price
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
// and we choose to not merge the items
shouldMerge = false