flowcode/financial-bundle

0.1.2 2017-03-29 20:06 UTC

This package is not auto-updated.

Last update: 2024-09-20 19:37:36 UTC


README

FlowcodeFinancialBundle 为您提供基本财务和会计功能的模型。

文档

文档源存储在本捆绑包的 Resources/doc/ 文件夹中。

阅读 master 的文档

要使 financeService 正确工作,您必须添加以下映射

document -> transaction document -> paymentDocument

Document:
  type: entity
  oneToMany:
    transactions:
      targetEntity: Flowcode\FinancialBundle\Entity\Core\Transaction
      mappedBy: document
      cascade: ["persist"]
    paymentsDocuments:
      targetEntity: Flowcode\FinancialBundle\Entity\Payment\PaymentDocument
      mappedBy: document
      cascade: ["persist"]

payment -> paymentDocument

Payment:
  type: entity
  oneToMany:
    paymentDocuments:
      targetEntity: Flowcode\FinancialBundle\Entity\Payment\PaymentDocument
      mappedBy: payment
      cascade: ["persist"]

transaction -> journalEntries

Transaction:
  type: entity
  oneToMany:
    journalEntries:
      targetEntity: Flowcode\FinancialBundle\Entity\Core\JournalEntry
      mappedBy: transaction
      cascade: ["persist"]