コード例 #1
0
    def __init__(self, *args, **kwargs):
        super(Entry, self).__init__(*args, **kwargs)

        if not self.pk and not self.entry_no:
            self.entry_no = get_next_voucher_no(Entry,
                                                self.company_id,
                                                attr='entry_no')
コード例 #2
0
ファイル: models.py プロジェクト: bkawan/awecounting
 def __init__(self, *args, **kwargs):
     super(Expense, self).__init__(*args, **kwargs)
     if not self.pk and not self.voucher_no:
         self.voucher_no = get_next_voucher_no(Expense, self.company_id)
コード例 #3
0
ファイル: models.py プロジェクト: bkawan/awecounting
 def __init__(self, *args, **kwargs):
     super(PurchaseOrder, self).__init__(*args, **kwargs)
     if not self.pk and not self.voucher_no:
         self.voucher_no = get_next_voucher_no(PurchaseOrder,
                                               self.company_id)
コード例 #4
0
ファイル: models.py プロジェクト: awecode/awecounting
 def __init__(self, *args, **kwargs):
     super(Expense, self).__init__(*args, **kwargs)
     if not self.pk and not self.voucher_no:
         self.voucher_no = get_next_voucher_no(Expense, self.company_id)
コード例 #5
0
ファイル: models.py プロジェクト: awecode/awecounting
 def __init__(self, *args, **kwargs):
     super(PurchaseOrder, self).__init__(*args, **kwargs)
     if not self.pk and not self.voucher_no:
         self.voucher_no = get_next_voucher_no(PurchaseOrder, self.company_id)
コード例 #6
0
ファイル: models.py プロジェクト: iraycd/awecounting
 def __init__(self, *args, **kwargs):
     super(BankCashDeposit, self).__init__(*args, **kwargs)
     if not self.pk and not self.voucher_no:
         self.voucher_no = get_next_voucher_no(BankCashDeposit, self.company_id)
コード例 #7
0
ファイル: models.py プロジェクト: iraycd/awecounting
 def __init__(self, *args, **kwargs):
     super(CashPayment, self).__init__(*args, **kwargs)
     if not self.pk and not self.voucher_no:
         self.voucher_no = get_next_voucher_no(CashPayment, self.company_id)
コード例 #8
0
ファイル: models.py プロジェクト: awecode/awecounting
    def __init__(self, *args, **kwargs):
        super(Entry, self).__init__(*args, **kwargs)

        if not self.pk and not self.entry_no:
            self.entry_no = get_next_voucher_no(Entry, self.company_id, attr='entry_no')
コード例 #9
0
ファイル: models.py プロジェクト: bkawan/awecounting
 def __init__(self, *args, **kwargs):
     super(BankCashDeposit, self).__init__(*args, **kwargs)
     if not self.pk and not self.voucher_no:
         self.voucher_no = get_next_voucher_no(BankCashDeposit, self.company_id)