Ejemplo n.º 1
0
        //if (ObjOrg.OrderDisplay == 2 && AppType != 3 && ObjOrg.PrinttingType == 2 && (PaymtSts > 0 ||ObjOrg.PaymentType==2))
        // {
        //     PendingPrints.SaveKotPrint(ObjOrders, ObjOrg.Copy, Ticketno);
        // }
        public static void SaveInvoicePrint(HG_Orders order, int NoOfCopy)
        {
            PendingPrints pendingPrints = new PendingPrints();

            pendingPrints.OID           = order.OID;
            pendingPrints.OrgId         = order.OrgId;
            pendingPrints.InvoiceNoCopy = NoOfCopy;
            pendingPrints.KotNoOfCopy   = 0;
            pendingPrints.TicketNo      = 0;
            try
            {
                pendingPrints.Save();
            }
            catch (Exception e)
            {
            }
        }
Ejemplo n.º 2
0
 public static void SaveKotPrint(HG_Orders order, int NoOfCopy, int TicketNo = 0, List <HG_OrderItem> hG_OrderItems = null)
 {
     if (TicketNo == 0)
     {
         var tickets = hG_OrderItems.GroupBy(x => x.TickedNo);
         foreach (var ticket in tickets)
         {
             PendingPrints pendingPrints = new PendingPrints();
             pendingPrints.OID           = order.OID;
             pendingPrints.OrgId         = order.OrgId;
             pendingPrints.KotNoOfCopy   = NoOfCopy;
             pendingPrints.InvoiceNoCopy = 0;
             pendingPrints.TicketNo      = ticket.Key;
             try
             {
                 pendingPrints.Save();
             }
             catch (Exception e)
             {
             }
         }
     }
     else
     {
         PendingPrints pendingPrints = new PendingPrints();
         pendingPrints.OID           = order.OID;
         pendingPrints.OrgId         = order.OrgId;
         pendingPrints.KotNoOfCopy   = NoOfCopy;
         pendingPrints.InvoiceNoCopy = 0;
         pendingPrints.TicketNo      = TicketNo;
         try
         {
             pendingPrints.Save();
         }
         catch (Exception e)
         {
         }
     }
 }