Hello friends,
do you have an idea how to show eWallet ballance and my company address on POS receipt? I am not able to find it. I use Advanced POS Receipt by Cybrosys Techno Solutions on Odoo 18 on my own server.
Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello friends,
do you have an idea how to show eWallet ballance and my company address on POS receipt? I am not able to find it. I use Advanced POS Receipt by Cybrosys Techno Solutions on Odoo 18 on my own server.
Thank you
Steps to fix this issue :-
( Add this to the export_for_printing() method:)
if (this.partner_id){
result.headerData.wallet_balance = this.partner_id.wallet_balance || 0.0;
}
if (this.pos.company){
const company = this.pos.company;
result.headerData.company_address = `${company.name || ''}, ${company.street || ''}, ${company.city || ''}, ${company.country_id?.name || ''}`;
}
( You might also need to ensure wallet_balance is loaded using:)
import { loadFields } from "@point_of_sale/app/utils/loader";
loadFields("res.partner", ["wallet_balance"]);
2. Modify the Receipt Template (OrderReceipt.xml)
( Add this inside the <xpath> block already extending the receipt)
<div style="font-weight:bold;">
Company Address: <t t-esc="this.props.data.company_address"/>
</div>
<div style="font-weight:bold;">
eWallet Balance: <t t-esc="this.props.data.wallet_balance"/>
</div>
3. Restart & Upgrade.
Thanks & Regards ,
Company :- DataInteger Consultancy Services LLP
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
1
12月 24
|
1409 | ||
|
0
8月 24
|
1178 | ||
|
1
8月 24
|
1929 | ||
|
0
7月 24
|
832 | ||
|
0
5月 23
|
1657 |