Subversion Repositories SmartDukaan

Rev

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

Rev 9957 Rev 9963
Line 1080... Line 1080...
1080
 
1080
 
1081
def sendAutoPricingMail(successfulAutoDecrease,successfulAutoIncrease):
1081
def sendAutoPricingMail(successfulAutoDecrease,successfulAutoIncrease):
1082
    xstr = lambda s: s or ""
1082
    xstr = lambda s: s or ""
1083
    message="""<html>
1083
    message="""<html>
1084
            <body>
1084
            <body>
1085
            <h4>Auto Decrease Items</h4>
1085
            <h3>Auto Decrease Items</h3>
1086
            <table border="1">
1086
            <table border="1" style="width:100%;">
1087
            <thead>
1087
            <thead>
1088
            <tr><th>Item Id</th>
1088
            <tr><th>Item Id</th>
1089
            <th>Product Name</th>
1089
            <th>Product Name</th>
1090
            <th>Old Price</th>
1090
            <th>Old Price</th>
1091
            <th>New Price</th>
1091
            <th>New Price</th>
Line 1096... Line 1096...
1096
        message+="""<tr>
1096
        message+="""<tr>
1097
                <td style="text-align:center">"""+str(item.item_id)+"""</td>
1097
                <td style="text-align:center">"""+str(item.item_id)+"""</td>
1098
                <td style="text-align:center">"""+xstr(it.brand)+" "+xstr(it.model_name)+" "+xstr(it.model_number)+" "+xstr(it.color)+"""</td>
1098
                <td style="text-align:center">"""+xstr(it.brand)+" "+xstr(it.model_name)+" "+xstr(it.model_number)+" "+xstr(it.color)+"""</td>
1099
                <td style="text-align:center">"""+str(item.ourSellingPrice)+"""</td>
1099
                <td style="text-align:center">"""+str(item.ourSellingPrice)+"""</td>
1100
                <td style="text-align:center">"""+str(math.ceil(item.proposedSellingPrice))+"""</td></tr>"""
1100
                <td style="text-align:center">"""+str(math.ceil(item.proposedSellingPrice))+"""</td></tr>"""
1101
    message+="""</tbody></table><h4>Auto Increase Items</h4><table border="1">
1101
    message+="""</tbody></table><h3>Auto Increase Items</h3><table border="1" style="width:100%;">
1102
            <thead>
1102
            <thead>
1103
            <tr><th>Item Id</th>
1103
            <tr><th>Item Id</th>
1104
            <th>Product Name</th>
1104
            <th>Product Name</th>
1105
            <th>Old Price</th>
1105
            <th>Old Price</th>
1106
            <th>New Price</th>
1106
            <th>New Price</th>