日期:2026-08-15
其他收款单录入与审核需要支持:客户变化自动带出核算项目、手动输入核算项目校验、弹出核算项目选择框,以及审核生成分录底稿时借方核算项目取自 TI034。
edtTI034.SelectButton.OnClick 绑定 edtTI034SelectButtonClick(SearchID='059' 核算项目查询已存在)。ACPOtherPayableFrm.edtTI039SelectButtonClick,调用基类 Self.PerformSelectCheckItem('TI034') 弹出核算项目选择框,将返回的编号写入 TI034、名称写入 TI034C。GetCustomerInfo 成功后,调用新增的 GetACTMFByObject('3', TI004, …) 从 V_ACTMF 关联 MF001='2' AND MF002C2=客户编号,将核算项目编号写入 TI034、名称写入 TI034C。V_ACTMF 查询返回核算项目编号(MF002)与名称(MF003)。TI034.OnChange。手动输入时校验 Sender.AsString 是否存在于 V_ACTMF(MF002),存在则写入 TI034C(MF003),不存在则提示并 Abort。TI034.OnChange := FieldTI034Change,浏览态解绑。TB008 改为使用传入参数(原来固定取 FDetail.TJ012)。TI034 作为核算项目 → BW_AJSTB.TB008 = BW_ACRTI.TI034。FDetail.TJ012。BlueWhaleERPSources\ACR\BlueWhale_Std_ACR_OtherReceiptC\ACROtherReceiptFrm.pasBlueWhaleERPSources\ACR\BlueWhale_Std_ACR_OtherReceiptC\ACROtherReceiptFrm.dfmBlueWhaleERPSources\ACR\BlueWhale_Std_ACR_OtherReceiptC\ACROtherReceiptClass.pasBlueWhaleERPSources\ACR\BlueWhale_Std_ACR_OtherReceiptS\ACPOtherReceiptSClass.pasBlueWhaleERPSources\ACP\BlueWhale_Std_ACP_OtherPayableC\ACPOtherPayableFrm.pas(edtTI039SelectButtonClick)BlueWhaleERPSources\ACP\BlueWhale_Std_ACP_OtherPayableC\ACPOtherPayableClass.pas(GetACTMFByObject / FieldTI004Change 中 V_ACTMF 关联)Scripts\278.CREATE_VIEW_V_ACTMF.sql:V_ACTMF 含 MF001(对象类型 1供应商/2客户)、MF002(核算项目编号)、MF002C1(供应商编号)、MF002C2(客户编号)、MF003(核算项目名称)。