Need to add the cost expense directly to the purchase invoice

We need to add the cost expense directly to the purchase invoice.
Any invoice we need to add the cost to the items in the invoice without affecting the customer’s account or affecting it according to the choice. It generates an item cost entry for the inventory for review with ease. Currently, the item costs are in an external accounting entry for the item. It is difficult to track the cost from any invoice. Please add this excellent feature ( Recording a cost generated from the invoice, affecting the account of the supplier or customer by choice)

Your post is quite confusing. Why are you trying to add a cost expense to a purchase invoice? A purchase invoice is the tool for entering sales invoices your suppliers send to you. Customers are not involved. Please explain in more detail.

Sorry but the basics of accrual accounting, see https://www.accountingcoach.com/blog/acrrual-basis-accounting

Please Specify the type of cost related to the invoice
Also Please Specify What type of invoice (Purchase / Sales) for better understanding

if you mean the Freight-in expense you will find it in the purchase invoice
image
if you recorded it it will be added to the supplier credit balance and in the same time will be added to Cost of Goods Sold - COGS in the P&L Statement

if the cost will not be added to the Cost of Goods Sold - COGS then you can add another line in your purchase invoice then in the account field select your expense account


and will affect the supplier outstanding balance and the expense account but not COGS

if you want to record a cost that is not linked to the supplier then you have more than one method

1- create a custom field and add it to the journal entry Tab & payments Tab (add it to the line) then you can add the invoice number on it so that you can track the invoice related expense

2- make a journal entry where you can debt the expense and credit it to you preferred account and write the invoice number in the custome field.

3- make a new payment then you can specify your expense and its payment method and fill the custome field with te invoice/Voucher number

it is not logic to add expense related to an invoice without linking it directly to the supplier account because if you do so which account will be the credit line to this expense ?!

i hope you understood my point of view

It is not confusing, there are expenses that are added directly to the invoice, customs clearance, internal transportation, and container unloading services. There is a choice to add expenses with a record linked to the invoice so that the costs are added to the items with the quantities and the choice is on the customer’s account or the cash treasury account (depending on the choice of the account from The other side

You can do external work in an Excel sheet, in order to calculate the quantities and distribute the expenses among them. I mean, you can fill the drawers by choosing whether to add the expenses or not, and by choosing whether to charge the supplier or not. There are many quantities and types that you can choose to add costs to, among the types, quantities, and Save the invoice with the costs, without the supplier’s intervention. Sometimes the shipping is at the supplier’s expense and sometimes not, CNF, FOB. For example, here the shipping costs are obligatory to be charged to the supplier’s account. Sometimes the supplier does not bear the shipping costs, for example FOB.

If I was confused, it was confusing. Already you have provided some of the information necessary to understand your situation. But you are still being vague. Do not trickle details.