Subversion Repositories SmartDukaan

Rev

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

Rev 7306 Rev 7330
Line 93... Line 93...
93
  print '  bool addupdateVoucherForItem(i64 catalog_item_id, i64 voucherType, i64 voucherAmount)'
93
  print '  bool addupdateVoucherForItem(i64 catalog_item_id, i64 voucherType, i64 voucherAmount)'
94
  print '  bool deleteVoucherForItem(i64 catalog_item_id, i64 voucherType)'
94
  print '  bool deleteVoucherForItem(i64 catalog_item_id, i64 voucherType)'
95
  print '  i64 getVoucherAmount(i64 itemId, i64 voucherType)'
95
  print '  i64 getVoucherAmount(i64 itemId, i64 voucherType)'
96
  print '   getAllItemVouchers(i64 itemId)'
96
  print '   getAllItemVouchers(i64 itemId)'
97
  print '  bool isValidCatalogItemId(i64 catalog_item_id)'
97
  print '  bool isValidCatalogItemId(i64 catalog_item_id)'
98
  print '  double getVatPercentageForItem(i64 itemId, double price)'
98
  print '  double getVatPercentageForItem(i64 itemId, i64 stateId, double price)'
99
  print '  double getVatAmountForItem(i64 itemId, double price)'
99
  print '  double getVatAmountForItem(i64 itemId, double price)'
100
  print '   getAllIgnoredInventoryUpdateItemsList(i32 offset, i32 limit)'
100
  print '   getAllIgnoredInventoryUpdateItemsList(i32 offset, i32 limit)'
101
  print '   getAllAliveItems()'
101
  print '   getAllAliveItems()'
102
  print '  i64 getInsuranceAmount(i64 itemId, double price, i64 insurerId, i64 quantity)'
102
  print '  i64 getInsuranceAmount(i64 itemId, double price, i64 insurerId, i64 quantity)'
103
  print '  Insurer getInsurer(i64 insurerId)'
103
  print '  Insurer getInsurer(i64 insurerId)'
Line 610... Line 610...
610
    print 'isValidCatalogItemId requires 1 args'
610
    print 'isValidCatalogItemId requires 1 args'
611
    sys.exit(1)
611
    sys.exit(1)
612
  pp.pprint(client.isValidCatalogItemId(eval(args[0]),))
612
  pp.pprint(client.isValidCatalogItemId(eval(args[0]),))
613
 
613
 
614
elif cmd == 'getVatPercentageForItem':
614
elif cmd == 'getVatPercentageForItem':
615
  if len(args) != 2:
615
  if len(args) != 3:
616
    print 'getVatPercentageForItem requires 2 args'
616
    print 'getVatPercentageForItem requires 3 args'
617
    sys.exit(1)
617
    sys.exit(1)
618
  pp.pprint(client.getVatPercentageForItem(eval(args[0]),eval(args[1]),))
618
  pp.pprint(client.getVatPercentageForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
619
 
619
 
620
elif cmd == 'getVatAmountForItem':
620
elif cmd == 'getVatAmountForItem':
621
  if len(args) != 2:
621
  if len(args) != 2:
622
    print 'getVatAmountForItem requires 2 args'
622
    print 'getVatAmountForItem requires 2 args'
623
    sys.exit(1)
623
    sys.exit(1)