| Line 7776... |
Line 7776... |
| 7776 |
if order.cod:
|
7776 |
if order.cod:
|
| 7777 |
if isPrivateDealUser:
|
7777 |
if isPrivateDealUser:
|
| 7778 |
if totalOrdersAmount > privateDealUser.bulkShipmentAmountLimit:
|
7778 |
if totalOrdersAmount > privateDealUser.bulkShipmentAmountLimit:
|
| 7779 |
raise TransactionServiceException(208, "Private Deal Counter Group Shipment Weight Limit Violated")
|
7779 |
raise TransactionServiceException(208, "Private Deal Counter Group Shipment Weight Limit Violated")
|
| 7780 |
|
7780 |
|
| 7781 |
print 'totalWeight',totalWeight
|
- |
|
| 7782 |
if totalWeight > provider.bundleWeightLimit:
|
7781 |
if totalWeight > provider.bundleWeightLimit:
|
| 7783 |
raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Group Shipment Weight Limit Violated")
|
7782 |
raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Group Shipment Weight Limit Violated")
|
| 7784 |
|
7783 |
|
| 7785 |
if order.cod:
|
7784 |
if order.cod:
|
| 7786 |
if totalOrdersAmount > provider.maxCodLimit:
|
7785 |
if totalOrdersAmount > provider.maxCodLimit:
|
| 7787 |
raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Max Cod Amount Collection Limit Violated")
|
7786 |
raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Max Cod Amount Collection Limit Violated")
|
| 7788 |
|
7787 |
|
| 7789 |
websiteCodLimit = float(providerLimits.get("websiteCodLimit"))
|
7788 |
websiteCodLimit = float(providerLimits.get("websiteCodLimit"))
|
| 7790 |
providerPrepaidLimit = float(providerLimits.get("providerPrepaidLimit"))
|
7789 |
providerPrepaidLimit = float(providerLimits.get("providerPrepaidLimit"))
|
| 7791 |
|
7790 |
|
| 7792 |
if order.cod:
|
7791 |
if order.cod and not isPrivateDealUser:
|
| 7793 |
if totalOrdersAmount > websiteCodLimit:
|
7792 |
if totalOrdersAmount > websiteCodLimit:
|
| 7794 |
raise TransactionServiceException(212, "Website Maximum COD Limit Violated")
|
7793 |
raise TransactionServiceException(212, "Website Maximum COD Limit Violated")
|
| 7795 |
|
7794 |
|
| 7796 |
if not order.cod:
|
7795 |
if not order.cod:
|
| 7797 |
if totalOrdersAmount > providerPrepaidLimit:
|
7796 |
if totalOrdersAmount > providerPrepaidLimit:
|
| 7798 |
raise TransactionServiceException(212, "Logistics Partner "+provider.name+ " Max Cod Amount Collection Limit Violated")
|
7797 |
raise TransactionServiceException(212, "Logistics Partner "+provider.name+ " Max Prepaid Amount Limit Violated Rs." +str(providerPrepaidLimit))
|
| 7799 |
|
7798 |
|
| 7800 |
for order in ordersList:
|
7799 |
for order in ordersList:
|
| 7801 |
if order.status in [OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW, OrderStatus.LOW_INV_PO_RAISED, OrderStatus.LOW_INV_REVERSAL_IN_PROCESS, OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT, OrderStatus.CAPTURE_IN_PROCESS]:
|
7800 |
if order.status in [OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW, OrderStatus.LOW_INV_PO_RAISED, OrderStatus.LOW_INV_REVERSAL_IN_PROCESS, OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT, OrderStatus.CAPTURE_IN_PROCESS]:
|
| 7802 |
if not order.cod:
|
7801 |
if not order.cod:
|
| 7803 |
if order.transaction.status == TransactionStatus.AUTHORIZED:
|
7802 |
if order.transaction.status == TransactionStatus.AUTHORIZED:
|