Subversion Repositories SmartDukaan

Rev

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

Rev 7399 Rev 7400
Line 5283... Line 5283...
5283
    customerMobile = order.customer_mobilenumber
5283
    customerMobile = order.customer_mobilenumber
5284
    customerPin = order.customer_pincode
5284
    customerPin = order.customer_pincode
5285
    inCash = storeOrderDetail.cashAmount
5285
    inCash = storeOrderDetail.cashAmount
5286
    byCard = storeOrderDetail.cardAmount
5286
    byCard = storeOrderDetail.cardAmount
5287
    
5287
    
5288
    if storeOrderDetail.cashRefundAmount > 0 or storeOrderDetail.cashRefundAmount > 0:
5288
    if order.status in (15, 34) and (storeOrderDetail.cashRefundAmount > 0 or storeOrderDetail.cashRefundAmount > 0):
5289
        filename = "/tmp/order-refund-" + str(order.id) + ".pdf"
5289
        filename = "/tmp/order-refund-" + str(order.id) + ".pdf"
5290
        inCash = storeOrderDetail.cashRefundAmount
5290
        inCash = storeOrderDetail.cashRefundAmount
5291
        byCard = storeOrderDetail.cardRefundAmount
5291
        byCard = storeOrderDetail.cardRefundAmount
5292
        return __printStoreOrderCancellationReceipt(order.id, filename, customerName, customerAdd1, customerAdd2, customerCity, customerState, customerMobile, customerPin, product, advanceAmount,inCash, byCard, order.created_timestamp.date())
5292
        return __printStoreOrderCancellationReceipt(order.id, filename, customerName, customerAdd1, customerAdd2, customerCity, customerState, customerMobile, customerPin, product, advanceAmount,inCash, byCard, order.created_timestamp.date())
5293
    else:
5293
    else: