Subversion Repositories SmartDukaan

Rev

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

Rev 9456 Rev 9469
Line 1371... Line 1371...
1371
    if order.warehouse_id == 12 or order.warehouse_id == 13:
1371
    if order.warehouse_id == 12 or order.warehouse_id == 13:
1372
        for mahaPincodePrefix in maharashtraPincodePrefix:
1372
        for mahaPincodePrefix in maharashtraPincodePrefix:
1373
            if order.customer_pincode.startswith(mahaPincodePrefix):
1373
            if order.customer_pincode.startswith(mahaPincodePrefix):
1374
                return 0
1374
                return 0
1375
        return 1
1375
        return 1
-
 
1376
    return 0
1376
    raise TransactionServiceException(110, "No Vat/CST logic defined for warehouse " + str(order.warehouse_id)) 
1377
    #raise TransactionServiceException(110, "No Vat/CST logic defined for warehouse " + str(order.warehouse_id)) 
1377
 
1378
 
1378
def add_billing_details(orderId, invoice_number, serialNumbers, itemNumbers, freebieWarehouseId, billedBy, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
1379
def add_billing_details(orderId, invoice_number, serialNumbers, itemNumbers, freebieWarehouseId, billedBy, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
1379
    if billedBy is None or billedBy.strip() == "":
1380
    if billedBy is None or billedBy.strip() == "":
1380
        raise TransactionServiceException(110, "Invalid Biller")
1381
        raise TransactionServiceException(110, "Invalid Biller")
1381
    
1382