Subversion Repositories SmartDukaan

Rev

Rev 35928 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35928 Rev 35929
Line 136... Line 136...
136
import org.springframework.core.io.ByteArrayResource;
136
import org.springframework.core.io.ByteArrayResource;
137
import org.springframework.core.io.InputStreamSource;
137
import org.springframework.core.io.InputStreamSource;
138
import org.springframework.mail.javamail.JavaMailSender;
138
import org.springframework.mail.javamail.JavaMailSender;
139
import org.springframework.mail.javamail.MimeMessageHelper;
139
import org.springframework.mail.javamail.MimeMessageHelper;
140
import org.springframework.stereotype.Component;
140
import org.springframework.stereotype.Component;
141
import org.springframework.transaction.annotation.Propagation;
-
 
142
import org.springframework.transaction.annotation.Transactional;
141
import org.springframework.transaction.annotation.Transactional;
143
 
142
 
144
import javax.mail.MessagingException;
143
import javax.mail.MessagingException;
145
import javax.mail.internet.InternetAddress;
144
import javax.mail.internet.InternetAddress;
146
import javax.mail.internet.MimeMessage;
145
import javax.mail.internet.MimeMessage;
Line 1212... Line 1211...
1212
     */
1211
     */
1213
    public void cachePinelabsOffers() {
1212
    public void cachePinelabsOffers() {
1214
        pinelabsOfferCacheService.cacheAllItemOffers();
1213
        pinelabsOfferCacheService.cacheAllItemOffers();
1215
    }
1214
    }
1216
 
1215
 
1217
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
-
 
1218
    public void syncProductsToShopifyByWarehouseId(int warehouseId) throws Exception {
1216
    public void syncProductsToShopifyByWarehouseId(int warehouseId) throws Exception {
1219
        shopifyProductSyncService.syncByWarehouse(warehouseId);
1217
        shopifyProductSyncService.syncByWarehouse(warehouseId);
1220
    }
1218
    }
1221
 
1219
 
1222
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
-
 
1223
    public void syncInventoryToShopifyByWarehouseId(int warehouseId) throws Exception {
1220
    public void syncInventoryToShopifyByWarehouseId(int warehouseId) throws Exception {
1224
        shopifyProductSyncService.syncInventory(warehouseId);
1221
        shopifyProductSyncService.syncInventory(warehouseId);
1225
    }
1222
    }
1226
 
1223
 
1227
    public void testAffordability() {
1224
    public void testAffordability() {