Spaces:
Running

File size: 3,323 Bytes
dfc28f7
94cedbe
 
 
 
dfc28f7
94cedbe
400df31
dfc28f7
400df31
94cedbe
dfc28f7
400df31
 
 
 
 
dfc28f7
400df31
 
 
 
 
94cedbe
dfc28f7
94cedbe
dfc28f7
400df31
 
 
 
dfc28f7
94cedbe
400df31
 
 
94cedbe
400df31
 
 
94cedbe
dfc28f7
400df31
 
dfc28f7
94cedbe
400df31
 
 
 
 
94cedbe
dfc28f7
400df31
 
 
 
 
 
 
dfc28f7
 
94cedbe
 
 
fe3e5c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

<!DOCTYPE html>
<html lang="pt-BR">
<head>
  <meta charset="UTF-8">
  <title>Fatura de Cobrança</title>
</head>
<body style="background-color:#f3f4f6; padding:15px; font-family:Arial, sans-serif; font-size:12px;">

  <div style="max-width:700px; margin:0 auto; background-color:#ffffff; padding:20px; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,0.1);">

    <!-- Cabeçalho -->
    <div style="display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #d1d5db; padding-bottom:5px; margin-bottom:15px;">
      <div style="font-size:22px; font-weight:bold; line-height:1.2;">
        <span style="color:#1f2937;">X</span><span style="color:#1f2937;">COOP</span>
        <p style="margin:2px 0; color:#1f2937; font-size:10px; font-weight:normal;">COOP IT COOPERATIVA DE TRABALHO</p>
        <p style="margin:2px 0; color:#1f2937; font-size:10px; font-weight:normal;">CNPJ: 39.491.243/0001-05</p>
      </div>
      <div style="text-align:right; font-size:12px;">
        <h1 style="font-size:20px; font-weight:bold; color:#1f2937; margin:0;">FATURA</h1>
        <p style="margin:1px 0; color:#1f2937;">@{outputs('Obter_item')?['body/Title']}</p>
        <p style="margin:1px 0; color:#1f2937;">Emissão: @{formatDateTime(triggerOutputs()?['body/field_1'], 'dd/MM/yyyy')}</p>
        <p style="margin:1px 0; color:#1f2937;">Vencimento: @{formatDateTime(addDays(utcNow(), 5), 'dd/MM/yyyy')}</p>
      </div>
    </div>

    <!-- Dados do cliente -->
    <div style="margin-bottom:15px; font-size:12px;">
      <h2 style="font-size:14px; font-weight:bold; color:#1f2937; margin-bottom:5px;">Cobrança para:</h2>
      <p style="margin:0; color:#1f2937;">@{triggerOutputs()?['body/teste/Value']}</p>
      <p style="margin:0; color:#1f2937;">CNPJ/CPF: @{outputs('Obter_item')?['body/field_3']}</p>
    </div>

    <!-- Tabela de Itens -->
    <div style="margin-bottom:15px; font-size:12px;">
      <h2 style="font-size:14px; font-weight:bold; color:#1f2937; margin-bottom:5px;">Descrição:</h2>

      @{outputs('Compor_3')}

    </div>

    <!-- Total -->
    <div style="text-align:left; font-size:14px; font-weight:bold; color:#111827; margin-bottom:20px;">
      TOTAL: @{concat('R$ ', formatNumber(float(triggerOutputs()?['body/VALOR_x0020_TOTAL']), 'N2', 'pt-BR'))}
    </div>

    <!-- Dados Bancários -->
    <div style="border-top:1px solid #d1d5db; padding-top:10px; color:#1f2937; font-size:12px;">
      <h2 style="font-size:14px; font-weight:bold; color:#1f2937; margin-bottom:5px;">Dados bancários</h2>
      <p style="margin:0;">Banco: Banco Itaú - Agência 0734 - Conta 99858-6</p>
      <p style="margin:0;">Chave PIX: 39.491.243/0001-05</p>
    </div>

    <!-- Rodapé -->
    <div style="margin-top:20px; font-size:10px; color:#374151; line-height:1.3;">
      <hr style="border:1px solid #d1d5db; margin-bottom:5px;">
      <p style="margin:0;">COOP IT COOPERATIVA DE TRABALHO DOS PROFISSIONAIS DE INFORMÁTICA, ASSESSORIA E CONSULTORIA TÉCNICA</p>
      <p style="margin:0;">CNPJ: 39.491.243/0001-05</p>
      <p style="margin:0;">RUA DA BAHIA, 1046, SALA 201, CENTRO - CEP: 30160-011 - BELO HORIZONTE-MG</p>
      <p style="margin:0;">TELEFONE: (11) 3654-5742 • EMAIL: CONTATO@XCOOP.COM.BR • SITE: WWW.XCOOP.COM.BR</p>
    </div>

  </div>

</body>
</html>