mahendra reddy

mahendra reddy

  • NA
  • 27
  • 1.5k

If the amount entered in the 1st Installment, 2nd Installme

Jul 6 2019 12:59 AM
LOGIC:
 
sales: If the amount entered in the 1st Installment, 2nd Installment or 3rd Installment is equal to Total Invoiced Amount field, or anyone of these fields is equal to Total Invoiced Amount field, then Payment status to be CLOSE. Default Value of Payment Status is OPEN.
 
purchases: If the Amount Paid is equal to Total Invoice Amount, Payment Status to be updated as CLOSE. Default Value of Payment Status is OPEN.
  1. <body>  
  2. <form id="form1" runat="server">  
  3. <div>  
  4. <fieldset style="background-color:#EEE9E9">  
  5. <legend>  
  6. <asp:Button ID="btnsales" runat="server" Text="SALES" Height="28px" Width="100px"  
  7. OnClick="btnsales_Click" /> <asp:Button ID="btnpurchase" runat="server" Text="PURCHASE"  
  8. Height="28px" Width="100px" OnClick="btnpurchase_Click1" />  
  9. </legend>  
  10. <table id="tblsales" runat="server" style="width: 100%; ">  
  11. <tr>  
  12. <td class="style5">  
  13. Invoice No:<br />  
  14. <asp:TextBox ID="txtinvoiceno" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  15. <br />  
  16. <br />  
  17. </td>  
  18. <td class="style5">  
  19. Invoice Date:<br />  
  20. <asp:TextBox ID="txtdate" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  21. <br />  
  22. <br />  
  23. </td>  
  24. <td class="style5">  
  25. Name of the Client:<br />  
  26. <asp:TextBox ID="txtclientname" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  27. <br />  
  28. <br />  
  29. </td>  
  30. </tr>  
  31. <tr>  
  32. <td>  
  33. Client GST No:<br />  
  34. <asp:TextBox ID="txtgstno" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  35. <br />  
  36. <br />  
  37. </td>  
  38. <td>  
  39. Name Of The Service:<br />  
  40. <asp:DropDownList ID="DropDownList1" runat="server" Height="28px" Width="260px">  
  41. <asp:ListItem>TALENT ACQUISITION</asp:ListItem>  
  42. <asp:ListItem>BULK SMS SERVICES</asp:ListItem>  
  43. <asp:ListItem>SOFTWARE DEVELOPMENT</asp:ListItem>  
  44. <asp:ListItem>DIGITAL MARKETING</asp:ListItem>  
  45. <asp:ListItem>CAMPAIGNING</asp:ListItem>  
  46. </asp:DropDownList>  
  47. <br />  
  48. <br />  
  49. </td>  
  50. <td>  
  51. Service Code:<br />  
  52. <asp:TextBox ID="txtservicecode" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  53. <br />  
  54. <br />  
  55. </td>  
  56. </tr>  
  57. <tr>  
  58. <td>  
  59. Taxable Amount:<br />  
  60. <asp:TextBox ID="txttaxableamount" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  61. <br />  
  62. <br />  
  63. </td>  
  64. <td>  
  65. SGST Amount:<br />  
  66. <asp:TextBox ID="txtsgestamount" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  67. <br />  
  68. <br />  
  69. </td>  
  70. <td>  
  71. CGST Amount<br />  
  72. <asp:TextBox ID="txtcgstamount" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  73. <br />  
  74. <br />  
  75. </td>  
  76. </tr>  
  77. <tr>  
  78. <td>  
  79. IGST Amount:<br />  
  80. <asp:TextBox ID="txtigstamount" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  81. <br />  
  82. <br />  
  83. </td>  
  84. <td>  
  85. Total Invoiced Amount(Rounded):<br />  
  86. <asp:TextBox ID="txttotalinvoiceamount" runat="server" Height="28px" CssClass="calculate"  
  87. Width="260px"></asp:TextBox>  
  88. <br />  
  89. <br />  
  90. </td>  
  91. <td class="myClass">  
  92. 1st Installment:<br />  
  93. <asp:TextBox ID="txt1stinstal" runat="server" CssClass="calculate" Height="28px" Width="260px" ></asp:TextBox>  
  94. <br />  
  95. <br />  
  96. </td>  
  97. </tr>  
  98. <tr>  
  99. <td>  
  100. 2nd Installment:<br />  
  101. <asp:TextBox ID="txt2ndintsall" runat="server" CssClass="calculate" Height="28px" Width="260px" ></asp:TextBox>  
  102. <br />  
  103. <br /  
  104. </td>  
  105. <td >  
  106. 3rd Installment:<br />  
  107. <asp:TextBox ID="txt3rdinstall" runat="server" CssClass="calculate" Height="28px" Width="260px" ></asp:TextBox>  
  108. <br />  
  109. <br />  
  110. </td>  
  111. <td>  
  112. Remarks:<br />  
  113. <asp:TextBox ID="txtremarks" TextMode="MultiLine" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  114. <br />  
  115. <br />  
  116. </td>  
  117. </tr>  
  118. <tr>  
  119. <td>  
  120. Payment Status:<br />  
  121. <asp:TextBox ID="txtstatus" runat="server" CssClass="calculate" Height="28px" Width="260px" ></asp:TextBox>  
  122. <%--<asp:DropDownList ID="drppayemtstatus" runat="server" Height="28px" Width="260px">  
  123. <asp:ListItem>Open</asp:ListItem>  
  124. <asp:ListItem>Closed</asp:ListItem>  
  125. </asp:DropDownList>--%>  
  126. <br />  
  127. <br />  
  128. </td>  
  129. </tr>  
  130. </table>  
  131. <table id="tblpurchase" runat="server" style="width: 100% ">  
  132. <tr>  
  133. <td class="style5">  
  134. Invoice No:<br />  
  135. <asp:TextBox ID="TextBox1" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  136. <br />  
  137. <br />  
  138. </td>  
  139. <td class="style5">  
  140. Invoice Date:<br />  
  141. <asp:TextBox ID="TextBox2" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  142. <br />  
  143. <br />  
  144. </td>  
  145. <td class="style5">  
  146. Name of the Client:<br />  
  147. <asp:TextBox ID="TextBox3" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  148. <br />  
  149. <br />  
  150. </td>  
  151. </tr>  
  152. <tr>  
  153. <td class="style5">  
  154. Client GST No:<br />  
  155. <asp:TextBox ID="TextBox4" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  156. <br />  
  157. <br />  
  158. </td>  
  159. <td class="style5">  
  160. Name Of The Service:<br />  
  161. <asp:DropDownList ID="DropDownList2" runat="server" Height="28px" Width="260px">  
  162. <asp:ListItem>TALENT ACQUISITION</asp:ListItem>  
  163. <asp:ListItem>BULK SMS SERVICES</asp:ListItem>  
  164. <asp:ListItem>SOFTWARE DEVELOPMENT</asp:ListItem>  
  165. <asp:ListItem>DIGITAL MARKETING</asp:ListItem>  
  166. <asp:ListItem>CAMPAIGNING</asp:ListItem>  
  167. </asp:DropDownList>  
  168. <br />  
  169. <br />  
  170. </td>  
  171. <td class="style5">  
  172. Service Code:<br />  
  173. <asp:TextBox ID="TextBox5" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  174. <br />  
  175. <br />  
  176. </td>  
  177. </tr>  
  178. <tr>  
  179. <td class="style5">  
  180. Taxable Amount:<br />  
  181. <asp:TextBox ID="TextBox6" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  182. <br />  
  183. <br />  
  184. </td>  
  185. <td class="style5">  
  186. SGST Amount:<br />  
  187. <asp:TextBox ID="TextBox7" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  188. <br />  
  189. <br />  
  190. </td>  
  191. <td class="style5">  
  192. CGST Amount:<br />  
  193. <asp:TextBox ID="TextBox8" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  194. <br />  
  195. <br />  
  196. </td>  
  197. </tr>  
  198. <tr>  
  199. <td class="style5">  
  200. IGST Amount:<br />  
  201. <asp:TextBox ID="TextBox9" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  202. <br />  
  203. <br />  
  204. </td>  
  205. <td class="style5">  
  206. Total Invoiced Amount(Rounded):<br />  
  207. <asp:TextBox ID="TextBox10" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  208. <br />  
  209. <br />  
  210. </td>  
  211. <td class="style5">  
  212. Amount Paid:<br />  
  213. <asp:TextBox ID="TextBox11" TextMode="Number" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  214. <br />  
  215. <br />  
  216. </td>  
  217. </tr>  
  218. <tr>  
  219. <td class="style5">  
  220. Payment Date:<br />  
  221. <asp:TextBox ID="TextBox12" TextMode="Number" runat="server" Height="28px" Width="260px"></asp:TextBox>  
  222. <br />  
  223. <br />  
  224. </td>  
  225. <td class="style5">  
  226. Payment Status:<br />  
  227. <asp:DropDownList ID="DropDownList3" runat="server" Height="28px" Width="260px">  
  228. <asp:ListItem>Open</asp:ListItem>  
  229. <asp:ListItem>Closed</asp:ListItem>  
  230. </asp:DropDownList>  
  231. <br />  
  232. <br />  
  233. </td>  
  234. </tr>  
  235. </table>  
  236. </fieldset>  
  237. </div>  
  238. </form>  
  239. </body>  

Answers (1)