Moved to a new printer name format in PrintLocation
If printing from windows, then the printer name should be prefixed with smb. If printing from linux, then the printer name should be prefixed with cups. If printing directly, then the printer name should be prefixed with pdl.
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using NHibernate;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using NHibernate;
|
||||
using Tanshu.Accounts.Entities;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Tanshu.Accounts.Repository
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
@ -12,7 +12,11 @@
|
||||
<AssemblyName>Tanshu.Accounts.Repository</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkSubset>Full</TargetFrameworkSubset>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
||||
@ -232,12 +232,12 @@ namespace Tanshu.Accounts.Repository
|
||||
|
||||
public void DiscountPrintedBill(Guid oldVoucherID, Voucher newVoucher)
|
||||
{
|
||||
Insert(newVoucher);
|
||||
|
||||
var oldVoucher = _session.Get<Voucher>(oldVoucherID);
|
||||
oldVoucher.User = Session.User;
|
||||
oldVoucher.Void = true;
|
||||
oldVoucher.VoidReason = string.Format("Bill Discounted / Changed. New Bill ID is {0}", newVoucher.FullBillID);
|
||||
|
||||
Insert(newVoucher);
|
||||
Update(oldVoucher);
|
||||
}
|
||||
public void MoveTable(Guid voucherID, Guid tableID)
|
||||
|
||||
Reference in New Issue
Block a user