Subversion Repositories SmartDukaan

Rev

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

Rev 19953 Rev 19960
Line 2394... Line 2394...
2394
        if singleInvoiceAttr:
2394
        if singleInvoiceAttr:
2395
            if singleInvoiceAttr.value == "true":
2395
            if singleInvoiceAttr.value == "true":
2396
                session.commit()
2396
                session.commit()
2397
                return True
2397
                return True
2398
        if billingType == BillingType.OURS or billingType == BillingType.OURS_EXTERNAL:
2398
        if billingType == BillingType.OURS or billingType == BillingType.OURS_EXTERNAL:
2399
            #as of now only company 1 - SORPL, 3-New company is operating and cutoff config will decide the company to be used to bill
2399
            #as of now only company 2 - SORPL, 3-New company is operating and cutoff config will decide the company to be used to bill
2400
            #until further change - Amit Gupta
2400
            #until further change - Amit Gupta
2401
            companyId = 1
2401
            companyId = 2
2402
            if cutoff_date <= datetime.datetime.now():
2402
            if cutoff_date <= datetime.datetime.now():
2403
                companyId = 3
2403
                companyId = 3
2404
            order.invoice_number = get_next_invoice_counter(companyId, order.orderType, whStateId)
2404
            order.invoice_number = get_next_invoice_counter(companyId, order.orderType, whStateId)
2405
        session.commit()
2405
        session.commit()
2406
        return True
2406
        return True