# 7.6 Costing

## COSTING:

#### **a) Input quantity Work in progress closing balance and rate equivalent (if any)**

From Inventory config menu choose Calculator qty 154 for each product:

From date – To date: Time to apply

ProductID: Product ID work in progress closing balance

154Qty: Quantity of work in progress closing balance

621Rate, 622Rate, 627Rate: rate equivalent for each group expense 621,622,627

154EndAmt: Amount of Work in progress will be automatic update after costing finish.

621EndAmt, 622EndAmt, 627EndAmt: Amount of each group expense 621,622,627 also automatic update after costing finish.

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2F7wGMnDJo855uAJVp22YF%2Fimage.png?alt=media&#x26;token=0b3889f5-6d9a-4eed-b0b9-132c161e33ae" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/iO-g04x4yIpQKgJxteE-PtxTjGAnRzeiuwGsJvNRtjjeImcdjbRPkLUtQ4ZLI7JxFV-Hr-4hbB4om-U9PhZ-CDr6x4Eu4Pc3cImtwdAOhJjow9hPjmdhAWkLLM7GVXDjyDYWlVXoxmq6MH1xDuXt-bCN3M3ZTiAc" alt=""><figcaption></figcaption></figure>

#### b) Costing

### Step 1: Calculate quantity finishgood input and work in progress&#x20;

ProductID: Finish good ID&#x20;

FGQty: Quantity of Finish Goods

154Qty: Quantity of work in progress closing balance (input before costing)

621Qty, 622Qty, 627Qty (quantity working in progress) =  154Qty multiplication with 621Rate, 622Rate, 627Rate

FromDate – Todate: Time apply

GroupID

PhaseID

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2FCcTqZEFn1wg8ryl5X77v%2Fimage.png?alt=media&#x26;token=83643827-398b-40ed-ade7-afcfaa666e7c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/EByX0PvWA0aSvxy9DZk6IS1iuKqlnpAFD_6kHe8gQKX_w9UJBqUp964Z8gZuaQKYXB75ejElL19O8iQqDsIX1Uz7vZONN8gOb0wPbsun1qQmATOWI6PS0WTjL34PmMk8RpsZ2VfgpBHAkADUf8EIPJ6V3Gs9iw1V" alt=""><figcaption></figcaption></figure>

### Step 2: Calcolate total quantity finishgoods for each Group:&#x20;

Base on quantity finishgoods from step 1.1, we can calculate total quantity finishgoods in period for each group&#x20;

GroupID: FinishGoods group

621TotGoodQty, 622TotGoodQty, 627TotGoodQty =  FGQty (quantity finishgoods input) +   621Qty, 622Qty, 627Qty (quantity working in progress)

Fromdate – Todate: Time apply

PhaseID

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2FBftI5EoMwrXscjO0S0Cc%2Fimage.png?alt=media&#x26;token=6b75d66d-1c7e-4d58-b57f-988a9576d8f1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/-KR0U12kaNF89kLZOJxTsUVlQIEcQkmnaBYm4yAG9OKIsAdrSH60rQ0clwe1HsAIPwAjz1G4fPSJE3eALlt9wqlHthk_g8Ygn9c71Q9i6rpQt9H0WANLX8ER863jVGkw5rTKr4D76k1PtvMxBGoQtKSw2RhJam2E" alt=""><figcaption></figcaption></figure>

Summary total expense in period by costcenter.

When user input 621,622,627 must choose Costcenter.

Expense will be input from Inventory and general ledger

CostCenterID:&#x20;

CostMethodID, phaseID, AllocationMethoID: get from config allocation expense when user setup CostCenter.&#x20;

Note: AllocationMethoID: Method allocation when CostMethodID = 2.

Amt: Total expense amount in period

ProductID:  Direct expense for Product when CostMethodID = 1

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2F2X0pIZ77qPUB7nHpd8EN%2Fimage.png?alt=media&#x26;token=b276f434-b453-4f77-8af8-101f57308005" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/-DfFX_yOzDnscYtsFjg0BiUpiOl6qD0IvBCUj6XG4CzUwS0RTdk36sijXezUvzmzPecKIMBTFguYQKBI8WMpydmCuL6u4sRnwvj9uTCieOkKCLEoaT4z6GCpTVr7O59AMSBPbJOZQG4joG5JneQJrxfBKyHA-9O8" alt=""><figcaption></figcaption></figure>

PhaseID: Choose Phase number for next period

Step 3, 4 using for allocate Costcenter which config follow rate quantity and coefficient : CostMethodID =2, AllocationMethodID = 1. For Costcenter is specific identification (CostMethodID =1) and expense allocate by rawmaterial (AllocationMethodID =1) will be calculate in step 5.

### Step 3: Calculate expense allocate for group product in phased:

Expense will be summary from step 2 for config CostMethodID =2 and AllocationMethodID =1. If PhasedID is number total expense will be allocate all for this phased, if PhasedID is all, expense = total expense \* rate allocate by phased (Costing Rate Allocate Group)

Expense summary by Coscenter will be allocate for each product group in phased by quantity and rate. Result in column GroupAmt

CostGroupID: Group expense 621, 622, 627

CostCenterID:&#x20;

GroupID: Product group

