Subversion Repositories SmartDukaan

Rev

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

Rev 10410 Rev 10864
Line 1364... Line 1364...
1364
        return True
1364
        return True
1365
 
1365
 
1366
def __getOrderTaxType(order):
1366
def __getOrderTaxType(order):
1367
    delhiPincodePrefix = "11";
1367
    delhiPincodePrefix = "11";
1368
    maharashtraPincodePrefix = ["40", "41", "42", "43", "44"];
1368
    maharashtraPincodePrefix = ["40", "41", "42", "43", "44"];
-
 
1369
    karnatakaPincodePrefix = ["56", "57", "58", "59"];
1369
    
1370
    
1370
    if order.warehouse_id == 7 or order.warehouse_id == 9: 
1371
    if order.warehouse_id == 7 or order.warehouse_id == 9: 
1371
        if order.customer_pincode.startswith(delhiPincodePrefix):
1372
        if order.customer_pincode.startswith(delhiPincodePrefix):
1372
            return 0
1373
            return 0
1373
        else:
1374
        else:
Line 1375... Line 1376...
1375
    if order.warehouse_id == 12 or order.warehouse_id == 13:
1376
    if order.warehouse_id == 12 or order.warehouse_id == 13:
1376
        for mahaPincodePrefix in maharashtraPincodePrefix:
1377
        for mahaPincodePrefix in maharashtraPincodePrefix:
1377
            if order.customer_pincode.startswith(mahaPincodePrefix):
1378
            if order.customer_pincode.startswith(mahaPincodePrefix):
1378
                return 0
1379
                return 0
1379
        return 1
1380
        return 1
-
 
1381
    if order.warehouse_id == 1765 or order.warehouse_id == 1768:
-
 
1382
        for knkPincodePrefix in karnatakaPincodePrefix:
-
 
1383
            if order.customer_pincode.startswith(knkPincodePrefix):
-
 
1384
                return 0
-
 
1385
        return 1
1380
    return 0
1386
    return 0
1381
    #raise TransactionServiceException(110, "No Vat/CST logic defined for warehouse " + str(order.warehouse_id)) 
1387
    #raise TransactionServiceException(110, "No Vat/CST logic defined for warehouse " + str(order.warehouse_id)) 
1382
 
1388
 
1383
def add_billing_details(orderId, invoice_number, serialNumbers, itemNumbers, freebieWarehouseId, billedBy, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
1389
def add_billing_details(orderId, invoice_number, serialNumbers, itemNumbers, freebieWarehouseId, billedBy, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
1384
    if billedBy is None or billedBy.strip() == "":
1390
    if billedBy is None or billedBy.strip() == "":