全面预算模板执行逻辑

by limingk 2015.7.9 19:58

注:脚本执行有风险,对于客户正式环境请在研发指导下执行。

新增单据时,会根据单据的相关因素进行匹配,如果符合预算模板所设置的条件,就会创建一条业务数据(TBRecord);

1.       单据处于开立状态

    删除单据时,会删除对应的业务数据;

    修改单据时,无论是修改单据的相关因素还是其他条件或者金额,都会删除业务数据重新进行判断和创建。

2.单据处于核准中

    删除单据时,先取消执行本次的业务数据(按照修改前单据的金额取相反数执行,比如修改前金额是90,则执行-90),然后删除对应的业务数据;

修改单据后保存时,无论是修改单据的相关因素还是其他条件或者金额,都会取消执行本次的业务数据(按照修改前单据的金额取相反数执行),然后删除对应的业务数据,然后生成新的预算数据并执行预算数

 

最后,根据TBRecord中的预算对象和期间,计算预算数据值,然后更新预算数据和预算控制数据

 

Tags:

评论 (30) -

New Nike Air Max 90 Mens All Black Sneakers 美国 wrote at 2015/7/12 8:52:32 #

Now I am ready to do my breakfast, after having my breakfast coming yet again to read more news.

playstation 4 1tb gamestop 美国 wrote at 2016/9/30 4:58:02 #

Hello just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Safari. I'm not sure if this is a formatting issue or something to do with browser compatibility but I thought I'd post to let you know. The design look great though! Hope you get the issue solved soon. Cheers

read me 美国 wrote at 2018/6/29 18:00:22 #

Hello, Neat post. There's an issue along with your site in internet explorer, would test this? IE nonetheless is the market chief and a huge portion of folks will omit your wonderful writing because of this problem.

Isabel Marant Shoes Online 美国 wrote at 2018/7/5 16:04:09 #

I am truly glad to glance at this webpage posts which includes lots of valuable data, thanks for providing such data.  Stop by my web page;  Isabel Marant Shoes Online - https://www.isabelmarantukshoes.com/

New Isabel Marant Lenny Suede-trimmed Buckled Leather Sandals Shoes Black Paris 美国 wrote at 2018/7/10 8:12:50 #

I just couldn't depart your site prior to suggesting that I really loved the usual info a person provide in your guests? Is going to be back ceaselessly to inspect  New Isabel Marant Lenny Suede-trimmed Buckled Leather Sandals Shoes Black Paris - www.isabelmarantukshoes.com/isabel-marant-lenny-suede-trimmed-buckled-leather-sandals-shoes-black-106  posts

Authentic Isabel Marant �toile Ralf Suede Ankle Sneakers Boots Black Online Shoes 美国 wrote at 2018/7/11 4:41:54 #

Fantastic goods from you, man. I've take note your stuff previous to and you're simply extremely magnificent. I actually like what you have bought right here, certainly like what you are stating and the way in which by which you are saying it. You are making it enjoyable and you continue to take care of to keep it wise. I can not wait to learn much more from you. That is actually a great web site.  Also visit my weblog;  Authentic Isabel Marant �toile Ralf Suede Ankle Sneakers Boots Black Online Shoes - www.isabelmarantukshoes.com/isabel-marant-etoile-ralf-suede-ankle-sneakers-boots-black-30

Best Isabel Marant Etoile 'Crisi' Ruche Cuff Suede Ankle Sneakers Boots Black Buy Online 美国 wrote at 2018/7/15 18:47:48 #

Hello There. I found your blog using msn. This is a really well written article. I'll be sure to bookmark it and return to read more of your useful information. Thanks for the post. I'll certainly comeback.  Also visit my web page;  Best Isabel Marant Etoile 'Crisi' Ruche Cuff Suede Ankle Sneakers Boots Black Buy Online - www.isabelmarantukshoes.com/isabel-marant-etoile-crisi-ruche-cuff-suede-ankle-sneakers-boots-black-28

2016 Isabel Marant Studded Jeaeryn Sandals Shoes Burgundy Online Shop 美国 wrote at 2018/7/16 10:05:22 #

Hey there! I know this is kind of off-topic however I needed to ask. Does building a well-established website such as yours require a lot of work? I'm brand new to blogging however I do write in my diary daily. I'd like to start a blog so I can easily share my personal experience and feelings  2016 Isabel Marant Studded Jeaeryn Sandals Shoes Burgundy Online Shop - www.isabelmarantukshoes.com/isabel-marant-studded-jeaeryn-sandals-shoes-burgundy-124 . Please let me know if you have any suggestions or tips for brand new aspiring blog owners. Appreciate it!

Buy Isabel Marant Jean Shell-embellished Leather Sandals Shoes Black Outlet 美国 wrote at 2018/7/16 13:02:47 #

Wow, fantastic weblog structure! How lengthy have you ever been running a blog for? you made blogging look easy. The total look of your web site is fantastic, let alone the content material!  My blog;  Buy Isabel Marant Jean Shell-embellished Leather Sandals Shoes Black Outlet - www.isabelmarantukshoes.com/isabel-marant-jean-shell-embellished-leather-sandals-shoes-black-137

