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
| Parameter | Description |
|---|---|
| BaseObject | The employee or manager entity making the business expense (Self or Target). |
| S1 | Currency ID to deduct (e.g., Mew). |
| S2 | Ledger category for the expense (e.g., InventoryPurchase). |
| F1 | Amount to deduct (must be a positive value). |
Examples
| Description | BaseObject | Command |
|---|---|---|
| Deduct material cost from biz funds when employee purchases | Self | DeductCurrencyFromHouseholdBiz |
| Deduct expense from biz funds for target employee | Target | DeductCurrencyFromHouseholdBiz |
Back to Command FinderSearch and filter all 399 Script Execution documents