Skip to content

Commit 59f3179

Browse files
chore(export-product): add deposito in variation when export product
1 parent fb81fcc commit 59f3179

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

functions/lib/integration/parsers/product-to-bling.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ module.exports = (product, originalBlingProduct, blingProductCode, blingStore, a
116116
vlr_unit: ecomUtils.price({ ...product, ...variation }),
117117
estoque: variation.quantity || 0
118118
}
119+
if (appData.bling_deposit) {
120+
blingVariation.deposito = {
121+
id: appData.bling_deposit,
122+
estoque: variation.quantity || 0
123+
}
124+
delete blingVariation.estoque
125+
}
119126

120127
for (const gridId in variation.specifications) {
121128
const gridOptions = variation.specifications[gridId]

0 commit comments

Comments
 (0)