Subversion Repositories SmartDukaan

Rev

Rev 35915 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35915 Rev 35928
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;
141
import org.springframework.transaction.annotation.Transactional;
142
import org.springframework.transaction.annotation.Transactional;
142
 
143
 
143
import javax.mail.MessagingException;
144
import javax.mail.MessagingException;
144
import javax.mail.internet.InternetAddress;
145
import javax.mail.internet.InternetAddress;
145
import javax.mail.internet.MimeMessage;
146
import javax.mail.internet.MimeMessage;
Line 1211... Line 1212...
1211
     */
1212
     */
1212
    public void cachePinelabsOffers() {
1213
    public void cachePinelabsOffers() {
1213
        pinelabsOfferCacheService.cacheAllItemOffers();
1214
        pinelabsOfferCacheService.cacheAllItemOffers();
1214
    }
1215
    }
1215
 
1216
 
-
 
1217
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
1216
    public void syncProductsToShopifyByWarehouseId(int warehouseId) throws Exception {
1218
    public void syncProductsToShopifyByWarehouseId(int warehouseId) throws Exception {
1217
        shopifyProductSyncService.syncByWarehouse(warehouseId);
1219
        shopifyProductSyncService.syncByWarehouse(warehouseId);
1218
    }
1220
    }
1219
 
1221
 
-
 
1222
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
1220
    public void syncInventoryToShopifyByWarehouseId(int warehouseId) throws Exception {
1223
    public void syncInventoryToShopifyByWarehouseId(int warehouseId) throws Exception {
1221
        shopifyProductSyncService.syncInventory(warehouseId);
1224
        shopifyProductSyncService.syncInventory(warehouseId);
1222
    }
1225
    }
1223
 
1226
 
1224
    public void testAffordability() {
1227
    public void testAffordability() {