feat(WEB): 작업지시/출근부 기능 개선 및 마이그레이션 추가
- 작업지시 우선순위 필드 추가 (priority 마이그레이션) - 수주-작업지시 품목 연동 source_order_item_id 컬럼 추가 - 수주 테이블에 account_code 필드 추가 - 작업지시 StoreRequest/UpdateRequest 우선순위 검증 추가 - WorkOrder 모델 priority fillable 추가 - 출근부 StoreRequest/UpdateRequest 검증 규칙 개선 - Employee Request 검증 규칙 수정 - SaleService/ItemService 수정 - WorkResultService 결과 처리 개선 - BankTransactionService 수정 - routes/api.php 엔드포인트 업데이트 - error.php 에러 메시지 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -212,6 +212,27 @@ public function confirm(int $id): Sale
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 매출 계정과목 일괄 변경
|
||||
*
|
||||
* @param array $ids 대상 ID 배열
|
||||
* @param string $accountCode 변경할 계정과목 코드
|
||||
* @return int 변경된 레코드 수
|
||||
*/
|
||||
public function bulkUpdateAccountCode(array $ids, string $accountCode): int
|
||||
{
|
||||
$tenantId = $this->tenantId();
|
||||
$userId = $this->apiUserId();
|
||||
|
||||
return Sale::query()
|
||||
->where('tenant_id', $tenantId)
|
||||
->whereIn('id', $ids)
|
||||
->update([
|
||||
'account_code' => $accountCode,
|
||||
'updated_by' => $userId,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 매출 요약 (기간별 합계)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user