在比较年销售额时考虑leap年 [英] Accounting for leap year in comparing year to year sales

查看:111
本文介绍了在比较年销售额时考虑leap年的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序,该程序显示与上一年的同一日期范围相比,从会计年度开始到当前日期的当年销售额.

I am writing a program that shows the current years sales from the beginning of the fiscal year to the current date, compared to the same date range of the year before.

我的问题是,leap年我需要付出什么努力?

My question is, what efforts do I need to take for leap year?

更新:

好吧,他们像我所说的那样想要它(比较去年和同一日期),但是如果今天是非leap年,去年是并且今天是2月28日,而去年是29日.如果今天是2月29日,而去年则是28日.

OK they want it like I said (compare last year up to same date) but if today is non leap year and last year is and today is feb 28th compare to last year up to 29th. Or if today is Feb 29th compare to last year up to 28th.

推荐答案

当然,这取决于企业希望您做什么.这不是会计应该回答的问题吗?

Surely that depends on what the business wants you to do. Isn't this a question that should be answered by an accountant?

这篇关于在比较年销售额时考虑leap年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