Subversion Repositories SmartDukaan

Rev

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

Rev 19714 Rev 21838
Line 219... Line 219...
219
  print '   getCartByValue( cartIds)'
219
  print '   getCartByValue( cartIds)'
220
  print '  bool updateItemPricing( itemPricingList)'
220
  print '  bool updateItemPricing( itemPricingList)'
221
  print '  void bulkUpdateCatalog( bulkUploadCatalog)'
221
  print '  void bulkUpdateCatalog( bulkUploadCatalog)'
222
  print '   getWarrantyInfoForItem(i64 catalogItemId, ItemCondition itemCondition)'
222
  print '   getWarrantyInfoForItem(i64 catalogItemId, ItemCondition itemCondition)'
223
  print '   getWarrantyInfoForItemList( catalogItemIds, ItemCondition itemCondition)'
223
  print '   getWarrantyInfoForItemList( catalogItemIds, ItemCondition itemCondition)'
-
 
224
  print '  StateGstRates getGstRatesByState(i64 stateId)'
-
 
225
  print '   getInterStateGstRates()'
-
 
226
  print '   getHsnCodesByCategory(i64 categoryId)'
224
  print ''
227
  print ''
225
  sys.exit(0)
228
  sys.exit(0)
226
 
229
 
227
pp = pprint.PrettyPrinter(indent = 2)
230
pp = pprint.PrettyPrinter(indent = 2)
228
host = 'localhost'
231
host = 'localhost'
Line 1469... Line 1472...
1469
  if len(args) != 2:
1472
  if len(args) != 2:
1470
    print 'getWarrantyInfoForItemList requires 2 args'
1473
    print 'getWarrantyInfoForItemList requires 2 args'
1471
    sys.exit(1)
1474
    sys.exit(1)
1472
  pp.pprint(client.getWarrantyInfoForItemList(eval(args[0]),eval(args[1]),))
1475
  pp.pprint(client.getWarrantyInfoForItemList(eval(args[0]),eval(args[1]),))
1473
 
1476
 
-
 
1477
elif cmd == 'getGstRatesByState':
-
 
1478
  if len(args) != 1:
-
 
1479
    print 'getGstRatesByState requires 1 args'
-
 
1480
    sys.exit(1)
-
 
1481
  pp.pprint(client.getGstRatesByState(eval(args[0]),))
-
 
1482
 
-
 
1483
elif cmd == 'getInterStateGstRates':
-
 
1484
  if len(args) != 0:
-
 
1485
    print 'getInterStateGstRates requires 0 args'
-
 
1486
    sys.exit(1)
-
 
1487
  pp.pprint(client.getInterStateGstRates())
-
 
1488
 
-
 
1489
elif cmd == 'getHsnCodesByCategory':
-
 
1490
  if len(args) != 1:
-
 
1491
    print 'getHsnCodesByCategory requires 1 args'
-
 
1492
    sys.exit(1)
-
 
1493
  pp.pprint(client.getHsnCodesByCategory(eval(args[0]),))
-
 
1494
 
1474
else:
1495
else:
1475
  print 'Unrecognized method %s' % cmd
1496
  print 'Unrecognized method %s' % cmd
1476
  sys.exit(1)
1497
  sys.exit(1)
1477
 
1498
 
1478
transport.close()
1499
transport.close()