Subversion Repositories SmartDukaan

Rev

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

Rev 8925 Rev 8927
Line 1556... Line 1556...
1556
                attr2.name = "freebie_nlc"
1556
                attr2.name = "freebie_nlc"
1557
                attr2.value = str(inventoryItem.nlc)
1557
                attr2.value = str(inventoryItem.nlc)
1558
            except Exception as e:
1558
            except Exception as e:
1559
                print e.message
1559
                print e.message
1560
                raise TransactionServiceException(110,'Error in billing freebie for warehouseId ' + str(freebieWarehouseId))
1560
                raise TransactionServiceException(110,'Error in billing freebie for warehouseId ' + str(freebieWarehouseId))
1561
 
-
 
-
 
1561
        if order.productCondition == ProductCondition.GOOD: 
1562
        __update_inventory_reservation(order)
1562
            __update_inventory_reservation(order)
1563
        order.fulfilmentWarehouseId = warehouse.id
1563
        order.fulfilmentWarehouseId = warehouse.id
1564
        if billingType == BillingType.OURS or billingType == BillingType.OURS_EXTERNAL:
1564
        if billingType == BillingType.OURS or billingType == BillingType.OURS_EXTERNAL:
1565
            order.invoice_number = get_next_invoice_number(order.orderType)
1565
            order.invoice_number = get_next_invoice_number(order.orderType)
1566
        session.commit()
1566
        session.commit()
1567
        return True
1567
        return True