{
$data = [
'generated_at' => date('Y-m-d H:i:s'),
- 'border_date' => date('Y-m-d H:i:s', strtotime('-2 month')),
+ 'border_date' => date('Y-m-d H:i:s', strtotime('-1 month')),
'items' => WriteOffsErp::getAttachmentsOlderThanMonth(),
];
*/
public static function getAttachmentsOlderThanMonth(?string $borderDate = null): array
{
- $borderDate = $borderDate ?: date('Y-m-d H:i:s', strtotime('-2 month'));
+ $borderDate = $borderDate ?: date('Y-m-d H:i:s', strtotime('-1 month'));
$docs = self::find()
->andWhere(['status' => self::STATUS_CREATED_1C])
*/
public static function getAttachmentsOlderThanMonthList(?string $borderDate = null): array
{
- $borderDate = $borderDate ?: date('Y-m-d H:i:s', strtotime('-2 month'));
+ $borderDate = $borderDate ?: date('Y-m-d H:i:s', strtotime('-1 month'));
$docs = self::find()
->andWhere(['status' => self::STATUS_CREATED_1C])