Subversion Repositories SmartDukaan

Rev

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

Rev 19950 Rev 19953
Line 9329... Line 9329...
9329
    session.commit()
9329
    session.commit()
9330
    
9330
    
9331
    if billingType == BillingType.OURS or billingType == BillingType.OURS_EXTERNAL:
9331
    if billingType == BillingType.OURS or billingType == BillingType.OURS_EXTERNAL:
9332
        #as of now only company 1 - SORPL, 3-New company is operating and cutoff config will decide the company to be used to bill
9332
        #as of now only company 1 - SORPL, 3-New company is operating and cutoff config will decide the company to be used to bill
9333
        #until further change - Amit Gupta
9333
        #until further change - Amit Gupta
9334
        companyId = 1
9334
        companyId = 2
9335
        if cutoff_date <= datetime.datetime.now():
9335
        if cutoff_date <= datetime.datetime.now():
9336
            companyId = 3
9336
            companyId = 3
9337
        
9337
        
9338
        invoiceNumber = get_next_invoice_counter(companyId, ordersList[0].orderType, whStateId)
9338
        invoiceNumber = get_next_invoice_counter(companyId, ordersList[0].orderType, whStateId)
9339
            
9339