Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e65475

Browse files
authored
OBPIH-7001 Export inactive products as 'false' to prevent reactivating them on import (fix) (#5583)
1 parentcc867a1 commit1e65475

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎grails-app/services/org/pih/warehouse/product/ProductService.groovy‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,10 @@ class ProductService {
884884
// FIXME make relation to Constants.EXPORT_PRODUCT_COLUMNS explicit
885885
def row= [
886886
Id : product?.id,
887-
Active : product.active?:Boolean.TRUE,
887+
// When product is not active, we want to set it as the string 'false', because without that, when we export the file,
888+
// the cell is blank, so if we import this file again, we will set this product as active, because in our import logic
889+
// we treat a blank active field as true
890+
Active : product.active?:'false',
888891
ProductCode : product.productCode?:'',
889892
ProductType : product.productType?.name?:'',
890893
Name : product.name,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp