Subversion Repositories SmartDukaan

Rev

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

Rev 7410 Rev 7672
Line 229... Line 229...
229
     - invoiceNumber
229
     - invoiceNumber
230
     - supplierId
230
     - supplierId
231
    """
231
    """
232
    pass
232
    pass
233
 
233
 
234
  def createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, itemId):
234
  def createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, nlc, itemId):
235
    """
235
    """
236
     * Inserts new Invoice/LineItem/Purchase Entries for Billed Product done through Our External Billing
236
     * Inserts new Invoice/LineItem/Purchase Entries for Billed Product done through Our External Billing
237
    *
237
    *
238
 
238
 
239
    Parameters:
239
    Parameters:
240
     - invoiceNumber
240
     - invoiceNumber
241
     - unitPrice
241
     - unitPrice
-
 
242
     - nlc
242
     - itemId
243
     - itemId
243
    """
244
    """
244
    pass
245
    pass
245
 
246
 
246
  def fulfillPOForExtBilling(self, itemId, quantity):
247
  def fulfillPOForExtBilling(self, itemId, quantity):
Line 1040... Line 1041...
1040
    self._iprot.readMessageEnd()
1041
    self._iprot.readMessageEnd()
1041
    if result.success is not None:
1042
    if result.success is not None:
1042
      return result.success
1043
      return result.success
1043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInvoice failed: unknown result");
1044
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInvoice failed: unknown result");
1044
 
1045
 
1045
  def createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, itemId):
1046
  def createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, nlc, itemId):
1046
    """
1047
    """
1047
     * Inserts new Invoice/LineItem/Purchase Entries for Billed Product done through Our External Billing
1048
     * Inserts new Invoice/LineItem/Purchase Entries for Billed Product done through Our External Billing
1048
    *
1049
    *
1049
 
1050
 
1050
    Parameters:
1051
    Parameters:
1051
     - invoiceNumber
1052
     - invoiceNumber
1052
     - unitPrice
1053
     - unitPrice
-
 
1054
     - nlc
1053
     - itemId
1055
     - itemId
1054
    """
1056
    """
1055
    self.send_createPurchaseForOurExtBilling(invoiceNumber, unitPrice, itemId)
1057
    self.send_createPurchaseForOurExtBilling(invoiceNumber, unitPrice, nlc, itemId)
1056
    return self.recv_createPurchaseForOurExtBilling()
1058
    return self.recv_createPurchaseForOurExtBilling()
1057
 
1059
 
1058
  def send_createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, itemId):
1060
  def send_createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, nlc, itemId):
1059
    self._oprot.writeMessageBegin('createPurchaseForOurExtBilling', TMessageType.CALL, self._seqid)
1061
    self._oprot.writeMessageBegin('createPurchaseForOurExtBilling', TMessageType.CALL, self._seqid)
1060
    args = createPurchaseForOurExtBilling_args()
1062
    args = createPurchaseForOurExtBilling_args()
1061
    args.invoiceNumber = invoiceNumber
1063
    args.invoiceNumber = invoiceNumber
1062
    args.unitPrice = unitPrice
1064
    args.unitPrice = unitPrice
-
 
1065
    args.nlc = nlc
1063
    args.itemId = itemId
1066
    args.itemId = itemId
1064
    args.write(self._oprot)
1067
    args.write(self._oprot)
1065
    self._oprot.writeMessageEnd()
1068
    self._oprot.writeMessageEnd()
1066
    self._oprot.trans.flush()
1069
    self._oprot.trans.flush()
1067
 
1070
 
Line 1520... Line 1523...
1520
  def process_createPurchaseForOurExtBilling(self, seqid, iprot, oprot):
1523
  def process_createPurchaseForOurExtBilling(self, seqid, iprot, oprot):
1521
    args = createPurchaseForOurExtBilling_args()
1524
    args = createPurchaseForOurExtBilling_args()
1522
    args.read(iprot)
1525
    args.read(iprot)
1523
    iprot.readMessageEnd()
1526
    iprot.readMessageEnd()
1524
    result = createPurchaseForOurExtBilling_result()
1527
    result = createPurchaseForOurExtBilling_result()
1525
    result.success = self._handler.createPurchaseForOurExtBilling(args.invoiceNumber, args.unitPrice, args.itemId)
1528
    result.success = self._handler.createPurchaseForOurExtBilling(args.invoiceNumber, args.unitPrice, args.nlc, args.itemId)
