Subversion Repositories SmartDukaan

Rev

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

Rev 37058 Rev 37326
Line 939... Line 939...
939
        } catch (Throwable t) {
939
        } catch (Throwable t) {
940
            t.printStackTrace();
940
            t.printStackTrace();
941
        }
941
        }
942
    }
942
    }
943
 
943
 
-
 
944
    /**
-
 
945
     * Recovers EWB details from NIC for invoices whose IRN came back via DUPIRN (so the EWB was
-
 
946
     * never captured) and re-renders their PDFs. NOT_SUPPORTED so the class-level transaction is
-
 
947
     * suspended — the NIC lookups must not run inside one.
-
 
948
     */
-
 
949
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
-
 
950
    public void backfillMissingEwb(List<String> invoiceNumbers, boolean dryRun) {
-
 
951
        try {
-
 
952
            invoiceService.backfillMissingEwb(invoiceNumbers, dryRun);
-
 
953
        } catch (Throwable t) {
-
 
954
            t.printStackTrace();
-
 
955
        }
-
 
956
    }
-
 
957
 
944
    @Autowired
958
    @Autowired
945
    AmazonPurchaseService amazonPurchaseService;
959
    AmazonPurchaseService amazonPurchaseService;
946
 
960
 
947
    private static DataFormatter formatter = new DataFormatter();
961
    private static DataFormatter formatter = new DataFormatter();
948
 
962