Subversion Repositories SmartDukaan

Rev

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

Rev 3132 Rev 4336
Line 201... Line 201...
201
        totalCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
201
        totalCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
202
        return totalCell;
202
        return totalCell;
203
    }
203
    }
204
    
204
    
205
    public static void main(String[] args) throws Exception {
205
    public static void main(String[] args) throws Exception {
206
        long purchaseOrderId = 10;
206
        long purchaseOrderId = 82;
-
 
207
 
-
 
208
        if (args != null && args.length != 0) {
-
 
209
            purchaseOrderId = Long.parseLong(args[0]);
-
 
210
        }
-
 
211
 
207
        WarehouseClient warehouseServiceClient = new WarehouseClient();
212
        WarehouseClient warehouseServiceClient = new WarehouseClient();
208
        Client client = warehouseServiceClient.getClient();
213
        Client client = warehouseServiceClient.getClient();
209
        in.shop2020.warehouse.PurchaseOrder purchaseOrder = client.getPurchaseOrder(purchaseOrderId);
214
        in.shop2020.warehouse.PurchaseOrder purchaseOrder = client.getPurchaseOrder(purchaseOrderId);
210
        Supplier supplier = client.getSupplier(purchaseOrder.getSupplierId());
215
        Supplier supplier = client.getSupplier(purchaseOrder.getSupplierId());
211
        String filename = generatePdfSheet(purchaseOrder, supplier);
216
        String filename = generatePdfSheet(purchaseOrder, supplier);