Subversion Repositories SmartDukaan

Rev

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

Rev 11801 Rev 13600
Line 49... Line 49...
49
  print '  void closePO(i64 poId)'
49
  print '  void closePO(i64 poId)'
50
  print '  bool isInvoiceReceived(string invoiceNumber, i64 supplierId)'
50
  print '  bool isInvoiceReceived(string invoiceNumber, i64 supplierId)'
51
  print '  void changeWarehouseForPO(i64 id, i64 warehouseId)'
51
  print '  void changeWarehouseForPO(i64 id, i64 warehouseId)'
52
  print '  void changePOStatus(i64 id, POStatus poStatus)'
52
  print '  void changePOStatus(i64 id, POStatus poStatus)'
53
  print '  PurchaseReturn getPurchaseReturn(i64 id)'
53
  print '  PurchaseReturn getPurchaseReturn(i64 id)'
-
 
54
  print '  bool markPurchasereturnSettled(i64 id, SettlementType settlementType, string documentNumber, string settlementBy, i64 settledAmount)'
-
 
55
  print '   getPrSettlementsForPurchaseReturn(i64 purchaseReturnId)'
-
 
56
  print '  void updatePurchaseReturn(PurchaseReturn purchaseReturn)'
54
  print ''
57
  print ''
55
  sys.exit(0)
58
  sys.exit(0)
56
 
59
 
57
pp = pprint.PrettyPrinter(indent = 2)
60
pp = pprint.PrettyPrinter(indent = 2)
58
host = 'localhost'
61
host = 'localhost'
Line 279... Line 282...
279
  if len(args) != 1:
282
  if len(args) != 1:
280
    print 'getPurchaseReturn requires 1 args'
283
    print 'getPurchaseReturn requires 1 args'
281
    sys.exit(1)
284
    sys.exit(1)
282
  pp.pprint(client.getPurchaseReturn(eval(args[0]),))
285
  pp.pprint(client.getPurchaseReturn(eval(args[0]),))
283
 
286
 
-
 
287
elif cmd == 'markPurchasereturnSettled':
-
 
288
  if len(args) != 5:
-
 
289
    print 'markPurchasereturnSettled requires 5 args'
-
 
290
    sys.exit(1)
-
 
291
  pp.pprint(client.markPurchasereturnSettled(eval(args[0]),eval(args[1]),args[2],args[3],eval(args[4]),))
-
 
292
 
-
 
293
elif cmd == 'getPrSettlementsForPurchaseReturn':
-
 
294
  if len(args) != 1:
-
 
295
    print 'getPrSettlementsForPurchaseReturn requires 1 args'
-
 
296
    sys.exit(1)
-
 
297
  pp.pprint(client.getPrSettlementsForPurchaseReturn(eval(args[0]),))
-
 
298
 
-
 
299
elif cmd == 'updatePurchaseReturn':
-
 
300
  if len(args) != 1:
-
 
301
    print 'updatePurchaseReturn requires 1 args'
-
 
302
    sys.exit(1)
-
 
303
  pp.pprint(client.updatePurchaseReturn(eval(args[0]),))
-
 
304
 
284
else:
305
else:
285
  print 'Unrecognized method %s' % cmd
306
  print 'Unrecognized method %s' % cmd
286
  sys.exit(1)
307
  sys.exit(1)
287
 
308
 
288
transport.close()
309
transport.close()