Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fixed_asset_from_inventory] pembuatan journal entry ketika transaksi valid #55

Open
andhit-r opened this issue Sep 29, 2021 · 0 comments
Labels
enhancement New feature or request planned

Comments

@andhit-r
Copy link
Member

andhit-r commented Sep 29, 2021

CURRENT

Tidak ada transaksi journal entry yang memindahkan nilai persediaan ke aset tetap

EXPECTED

Menambahkan field:

  • move_id (readonly, ondelete=restrict, comodel_name="account.move") pd account.asset_from_inventory

Ketika transaksi divalidasi maka:

1. Journal Entry Dibuat

Journal Entry

Date: Sesuai dengan tanggal transaksi
Period: Sesuai dengan period
Journal: Sesuai dengan isian journal_id pada transaksi

Journal Item Debit

Name: Inventory to fixed asset {nomor transaksi}
Account: Sesuai dengaan Inventory Account product
Debit: Sesuai dengan inventory value quant
Credit: 0.0
Product: Sesuai dengan product pada transaksi

Journal Item Credit

Name: Inventory to fixed asset {nomor transaksi}
Account: Sesuai dengaan Asset Account dari asset category
Debit: 0.0
Credit: Sesuai dengan inventory value quant
Asset: Sesuai dengan aset yang terbuat
Product: Sesuai dengan product pada transaksi

2. Update field move_id di transaksi dengan journal entry yang terbentuk dari langkah ke-1

Ketika transaksi di cancel:

  1. Hapus move_id apabila ada isi
  2. Hapus asset_id apabila ada isi
@andhit-r andhit-r added enhancement New feature or request planned labels Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned
Projects
None yet
Development

No branches or pull requests

1 participant