diff --git a/api/__pycache__/settings.cpython-313.pyc b/api/__pycache__/settings.cpython-313.pyc index cfe25151..b7a561a3 100644 Binary files a/api/__pycache__/settings.cpython-313.pyc and b/api/__pycache__/settings.cpython-313.pyc differ diff --git a/static/contract/7. Thông báo mời ký Hợp đồng chuyển nhượng.docx b/static/contract/7. Thông báo mời ký Hợp đồng chuyển nhượng.docx new file mode 100644 index 00000000..89219b0f Binary files /dev/null and b/static/contract/7. Thông báo mời ký Hợp đồng chuyển nhượng.docx differ diff --git a/static/contract/8. Hợp đồng chuyển nhượng QSDĐ cá nhân.docx b/static/contract/8. Hợp đồng chuyển nhượng QSDĐ cá nhân.docx new file mode 100644 index 00000000..fe0a1c82 Binary files /dev/null and b/static/contract/8. Hợp đồng chuyển nhượng QSDĐ cá nhân.docx differ diff --git a/static/contract/8. Hợp đồng chuyển nhượng QSDĐ tổ chức.docx b/static/contract/8. Hợp đồng chuyển nhượng QSDĐ tổ chức.docx new file mode 100644 index 00000000..bc71ce0e Binary files /dev/null and b/static/contract/8. Hợp đồng chuyển nhượng QSDĐ tổ chức.docx differ diff --git a/static/contract/8. Hợp đồng chuyển nhượng QSDĐ đồng sở hữu.docx b/static/contract/8. Hợp đồng chuyển nhượng QSDĐ đồng sở hữu.docx new file mode 100644 index 00000000..8d11d822 Binary files /dev/null and b/static/contract/8. Hợp đồng chuyển nhượng QSDĐ đồng sở hữu.docx differ diff --git a/static/contract/docConf.json b/static/contract/docConf.json new file mode 100644 index 00000000..15244331 --- /dev/null +++ b/static/contract/docConf.json @@ -0,0 +1,1079 @@ +{ + "id": 10, + "code": "PXLTTD", + "name": "Phieu xac lap thoa thuan ca nhan", + "template_path": "contract/1. Phiếu xác lập thỏa thuận ưu tiên một người.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[tran_amount]": { + "format": { + "type": "currency" + }, + "source": "amount" + }, + "[project_name]": "transaction.product.project.name", + "[customer_name]": "transaction.customer.fullname", + "[customer_email]": "transaction.customer.email", + "[customer_phone]": "transaction.customer.phone", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_legal_code]": "transaction.customer.legal_code", + "[tran_amount_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "amount" + }, + "[customer_contact_address]": "transaction.customer.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-04T22:47:18.628073+07:00" + }, + { + "id": 11, + "code": "PXLTTTC", + "name": "Phieu xac lap thoa thuan to chuc", + "template_path": "contract/1. Phiếu xác lập thỏa thuận ưu tiên tổ chức.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[tran_amount]": { + "format": { + "type": "currency" + }, + "source": "amount" + }, + "[project_name]": "transaction.product.project.name", + "[customer_name]": "transaction.customer.fullname", + "[customer_email]": "transaction.customer.email", + "[customer_phone]": "transaction.customer.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[tran_amount_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "amount" + }, + "[customer_bank_account]": "transaction.customer.orgncust.bank_account", + "[customer_contact_address]": "transaction.customer.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-04T23:49:21.690332+07:00" + }, + { + "id": 12, + "code": "PXLTTDSH", + "name": "Phieu xac lap thoa thuan dong so huu", + "template_path": "contract/1. Phiếu xác lập thỏa thuận ưu tiên đồng sở hữu.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[tran_amount]": { + "format": { + "type": "currency" + }, + "source": "amount" + }, + "[project_name]": "transaction.product.project.name", + "[customer_name]": "transaction.customer.fullname", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_address2]": "transaction.co_op.people.address", + "[customer_legal_code]": "transaction.customer.legal_code", + "[tran_amount_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "amount" + }, + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T02:21:16.550306+07:00" + }, + { + "id": 13, + "code": "DDKNVD", + "name": "Don dang ky nguyn vong ca nhan", + "template_path": "contract/2. Đơn Đăng kí nguyện vọng một người.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[prod_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.product.origin_price" + }, + "[tran_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.sale_price" + }, + "[trans_code]": "transaction.code", + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_address2]": "transaction.co_op.people.address", + "[prod_building_area]": "transaction.product.building_area", + "[prod_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.product.origin_price" + }, + "[tran_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + }, + "[customer_legal_code]": "transaction.customer.legal_code", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T02:48:33.484697+07:00" + }, + { + "id": 14, + "code": "DDKNVDSH", + "name": "Don dang ky nguyn vong dong so huu", + "template_path": "contract/2. Đơn Đăng kí nguyện vọng đồng sở hữu.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[prod_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.product.origin_price" + }, + "[tran_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.sale_price" + }, + "[trans_code]": "transaction.code", + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_address2]": "transaction.co_op.people.address", + "[prod_building_area]": "transaction.product.building_area", + "[prod_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.product.origin_price" + }, + "[tran_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + }, + "[customer_legal_code]": "transaction.customer.legal_code", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T02:47:56.551929+07:00" + }, + { + "id": 15, + "code": "DDKNVTC", + "name": "Don dang ky nguyn vong to chuc", + "template_path": "contract/2. Đơn Đăng kí nguyện vọng tổ chức.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[prod_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.product.origin_price" + }, + "[tran_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.sale_price" + }, + "[trans_code]": "transaction.code", + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[prod_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.product.origin_price" + }, + "[tran_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + }, + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T03:27:39.513097+07:00" + }, + { + "id": 16, + "code": "TTTHNVTC", + "name": "Thoa thuan thuc hien nguyn vong to chuc", + "template_path": "contract/3. Thoả thuận thực hiện nguyện vọng tổ chức.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[payment1]": { + "format": { + "type": "currency" + }, + "source": "transaction.payment_plan[0].amount" + }, + "[payment2]": { + "format": { + "type": "currency" + }, + "source": "transaction.payment_plan[1].amount" + }, + "[tran_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.product.sale_price" + }, + "[trans_code]": "transaction.code", + "[payment2_dua]": "transaction.payment_plan[1].due_days", + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[payment1_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.payment_plan[0].amount" + }, + "[payment2_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.payment_plan[1].amount" + }, + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[tran_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + }, + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[tran_deposit_amount]": { + "format": { + "type": "currency" + }, + "source": "transaction.product.sale_price" + }, + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address", + "[tran_deposit_amount_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + } + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T12:23:56.228429+07:00" + }, + { + "id": 17, + "code": "BBTLTTTHNVCN", + "name": "Bien ban thanh ly TTTHNV ca nhan", + "template_path": "contract/6. Biên bản thanh lý TTTHNV cá nhân.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[trans_date]": { + "format": { + "type": "date" + }, + "source": "date" + }, + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[trans_amount_received]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_received" + }, + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T13:16:09.703364+07:00" + }, + { + "id": 18, + "code": "BBTLTTTHNVTC", + "name": "Bien ban thanh ly TTTHNV to chuc", + "template_path": "contract/6. Biên bản thanh lý TTTHNV tổ chức.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[trans_date]": { + "format": { + "type": "date" + }, + "source": "date" + }, + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[trans_amount_received]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_received" + }, + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T13:35:46.607482+07:00" + }, + { + "id": 19, + "code": "BBTLTTTHNVDSH", + "name": "Bien ban thanh ly TTTHNV dong so huu", + "template_path": "contract/6. Biên bản thanh lý TTTHNV đồng sở hữu.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[trans_date]": { + "format": { + "type": "date" + }, + "source": "date" + }, + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[trans_amount_received]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_received" + }, + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address" + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T13:37:32.662213+07:00" + }, + { + "id": 20, + "code": "TBMKHDCN", + "name": "Thông báo mời ký Hợp đồng chuyển nhượng", + "template_path": "contract/7. Thông báo mời ký Hợp đồng chuyển nhượng.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[trans_date]": { + "format": { + "type": "date" + }, + "source": "date" + }, + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[trans_sale_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.sale_price" + }, + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[trans_amount_remain]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_remain" + }, + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[trans_amount_received]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_received" + }, + "[customer_contact_address]": "transaction.customer.contact_address", + "[customer_contact_address2]": "transaction.co_op.people.contact_address", + "[trans_amount_remain_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.amount_remain" + } + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T15:13:06.753952+07:00" + }, + { + "id": 21, + "code": "HDCNQSDDCN", + "name": "Hợp đồng chuyển nhượng QSDĐ cá nhân", + "template_path": "contract/8. Hợp đồng chuyển nhượng QSDĐ cá nhân.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[trans_date]": { + "format": { + "type": "date" + }, + "source": "date" + }, + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[prod_zone_code]": "transaction.product.zone_code", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[trans_sale_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.sale_price" + }, + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[trans_amount_remain]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_remain" + }, + "[customer_issued_date]": "transaction.customer.issued_date", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_issued_place]": "transaction.customer.issued_place.name", + "[prod_lot_area_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.product.lot_area" + }, + "[prod_number_of_floors]": "transaction.product.number_of_floors", + "[trans_amount_received]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_received" + }, + "[customer_contact_address]": "transaction.customer.contact_address", + "[trans_sale_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + }, + "[customer_contact_address2]": "transaction.co_op.people.contact_address", + "[trans_amount_remain_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.amount_remain" + } + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T17:06:52.947984+07:00" + }, + { + "id": 22, + "code": "HDCNQSDDDSH", + "name": "Hợp đồng chuyển nhượng QSDĐ đồng sở hữu", + "template_path": "contract/8. Hợp đồng chuyển nhượng QSDĐ đồng sở hữu.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[trans_date]": { + "format": { + "type": "date" + }, + "source": "date" + }, + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[prod_zone_code]": "transaction.product.zone_code", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[trans_sale_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.sale_price" + }, + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[trans_amount_remain]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_remain" + }, + "[customer_issued_date]": "transaction.customer.issued_date", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_issued_place]": "transaction.customer.issued_place.name", + "[prod_lot_area_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.product.lot_area" + }, + "[prod_number_of_floors]": "transaction.product.number_of_floors", + "[trans_amount_received]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_received" + }, + "[customer_contact_address]": "transaction.customer.contact_address", + "[trans_sale_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + }, + "[customer_contact_address2]": "transaction.co_op.people.contact_address", + "[trans_amount_remain_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.amount_remain" + } + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T17:26:57.645367+07:00" + }, + { + "id": 23, + "code": "HDCNQSDDTC", + "name": "Hợp đồng chuyển nhượng QSDĐ tổ chức", + "template_path": "contract/8. Hợp đồng chuyển nhượng QSDĐ tổ chức.docx", + "mappings": [ + { + "type": "object", + "alias": "thong_tin_chi_tiet", + "model": "app.Transaction_Detail", + "fields": { + "[trans_code]": "transaction.code", + "[trans_date]": { + "format": { + "type": "date" + }, + "source": "date" + }, + "[customer_name]": "transaction.customer.fullname", + "[prod_lot_area]": "transaction.product.lot_area", + "[customer_email]": "transaction.customer.email", + "[customer_name2]": "transaction.co_op.people.fullname", + "[customer_phone]": "transaction.customer.phone", + "[prod_zone_code]": "transaction.product.zone_code", + "[customer_email2]": "transaction.co_op.people.email", + "[customer_phone2]": "transaction.co_op.people.phone", + "[people_relation]": "transaction.customer.orgncust.orgrep.relation.name", + "[prod_trade_code]": "transaction.product.trade_code", + "[customer_address]": "transaction.customer.address", + "[trans_sale_price]": { + "format": { + "type": "currency" + }, + "source": "transaction.sale_price" + }, + "[customer_address2]": "transaction.co_op.people.address", + "[customer_tax_code]": "transaction.customer.orgncust.tax_code", + "[customer_bank_name]": "transaction.customer.orgncust.bank_name", + "[prod_building_area]": "transaction.product.building_area", + "[cus_people_fullname]": "transaction.customer.orgncust.orgrep.people.fullname", + "[customer_legal_code]": "transaction.customer.legal_code", + "[trans_amount_remain]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_remain" + }, + "[customer_issued_date]": "transaction.customer.issued_date", + "[customer_legal_code2]": "transaction.co_op.people.legal_code", + "[customer_bank_account]": "transaction.customer.orgncust.bank_account", + "[customer_issued_place]": "transaction.customer.issued_place.name", + "[prod_lot_area_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.product.lot_area" + }, + "[prod_number_of_floors]": "transaction.product.number_of_floors", + "[trans_amount_received]": { + "format": { + "type": "currency" + }, + "source": "transaction.amount_received" + }, + "[customer_contact_address]": "transaction.customer.contact_address", + "[trans_sale_price_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.sale_price" + }, + "[customer_contact_address2]": "transaction.co_op.people.contact_address", + "[trans_amount_remain_in_word]": { + "format": { + "lang": "vi", + "type": "number_to_words" + }, + "source": "transaction.amount_remain" + } + }, + "lookup_field": "id", + "lookup_value_from": "transaction_detail_id" + }, + { + "type": "object", + "alias": "chu_dau_tu", + "model": "app.Investor", + "fields": { + "[investor_name]": "name", + "[investor_phone]": "phone", + "[investor_address]": "address", + "[investor_tax_code]": "tax_code", + "[investor_bank_name]": "bank_name", + "[investor_bank_account]": "bank_account" + }, + "lookup_field": "id", + "lookup_value_from": "investor_id" + } + ], + "update_time": "2026-01-05T17:30:12.877232+07:00" + } \ No newline at end of file