This file contains 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
#!/usr/bin/env python | |
from io import TextIOWrapper | |
import csv | |
from flask import Flask, request, redirect, url_for | |
from flask_sqlalchemy import SQLAlchemy | |
# Create Flaskk app, config the db and load the db object | |
# http://flask-sqlalchemy.pocoo.org/2.1/quickstart/#a-minimal-application |
This file contains 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: odoo-depl | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: odooappservices | |
template: |
This file contains 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
CREATE DEFINER=`tenziDB_admin`@`%` PROCEDURE `Sp_Get_Payables`( | |
businessId varchar(100), | |
date_now varchar(100), | |
date_30 varchar(100), | |
date_60 varchar(100), | |
date_90 varchar(100) | |
) | |
BEGIN | |
-- 30 days | |
SELECT |
This file contains 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
version: '3' | |
networks: | |
openhim: | |
services: | |
mongo-db: | |
container_name: mongo-db | |
image: mongo:4.0 | |
networks: | |
- openhim |
This file contains 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
using System.ComponentModel.DataAnnotations; | |
namespace DAL.ViewModels; | |
public class StockInOutDto | |
{ | |
[Required] | |
public string BusinessId { get; set; } | |
[Required] | |
public int StoredReleasedNo { get; set; } |
This file contains 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
using Microsoft.AspNetCore.Mvc; | |
namespace ErrorNotification.Controllers; | |
[Route("api/[controller]/[action]")] | |
[ApiController] | |
public class TestController : ControllerBase | |
{ | |
private readonly ILogger<TestController> _logger; | |
This file contains 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
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"Microsoft.AspNetCore": "Warning" | |
} | |
}, | |
"AllowedHosts": "*", | |
"Serilog": { | |
"MinimumLevel": { |
This file contains 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
using Serilog; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Host.UseSerilog((ctx, cfg) => cfg | |
.WriteTo.Console() | |
.ReadFrom.Configuration(ctx.Configuration)); | |
builder.Services.AddControllers(); | |
builder.Services.AddEndpointsApiExplorer(); |
This file contains 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
using System.ComponentModel.DataAnnotations; | |
namespace DAL.ViewModels; | |
public class ItemModelDto | |
{ | |
[Required] | |
public string BusinessId { get; set; } | |
// [Required] | |
// public string Pin { get; set; } |
This file contains 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
using System.ComponentModel.DataAnnotations; | |
using DAL.ViewModels.Enums; | |
namespace DAL.ViewModels; | |
public class ReceiptModelDto | |
{ | |
[Required] | |
public string businessId { get; set; } | |
[Required] |
NewerOlder