Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Biz.Finances.V2.0
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Biz.Finances.V2.0
Commits
a05b3d59
Commit
a05b3d59
authored
Aug 05, 2022
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
44122079
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
Kivii.Biz.Finances.V2.0.csproj
Src/Kivii.Biz.Finances.V2.0.csproj
+4
-4
RestfulInvoice.Offset.Deficit.cs
Src/Transforms/RestfulInvoice.Offset.Deficit.cs
+1
-1
packages.config
Src/packages.config
+3
-2
No files found.
Src/Kivii.Biz.Finances.V2.0.csproj
View file @
a05b3d59
...
...
@@ -31,11 +31,11 @@
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"Kivii.Common.V4.5, Version=5.6.2022.7
001
, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\..\packages\Kivii.Common.5.6.2022.7
001
\lib\net45\Kivii.Common.V4.5.dll
</HintPath>
<Reference
Include=
"Kivii.Common.V4.5, Version=5.6.2022.7
200
, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\..\packages\Kivii.Common.5.6.2022.7
200
\lib\net45\Kivii.Common.V4.5.dll
</HintPath>
</Reference>
<Reference
Include=
"Kivii.Core.V4.5, Version=5.6.2022.7
001
, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\..\packages\Kivii.Core.5.6.2022.7
001
\lib\net45\Kivii.Core.V4.5.dll
</HintPath>
<Reference
Include=
"Kivii.Core.V4.5, Version=5.6.2022.7
200
, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\..\packages\Kivii.Core.5.6.2022.7
200
\lib\net45\Kivii.Core.V4.5.dll
</HintPath>
</Reference>
<Reference
Include=
"Kivii.Linq.V4.5, Version=5.6.2022.7000, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\..\packages\Kivii.Linq.5.6.2022.7000\lib\net45\Kivii.Linq.V4.5.dll
</HintPath>
...
...
Src/Transforms/RestfulInvoice.Offset.Deficit.cs
View file @
a05b3d59
...
...
@@ -151,7 +151,7 @@ namespace Kivii.Finances.Transforms
if
(
invoices
.
Exists
(
o
=>
o
.
Amount
<=
0
))
throw
new
Exception
(
"请选择原作废发票信息进行撤销!"
);
if
(
invoices
.
Count
!=
Kvids
.
Count
)
throw
new
Exception
(
"所选发票信息与查询后结果不一致!"
);
//发票作废后 想要撤销操作,不管当初此发票是否已经有到账,都会变成借票的发票,需要冲销抵扣才行
var
offsetInvoices
=
conn
.
Select
<
Invoice
>(
o
=>
Sql
.
In
(
o
.
Offset
Kvid
,
invoices
.
ConvertAll
(
p
=>
p
.
OffsetKvid
)));
var
offsetInvoices
=
conn
.
Select
<
Invoice
>(
o
=>
Sql
.
In
(
o
.
Kvid
,
invoices
.
ConvertAll
(
p
=>
p
.
OffsetKvid
)));
offsetInvoices
.
ThrowIfNullOrEmpty
(
"未找到原作废项目!"
);
var
rtns
=
new
RestfulExecutionResponse
<
Invoice
>();
...
...
Src/packages.config
View file @
a05b3d59
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"Kivii.Common"
version
=
"5.6.2022.7
001
"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Core"
version
=
"5.6.2022.7
001
"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Common"
version
=
"5.6.2022.7
200
"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Core"
version
=
"5.6.2022.7
200
"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Linq"
version
=
"5.6.2022.7000"
targetFramework
=
"net45"
/>
</
packages
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment