Untitled

mail@pastecode.io avatar
unknown
javascript
8 months ago
1.6 kB
0
Indexable
Never
          <PercentageFormItem span={8} name={"aliquota_pis"} label="Alíquota PIS" rules={[{ required: true }]} />
          <PercentageFormItem span={8} name={"aliquota_cofins"} label="Alíquota COFINS" rules={[{ required: true }]} />

          <SelectAsyncFormItem
            span={8}
            name={"cst_piscofins_venda"}
            label={"CST PIS/COFINS Venda"}
            rules={[{ required: true }]}

            fetchData={async (props) => getCstPisCofinsList(props).unwrap()}
            columnsToSearch={["cst_pis_cofins", "description"]}
            fieldsLabel={["cst_pis_cofins", "description"]}
            propInValue="cst_pis_cofins"
          />

          <SelectAsyncFormItem
            span={8}
            name={"cst_piscofins_saida"}
            label={"CST PIS/COFINS Saída"}
            rules={[{ required: true }]}

            fetchData={async (props) => getCstPisCofinsList({ ...props, pisCofinsType: "out" }).unwrap()}
            fieldsLabel={["cst_pis_cofins", "description"]}
            columnsToSearch={["cst_pis_cofins", "description"]}
            propInValue="cst_pis_cofins"
          />

          <SelectAsyncFormItem
            span={8}
            name={"cst_piscofins_entrada"}
            label={"CST PIS/COFINS Entrada"}
            rules={[{ required: true }]}

            fetchData={async (props) => getCstPisCofinsList({ ...props, pisCofinsType: "entry" }).unwrap()}
            fieldsLabel={["cst_pis_cofins", "description"]}
            columnsToSearch={["cst_pis_cofins", "description"]}
            propInValue="cst_pis_cofins"
          />