可否在客户管理中增加一个开关按钮,用于对个别不配合公司运作的客户进行限制(比如:应收帐款超过受信额度、客户不配合财务部履行对帐程序、还款帐期拖拉等情况),达到定单、发货单及销售发票均未能保存开具的效果,并且给予业务部开票人员友情提醒的功能。 另外,再次感谢谢老师先前给予的应收-预收>允许欠款时封杀开票系统的功能代码,是否也请求将该段编码直接写入程序中,也增加一个开关按钮,即需要执行该程序时则勾上,不需要则解除。。。。 int func_before_print() { can_print=1; int sum_amount; string sql,eba_id; eba_id = gui_get_val('ComboBox_Ext_Eba_Id'); if(eba_id>0) { sql = "select should_in - pre_in - owe_amount_limit from eba where eba_id= '"+eba_id+"' " db_run(sql); if(db_row_count()>0) { sum_amount = to_int(db_res(0)); if (sum_amount >0) { warn("该客户应收帐款-预收帐款>允许欠款额度,不允许打印!"); can_print=0; return 0; } } }; return 1; }; int main() { return 1; }; |