Created
September 16, 2017 20:42
-
-
Save rodrigobravo/e07f55862d3019bdd29ee5225fff4d7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select | |
| DOCHEADER.ID, | |
| DOCHEADER.DOC_PREFIX, | |
| DOCHEADER.DOC_NUMBER, | |
| DOCHEADER.ACCUMULATOR as acumulador, | |
| DOCHEADER.CLOCK_DATE data_FP, | |
| DOCHEADER.ENTITY_ID as client_id, | |
| ENTITY.DESCRIPTION as cliente, | |
| EMPLOYEE.INTERNAL_NAME as funcionario, | |
| LOCAL.DESCRIPTION as local, | |
| DOCHEADER.OBS as obs | |
| from DOCHEADER | |
| JOIN ENTITY on ENTITY.ID = DOCHEADER.ENTITY_ID | |
| JOIN LOCAL on LOCAL.ID = DOCHEADER.LOCAL_ID | |
| JOIN EMPLOYEE on EMPLOYEE.ENTITY_ID = DOCHEADER.employee_id | |
| Where DOCHEADER.DELETED=0 and local = 'Delivery' | |
| ORDER by data_FP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment