Gatilhos(SX7) no Campo: AA3_CODBEM |
X7_CAMPO | X7_SEQUENC | X7_REGRA | X7_CDOMIN | X7_TIPO | X7_SEEK | X7_ALIAS | X7_ORDEM | X7_CHAVE | X7_CONDIC |
AA3_CODBEM | 001 | Posicione("ST9",1,xFilial("ST9")+M->AA3_CODBEM, "ST9->T9_FILIAL") | AA3_CDBMFL | P | N | | 0 | | |
AA3_CODBEM | 002 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_CODESTO") | AA3_CODPRO | P | N | | 0 | | |
AA3_CODBEM | 003 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_SERIE") | AA3_NUMSER | P | N | | 0 | | !ALTERA |
AA3_CODBEM | 004 | At040MNTAF( M->AA3_CDBMFL, M->AA3_CODBEM, "N1_CBASE" ) | AA3_CBASE | P | N | | 0 | | |
AA3_CODBEM | 005 | At040MNTAF( M->AA3_CDBMFL, M->AA3_CODBEM, "N1_ITEM" ) | AA3_ITEM | P | N | | 0 | | |
AA3_CODBEM | 006 | At040MNTAF( M->AA3_CDBMFL, M->AA3_CODBEM, "N1_CHAPA" ) | AA3_CHAPA | P | N | | 0 | | |
AA3_CODBEM | 007 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_DTCOMPR") | AA3_DTVEND | P | N | | 0 | | |
AA3_CODBEM | 008 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_MODELO") | AA3_MODELO | P | N | | 0 | | |
AA3_CODBEM | 009 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_NFCOMPR") | AA3_NFAQUI | P | N | | 0 | | |
AA3_CODBEM | 010 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_FORNECE") | AA3_FORNEC | P | N | | 0 | | |
AA3_CODBEM | 011 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_LOJA") | AA3_LOJAFO | P | N | | 0 | | |
AA3_CODBEM | 012 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_FABRICA") | AA3_CODFAB | P | N | | 0 | | |
AA3_CODBEM | 013 | Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "ST9->T9_LOCAL") | AA3_LOCAL | P | N | | 0 | | |
AA3_CODBEM | 014 | If( Posicione("ST9",1,M->AA3_CDBMFL+M->AA3_CODBEM, "T9_TEMCONT") <> "N", "1", "2" ) | AA3_HMEATV | P | N | | 0 | | |
AA3_CODBEM | 015 | If( ST9->T9_TEMCONT <> "N", Len(cValtoChar(ST9->T9_LIMICON)), 0) | AA3_HMELIM | P | S | ST9 | 1 | M->AA3_CDBMFL+M->AA3_CODBEM | |