Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dsyerp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
dsyerp
Commits
7294ee9a
Commit
7294ee9a
authored
Nov 16, 2023
by
wxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并type类型
parent
10ed3824
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
75 deletions
+81
-75
module/Store/src/Entity/AllExWarehouseOrderGoods.php
module/Store/src/Entity/AllExWarehouseOrderGoods.php
+40
-21
module/Store/src/Entity/AllWarehouseOrderGoods.php
module/Store/src/Entity/AllWarehouseOrderGoods.php
+31
-49
module/Store/src/Service/AllExWarehouseOrderGoodsManager.php
module/Store/src/Service/AllExWarehouseOrderGoodsManager.php
+3
-1
module/Store/src/Service/AllWarehouseOrderGoodsManager.php
module/Store/src/Service/AllWarehouseOrderGoodsManager.php
+7
-4
No files found.
module/Store/src/Entity/AllExWarehouseOrderGoods.php
View file @
7294ee9a
...
@@ -37,11 +37,6 @@ class AllExWarehouseOrderGoods extends BaseEntity
...
@@ -37,11 +37,6 @@ class AllExWarehouseOrderGoods extends BaseEntity
* @ORM\Column(name="ex_warehouse_order_id", type="integer", length=11)
* @ORM\Column(name="ex_warehouse_order_id", type="integer", length=11)
*/
*/
private
$exWarehouseOrderId
;
private
$exWarehouseOrderId
;
/**
* 销售订单对应表id
* @ORM\Column(name="send_order_id", type="integer", length=11)
*/
private
$sendOrderId
;
/**
/**
* 其他入库采购入库对应表入库单号
* 其他入库采购入库对应表入库单号
...
@@ -109,18 +104,23 @@ class AllExWarehouseOrderGoods extends BaseEntity
...
@@ -109,18 +104,23 @@ class AllExWarehouseOrderGoods extends BaseEntity
*/
*/
private
$goodsUnit
;
private
$goodsUnit
;
/**
* 其他入库id
* @ORM\Column(name="all_warehouse_order_id", type="integer", length=20)
*/
private
$allWarehouseOrderId
;
/**
/**
* 时间
* 时间
* @ORM\Column(name="add_time", type="integer", length=11)
* @ORM\Column(name="add_time", type="integer", length=11)
*/
*/
private
$addTime
;
private
$addTime
;
/**
* 出库类型
* @ORM\Column(name="type", type="enum", length=11)
*/
private
$type
;
/**
* 其他入库id
* @ORM\Column(name="all_warehouse_order_id", type="integer", length=20)
*/
private
$allWarehouseOrderId
;
/**
/**
* 成本价
* 成本价
...
@@ -353,40 +353,58 @@ class AllExWarehouseOrderGoods extends BaseEntity
...
@@ -353,40 +353,58 @@ class AllExWarehouseOrderGoods extends BaseEntity
$this
->
goodsUnit
=
$goodsUnit
;
$this
->
goodsUnit
=
$goodsUnit
;
}
}
/**
/**
* @return mixed
* @return mixed
*/
*/
public
function
getA
llWarehouseOrderId
()
public
function
getA
ddTime
()
{
{
return
$this
->
allWarehouseOrderId
;
return
$this
->
addTime
;
}
/**
* @param mixed $addTime
*/
public
function
setAddTime
(
$addTime
)
:
void
{
$this
->
addTime
=
$addTime
;
}
}
/**
* @return mixed
*/
public
function
getType
()
{
return
$this
->
type
;
}
/**
/**
* @param mixed $
allWarehouseOrderId
* @param mixed $
type
*/
*/
public
function
set
AllWarehouseOrderId
(
$allWarehouseOrderId
)
:
void
public
function
set
Type
(
$type
)
:
void
{
{
$this
->
allWarehouseOrderId
=
$allWarehouseOrderId
;
$this
->
type
=
$type
;
}
}
/**
/**
* @return mixed
* @return mixed
*/
*/
public
function
getA
ddTime
()
public
function
getA
llWarehouseOrderId
()
{
{
return
$this
->
a
ddTime
;
return
$this
->
a
llWarehouseOrderId
;
}
}
/**
/**
* @param mixed $a
ddTime
* @param mixed $a
llWarehouseOrderId
*/
*/
public
function
setA
ddTime
(
$addTime
)
:
void
public
function
setA
llWarehouseOrderId
(
$allWarehouseOrderId
)
:
void
{
{
$this
->
a
ddTime
=
$addTime
;
$this
->
a
llWarehouseOrderId
=
$allWarehouseOrderId
;
}
}
/**
/**
* @return mixed
* @return mixed
*/
*/
...
@@ -402,4 +420,5 @@ class AllExWarehouseOrderGoods extends BaseEntity
...
@@ -402,4 +420,5 @@ class AllExWarehouseOrderGoods extends BaseEntity
{
{
$this
->
costPrice
=
$costPrice
;
$this
->
costPrice
=
$costPrice
;
}
}
}
}
\ No newline at end of file
module/Store/src/Entity/AllWarehouseOrderGoods.php
View file @
7294ee9a
...
@@ -33,21 +33,10 @@ class AllWarehouseOrderGoods extends BaseEntity
...
@@ -33,21 +33,10 @@ class AllWarehouseOrderGoods extends BaseEntity
private
$allWarehouseOrderGoodsId
;
private
$allWarehouseOrderGoodsId
;
/**
/**
*
盘点
入库对应表id
* 入库对应表id
* @ORM\Column(name="
stock_check
_id", type="integer", length=11)
* @ORM\Column(name="
warehouse_order
_id", type="integer", length=11)
*/
*/
private
$stockCheckId
;
private
$warehouseOrderId
;
/**
* 其他入库对应表id
* @ORM\Column(name="other_warehouse_order_id", type="integer", length=11)
*/
private
$otherWarehouseOrderId
;
/**
* 采购入库对应表id
* @ORM\Column(name="purchase_warehouse_order_id", type="integer", length=11)
*/
private
$purchaseWarehouseOrderId
;
/**
/**
* 其他入库采购入库对应表入库单号
* 其他入库采购入库对应表入库单号
...
@@ -127,6 +116,12 @@ class AllWarehouseOrderGoods extends BaseEntity
...
@@ -127,6 +116,12 @@ class AllWarehouseOrderGoods extends BaseEntity
*/
*/
private
$outNum
;
private
$outNum
;
/**
* 入库类型
* @ORM\Column(name="type", type="enum", length=11)
*/
private
$type
;
/**
/**
* @return mixed
* @return mixed
*/
*/
...
@@ -143,53 +138,23 @@ class AllWarehouseOrderGoods extends BaseEntity
...
@@ -143,53 +138,23 @@ class AllWarehouseOrderGoods extends BaseEntity
$this
->
allWarehouseOrderGoodsId
=
$allWarehouseOrderGoodsId
;
$this
->
allWarehouseOrderGoodsId
=
$allWarehouseOrderGoodsId
;
}
}
/**
* @return mixed
*/
public
function
getStockCheckId
()
{
return
$this
->
stockCheckId
;
}
/**
* @param mixed $stockCheckId
*/
public
function
setStockCheckId
(
$stockCheckId
)
{
$this
->
stockCheckId
=
$stockCheckId
;
}
/**
/**
* @return mixed
* @return mixed
*/
*/
public
function
getOtherWarehouseOrderId
()
public
function
getWarehouseOrderId
()
{
return
$this
->
otherWarehouseOrderId
;
}
/**
* @param mixed $otherWarehouseOrderId
*/
public
function
setOtherWarehouseOrderId
(
$otherWarehouseOrderId
)
:
void
{
{
$this
->
otherWarehouseOrderId
=
$otherW
arehouseOrderId
;
return
$this
->
w
arehouseOrderId
;
}
}
/**
/**
* @
return mixe
d
* @
param mixed $warehouseOrderI
d
*/
*/
public
function
getPurchaseWarehouseOrderId
()
public
function
setWarehouseOrderId
(
$warehouseOrderId
)
:
void
{
{
return
$this
->
purchaseW
arehouseOrderId
;
$this
->
warehouseOrderId
=
$w
arehouseOrderId
;
}
}
/**
* @param mixed $purchaseWarehouseOrderId
*/
public
function
setPurchaseWarehouseOrderId
(
$purchaseWarehouseOrderId
)
:
void
{
$this
->
purchaseWarehouseOrderId
=
$purchaseWarehouseOrderId
;
}
/**
/**
* @return mixed
* @return mixed
...
@@ -397,4 +362,21 @@ class AllWarehouseOrderGoods extends BaseEntity
...
@@ -397,4 +362,21 @@ class AllWarehouseOrderGoods extends BaseEntity
{
{
$this
->
outNum
=
$outNum
;
$this
->
outNum
=
$outNum
;
}
}
/**
* @return mixed
*/
public
function
getType
()
{
return
$this
->
type
;
}
/**
* @param mixed $type
*/
public
function
setType
(
$type
)
:
void
{
$this
->
type
=
$type
;
}
}
}
\ No newline at end of file
module/Store/src/Service/AllExWarehouseOrderGoodsManager.php
View file @
7294ee9a
...
@@ -85,6 +85,7 @@ class AllExWarehouseOrderGoodsManager
...
@@ -85,6 +85,7 @@ class AllExWarehouseOrderGoodsManager
$exWarehouseGoods
->
setGoodsSpec
(
$goodsInfo
->
getGoodsSpec
());
$exWarehouseGoods
->
setGoodsSpec
(
$goodsInfo
->
getGoodsSpec
());
$exWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$exWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$exWarehouseGoods
->
setAddTime
(
time
());
$exWarehouseGoods
->
setAddTime
(
time
());
$exWarehouseGoods
->
setType
(
"ex"
);
$exWarehouseGoods
->
setAllWarehouseOrderId
(
$v
->
getallWarehouseOrderGoodsId
());
$exWarehouseGoods
->
setAllWarehouseOrderId
(
$v
->
getallWarehouseOrderGoodsId
());
$exWarehouseGoods
->
setCostPrice
(
$v
->
getwarehouseGoodsPrice
());
$exWarehouseGoods
->
setCostPrice
(
$v
->
getwarehouseGoodsPrice
());
...
@@ -123,7 +124,7 @@ class AllExWarehouseOrderGoodsManager
...
@@ -123,7 +124,7 @@ class AllExWarehouseOrderGoodsManager
if
(
$goodsInfo
&&
$goodsExNum
>
0
)
{
if
(
$goodsInfo
&&
$goodsExNum
>
0
)
{
$exWarehouseGoods
=
new
AllExWarehouseOrderGoods
();
$exWarehouseGoods
=
new
AllExWarehouseOrderGoods
();
$exWarehouseGoods
->
setAllExWarehouseOrderGoodsId
(
null
);
$exWarehouseGoods
->
setAllExWarehouseOrderGoodsId
(
null
);
$exWarehouseGoods
->
set
Send
OrderId
(
$sendOrder
->
getSendOrderId
());
$exWarehouseGoods
->
set
ExWarehouse
OrderId
(
$sendOrder
->
getSendOrderId
());
$exWarehouseGoods
->
setExWarehouseOrderSn
(
$v
->
getwarehouseOrderSn
());
$exWarehouseGoods
->
setExWarehouseOrderSn
(
$v
->
getwarehouseOrderSn
());
$exWarehouseGoods
->
setWarehouseId
(
$value
[
'warehouseId'
]);
$exWarehouseGoods
->
setWarehouseId
(
$value
[
'warehouseId'
]);
if
(
$goodsExNum
>=
$v
->
getoutNum
()){
if
(
$goodsExNum
>=
$v
->
getoutNum
()){
...
@@ -148,6 +149,7 @@ class AllExWarehouseOrderGoodsManager
...
@@ -148,6 +149,7 @@ class AllExWarehouseOrderGoodsManager
$exWarehouseGoods
->
setGoodsSpec
(
$goodsInfo
->
getGoodsSpec
());
$exWarehouseGoods
->
setGoodsSpec
(
$goodsInfo
->
getGoodsSpec
());
$exWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$exWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$exWarehouseGoods
->
setAddTime
(
time
());
$exWarehouseGoods
->
setAddTime
(
time
());
$exWarehouseGoods
->
setType
(
"send"
);
$exWarehouseGoods
->
setAllWarehouseOrderId
(
$v
->
getallWarehouseOrderGoodsId
());
$exWarehouseGoods
->
setAllWarehouseOrderId
(
$v
->
getallWarehouseOrderGoodsId
());
$exWarehouseGoods
->
setCostPrice
(
$v
->
getwarehouseGoodsPrice
());
$exWarehouseGoods
->
setCostPrice
(
$v
->
getwarehouseGoodsPrice
());
...
...
module/Store/src/Service/AllWarehouseOrderGoodsManager.php
View file @
7294ee9a
...
@@ -49,7 +49,7 @@ class AllWarehouseOrderGoodsManager
...
@@ -49,7 +49,7 @@ class AllWarehouseOrderGoodsManager
if
(
$goodsInfo
)
{
if
(
$goodsInfo
)
{
$allWarehouseGoods
=
new
AllWarehouseOrderGoods
();
$allWarehouseGoods
=
new
AllWarehouseOrderGoods
();
$allWarehouseGoods
->
setAllWarehouseOrderGoodsId
(
null
);
$allWarehouseGoods
->
setAllWarehouseOrderGoodsId
(
null
);
$allWarehouseGoods
->
set
Other
WarehouseOrderId
(
$otherWarehouseOrderId
);
$allWarehouseGoods
->
setWarehouseOrderId
(
$otherWarehouseOrderId
);
$allWarehouseGoods
->
setWarehouseOrderSn
(
$warehouseOrderSn
);
$allWarehouseGoods
->
setWarehouseOrderSn
(
$warehouseOrderSn
);
$allWarehouseGoods
->
setWarehouseId
(
$warehouseId
);
$allWarehouseGoods
->
setWarehouseId
(
$warehouseId
);
$allWarehouseGoods
->
setWarehouseGoodsBuyNum
(
$data
[
'goodsBuyNum'
][
$key
]);
$allWarehouseGoods
->
setWarehouseGoodsBuyNum
(
$data
[
'goodsBuyNum'
][
$key
]);
...
@@ -63,6 +63,7 @@ class AllWarehouseOrderGoodsManager
...
@@ -63,6 +63,7 @@ class AllWarehouseOrderGoodsManager
$allWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$allWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$allWarehouseGoods
->
setAddTime
(
time
());
$allWarehouseGoods
->
setAddTime
(
time
());
$allWarehouseGoods
->
setOutNum
(
$data
[
'goodsBuyNum'
][
$key
]);
$allWarehouseGoods
->
setOutNum
(
$data
[
'goodsBuyNum'
][
$key
]);
$allWarehouseGoods
->
setType
(
"other"
);
$this
->
entityManager
->
persist
(
$allWarehouseGoods
);
$this
->
entityManager
->
persist
(
$allWarehouseGoods
);
$this
->
entityManager
->
flush
();
$this
->
entityManager
->
flush
();
...
@@ -83,7 +84,7 @@ class AllWarehouseOrderGoodsManager
...
@@ -83,7 +84,7 @@ class AllWarehouseOrderGoodsManager
foreach
(
$orderGoods
as
$goodsValue
)
{
foreach
(
$orderGoods
as
$goodsValue
)
{
$allWarehouseGoods
=
new
AllWarehouseOrderGoods
();
$allWarehouseGoods
=
new
AllWarehouseOrderGoods
();
$allWarehouseGoods
->
setAllWarehouseOrderGoodsId
(
null
);
$allWarehouseGoods
->
setAllWarehouseOrderGoodsId
(
null
);
$allWarehouseGoods
->
set
Purchase
WarehouseOrderId
(
$warehouseOrder
->
getWarehouseOrderId
());
$allWarehouseGoods
->
setWarehouseOrderId
(
$warehouseOrder
->
getWarehouseOrderId
());
$allWarehouseGoods
->
setWarehouseOrderSn
(
$warehouseOrder
->
getWarehouseOrderSn
());
$allWarehouseGoods
->
setWarehouseOrderSn
(
$warehouseOrder
->
getWarehouseOrderSn
());
$allWarehouseGoods
->
setWarehouseId
(
$warehouseOrder
->
getWarehouseId
());
$allWarehouseGoods
->
setWarehouseId
(
$warehouseOrder
->
getWarehouseId
());
$allWarehouseGoods
->
setWarehouseGoodsBuyNum
(
$goodsValue
->
getPGoodsBuyNum
());
$allWarehouseGoods
->
setWarehouseGoodsBuyNum
(
$goodsValue
->
getPGoodsBuyNum
());
...
@@ -97,7 +98,7 @@ class AllWarehouseOrderGoodsManager
...
@@ -97,7 +98,7 @@ class AllWarehouseOrderGoodsManager
$allWarehouseGoods
->
setGoodsUnit
(
$goodsValue
->
getGoodsUnit
());
$allWarehouseGoods
->
setGoodsUnit
(
$goodsValue
->
getGoodsUnit
());
$allWarehouseGoods
->
setAddTime
(
time
());
$allWarehouseGoods
->
setAddTime
(
time
());
$allWarehouseGoods
->
setOutNum
(
$goodsValue
->
getPGoodsBuyNum
());
$allWarehouseGoods
->
setOutNum
(
$goodsValue
->
getPGoodsBuyNum
());
$allWarehouseGoods
->
setType
(
"purchase"
);
$this
->
entityManager
->
persist
(
$allWarehouseGoods
);
$this
->
entityManager
->
persist
(
$allWarehouseGoods
);
$this
->
entityManager
->
flush
();
$this
->
entityManager
->
flush
();
...
@@ -120,7 +121,7 @@ class AllWarehouseOrderGoodsManager
...
@@ -120,7 +121,7 @@ class AllWarehouseOrderGoodsManager
if
(
$goodsInfo
&&
$GoodsBuyNum
>
0
)
{
if
(
$goodsInfo
&&
$GoodsBuyNum
>
0
)
{
$allWarehouseGoods
=
new
AllWarehouseOrderGoods
();
$allWarehouseGoods
=
new
AllWarehouseOrderGoods
();
$allWarehouseGoods
->
setAllWarehouseOrderGoodsId
(
null
);
$allWarehouseGoods
->
setAllWarehouseOrderGoodsId
(
null
);
$allWarehouseGoods
->
set
StockCheck
Id
(
$stockCheckId
);
$allWarehouseGoods
->
set
WarehouseOrder
Id
(
$stockCheckId
);
$allWarehouseGoods
->
setWarehouseId
(
$warehouseId
);
$allWarehouseGoods
->
setWarehouseId
(
$warehouseId
);
$allWarehouseGoods
->
setWarehouseOrderSn
(
$warehouseOrderSn
);
$allWarehouseGoods
->
setWarehouseOrderSn
(
$warehouseOrderSn
);
$allWarehouseGoods
->
setWarehouseGoodsBuyNum
(
$GoodsBuyNum
);
$allWarehouseGoods
->
setWarehouseGoodsBuyNum
(
$GoodsBuyNum
);
...
@@ -134,6 +135,8 @@ class AllWarehouseOrderGoodsManager
...
@@ -134,6 +135,8 @@ class AllWarehouseOrderGoodsManager
$allWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$allWarehouseGoods
->
setGoodsUnit
(
$goodsInfo
->
getOneUnit
()
->
getUnitName
());
$allWarehouseGoods
->
setAddTime
(
time
());
$allWarehouseGoods
->
setAddTime
(
time
());
$allWarehouseGoods
->
setOutNum
(
$GoodsBuyNum
);
$allWarehouseGoods
->
setOutNum
(
$GoodsBuyNum
);
$allWarehouseGoods
->
setType
(
"check"
);
$this
->
entityManager
->
persist
(
$allWarehouseGoods
);
$this
->
entityManager
->
persist
(
$allWarehouseGoods
);
$this
->
entityManager
->
flush
();
$this
->
entityManager
->
flush
();
...
...
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