2016 Isabel Marant Crisi Suede Concealed Wedge Biker Sneakers Boots Grey Sale Online 美国 wrote at 2018/7/16 13:46:15 #

I am genuinely thankful to the holder of this website who has shared this great post at here.  Check out my web page -  2016 Isabel Marant Crisi Suede Concealed Wedge Biker Sneakers Boots Grey Sale Online - www.isabelmarantukshoes.com/isabel-marant-crisi-suede-concealed-wedge-biker-sneakers-boots-grey-33

Outlet Isabel Marantjohanna Studded Leather Sandals Shoes Brown Outlet 美国 wrote at 2018/7/16 23:00:21 #

You actually make it seem so easy with your presentation but I find this matter to be actually something that I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I'll try to get the hang of it!  Here is my web blog:  Outlet Isabel Marantjohanna Studded Leather Sandals Shoes Brown Outlet - www.isabelmarantukshoes.com/isabel-marantjohanna-studded-leather-sandals-shoes-brown-138

2017 Isabel Marant Boop Leather Slides Black Online Shoes 美国 wrote at 2018/7/17 12:35:42 #

Hi! I'm at work browsing your blog from my new iphone 4! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the excellent work!  Feel free to visit my weblog ...  2017 Isabel Marant Boop Leather Slides Black Online Shoes - www.isabelmarantukshoes.com/isabel-marant-boop-leather-slides-black-155

Authentic Isabel Marant Boop Metallic Leather And Velvet Sandals Shoes Bronze Shoes Online 美国 wrote at 2018/7/17 16:18:33 #

Good replies in return of this matter with genuine arguments  Authentic Isabel Marant Boop Metallic Leather And Velvet Sandals Shoes Bronze Shoes Online - www.isabelmarantukshoes.com/isabel-marant-boop-metallic-leather-and-velvet-sandals-shoes-bronze-129  describing everything concerning that.

Discount Isabel Marant Jools Embellished Leather Sandals Shoes Brown Sale 美国 wrote at 2018/7/18 7:04:14 #

Hi, the whole thing is going sound here and ofcourse every one is sharing information, that's really fine, keep up writing.  Also visit my web-site ::  Discount Isabel Marant Jools Embellished Leather Sandals Shoes Brown Sale - www.isabelmarantukshoes.com/isabel-marant-jools-embellished-leather-sandals-shoes-brown-116

Cheap Isabel Marant Jewel Stud-embellished Leather Sandals Shoes Black Shop Online Shoes 美国 wrote at 2018/7/18 11:55:45 #

Howdy, I believe your blog could be having browser compatibility problems. Whenever I look at your blog in Safari, it looks fine however, if opening in I.E., it's got some overlapping issues. I simply wanted to provide you with a quick heads up! Aside from that, fantastic site!  My homepage ...  Cheap Isabel Marant Jewel Stud-embellished Leather Sandals Shoes Black Shop Online Shoes - www.isabelmarantukshoes.com/isabel-marant-jewel-stud-embellished-leather-sandals-shoes-black-134

Sale Isabel Marant Caleen Studded Concealed Wedge Sneakers Boots Brown New 美国 wrote at 2018/7/18 12:37:08 #

I am curious to find out what blog system you're working with? I'm experiencing some minor security problems with my latest site and I would like to find something more secure. Do you have any recommendations?  Look into my web-site:  Sale Isabel Marant Caleen Studded Concealed Wedge Sneakers Boots Brown New - www.isabelmarantukshoes.com/isabel-marant-caleen-studded-concealed-wedge-sneakers-boots-brown-18

Buy Isabel Marant Jadyn Feather-trimmed Leather Sandals Shoes Uk 美国 wrote at 2018/7/18 12:39:14 #

I do agree with all of the ideas you've presented on your post. They are very convincing and will certainly work. Still, the posts are too quick for novices. May you please prolong them a bit from subsequent time? Thank you for the post.  My web page ...  Buy Isabel Marant Jadyn Feather-trimmed Leather Sandals Shoes Uk - www.isabelmarantukshoes.com/isabel-marant-jadyn-feather-trimmed-leather-sandals-shoes-132

Buy Isabel Marant étoile Amy Wraparound Leather Sandals Shoes Online Uk 美国 wrote at 2018/7/18 13:34:21 #

Nice post. I learn something new and challenging on websites I stumbleupon on a daily basis. It will always be helpful to read articles from other writers and practice a little something from other websites.  Here is my webpage ...  Buy Isabel Marant étoile Amy Wraparound Leather Sandals Shoes Online Uk - www.isabelmarantukshoes.com/isabel-marant-etoile-amy-wraparound-leather-sandals-shoes-123

Buy Isabel Marant Bennett Concealed Wedge Sneakers Shoes Cheap 美国 wrote at 2018/7/18 17:26:34 #

Appreciating the time and effort you put into your blog and in depth information you present. It's great to come across a blog every once in a while that isn't the same unwanted rehashed material. Great read! I've saved your site and I'm adding your RSS feeds to my Google account.  My web page  Buy Isabel Marant Bennett Concealed Wedge Sneakers Shoes Cheap - www.isabelmarantukshoes.com/isabel-marant-bennett-concealed-wedge-sneakers-shoes-171

