Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(0)  |  Derive(0)  |  Import(9)

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLAccount.py   Products.BastionLedger(Download)
from BLEntry import manage_addBLEntry, BLEntry
from BLTransaction import manage_addBLTransaction
from BLGlobals import EPOCH, MAXDT
from BLAttachmentSupport import BLAttachmentSupport
from BLTaxCodeSupport import BLTaxCodeSupport
        """
        dt = self.periods.lastClosingForLedger(self.aq_parent.getId(), effective or DateTime())
        return dt != EPOCH and floor_date(dt+1) or EPOCH
 
    def prettyTitle(self):
        x_dt = x[1].effective()
    except:
        x_dt = EPOCH
    try:
        y_dt = y[1].effective()
    except:
        y_dt = EPOCH

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLPeriodInfo.py   Products.BastionLedger(Download)
from BLBase import LargePortalFolder as Folder
from BLBase import PortalContent as SimpleItem
from BLGlobals import EPOCH, ACC_TYPES
from Exceptions import InvalidPeriodError, UnbalancedError
from Permissions import ManageBastionLedgers
                if eff_max >= period.period_ended:
                    return period.period_ended
            return EPOCH
 
        try:
            return self.lastPeriodForLedger(ledgerid).period_ended
        except:
            pass
 
        return EPOCH
        """
        ends = self.periodEnds()
        return ends and floor_date(ends[-1] + 1) or EPOCH
 
    def nextPeriodEnd(self, effective=None):

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLAssetRegister.py   Products.BastionLedger(Download)
from Exceptions import InvalidPeriodError, DepreciationError
from utils import floor_date, ceiling_date
from BLGlobals import EPOCH
 
from zope.interface import Interface, implements
    meta_type = portal_type = 'BLAsset'
 
    last_depreciation_run = EPOCH
 
    _properties = BLAttachmentSupport._properties + (
        self.tax_credits = zero
        self.relief_credits = zero
        self.disposal_date = EPOCH
        self.disposal_price = zero
        self.depreciation_to_date = zero
        self.depreciation_method = depreciation_method
        self.last_depreciation_run = EPOCH
    def isDisposed(self):
        """
        indicate whether or not the asset has been sold or otherwise disposed of
        """
        return self.disposal_date > EPOCH

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLSubsidiaryLedger.py   Products.BastionLedger(Download)
from Products.BastionBanking.ZCurrency import ZCurrency
 
from BLGlobals import EPOCH
from BLBase import *
from BLLedger import LedgerBase
        control = self.controlAccount(controlid)
        if force:
            opening = EPOCH
        else:
            opening = control.openingDate()
            entry = self.controlEntry(accno)
            entry.amount = ZCurrency(control.base_currency, 0)
            entry._setEffectiveDate(EPOCH)
 
    def manage_reset(self, REQUEST=None):

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLControlEntry.py   Products.BastionLedger(Download)
from DateTime import DateTime
from Permissions import ManageBastionLedgers
from BLGlobals import EPOCH
from Products.AdvancedQuery import Between, Eq
from Products.BastionBanking.ZCurrency import ZCurrency
        # _balance_dt only missing before/during OLD-CATALOG repair
        return getattr(aq_base(self), '_effective_date', 
                       getattr(aq_base(self.aq_parent), '_balance_dt', EPOCH))
 
    def blTransaction(self):
        try:
            ledger = self.blLedger()
            return ledger.total(currency=currency, effective=(EPOCH, effective))
        except:
            pass

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/Ledger.py   Products.BastionLedger(Download)
from BLTransaction import manage_addBLTransaction
from BLEntry import manage_addBLEntry
from BLGlobals import EPOCH
from utils import ceiling_date, floor_date
from Permissions import OperateBastionLedgers, ManageBastionLedgers, GodAccess
        for ledger in self.ledgerValues():
            for account in self.accountValues():
                account.manage_setBalance(zero, EPOCH)
            if ledger.getId() != 'Ledger':
                ledger._reset()

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLEntry.py   Products.BastionLedger(Download)
from utils import floor_date, assert_currency
from BLBase import PortalContent, UUID_ATTR
from BLGlobals import EPOCH
from BLTransaction import BLTransaction
from AccessControl.Permissions import view, view_management_screens, manage_properties, \
            dt = self.effective()
        except:
            dt = EPOCH
        try:
            status = self.status()

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/PeriodEndTool.py   Products.BastionLedger(Download)
 
from BLBase import PortalFolder as Folder
from BLGlobals import EPOCH
from utils import ceiling_date, floor_date
from Permissions import ManageBastionLedgers

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLPayroll.py   Products.BastionLedger(Download)
 
from utils import _mime_str, assert_currency, floor_date
from BLGlobals import EPOCH
from BLBase import *
from BLReport import BLReport