汇总每日料池用量并精简老板专属月度利润分成表

This commit is contained in:
summer committed 2026-11-06 01:29:35 +08:00
1 parent dec01a3dca
commit 39f80fbab7
16 files changed
+276 -32

No files matched your search

+2
View File
@@ -19,6 +19,7 @@ const OrderCancellations=require('./order-cancellations');
const OrderChanges=require('./order-changes');
const TeamMembers=require('./team-members');
const TeamFunds=require('./team-funds');
const TeamProfits=require('./team-profits');
const OrderOwnership=require('./order-ownership');
const InventoryChanges=require('./inventory-changes');
const AfterSales=require('./after-sales');
@@ -183,6 +184,7 @@ class Ledger {
teamMembers(){owner(this.actor);return {members:TeamMembers.users(this)};}
migrateTeamMaterialFunding(actor,env=priceLockEnv){return TeamFunds.migrateMaterialFunding(this,actor,env);}
teamFunds(query={},actor=this.actor){return TeamFunds.report(this,query,actor,priceLockEnv);}
teamProfits(query={},actor=this.actor){return TeamProfits.report(this,query,actor,priceLockEnv);}
recoveryQuote(input,actor=this.actor){return Recoveries.quote(this,input,actor,priceLockEnv);}
createRecovery(input,actor=this.actor){return Recoveries.create(this,input,actor,{...priceLockEnv,saveRecoveryOrder:input=>this.saveOrder(input,actor,RECOVERY_ORDER),recoveryOrderAction:(id,action,input)=>this.action(id,action,input,actor,NEW_ORDER_ACTION)});}
recoveries(query={},actor=this.actor){return Recoveries.list(this,query,actor,priceLockEnv);}