Subversion Repositories SmartDukaan

Rev

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

Rev 6512 Rev 6531
Line 87... Line 87...
87
  print '  i64 getVoucherAmount(i64 itemId, i64 voucherType)'
87
  print '  i64 getVoucherAmount(i64 itemId, i64 voucherType)'
88
  print '   getAllItemVouchers(i64 itemId)'
88
  print '   getAllItemVouchers(i64 itemId)'
89
  print '  bool isValidCatalogItemId(i64 catalog_item_id)'
89
  print '  bool isValidCatalogItemId(i64 catalog_item_id)'
90
  print '  double getVatPercentageForItem(i64 itemId, double price)'
90
  print '  double getVatPercentageForItem(i64 itemId, double price)'
91
  print '  double getVatAmountForItem(i64 itemId, double price)'
91
  print '  double getVatAmountForItem(i64 itemId, double price)'
-
 
92
  print '   getAllIgnoredInventoryUpdateItemsList(i32 offset, i32 limit)'
92
  print ''
93
  print ''
93
  sys.exit(0)
94
  sys.exit(0)
94
 
95
 
95
pp = pprint.PrettyPrinter(indent = 2)
96
pp = pprint.PrettyPrinter(indent = 2)
96
host = 'localhost'
97
host = 'localhost'
Line 545... Line 546...
545
  if len(args) != 2:
546
  if len(args) != 2:
546
    print 'getVatAmountForItem requires 2 args'
547
    print 'getVatAmountForItem requires 2 args'
547
    sys.exit(1)
548
    sys.exit(1)
548
  pp.pprint(client.getVatAmountForItem(eval(args[0]),eval(args[1]),))
549
  pp.pprint(client.getVatAmountForItem(eval(args[0]),eval(args[1]),))
549
 
550
 
-
 
551
elif cmd == 'getAllIgnoredInventoryUpdateItemsList':
-
 
552
  if len(args) != 2:
-
 
553
    print 'getAllIgnoredInventoryUpdateItemsList requires 2 args'
-
 
554
    sys.exit(1)
-
 
555
  pp.pprint(client.getAllIgnoredInventoryUpdateItemsList(eval(args[0]),eval(args[1]),))
-
 
556
 
550
else:
557
else:
551
  print 'Unrecognized method %s' % cmd
558
  print 'Unrecognized method %s' % cmd
552
  sys.exit(1)
559
  sys.exit(1)
553
 
560
 
554
transport.close()
561
transport.close()