Sale Isabel Marant Neta Fur-trimmed Suede Sneakers Boots Shoes Online 美国 wrote at 2018/7/18 17:43:46 #

This site certainly has all the info I wanted about this subject and didn't know who to ask.  Also visit my blog post ...  Sale Isabel Marant Neta Fur-trimmed Suede Sneakers Boots Shoes Online - www.isabelmarantukshoes.com/isabel-marant-neta-fur-trimmed-suede-sneakers-boots-87

senzhilian wrote at 2018/7/18 18:27:02 #

面膜代理  http://www.sealian.com.cn/
面膜微商  http://www.sealian.com.cn/
面膜批发  http://www.sealian.com.cn/
彩妆批发  http://www.sealian.com.cn/
化妆品批发  http://www.sealian.com.cn/
孕妇面膜  http://www.sealian.com.cn/
械字号面膜  http://www.sealian.com.cn/
海藻面膜  http://www.sealian.com.cn/
蚕丝面膜  http://www.sealian.com.cn/
补水面膜  http://www.sealian.com.cn/

Best Isabel Marant Leather Dewar Flat Ankle Sneakers Boots Black Clearance 美国 wrote at 2018/7/19 10:35:23 #

I really like your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for you? Plz answer back as I'm looking to create my own blog and would like to know where u got this from. cheers  My homepage;  Best Isabel Marant Leather Dewar Flat Ankle Sneakers Boots Black Clearance - www.isabelmarantukshoes.com/isabel-marant-leather-dewar-flat-ankle-sneakers-boots-black-83

Hot Isabel Marant Carol Studded Leather Sandals Shoes Black Shoes Price 美国 wrote at 2018/7/19 19:08:42 #

You really make it seem really easy together with your presentation however I in finding this matter to be actually one thing which I feel I'd by no means understand. It sort of feels too complicated and extremely broad for me. I'm taking a look ahead in your next submit, I will try to get the dangle of it!  Here is my web-site:  Hot Isabel Marant Carol Studded Leather Sandals Shoes Black Shoes Price - www.isabelmarantukshoes.com/isabel-marant-carol-studded-leather-sandals-shoes-black-139

Hot Isabel Marant Bobby White Leather Sneakers Shoes Buy Online 美国 wrote at 2018/7/19 23:45:54 #

This is a really good tip particularly to those new to the blogosphere. Short but very precise info… Appreciate your sharing this one. A must read article!  my homepage;  Hot Isabel Marant Bobby White Leather Sneakers Shoes Buy Online - www.isabelmarantukshoes.com/isabel-marant-bobby-white-leather-sneakers-shoes-206

2016 Isabel Marant Jaeryn Studded Snake-effect Leather Sandals Shoes 2017 美国 wrote at 2018/7/20 1:32:37 #

I'm not sure where you're getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for magnificent information I was looking for this information for my mission.  My web site ::  2016 Isabel Marant Jaeryn Studded Snake-effect Leather Sandals Shoes 2017 - www.isabelmarantukshoes.com/isabel-marant-jaeryn-studded-snake-effect-leather-sandals-shoes-135

Isabel Marant Sandals UK 美国 wrote at 2018/7/21 5:07:10 #

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thank you!  My website;  Isabel Marant Sandals UK - https://www.isabelmarantsaleuk.com/sandals-shoes

Cheap Isabel Marant Boots 美国 wrote at 2018/7/22 14:37:08 #

Great work! This is the kind of info that are supposed to be shared around the web. Disgrace on Google for not positioning this publish upper! Come on over and discuss with my site . Thanks =)  my web blog;  Cheap Isabel Marant Boots - https://www.isabelmarantsaleuk.com/boots-shoes

Isabel Marant Shoes Sale 美国 wrote at 2018/7/22 23:35:17 #

Good article! We will be linking to this particularly great post on our site. Keep up the good writing.  Also visit my blog ...  Isabel Marant Shoes Sale - www.isabelmarantsaleuk.com/isabel-marant-shoes-uk

Isabel Marant Sneakers Sale 美国 wrote at 2018/7/27 16:05:33 #

Hi there colleagues, pleasant piece of writing and pleasant urging commented here, I am in fact enjoying by these.  Review my web-site ...  Isabel Marant Sneakers Sale - https://www.isabelmarantsaleuk.com/sneakers-shoes

Isabel Marant Flats Sale 美国 wrote at 2018/7/27 16:55:06 #

Post writing is also a fun, if you be familiar with then you can write otherwise it is difficult to write.  My weblog ...  Isabel Marant Flats Sale - https://www.isabelmarantsaleuk.com/flats-shoes

添加评论



biuquote
微笑得意调皮害羞酷大笑惊讶发呆喜欢可怜尴尬闭嘴噘嘴皱眉伤心抓狂呕吐坏笑漫骂发怒
Loading


RecentComments

评论 RSS

Statistics

989 篇文章
0 个单页
653116 条评论
11 次评分
249350 次访问
访问统计开始于 2019年12月15日
平均日访问 5541 次
当前 129 人在线