IsCosting: expense will be allocate for product group or not. 1 is yes 0 is no.

TotGoodQty: quantity product finish in period by group product from step 1.2&#x20;

CostGroupID  = 621 get data from 621TotGoodQty

CostGroupID  = 622 get data from 622TotGoodQty

CostGroupID  = 627 get data from 627TotGoodQty.

GroupRate: Costing rate allocation group

GroupQty: TotGoodQty \* GroupRate for each CostcenterID

CostCenterAmt: total expense summary by CostcenterID of Phased

CostCenterRate: rate expense for product group: CostCenterRate = (TotGoodQty \* GroupRate) / GroupQty

GroupAmt: is total expense allocate for each product group, for each costcenter . GroupAmt  = CostCenterAmt \* CostCenterRate. Can be use for step 4.

PhaseID: phased for costing

AllocationMethodID: Allocate method get from config. Always is 1&#x20;

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2FRvbejPDcU9iGnj6LGnFZ%2Fimage.png?alt=media&#x26;token=2ea27104-dc70-4c7d-ab8d-a8f58c98dfbc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/uNSNuPeH5LjQfQ0Tn7-pxpkH8UQdMDrkvAY_ZXG4u8H_lBAuK9ZonuI51X0YAGrJWXvkYPce372OBpFO4gWSq2-vpXu5qY_7lpVnnomCXxd_67kNpG_bV1OizN-mM-GBr9q0NFAZocIzdRLo7vKDARnjG8Q8hS8G" alt=""><figcaption></figcaption></figure>

### Step 4: Allocate expense for each product:

From total expense for each product group in step 3, we can allocate expense for each product. Result will available in column ProductAmt

CostCenterID

GroupID: Product group

GroupAmt: Total expense for each product group.

ProductID: Product in period

TotGoodQty: total quantity product in period = quantity input (FGQty) + quantity working in progress (621Qty, 622Qty, 627Qty)

ProductRate: rate allocate for each product

IsCosting: allocate for this product or not? Default is 1

TotProductAmt: TotGoodQty \* ProductRate for each product group.

Rate: rate allocate expense for each product = (TotGoodQty \* ProductRate) / TotProductAmt

ProductAmt: Expense allocate for each product = GroupAmt \* Rate

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2FPMLujpjTesGKSgBFnV7G%2Fimage.png?alt=media&#x26;token=36049858-8eb6-41f1-b50c-6cf4145292ca" alt=""><figcaption></figcaption></figure>

### Step 5: Costing Finish Goods:

Total expense for each product  including working progress opening balance , expense in period.\
Exepense in period including: Expense  indentification , Expense allocate by raw material , Product Amount from Step 4.

Costing product = Total expense / Total quantity in period.

ProductID

Qty: Quantity finish goods from step 1.1

BeginAmt: Working progress opening balance get from last period.

Amt621\_ide, Amt622\_ide, Amt627\_ide: Expense identification in period by group 621,622,627. Get from step 2 for Costcenter have CostMethodID =1

Amt621, Amt622, Amt627: Expense in period get from step 4 for each group 621,622,627 and Expense allocate by raw material.

TotAmt: = BeginAmt (Summary expense working progress opening balance)  + Amt621\_ide + Amt622\_ide + Amt627\_ide + Amt621 + Amt622 + Amt627

UnitPrice: Costing of product = TotAmt / Qty

EndAmt: Working progress closing balance = UnitPrice \* working progress quantity&#x20;

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2FG3PJnSejtjerQnFYIRRf%2Fimage.png?alt=media&#x26;token=d54aa5ea-2e1d-410c-8ed9-1d61589111f4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/jePOibp-YRgLdsIi3s4mkjHzKe_2doxc0wHkkQwL5K8itgk6H6zFZAAetKwFIxhFmVBivFX2VRydSzVdDQMOYm2FdcghoKJbxQIgQf-LlHWemPeydv5kZIVf-ehUEu5OrlNaMuwPyv3VwvKnrSwTblilUNsb28k7" alt=""><figcaption></figcaption></figure>

After click Save:

Costing after caculate in Unitprice column will be update into all Finish Goods receipt entry.

Working progress closing balance will be update into working progress table.

### Step 6: Calculate price out by average method for cost of goods sold or price out on next phased.

ProductID:&#x20;

ItemName: Product name

BegbalanceQty: quantity opening balance

BegBalanceAmt: Amount opening balance

InputQty: Quantity input in period

InputAmt: Amount input in period

PriceOut:&#x20;

<figure><img src="https://632035940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS6wMckMyiqOiAIvWnY-1703796690%2Fuploads%2Fwg5C9M9TlucIhICQ204y%2Fimage.png?alt=media&#x26;token=800ce5ef-0e85-413a-b4c8-5d86e7dd725c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/7b0W-3TUHt4yWRHmDuEYvgcboPxHnYjxrEvmKi7WMdD7Kb7YGp1Yv6uhI60uqIfV6Y0Tqg8miXQ_ToSQyNmF6-FxEMkZYNni2MEpAEbR-HC7aYUvysksYbOQ5g5gtiqO7a4zQeZCgIs30JLkdXDsFvt7y1Ykoq2E" alt=""><figcaption></figcaption></figure>

Need update expense in step 2 before calculate costing for next phased.