1526
    oprot.writeMessageBegin("createPurchaseForOurExtBilling", TMessageType.REPLY, seqid)
1529
    oprot.writeMessageBegin("createPurchaseForOurExtBilling", TMessageType.REPLY, seqid)
1527
    result.write(oprot)
1530
    result.write(oprot)
1528
    oprot.writeMessageEnd()
1531
    oprot.writeMessageEnd()
1529
    oprot.trans.flush()
1532
    oprot.trans.flush()
1530
 
1533
 
Line 4586... Line 4589...
4586
class createPurchaseForOurExtBilling_args:
4589
class createPurchaseForOurExtBilling_args:
4587
  """
4590
  """
4588
  Attributes:
4591
  Attributes:
4589
   - invoiceNumber
4592
   - invoiceNumber
4590
   - unitPrice
4593
   - unitPrice
-
 
4594
   - nlc
4591
   - itemId
4595
   - itemId
4592
  """
4596
  """
4593
 
4597
 
4594
  thrift_spec = (
4598
  thrift_spec = (
4595
    None, # 0
4599
    None, # 0
4596
    (1, TType.STRING, 'invoiceNumber', None, None, ), # 1
4600
    (1, TType.STRING, 'invoiceNumber', None, None, ), # 1
4597
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
4601
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
-
 
4602
    (3, TType.DOUBLE, 'nlc', None, None, ), # 3
4598
    (3, TType.I64, 'itemId', None, None, ), # 3
4603
    (4, TType.I64, 'itemId', None, None, ), # 4
4599
  )
4604
  )
4600
 
4605
 
4601
  def __init__(self, invoiceNumber=None, unitPrice=None, itemId=None,):
4606
  def __init__(self, invoiceNumber=None, unitPrice=None, nlc=None, itemId=None,):
4602
    self.invoiceNumber = invoiceNumber
4607
    self.invoiceNumber = invoiceNumber
4603
    self.unitPrice = unitPrice
4608
    self.unitPrice = unitPrice
-
 
4609
    self.nlc = nlc
4604
    self.itemId = itemId
4610
    self.itemId = itemId
4605
 
4611
 
4606
  def read(self, iprot):
4612
  def read(self, iprot):
4607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 4621... Line 4627...
4621
        if ftype == TType.DOUBLE:
4627
        if ftype == TType.DOUBLE:
4622
          self.unitPrice = iprot.readDouble();
4628
          self.unitPrice = iprot.readDouble();
4623
        else:
4629
        else:
4624
          iprot.skip(ftype)
4630
          iprot.skip(ftype)
4625
      elif fid == 3:
4631
      elif fid == 3:
-
 
4632
        if ftype == TType.DOUBLE:
-
 
4633
          self.nlc = iprot.readDouble();
-
 
4634
        else:
-
 
4635
          iprot.skip(ftype)
-
 
4636
      elif fid == 4:
4626
        if ftype == TType.I64:
4637
        if ftype == TType.I64:
4627
          self.itemId = iprot.readI64();
4638
          self.itemId = iprot.readI64();
4628
        else:
4639
        else:
4629
          iprot.skip(ftype)
4640
          iprot.skip(ftype)
4630
      else:
4641
      else:
Line 4643... Line 4654...
4643
      oprot.writeFieldEnd()
4654
      oprot.writeFieldEnd()
4644
    if self.unitPrice is not None:
4655
    if self.unitPrice is not None:
4645
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
4656
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
4646
      oprot.writeDouble(self.unitPrice)
4657
      oprot.writeDouble(self.unitPrice)
4647
      oprot.writeFieldEnd()
4658
      oprot.writeFieldEnd()
-
 
4659
    if self.nlc is not None:
-
 
4660
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 3)
-
 
4661
      oprot.writeDouble(self.nlc)
-
 
4662
      oprot.writeFieldEnd()
4648
    if self.itemId is not None:
4663
    if self.itemId is not None:
4649
      oprot.writeFieldBegin('itemId', TType.I64, 3)
4664
      oprot.writeFieldBegin('itemId', TType.I64, 4)
4650
      oprot.writeI64(self.itemId)
4665
      oprot.writeI64(self.itemId)
4651
      oprot.writeFieldEnd()
4666
      oprot.writeFieldEnd()
4652
    oprot.writeFieldStop()
4667
    oprot.writeFieldStop()
4653
    oprot.writeStructEnd()
4668
    oprot.writeStructEnd()
4654
 
4669