Can I print two different templates in one printer?

Hello,
I have two printers for one Pos. One for cashier and another for sushi-bar. Since kitchen is right next to the cashier. I would like to print ‘customer’s bill’ and then ‘kitchen order slip’ in the same printer(cashier printer).

I tried to set in the print job, but it crashed all the times and showing me an error. Actually, I am not sure the error occurs because of this. Error message was “Object reference not set to an instance of an object”. and it mentioned action, rules, and print job…

Please any advice.
Thank you

You can, do it frequently. Just need multiple jobs printing to same printer or duplicate printer with same name.
You error likely comes from bad template but cant tell without more info.

I am sorry for the late reply. It was busy days.
So, my cashier printer needs to do print job of ‘customer bill’ and then ‘kitchen order print’
Both of templates are not very complicated. So, it might be print job problem?
I will attach print job setting soon.

Here is my customer bill template.
[LAYOUT]
– General layout

– C:\SUSHI_RO\sushirologofishonly.png
-

SALES RECEIPT
-
Qty Item Desription Price
- {ORDERS}

{TICKET QUANTITY SUM}x Items Sold
-
Sub Total: $[=F(TN('{TICKET TOTAL}')+TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]
- {DISCOUNTS}

[

Line Discount: -$[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1,'0.00')]
]

[

Transaction Discount: -$[=F(TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1,'0.00')]
]

[

Staff Discount 10%: -$[=F(TN('{CALCULATION TOTAL:Staff Discount}')*-1,'0.00')]
]

[

Owner Discount 100%: -$[=F(TN('{CALCULATION TOTAL:Manager Discount}')*-1,'0.00')]
]

[

Loyalty Discount 10%: -$[=F(TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]
]

[

Discount Total: -$[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]
-]
Total: ${TICKET TOTAL}
{PAYMENTS} -
Tendered Total: ${TENDERED TOTAL}
Change: ${CHANGE TOTAL}
-
THANK YOU
-
{TICKET ID} {TICKET DATE} {TIME} {USER NAME}
-


- {ENTITIES}

[DISCOUNTS]

[PAYMENTS]

{PAYMENT NAME} ${TENDERED}
[ORDERS] -- Default format for orders
{QUANTITY}x {ITEM TAG:Receipt Name} {PORTION: } ${TOTAL PRICE}
{ORDER TAGS} [ORDERS:Gift] -- Format for gifted orders {QUANTITY} {NAME}|**FREE ITEM**

[ORDERS:Void]
– Nothing will print for void lines

[ORDER TAGS]
– Format for order tags
[

*** Line Discount: {ORDER STATE:DStatus} -$[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1),'0.00']
]

[

*** Price Override: {ORDER STATE:PStatus} -$[=F(TN('{ORDER TAG TOTAL:Price Override}')*-1),'0.00']
]

[ENTITIES:Customers]
– Customer entity format


[ENTITIES:Table]
– Table entity format
Table: {ENTITY NAME}


Here is my kitchen order template
[LAYOUT]
Ticket
Date:{TICKET DATE}
Time:{TIME}
Table:{ENTITY NAME:Table}
Ticket No:{TICKET NO}
-
{ORDERS}

[ORDERS]
{QUANTITY} {NAME}
{ORDER TAGS}

[ORDERS:Void]
{QUANTITY} {NAME}|Void
{ORDER TAGS}

[ORDER TAGS]
– Format for order tags
* {ORDER TAG NAME}

You need to click the code button when pasting templates else forum strips formatting etc.

You could test by just changing the two print jobs to use default templates and make sure all else is OK and narrow down the issue.

I just deleted three print jobs that not using. Now I got this error whenever I login. So I cannot do any changes. I cannot get into the main menu.
Is there any support team that can do with teamviewer, or how to reset the program??

Thank you in advance…


[General Info]

Application: SambaPOS
Version: 5.3.6
Region: en
DB: SQ
Machine: SUSHI-RO
User: Administrator
Date: 05/10/2021
Time: 12:20 AM

User Explanation:

Administrator said “”

[Exception Info 1]

Top-level Exception
Type: System.Net.WebException
Message: Unable to connect to the remote server
Source: System
Stack Trace: at System.Net.WebClient.UploadFile(Uri address, String method, String fileName)
at System.Net.WebClient.UploadFile(String address, String method, String fileName)
at Samba.Presentation.Common.ErrorReport.ErrorReportViewModel.SubmitError()
at Samba.Presentation.Common.ErrorReport.ErrorReportViewModel.OnSubmitCommand(String obj)
at Microsoft.Practices.Prism.Commands.DelegateCommand`1.<>c__DisplayClass6.<.ctor>b__2(Object o)
at Microsoft.Practices.Prism.Commands.DelegateCommandBase.Execute(Object parameter)
at Microsoft.Practices.Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type: System.Net.Sockets.SocketException
Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 162.243.61.210:80
Source: System
Stack Trace: at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)


[Assembly Info]

mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Samba.Services, Version=5.3.7816.39267
Samba.Domain, Version=5.3.7816.39266
Samba.Infrastructure.Data, Version=5.3.7816.39266
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=5.3.7816.39270
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v17.2, Version=17.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v17.2, Version=17.2.13.0
DevExpress.Xpf.Grid.v17.2.Core, Version=17.2.13.0
System.Xaml, Version=4.0.0.0
Samba.Infrastructure, Version=5.3.7816.39262
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=5.3.7816.39267
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=5.3.7816.39263
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
NCalc, Version=1.3.8.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v17.2, Version=17.2.13.0
WindowsInput, Version=1.0.4.0


[System Info]

Operating System
-Microsoft Windows 10 Enterprise 2016 LTSB
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = -240
–FreePhysicalMemory = 2466944
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.14393

Machine
-SUSHI-RO
–Manufacturer = Default string
–Model = Default string
–TotalPhysicalMemory = 4179279872
–UserName = SUSHI-RO\Administrator


Can you show your Rules, action, and print jobs for the print job flow?

Sorry for late reply. There were too many errors that I cannot fix everything by myself. So I reset the POS and working fine now. Thank you