Skip to main content

Execute_DeductCurrencyFromHouseholdBiz

Description

Deducts currency from HouseholdBiz funds when the BaseObject employee or manager uses materials or incurs a business expense. The amount is deducted from the business owner's household currency and recorded in the business ledger. Only works when the BaseObject is an employee or manager at the currently located HouseholdBiz site.

Note

If the BaseObject is not an employee or manager at the located biz, or if the biz has insufficient funds, the deduction fails silently.

Parameters

ParameterDescription
BaseObjectThe employee or manager entity making the business expense (Self or Target).
S1Currency ID to deduct (e.g., Mew).
S2Ledger category for the expense (e.g., InventoryPurchase).
F1Amount to deduct (must be a positive value).

Examples

DescriptionBaseObjectCommand
Deduct material cost from biz funds when employee purchasesSelfDeductCurrencyFromHouseholdBiz
Deduct expense from biz funds for target employeeTargetDeductCurrencyFromHouseholdBiz